3 #include <Wt/WTemplate.h> 5 #include <Wt/WStackedWidget.h> 6 #include <Wt/WGridLayout.h> 7 #include <Wt/WVBoxLayout.h> 8 #include <Wt/WHBoxLayout.h> 9 #include <Wt/WFitLayout.h> 10 #include <Wt/WPushButton.h> 12 #include <Wtx/Dbo/TableViewManager.h> 13 #include <Wtx/Dbo/TemplateFormView.h> 14 #include <Wtx/Dbo/DetailForm.h> 17 #include "ManagerWidget.h" 20 :
public Wt::WContainerWidget
35 : Wt::WContainerWidget(),
45 CompanyDetail( Wt::Dbo::ptr< Wtx::Crm::Company::Item > & item )
48 "crmCompany.detailForm",
68 auto layout = std::make_unique< Wt::WHBoxLayout >();
77 Wt::SelectionMode::Single,
124 {
"custType",
"type", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
125 {
"keyField",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
126 {
"cfyField",
"", 300, Wt::AlignmentFlag::Left,
"",
nullptr },
127 {
"addr",
"", 150, Wt::AlignmentFlag::Left,
"",
nullptr },
128 {
"city",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
129 {
"state",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
130 {
"zip",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
131 {
"contact",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
132 {
"contactPhone",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr }
151 auto vlw = std::make_unique<Wt::WVBoxLayout>();
156 "Invoices for Account",
159 Wt::SelectionMode::Single,
190 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
191 {
"keyField",
"", 350, Wt::AlignmentFlag::Left,
"",
nullptr }
226 "Activity for Account",
229 Wt::SelectionMode::Single,
260 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
261 {
"keyField",
"", 350, Wt::AlignmentFlag::Left,
"",
nullptr }
295 "Transactions for Activity",
298 Wt::SelectionMode::Single,
329 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
330 {
"keyField",
"", 350, Wt::AlignmentFlag::Left,
"",
nullptr }
361 vlw-> setResizable( 0 );
362 vlw-> setResizable( 1 );
364 layout-> addLayout( std::move(vlw) );
365 layout-> setResizable( 0 );
368 setLayout( std::move(layout) );
375 : Wt::WContainerWidget(),
379 auto lw_u = std::make_unique<Wt::WHBoxLayout>();
380 auto lw = lw_u.get();
381 setLayout( std::move(lw_u) );
383 lw-> addWidget( std::make_unique< CompanyDesktop >( s ) );