GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
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
 
 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
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 
- Public Member Functions inherited from Wt::Dbo::Dbo< class C >
 Dbo ()
 
 Dbo (const Dbo< C > &other)
 
dbo_traits< C >::IdType id () const
 
Sessionsession () const
 
void setDirty ()
 
bool isDirty () const
 
ptr< Cself () 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

- 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 at line 89 of file Dbo/Employees/Item.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

GCW::Dbo::Employees::Item::Item ( )
inline

ctor

Definition at line 97 of file Dbo/Employees/Item.h.

◆ Item() [2/2]

GCW::Dbo::Employees::Item::Item ( const std::string &  _guid)
inline

ctor with guid.

Definition at line 102 of file Dbo/Employees/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 Dbo/Employees/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 Dbo/Employees/Item.h.

Referenced by persist().

◆ m_active

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

Definition at line 148 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_addr1

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

Definition at line 156 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_addr2

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

Definition at line 157 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_addr3

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

Definition at line 158 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_addr4

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

Definition at line 159 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_email

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

Definition at line 162 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_fax

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

Definition at line 161 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_name

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

Definition at line 155 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_addr_phone

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

Definition at line 160 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_ccard_guid

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

Definition at line 150 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_currency

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

Definition at line 149 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_guid

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

Definition at line 143 of file Dbo/Employees/Item.h.

Referenced by guid(), and persist().

◆ m_id

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

Definition at line 145 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_language

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

Definition at line 146 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_rate_denom

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

Definition at line 154 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_rate_num

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

Definition at line 153 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_username

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

Definition at line 144 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_workday_denom

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

Definition at line 152 of file Dbo/Employees/Item.h.

Referenced by persist().

◆ m_workday_num

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

Definition at line 151 of file Dbo/Employees/Item.h.

Referenced by persist().


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