GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
|
#include <Item.h>
Public Member Functions | |
Item () | |
ctor | |
Item (const std::string &_guid) | |
ctor with guid. | |
auto | guid () const -> const std::string & |
GUID. | |
template<class Action > | |
void | persist (Action &action) |
persist the data | |
![]() | |
BaseItem () | |
![]() | |
Dbo () | |
Dbo (const Dbo< C > &other) | |
dbo_traits< C >::IdType | id () const |
Session * | session () const |
void | setDirty () |
bool | isDirty () const |
ptr< C > | self () const |
Private Attributes | |
std::string | m_guid |
std::string | m_username |
std::string | m_id |
std::string | m_language |
std::string | m_acl |
int | m_active |
std::string | m_currency |
std::string | m_ccard_guid |
int | m_workday_num |
int | m_workday_denom |
int | m_rate_num |
int | m_rate_denom |
std::string | m_addr_name |
std::string | m_addr_addr1 |
std::string | m_addr_addr2 |
std::string | m_addr_addr3 |
std::string | m_addr_addr4 |
std::string | m_addr_phone |
std::string | m_addr_fax |
std::string | m_addr_email |
Additional Inherited Members | |
![]() | |
using | Ptr = Wt::Dbo::ptr< Item > |
using | Collection = Wt::Dbo::collection< Ptr > |
using | Vector = std::vector< Ptr > |
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.
Definition at line 89 of file Dbo/Employees/Item.h.
|
inline |
ctor
Definition at line 97 of file Dbo/Employees/Item.h.
|
inline |
ctor with guid.
Definition at line 102 of file Dbo/Employees/Item.h.
|
inline |
GUID.
Return account 'guid' value - the primary key for the account
Definition at line 109 of file Dbo/Employees/Item.h.
References m_guid.
|
inline |
persist the data
This connects this object to the back-end database.
Definition at line 116 of file Dbo/Employees/Item.h.
References GCW::Dbo::Employees::Field::acl, 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, Wt::Dbo::field(), GCW::Dbo::Employees::Field::guid, Wt::Dbo::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.
|
private |
Definition at line 147 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 148 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 156 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 157 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 158 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 159 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 162 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 161 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 155 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 160 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 150 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 149 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 143 of file Dbo/Employees/Item.h.
|
private |
Definition at line 145 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 146 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 154 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 153 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 144 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 152 of file Dbo/Employees/Item.h.
Referenced by persist().
|
private |
Definition at line 151 of file Dbo/Employees/Item.h.
Referenced by persist().