GnuCashew ~ GnuCash Enabled Web
GCW
Public Member Functions | Private Attributes | List of all members
GCW::Dbo::Employees::Item Class Reference

Employee Item Class. More...

#include <Item.h>

+ Inheritance diagram for GCW::Dbo::Employees::Item:

Public Member Functions

 Item ()
 ctor More...
 
 Item (const std::string &_guid)
 ctor with guid. More...
 
auto guid () const -> const std::string &
 GUID. More...
 
template<class Action >
void persist (Action &action)
 persist the data More...
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 

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

- Public Types inherited from GCW::Dbo::BaseItem< Item >
using Ptr = Wt::Dbo::ptr< Item >
 
using Collection = Wt::Dbo::collection< Ptr >
 
using Vector = std::vector< Ptr >
 

Detailed Description

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.

dot_inline_dotgraph_6.png
Native GnuCash Employee Sqlite Schema
CREATE TABLE employees
(
guid text(32) PRIMARY KEY NOT NULL,
username text(2048) NOT NULL,
id text(2048) NOT NULL,
language text(2048) NOT NULL,
acl text(2048) NOT NULL,
active integer NOT NULL,
currency text(32) NOT NULL,
ccard_guid text(32),
workday_num bigint NOT NULL,
workday_denom bigint NOT NULL,
rate_num bigint NOT NULL,
rate_denom bigint NOT NULL,
addr_name text(1024),
addr_addr1 text(1024),
addr_addr2 text(1024),
addr_addr3 text(1024),
addr_addr4 text(1024),
addr_phone text(128),
addr_fax text(128),
addr_email text(256)
);
auto guid() const -> const std::string &
GUID.
Definition: Item.h:109
Wt::WFormModel::Field addr_addr1
Definition: Customers.cpp:20
Wt::WFormModel::Field addr_name
Definition: Customers.cpp:19
Wt::WFormModel::Field addr_fax
Definition: Customers.cpp:25
Wt::WFormModel::Field addr_addr3
Definition: Customers.cpp:22
Wt::WFormModel::Field addr_phone
Definition: Customers.cpp:24
Wt::WFormModel::Field addr_email
Definition: Customers.cpp:26
Wt::WFormModel::Field addr_addr2
Definition: Customers.cpp:21
Wt::WFormModel::Field addr_addr4
Definition: Customers.cpp:23
const Wt::WFormModel::Field workday_denom
Definition: Employees.cpp:18
const Wt::WFormModel::Field acl
Definition: Employees.cpp:13
const Wt::WFormModel::Field language
Definition: Employees.cpp:12
const Wt::WFormModel::Field rate_num
Definition: Employees.cpp:19
const Wt::WFormModel::Field username
Definition: Employees.cpp:10
const Wt::WFormModel::Field rate_denom
Definition: Employees.cpp:20
const Wt::WFormModel::Field ccard_guid
Definition: Employees.cpp:16
const Wt::WFormModel::Field workday_num
Definition: Employees.cpp:17
const Wt::WFormModel::Field currency
Definition: Definition.h:22
const Wt::WFormModel::Field active
Definition: Definition.h:21

Definition at line 89 of file Item.h.

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ 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

Member Data Documentation

◆ m_acl

std::string GCW::Dbo::Employees::Item::m_acl
private

Definition at line 147 of file Item.h.

Referenced by persist().

◆ m_active

int GCW::Dbo::Employees::Item::m_active
private

Definition at line 148 of file Item.h.

Referenced by persist().

◆ m_addr_addr1

std::string GCW::Dbo::Employees::Item::m_addr_addr1
private

Definition at line 156 of file Item.h.

Referenced by persist().

◆ m_addr_addr2

std::string GCW::Dbo::Employees::Item::m_addr_addr2
private

Definition at line 157 of file Item.h.

Referenced by persist().

◆ m_addr_addr3

std::string GCW::Dbo::Employees::Item::m_addr_addr3
private

Definition at line 158 of file Item.h.

Referenced by persist().

◆ m_addr_addr4

std::string GCW::Dbo::Employees::Item::m_addr_addr4
private

Definition at line 159 of file Item.h.

Referenced by persist().

◆ m_addr_email

std::string GCW::Dbo::Employees::Item::m_addr_email
private

Definition at line 162 of file Item.h.

Referenced by persist().

◆ m_addr_fax

std::string GCW::Dbo::Employees::Item::m_addr_fax
private

Definition at line 161 of file Item.h.

Referenced by persist().

◆ m_addr_name

std::string GCW::Dbo::Employees::Item::m_addr_name
private

Definition at line 155 of file Item.h.

Referenced by persist().

◆ m_addr_phone

std::string GCW::Dbo::Employees::Item::m_addr_phone
private

Definition at line 160 of file Item.h.

Referenced by persist().

◆ m_ccard_guid

std::string GCW::Dbo::Employees::Item::m_ccard_guid
private

Definition at line 150 of file Item.h.

Referenced by persist().

◆ m_currency

std::string GCW::Dbo::Employees::Item::m_currency
private

Definition at line 149 of file Item.h.

Referenced by persist().

◆ m_guid

std::string GCW::Dbo::Employees::Item::m_guid
private

Definition at line 143 of file Item.h.

Referenced by guid(), and persist().

◆ m_id

std::string GCW::Dbo::Employees::Item::m_id
private

Definition at line 145 of file Item.h.

Referenced by persist().

◆ m_language

std::string GCW::Dbo::Employees::Item::m_language
private

Definition at line 146 of file Item.h.

Referenced by persist().

◆ m_rate_denom

int GCW::Dbo::Employees::Item::m_rate_denom
private

Definition at line 154 of file Item.h.

Referenced by persist().

◆ m_rate_num

int GCW::Dbo::Employees::Item::m_rate_num
private

Definition at line 153 of file Item.h.

Referenced by persist().

◆ m_username

std::string GCW::Dbo::Employees::Item::m_username
private

Definition at line 144 of file Item.h.

Referenced by persist().

◆ m_workday_denom

int GCW::Dbo::Employees::Item::m_workday_denom
private

Definition at line 152 of file Item.h.

Referenced by persist().

◆ m_workday_num

int GCW::Dbo::Employees::Item::m_workday_num
private

Definition at line 151 of file Item.h.

Referenced by persist().


The documentation for this class was generated from the following file: