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 <Wtx/Sys/Lookup/Item.h> 52 #include "Definition.h" 63 Template(
const std::string keyField =
"" )
68 Template(
const std::string & key,
const std::string & cfy )
184 std::string cityStateZip()
const 186 std::string retVal = city().value();
188 if( state().value() !=
"" )
190 retVal +=
", " + state().value();
193 if( zip().value() !=
"" )
195 retVal +=
" " + zip().value();
201 template<
class Action>
void persist( Action & a )
205 m_status .persist( a, &TableDef(). StatusFieldDef );
206 m_accountName .persist( a, &TableDef(). AccountNameFieldDef );
207 m_accountNote .persist( a, &TableDef(). AccountNoteFieldDef );
208 m_activityDate .persist( a, &TableDef(). ActivityDateFieldDef );
209 m_activeFrom .persist( a, &TableDef(). ActiveFromFieldDef );
210 m_activeTo .persist( a, &TableDef(). ActiveToFieldDef );
212 m_custType .persist( a, &TableDef(). CustTypeFieldDef );
213 m_note .persist( a, &TableDef(). NoteFieldDef );
214 m_notes .persist( a, &TableDef(). NotesFieldDef );
215 m_alert .persist( a, &TableDef(). AlertFieldDef );
216 m_phone1 .persist( a, &TableDef(). Phone1FieldDef );
217 m_phone2 .persist( a, &TableDef(). Phone2FieldDef );
218 m_addr .persist( a, &TableDef(). AddrFieldDef );
219 m_addr2 .persist( a, &TableDef(). Addr2FieldDef );
220 m_fax .persist( a, &TableDef(). FaxFieldDef );
221 m_terms .persist( a, &TableDef(). TermsFieldDef );
222 m_city .persist( a, &TableDef(). CityFieldDef );
223 m_state .persist( a, &TableDef(). StateFieldDef );
224 m_zip .persist( a, &TableDef(). ZipFieldDef );
225 m_country .persist( a, &TableDef(). CountryFieldDef );
226 m_payor .persist( a, &TableDef(). PayorFieldDef );
227 m_carrier .persist( a, &TableDef(). CarrierFieldDef );
228 m_email .persist( a, &TableDef(). EmailFieldDef );
229 m_emailBilling .persist( a, &TableDef(). EmailBillingFieldDef );
230 m_contact .persist( a, &TableDef(). ContactFieldDef );
231 m_contactPhone .persist( a, &TableDef(). ContactPhoneFieldDef );
232 m_buyer .persist( a, &TableDef(). BuyerFieldDef );
233 m_buyerPhone .persist( a, &TableDef(). BuyerPhoneFieldDef );
234 m_memo .persist( a, &TableDef(). MemoFieldDef );
235 m_expAdj .persist( a, &TableDef(). ExpAdjFieldDef );
236 m_catchWt .persist( a, &TableDef(). CatchWtFieldDef );
237 m_useLotNumbers .persist( a, &TableDef(). UseLotNumbersFieldDef );
238 m_chargeMin .persist( a, &TableDef(). ChargeMinFieldDef );
239 m_chargeDiffDays .persist( a, &TableDef(). ChargeDiffDaysFieldDef );
240 m_chargeLtDays .persist( a, &TableDef(). ChargeLtDaysFieldDef );
241 m_chargeStart .persist( a, &TableDef(). ChargeStartFieldDef );
242 m_chargeMinInvChgIn .persist( a, &TableDef(). ChargeMinInvChgInFieldDef );
243 m_chargeMinInvChgOut .persist( a, &TableDef(). ChargeMinInvChgOutFieldDef );
245 m_companyName .persist( a, &TableDef(). CompanyNameFieldDef );
246 m_contactName .persist( a, &TableDef(). ContactNameFieldDef );
247 m_mainPhone .persist( a, &TableDef(). MainPhoneFieldDef );
248 m_category .persist( a, &TableDef(). CategoryFieldDef );
250 m_lastBilledEom .persist( a, &TableDef(). LastBilledEomFieldDef );
251 m_lastBilledMaster .persist( a, &TableDef(). LastBilledMasterFieldDef );
311 #endif // __WTX_CRM_COMPANY_TEMPLATE_H___