Employee Item Class.
More...
#include <Item.h>
Employee Item Class.
This class represents an 'employee' within gnucash. This is a Dbo object so this class is used as the interface between the gnucashew application and the back-end database.
- Native GnuCash Employee Sqlite Schema
CREATE TABLE employees
(
guid text(32) PRIMARY KEY NOT NULL,
id text(2048) NOT NULL,
);
auto guid() const -> const std::string &
GUID.
Wt::WFormModel::Field addr_addr1
Wt::WFormModel::Field addr_name
Wt::WFormModel::Field addr_fax
Wt::WFormModel::Field addr_addr3
Wt::WFormModel::Field addr_phone
Wt::WFormModel::Field addr_email
Wt::WFormModel::Field addr_addr2
Wt::WFormModel::Field addr_addr4
const Wt::WFormModel::Field workday_denom
const Wt::WFormModel::Field acl
const Wt::WFormModel::Field language
const Wt::WFormModel::Field rate_num
const Wt::WFormModel::Field username
const Wt::WFormModel::Field rate_denom
const Wt::WFormModel::Field ccard_guid
const Wt::WFormModel::Field workday_num
const Wt::WFormModel::Field currency
const Wt::WFormModel::Field active
Definition at line 89 of file Item.h.
◆ Item() [1/2]
GCW::Dbo::Employees::Item::Item |
( |
| ) |
|
|
inline |
ctor
Definition at line 97 of file Item.h.
◆ Item() [2/2]
GCW::Dbo::Employees::Item::Item |
( |
const std::string & |
_guid | ) |
|
|
inline |
ctor with guid.
Definition at line 102 of file Item.h.
◆ guid()
auto GCW::Dbo::Employees::Item::guid |
( |
| ) |
const -> const std::string & |
|
inline |
GUID.
Return account 'guid' value - the primary key for the account
Definition at line 109 of file Item.h.
References m_guid.
◆ persist()
template<class Action >
void GCW::Dbo::Employees::Item::persist |
( |
Action & |
action | ) |
|
|
inline |
persist the data
This connects this object to the back-end database.
Definition at line 116 of file Item.h.
References GCW::Dbo::Employees::Field::acl, GCW::Dbo::Entries::Field::action, GCW::Dbo::Employees::Field::active, GCW::Dbo::Employees::Field::addr_addr1, GCW::Dbo::Employees::Field::addr_addr2, GCW::Dbo::Employees::Field::addr_addr3, GCW::Dbo::Employees::Field::addr_addr4, GCW::Dbo::Employees::Field::addr_email, GCW::Dbo::Employees::Field::addr_fax, GCW::Dbo::Employees::Field::addr_name, GCW::Dbo::Employees::Field::addr_phone, GCW::Dbo::Employees::Field::ccard_guid, GCW::Dbo::Employees::Field::currency, GCW::Dbo::Employees::Field::guid, GCW::Dbo::Invoices::Field::id, GCW::Dbo::Employees::Field::id, GCW::Dbo::Employees::Field::language, m_acl, m_active, m_addr_addr1, m_addr_addr2, m_addr_addr3, m_addr_addr4, m_addr_email, m_addr_fax, m_addr_name, m_addr_phone, m_ccard_guid, m_currency, m_guid, m_id, m_language, m_rate_denom, m_rate_num, m_username, m_workday_denom, m_workday_num, GCW::Dbo::Employees::Field::rate_denom, GCW::Dbo::Employees::Field::rate_num, GCW::Dbo::Employees::Field::username, GCW::Dbo::Employees::Field::workday_denom, and GCW::Dbo::Employees::Field::workday_num.
◆ m_acl
std::string GCW::Dbo::Employees::Item::m_acl |
|
private |
◆ m_active
int GCW::Dbo::Employees::Item::m_active |
|
private |
◆ m_addr_addr1
std::string GCW::Dbo::Employees::Item::m_addr_addr1 |
|
private |
◆ m_addr_addr2
std::string GCW::Dbo::Employees::Item::m_addr_addr2 |
|
private |
◆ m_addr_addr3
std::string GCW::Dbo::Employees::Item::m_addr_addr3 |
|
private |
◆ m_addr_addr4
std::string GCW::Dbo::Employees::Item::m_addr_addr4 |
|
private |
◆ m_addr_email
std::string GCW::Dbo::Employees::Item::m_addr_email |
|
private |
◆ m_addr_fax
std::string GCW::Dbo::Employees::Item::m_addr_fax |
|
private |
◆ m_addr_name
std::string GCW::Dbo::Employees::Item::m_addr_name |
|
private |
◆ m_addr_phone
std::string GCW::Dbo::Employees::Item::m_addr_phone |
|
private |
◆ m_ccard_guid
std::string GCW::Dbo::Employees::Item::m_ccard_guid |
|
private |
◆ m_currency
std::string GCW::Dbo::Employees::Item::m_currency |
|
private |
◆ m_guid
std::string GCW::Dbo::Employees::Item::m_guid |
|
private |
◆ m_id
std::string GCW::Dbo::Employees::Item::m_id |
|
private |
◆ m_language
std::string GCW::Dbo::Employees::Item::m_language |
|
private |
◆ m_rate_denom
int GCW::Dbo::Employees::Item::m_rate_denom |
|
private |
◆ m_rate_num
int GCW::Dbo::Employees::Item::m_rate_num |
|
private |
◆ m_username
std::string GCW::Dbo::Employees::Item::m_username |
|
private |
◆ m_workday_denom
int GCW::Dbo::Employees::Item::m_workday_denom |
|
private |
◆ m_workday_num
int GCW::Dbo::Employees::Item::m_workday_num |
|
private |
The documentation for this class was generated from the following file: