46 #ifndef __WTX_CRM_COMPANY_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 47 #define __WTX_CRM_COMPANY_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 49 #include <Wtx/Dbo/PermissionTableDef.h> 50 #include <Wtx/Dbo/FieldDefPhoneEdit.h> 51 #include <Wtx/Dbo/FieldDefLookupWidget.h> 53 #include <Wtx/Addons/Crm/Company/Item.h> 67 std::string key(
const std::string & lastName,
const std::string & firstName );
68 Wt::Dbo::ptr< Wtx::Crm::Company::Item > xfind(
const std::string & xid,
Wtx::Dbo::Session & session );
69 Wt::Dbo::ptr< Wtx::Crm::Company::Item > add(
const std::string & name,
Wtx::Dbo::Session & session );
79 std::shared_ptr< Wt::WAbstractItemModel > model(
int sid,
int tid,
const std::string & filter );
81 std::unique_ptr<Wt::WTableView> getTableView(
int sid,
int tid,
const std::string & filter );
83 int find_id(
const std::string & value );
84 std::string get_string(
int id );
85 std::string get_toolTip(
int id );
90 std::shared_ptr< Model > m_model;
94 std::shared_ptr< Wt::WAbstractItemModel > getCompanyModel(
int sid,
int tid,
const std::string & filter,
Wtx::Dbo::Session & session );
95 std::unique_ptr< Wt::WTableView > getCompanyTableView(
int sid,
int tid,
const std::string & filter,
Wtx::Dbo::Session & session );
97 std::unique_ptr< CompanyProvider > makeCompanyProvider();
104 #endif // __WTX_CRM_COMPANY_H___