1 #line 2 "src/Eng/CustomersModel.cpp"
11 :
Wt::Dbo::QueryModel<
GCW::Dbo::Customers::Item::Ptr >()
16 dataChanged().connect( [=]( Wt::WModelIndex _index1, Wt::WModelIndex _index2 )
25 itemChanged().connect( [=]( Wt::WStandardItem * _item )
32 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << std::endl;
37 CustomersModel(
const std::vector< Wt::WFormModel::Field > & _fields )
39 :
Wt::Dbo::QueryModel<
GCW::Dbo::Customers::Item::Ptr >(),
56 if(
GCW::app()-> gnucashew_session().isOpen() )
58 Wt::Dbo::Transaction t(
GCW::app()-> gnucashew_session() );
68 if( m_fields.size() > 0 )
70 for(
auto field : m_fields )
76 addAllFieldsAsColumns();
84 guid(
int _row )-> std::string
86 return resultRow( _row )->
guid();
auto refreshFromDisk() -> void
Refresh From Disk.
auto guid(int _row) -> std::string
const Wt::WFormModel::Field guid