Wtx ~ Wt Extension Library
WtxLib
Definition.h
1 /**************************************************************************
2 ###########################################################################
3 ##
4 ## $SHOWOFFDB_BEGIN_LICENSE$
5 ## Copyright (C) 2011 Lorimark Solutions, LLC and/or its subsidiary(-ies).
6 ## All rights reserved.
7 ## Contact: Lorimark Solutions, LLC (info@showoff-db.org)
8 ##
9 ## This file is part of the Showoff Database Application Framework.
10 ##
11 ## Commercial Usage
12 ## Licensees holding valid ShowoffDB Commercial licenses may use this file in
13 ## accordance with the ShowoffDB Commercial License Agreement provided with the
14 ## Software or, alternatively, in accordance with the terms contained in
15 ## a written agreement between you and Lorimark Solutions, LLC.
16 ##
17 ## GNU Lesser General Public License Usage
18 ## Alternatively, this file may be used under the terms of the GNU Lesser
19 ## General Public License version 2.1 as published by the Free Software
20 ## Foundation and appearing in the file LICENSE.LGPL included in the
21 ## packaging of this file. Please review the following information to
22 ## ensure the GNU Lesser General Public License version 2.1 requirements
23 ## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 ##
25 ## In addition, as a special exception, Lorimark Solutions, LLC gives
26 ## you certain additional rights. These rights are described in the
27 ## Lorimark Solutions, LLC ShowoffDB LGPL Exception version 1.0, included in
28 ## the file LGPL_EXCEPTION.txt in this package.
29 ##
30 ## GNU General Public License Usage
31 ## Alternatively, this file may be used under the terms of the GNU
32 ## General Public License version 3.0 as published by the Free Software
33 ## Foundation and appearing in the file LICENSE.GPL included in the
34 ## packaging of this file. Please review the following information to
35 ## ensure the GNU General Public License version 3.0 requirements will be
36 ## met: http://www.gnu.org/copyleft/gpl.html.
37 ##
38 ## If you have questions regarding the use of this file, please contact
39 ## Lorimark Solutions, LLC at info@showoff-db.org.
40 ## $SHOWOFFDB_END_LICENSE$
41 ##
42 #############################################################################
43 ****************************************************************************/
44 
45 
46 #ifndef __WTX_CRM_COMPANY_DEFINITION_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__
47 #define __WTX_CRM_COMPANY_DEFINITION_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__
48 
49 #include <Wtx/Dbo/PermissionTableDef.h>
50 #include <Wtx/Dbo/FieldDefPhoneEdit.h>
51 #include <Wtx/Dbo/FieldDefDateEdit.h>
52 #include <Wtx/Dbo/FieldDefTextEdit.h>
53 #include <Wtx/Dbo/FieldDefCurrencyEdit.h>
54 #include <Wtx/Dbo/FieldDefCheckBox.h>
55 #include <Wtx/Dbo/FieldDefYearEdit.h>
56 #include <Wtx/Dbo/FieldDefLineEdit.h>
57 #include <Wtx/Dbo/FieldDefNumberEdit.h>
58 #include <Wtx/Dbo/FieldDefLookupCombo.h>
59 #include <Wtx/Dbo/FieldDefCollectionEdit.h>
60 
61 
62 namespace Wtx {
63  namespace Crm {
64 
69  namespace Company {
70 
71 void mapClasses( Wtx::Dbo::Session & session );
72 void postCreateTables( Wtx::Dbo::Session & session );
73 
76 {
77  public:
78 
79  Definition();
80 
81  Wtx::Dbo::FieldDefLookupCombo StatusFieldDef = { *this, "status_sysLookup" };
82  Wtx::Dbo::FieldDefTextEdit AccountNameFieldDef = { *this, "accountName" };
83  Wtx::Dbo::FieldDefTextEdit AccountNoteFieldDef = { *this, "accountNote" };
84  Wtx::Dbo::FieldDefTextArea AlertFieldDef = { *this, "alert" };
85  Wtx::Dbo::FieldDefDateEdit ActivityDateFieldDef = { *this, "activityDate" };
86  Wtx::Dbo::FieldDefDateEdit ActiveFromFieldDef = { *this, "activeFrom" };
87  Wtx::Dbo::FieldDefDateEdit ActiveToFieldDef = { *this, "activeTo" };
88 
89  Wtx::Dbo::FieldDefLineEdit CustTypeFieldDef = { *this, "custType" };
90  Wtx::Dbo::FieldDefLineEdit NoteFieldDef = { *this, "note" };
91  Wtx::Dbo::FieldDefLineEdit NotesFieldDef = { *this, "notes" };
92  Wtx::Dbo::FieldDefLineEdit Phone1FieldDef = { *this, "phone" };
93  Wtx::Dbo::FieldDefLineEdit Phone2FieldDef = { *this, "phone2" };
94  Wtx::Dbo::FieldDefLineEdit AddrFieldDef = { *this, "addr" };
95  Wtx::Dbo::FieldDefLineEdit Addr2FieldDef = { *this, "addr2" };
96  Wtx::Dbo::FieldDefLineEdit FaxFieldDef = { *this, "fax" };
97  Wtx::Dbo::FieldDefLookupCombo TermsFieldDef = { *this, "terms_sysLookup" };
98  Wtx::Dbo::FieldDefLineEdit CityFieldDef = { *this, "city" };
99  Wtx::Dbo::FieldDefLineEdit StateFieldDef = { *this, "state" };
100  Wtx::Dbo::FieldDefLineEdit ZipFieldDef = { *this, "zip" };
101  Wtx::Dbo::FieldDefLineEdit CountryFieldDef = { *this, "country" };
102  Wtx::Dbo::FieldDefLineEdit PayorFieldDef = { *this, "payor" };
103  Wtx::Dbo::FieldDefLineEdit CarrierFieldDef = { *this, "carrier" };
104  Wtx::Dbo::FieldDefLineEdit ConsigneeFieldDef = { *this, "consignee" };
105  Wtx::Dbo::FieldDefLineEdit CustGroupFieldDef = { *this, "custGroup" };
106  Wtx::Dbo::FieldDefLineEdit LastInvoiceFieldDef = { *this, "lastInvoice" };
107  Wtx::Dbo::FieldDefLineEdit ExpAdjustFieldDef = { *this, "expAdjust" };
108  Wtx::Dbo::FieldDefLineEdit DLongDaysFieldDef = { *this, "dLongDays" };
109  Wtx::Dbo::FieldDefLineEdit DLongBreakFieldDef = { *this, "dLongBreak" };
110  Wtx::Dbo::FieldDefLineEdit DLongStartFieldDef = { *this, "dLongStart" };
111 
112  Wtx::Dbo::FieldDefTextArea EmailFieldDef = { *this, "email" };
113  Wtx::Dbo::FieldDefTextArea EmailBillingFieldDef = { *this, "emailBilling" };
114  Wtx::Dbo::FieldDefLineEdit ContactFieldDef = { *this, "contact" };
115  Wtx::Dbo::FieldDefLineEdit ContactPhoneFieldDef = { *this, "contactPhone" };
116  Wtx::Dbo::FieldDefLineEdit BuyerFieldDef = { *this, "buyer" };
117  Wtx::Dbo::FieldDefLineEdit BuyerPhoneFieldDef = { *this, "buyerPhone" };
118  Wtx::Dbo::FieldDefLineEdit MemoFieldDef = { *this, "memo" };
119  Wtx::Dbo::FieldDefNumberEdit ExpAdjFieldDef = { *this, "expAdj" };
120  Wtx::Dbo::FieldDefCheckBox CatchWtFieldDef = { *this, "catchWt" };
121  Wtx::Dbo::FieldDefCheckBox UseLotNumbersFieldDef = { *this, "useLotNumbers" };
122  Wtx::Dbo::FieldDefLineEdit ChargeMinFieldDef = { *this, "chargeMinDays" };
123  Wtx::Dbo::FieldDefNumberEdit ChargeDiffDaysFieldDef = { *this, "chargeDiffDays" };
124  Wtx::Dbo::FieldDefNumberEdit ChargeLtDaysFieldDef = { *this, "chargeLtDays" };
125  Wtx::Dbo::FieldDefNumberEdit ChargeStartFieldDef = { *this, "chargeStart" };
126  Wtx::Dbo::FieldDefNumberEdit ChargeMinInvChgInFieldDef = { *this, "chargeMinInvChgIn" };
127  Wtx::Dbo::FieldDefNumberEdit ChargeMinInvChgOutFieldDef = { *this, "chargeMinInvChgOut" };
128 
129  Wtx::Dbo::FieldDefLineEdit CompanyNameFieldDef = { *this, "companyName", 30 };
130  Wtx::Dbo::FieldDefLineEdit ContactNameFieldDef = { *this, "contactName", 30 };
131  Wtx::Dbo::FieldDefPhoneEdit MainPhoneFieldDef = { *this, "mainPhone" };
132  Wtx::Dbo::FieldDefLineEdit CategoryFieldDef = { *this, "category" };
133 
134  Wtx::Dbo::FieldDefDateEdit LastBilledEomFieldDef = { *this, "lastBilledEom" };
135  Wtx::Dbo::FieldDefDateEdit LastBilledMasterFieldDef = { *this, "lastBilledMaster" };
136 
137 };
138 
139  } // endnamespace Company
140  } // endnamespace Crm
141 } // endnamespace Wtx
142 
143 #endif // __WTX_CRM_COMPANY_DEFINITION_H___
144 
Single-line Editor.
Large-area (memo-type) text editor.
Telephone Number Editor.
witty extension library
Definition: Activity.h:51