46 #ifndef __WTX_CRM_COMPANY_TEMPLATE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 47 #define __WTX_CRM_COMPANY_TEMPLATE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 49 #include <Wtx/Dbo/PermissionItemTpl.h> 50 #include "Definition.h" 56 template <
class C>
class Template
61 Template(
const std::string keyField =
"" )
62 :
Wtx::Dbo::PermissionItemTpl<C>( keyField )
66 Template(
const std::string & key,
const std::string & cfy )
67 :
Wtx::Dbo::PermissionItemTpl<C>( key, cfy )
72 :
Wtx::Dbo::PermissionItemTpl<C>( other.keyField().value(), other.cfyField().value() )
81 static Definition & TableDef()
126 template<
class Action>
void persist( Action & a )
129 companyName.persist( a, &TableDef().CompanyNameFieldDef );
130 contactName.persist( a, &TableDef().ContactNameFieldDef );
131 mainPhone.persist( a, &TableDef().MainPhoneFieldDef );
133 accountNote .persist( a, &TableDef().AccountNoteFieldDef );
134 activityDate .persist( a, &TableDef().ActivityDateFieldDef );
135 activeFrom .persist( a, &TableDef().ActiveFromFieldDef );
136 activeTo .persist( a, &TableDef().ActiveToFieldDef );
138 m_custType .persist( a, &TableDef().CustTypeFieldDef );
139 m_note .persist( a, &TableDef().NoteFieldDef );
140 m_notes .persist( a, &TableDef().NotesFieldDef );
141 m_phone1 .persist( a, &TableDef().Phone1FieldDef );
142 m_phone2 .persist( a, &TableDef().Phone2FieldDef );
143 m_addr .persist( a, &TableDef().AddrFieldDef );
144 m_addr2 .persist( a, &TableDef().Addr2FieldDef );
145 m_fax .persist( a, &TableDef().FaxFieldDef );
146 m_terms .persist( a, &TableDef().TermsFieldDef );
147 m_city .persist( a, &TableDef().CityFieldDef );
148 m_state .persist( a, &TableDef().StateFieldDef );
149 m_zip .persist( a, &TableDef().ZipFieldDef );
150 m_country .persist( a, &TableDef().CountryFieldDef );
151 m_payor .persist( a, &TableDef().PayorFieldDef );
152 m_carrier .persist( a, &TableDef().CarrierFieldDef );
153 m_email .persist( a, &TableDef().EmailFieldDef );
154 m_contact .persist( a, &TableDef().ContactFieldDef );
155 m_contactPhone .persist( a, &TableDef().ContactPhoneFieldDef );
156 m_buyer .persist( a, &TableDef().BuyerFieldDef );
157 m_buyerPhone .persist( a, &TableDef().BuyerPhoneFieldDef );
158 m_memo .persist( a, &TableDef().MemoFieldDef );
159 m_expAdj .persist( a, &TableDef().ExpAdjFieldDef );
160 m_catchWt .persist( a, &TableDef().CatchWtFieldDef );
161 m_chargeMin .persist( a, &TableDef().ChargeMinFieldDef );
162 m_chargeDiffDays .persist( a, &TableDef().ChargeDiffDaysFieldDef );
163 m_chargeLtDays .persist( a, &TableDef().ChargeLtDaysFieldDef );
164 m_chargeStart .persist( a, &TableDef().ChargeStartFieldDef );
165 m_chargeMinInvChgIn .persist( a, &TableDef().ChargeMinInvChgInFieldDef );
166 m_chargeMinInvChgOut .persist( a, &TableDef().ChargeMinInvChgOutFieldDef );
178 #endif // __WTX_CRM_COMPANY_TEMPLATE_H___