1 #line 2 "src/Gui/Customer/Invoices.cpp"
3 #include <Wt/WHBoxLayout.h>
11 addStyleClass(
"Invoices" );
14 auto m_hlw = setLayout( std::make_unique< Wt::WHBoxLayout >() );
16 m_tableView = m_hlw-> addWidget( std::make_unique< Wt::WTableView >(), 1 );
18 std::vector< Wt::WFormModel::Field > fields =
26 m_model = std::make_shared< GCW::Eng::InvoicesModel >( fields );
31 clicked().connect( [&]( Wt::WModelIndex _index, Wt::WMouseEvent _event )
33 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << _index.row() << std::endl;
44 m_model-> setCustomerGuid( _guid );
46 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << m_model-> rowCount() << std::endl;
48 m_tableView-> setModel( m_model );
auto setCustomerGuid(const std::string &_guid) -> void
std::shared_ptr< GCW::Eng::InvoicesModel > m_model
Wt::WTableView * m_tableView
const Wt::WFormModel::Field notes
const Wt::WFormModel::Field billing_id
const Wt::WFormModel::Field date_posted
const Wt::WFormModel::Field id