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> 15 #include "ManagerWidget.h" 19 :
public Wt::WContainerWidget
34 :
Wt::WContainerWidget(),
45 DetailForm(
const std::string & templateName, Wt::Dbo::ptr<C> & item )
48 Wt::WString::tr(templateName),
67 CompanyDetail( Wt::Dbo::ptr< Wtx::Crm::Company::Item > & item )
70 "crmCompany.detailForm",
90 auto layout = std::make_unique< Wt::WHBoxLayout >();
98 Wt::SelectionMode::Single,
138 {
"custType",
"type", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
139 {
"keyField",
"code", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
140 {
"cfyField",
"Name", 300, Wt::AlignmentFlag::Left,
"",
nullptr },
141 {
"addr",
"Address", 150, Wt::AlignmentFlag::Left,
"",
nullptr },
142 {
"city",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
143 {
"state",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
144 {
"zip",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
145 {
"contact",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
146 {
"contactPhone",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr }
164 auto vlw = std::make_unique<Wt::WVBoxLayout>();
169 "Invoices for Account",
172 Wt::SelectionMode::Single,
200 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
201 {
"keyField",
"", 350, Wt::AlignmentFlag::Left,
"",
nullptr }
236 "Activity for Account",
239 Wt::SelectionMode::Single,
267 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
268 {
"keyField",
"", 350, Wt::AlignmentFlag::Left,
"",
nullptr }
302 "Transactions for Activity",
305 Wt::SelectionMode::Single,
333 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
334 {
"keyField",
"", 350, Wt::AlignmentFlag::Left,
"",
nullptr }
365 vlw-> setResizable( 0 );
366 vlw-> setResizable( 1 );
368 layout-> addLayout( std::move(vlw) );
369 layout-> setResizable( 0 );
372 setLayout( std::move(layout) );
379 : Wt::WContainerWidget(),
383 auto lw_u = std::make_unique<Wt::WHBoxLayout>();
384 auto lw = lw_u.get();
385 setLayout( std::move(lw_u) );
387 lw-> addWidget( std::make_unique< CompanyDesktop >( s ) );