|
GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
|
#include <Transactions.h>
Inheritance diagram for GCW::Dbo::Transactions::Item:Public Types | |
| using | Ptr = Wt::Dbo::ptr< Item > |
| using | Collection = Wt::Dbo::collection< Ptr > |
| using | Vector = std::vector< Ptr > |
Public Member Functions | |
| Item () | |
| Item (const std::string &_txGuid) | |
| auto | guid () const -> const std::string & |
| auto | currency_guid () const -> const std::string & |
| auto | num () const -> const std::string & |
| auto | post_date () const -> const std::string & |
| auto | enter_date () const -> const std::string & |
| auto | description () const -> const std::string & |
| auto | set_currency_guid (const std::string &_guid) -> void |
| auto | set_enter_date (const Wt::WDate &_value) -> void |
| auto | set_enter_date (const Wt::WDateTime &_value) -> void |
| auto | set_num (const std::string &_value) -> void |
| auto | post_date_as_string (const std::string &_format) const -> std::string |
| Post Date as String. | |
| auto | post_date_as_date () const -> Wt::WDateTime |
| Date as WDate. | |
| auto | set_post_date (const Wt::WDate &_value) -> void |
| auto | set_post_date (const Wt::WDateTime &_value) -> void |
| auto | set_description (const std::string &_value) -> void |
| template<class Action > | |
| void | persist (Action &action) |
Public Member Functions inherited from Wt::Dbo::Dbo< Item > | |
| 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 Member Functions | |
| auto | set_enter_date (const std::string &_value) -> void |
| auto | set_post_date (const std::string &_value) -> void |
Private Attributes | |
| std::string | m_guid |
| std::string | m_currency_guid |
| std::string | m_num |
| std::string | m_post_date |
| std::string | m_enter_date |
| std::string | m_description |
Transaction Item.
Definition at line 74 of file Transactions.h.
Definition at line 80 of file Transactions.h.
| using GCW::Dbo::Transactions::Item::Ptr = Wt::Dbo::ptr< Item > |
Definition at line 79 of file Transactions.h.
| using GCW::Dbo::Transactions::Item::Vector = std::vector< Ptr > |
Definition at line 81 of file Transactions.h.
|
inline |
Definition at line 83 of file Transactions.h.
|
inline |
Definition at line 84 of file Transactions.h.
References m_guid.
|
inline |
Definition at line 87 of file Transactions.h.
References m_currency_guid.
|
inline |
Definition at line 91 of file Transactions.h.
References m_description.
|
inline |
Definition at line 90 of file Transactions.h.
References m_enter_date.
|
inline |
Definition at line 86 of file Transactions.h.
References m_guid.
|
inline |
Definition at line 88 of file Transactions.h.
References m_num.
|
inline |
Definition at line 135 of file Transactions.h.
References Wt::Dbo::field(), Wt::Dbo::id(), m_currency_guid, m_description, m_enter_date, m_guid, m_num, and m_post_date.
|
inline |
Definition at line 89 of file Transactions.h.
References m_post_date.
Referenced by post_date_as_date(), and post_date_as_string().
|
inline |
Date as WDate.
This will take the stored string-date of the transaction and covert it to a system WDateTime value.
Definition at line 124 of file Transactions.h.
References Wt::WDateTime::fromString(), GCW_DATETIME_FORMAT_STORAGE, and post_date().
|
inline |
Post Date as String.
This pulls the post-date from the back-end and formats it with the requested format. This is used for screen-representations of the date.
Definition at line 111 of file Transactions.h.
References Wt::WDateTime::fromString(), GCW_DATETIME_FORMAT_STORAGE, and post_date().
|
inline |
Definition at line 93 of file Transactions.h.
References m_currency_guid.
| auto GCW::Dbo::Transactions::Item::set_description | ( | const std::string & | _value | ) | -> void |
Definition at line 73 of file Transactions.cpp.
|
private |
Definition at line 17 of file Transactions.cpp.
| auto GCW::Dbo::Transactions::Item::set_enter_date | ( | const Wt::WDate & | _value | ) | -> void |
Definition at line 24 of file Transactions.cpp.
References GCW_DATE_DEFAULT_TIME, and GCW_DATETIME_FORMAT_STORAGE.
| auto GCW::Dbo::Transactions::Item::set_enter_date | ( | const Wt::WDateTime & | _value | ) | -> void |
Definition at line 32 of file Transactions.cpp.
References GCW_DATETIME_FORMAT_STORAGE.
| auto GCW::Dbo::Transactions::Item::set_num | ( | const std::string & | _value | ) | -> void |
Definition at line 9 of file Transactions.cpp.
|
private |
Definition at line 39 of file Transactions.cpp.
| auto GCW::Dbo::Transactions::Item::set_post_date | ( | const Wt::WDate & | _value | ) | -> void |
Definition at line 46 of file Transactions.cpp.
References GCW_DATE_DEFAULT_TIME, and GCW_DATETIME_FORMAT_STORAGE.
| auto GCW::Dbo::Transactions::Item::set_post_date | ( | const Wt::WDateTime & | _value | ) | -> void |
Definition at line 56 of file Transactions.cpp.
|
private |
Definition at line 151 of file Transactions.h.
Referenced by currency_guid(), persist(), and set_currency_guid().
|
private |
Definition at line 155 of file Transactions.h.
Referenced by description(), and persist().
|
private |
Definition at line 154 of file Transactions.h.
Referenced by enter_date(), and persist().
|
private |
Definition at line 150 of file Transactions.h.
|
private |
Definition at line 152 of file Transactions.h.
|
private |
Definition at line 153 of file Transactions.h.
Referenced by persist(), and post_date().