source: trunk/Application/FormClasses.php

Last change on this file was 894, checked in by chronos, 4 years ago
  • Modified: Further improved models initialization system.
File size: 8.4 KB
Line 
1<?php
2
3// TODO: Split all form class definitions to modules
4
5function RegisterFormClasses(FormManager $FormManager): void
6{
7
8$FormManager->FormTypes = array
9(
10 'TPriority' => array(
11 'Type' => 'Enumeration',
12 'States' => array('Nízká', 'Střední', 'Vysoká'),
13 ),
14 'TOnlineState' => array(
15 'Type' => 'Enumeration',
16 'States' => array('<span style="color:red;">Nedostupný</span>', '<span style="color:green;">Dostupný</span>'),
17 ),
18 'TAntennaPolarity' => array(
19 'Type' => 'Enumeration',
20 'States' => array('Vertikální', 'Horizontální', 'Kruhová', 'Vertikální i horizontální'),
21 ),
22 'TNetworkDeviceState' => array(
23 'Type' => 'Enumeration',
24 'States' => array('Vyřazeno', 'Použito', 'Na skladě'),
25 ),
26 'TNetworkDeviceAction' => array(
27 'Type' => 'Enumeration',
28 'States' => array('Zakoupeno', 'Prodáno', 'Zařazeno do použití', 'Vyřazeno z použití', 'Zasláno do reklamace', 'Přijato z reklamace'),
29 ),
30 'TActionEnum' => array(
31 'Type' => 'Enumeration',
32 'States' => array('add' => 'Přidat', 'modify' => 'Upravit', 'remove' => 'Odstranit'),
33 ),
34 'TWirelessMode' => array(
35 'Type' => 'Enumeration',
36 'States' => array('Přístupový bod (AP)', 'Klient'),
37 ),
38 'TFinanceBillingPeriod' => array(
39 'Type' => 'Reference',
40 'Table' => 'FinanceBillingPeriod',
41 'Id' => 'Id',
42 'Name' => 'Name',
43 'Filter' => '1',
44 ),
45 'TMemberListSubject' => array(
46 'Type' => 'ManyToOne',
47 'Table' => 'Member',
48 'Id' => 'Id',
49 'Ref' => 'Subject',
50 'Filter' => '1',
51 ),
52 'TStockSerialNumberListStock' => array(
53 'Type' => 'ManyToOne',
54 'Table' => 'StockSerialNumber',
55 'Id' => 'Id',
56 'Ref' => 'Stock',
57 'Filter' => '1',
58 ),
59 'TStockSerialNumberListProduct' => array(
60 'Type' => 'ManyToOne',
61 'Table' => 'StockSerialNumber',
62 'Id' => 'Id',
63 'Ref' => 'Product',
64 'Filter' => '1',
65 ),
66 'TNetworkDeviceListProduct' => array(
67 'Type' => 'ManyToOne',
68 'Table' => 'NetworkDevice',
69 'Id' => 'Id',
70 'Ref' => 'Product',
71 'Filter' => '1',
72 ),
73 'TDocumentLine' => array(
74 'Type' => 'Reference',
75 'Table' => 'DocumentLine',
76 'Id' => 'Id',
77 'Name' => 'Name',
78 'Filter' => '1',
79 ),
80 'TFinanceYear' => array(
81 'Type' => 'Reference',
82 'Table' => 'FinanceYear',
83 'Id' => 'Id',
84 'Name' => 'Year',
85 'Filter' => '1',
86 ),
87 'TCurrency' => array(
88 'Type' => 'Reference',
89 'Table' => 'Currency',
90 'Id' => 'Id',
91 'Name' => 'Code',
92 'Filter' => '1',
93 ),
94 'TFinanceInvoice' => array(
95 'Type' => 'Reference',
96 'Table' => 'FinanceInvoice',
97 'Id' => 'Id',
98 'Name' => '(SELECT `DocumentLineCode`.`Name` FROM `DocumentLineCode` WHERE `Id`=`FinanceInvoice`.`BillCode`)',
99 'Filter' => '1',
100 ),
101 'TFinanceOperation' => array(
102 'Type' => 'Reference',
103 'Table' => 'FinanceOperation',
104 'Id' => 'Id',
105 'Name' => '(SELECT `DocumentLineCode`.`Name` FROM `DocumentLineCode` WHERE `Id`=`FinanceOperation`.`BillCode`)',
106 'Filter' => '1',
107 ),
108 'TFinanceCharge' => array(
109 'Type' => 'Reference',
110 'Table' => 'FinanceCharge',
111 'Id' => 'Id',
112 'Name' => 'Id',
113 'Filter' => '1',
114 ),
115 'TDocumentLineSequenceListYear' => array(
116 'Type' => 'ManyToOne',
117 'Table' => 'DocumentLineSequence',
118 'Id' => 'Id',
119 'Ref' => 'FinanceYear',
120 'Filter' => '1',
121 ),
122 'TDocumentLineSequenceListLine' => array(
123 'Type' => 'ManyToOne',
124 'Table' => 'DocumentLineSequence',
125 'Id' => 'Id',
126 'Ref' => 'DocumentLine',
127 'Filter' => '1',
128 ),
129 'TDocumentLineCodeList' => array(
130 'Type' => 'ManyToOne',
131 'Table' => 'DocumentLineCode',
132 'Id' => 'Id',
133 'Ref' => 'DocumentLine',
134 'Filter' => '1',
135 ),
136 'TUserCustomerRelListUser' => array(
137 'Type' => 'ManyToOne',
138 'Table' => 'UserCustomerRel',
139 'Id' => 'Id',
140 'Ref' => 'User',
141 'Filter' => '1',
142 ),
143 'TUserCustomerRelListCustomer' => array(
144 'Type' => 'ManyToOne',
145 'Table' => 'UserCustomerRel',
146 'Id' => 'Id',
147 'Ref' => 'Customer',
148 'Filter' => '1',
149 ),
150 'TFinanceInvoiceOperationRelListInvoice' => array(
151 'Type' => 'ManyToOne',
152 'Table' => 'FinanceInvoiceOperationRel',
153 'Id' => 'Id',
154 'Ref' => 'Invoice',
155 'Filter' => '1',
156 ),
157 'TFinanceInvoiceOperationRelListOperation' => array(
158 'Type' => 'ManyToOne',
159 'Table' => 'FinanceInvoiceOperationRel',
160 'Id' => 'Id',
161 'Ref' => 'Operation',
162 'Filter' => '1',
163 ),
164 'TCustomerStockSerialNumber' => array(
165 'Type' => 'ManyToOne',
166 'Table' => 'StockSerialNumber',
167 'Id' => 'Id',
168 'Ref' => 'Location',
169 'Filter' => '1',
170 ),
171 'TPermissionUserAssignmentListUser' => array(
172 'Type' => 'ManyToOne',
173 'Table' => 'PermissionUserAssignment',
174 'Id' => 'Id',
175 'Ref' => 'User',
176 'Filter' => '1',
177 ),
178 'TPermissionGroupAssignmentListGroup' => array(
179 'Type' => 'ManyToOne',
180 'Table' => 'PermissionGroupAssignment',
181 'Id' => 'Id',
182 'Ref' => 'Group',
183 'Filter' => '1',
184 ),
185 'TPermissionGroupAssignmentListOperation' => array(
186 'Type' => 'ManyToOne',
187 'Table' => 'PermissionGroupAssignment',
188 'Id' => 'Id',
189 'Ref' => 'AssignedOperation',
190 'Filter' => '1',
191 ),
192 'TPermissionGroupAssignmentListAssignedGroup' => array(
193 'Type' => 'ManyToOne',
194 'Table' => 'PermissionGroupAssignment',
195 'Id' => 'Id',
196 'Ref' => 'AssignedGroup',
197 'Filter' => '1',
198 ),
199 'TNetworkSignalListInterface' => array(
200 'Type' => 'ManyToOne',
201 'Table' => 'NetworkSignal',
202 'Id' => 'Id',
203 'Ref' => 'Interface',
204 'Filter' => '1',
205 ),
206 'TFinanceInvoiceItemListInvoice' => array(
207 'Type' => 'ManyToOne',
208 'Table' => 'FinanceInvoiceItem',
209 'Id' => 'Id',
210 'Ref' => 'FinanceInvoice',
211 'Filter' => '1',
212 ),
213 'TFinanceInvoiceStornoListBy' => array(
214 'Type' => 'ManyToOne',
215 'Table' => 'FinanceInvoiceStorno',
216 'Id' => 'Id',
217 'Ref' => 'StornoBy',
218 'Filter' => '1',
219 ),
220 'TFinanceInvoiceStornoListOf' => array(
221 'Type' => 'ManyToOne',
222 'Table' => 'FinanceInvoiceStorno',
223 'Id' => 'Id',
224 'Ref' => 'StornoOf',
225 'Filter' => '1',
226 ),
227 'TFinanceInvoiceListGroup' => array(
228 'Type' => 'ManyToOne',
229 'Table' => 'FinanceInvoice',
230 'Id' => 'Id',
231 'Ref' => 'Group',
232 'Filter' => '1',
233 ),
234 'TFinanceOperationListGroup' => array(
235 'Type' => 'ManyToOne',
236 'Table' => 'FinanceOperation',
237 'Id' => 'Id',
238 'Ref' => 'Group',
239 'Filter' => '1',
240 ),
241 'TFinanceOperationListAccount' => array(
242 'Type' => 'ManyToOne',
243 'Table' => 'FinanceOperation',
244 'Id' => 'Id',
245 'Ref' => 'BankAccount',
246 'Filter' => '1',
247 ),
248 'TFinanceOperationListSubject' => array(
249 'Type' => 'ManyToOne',
250 'Table' => 'FinanceOperation',
251 'Id' => 'Id',
252 'Ref' => 'Subject',
253 'Filter' => '1',
254 ),
255 'TFinanceInvoiceListSubject' => array(
256 'Type' => 'ManyToOne',
257 'Table' => 'FinanceInvoice',
258 'Id' => 'Id',
259 'Ref' => 'Subject',
260 'Filter' => '1',
261 ),
262 'TMenuItemListMenu' => array(
263 'Type' => 'ManyToOne',
264 'Table' => 'MenuItem',
265 'Id' => 'Id',
266 'Ref' => 'Menu',
267 'Filter' => '1',
268 ),
269 'TMenuItemListParent' => array(
270 'Type' => 'ManyToOne',
271 'Table' => 'MenuItem',
272 'Id' => 'Id',
273 'Ref' => 'Parent',
274 'Filter' => '1',
275 ),
276 'TActionListGroup' => array(
277 'Type' => 'ManyToOne',
278 'Table' => 'Action',
279 'Id' => 'Id',
280 'Ref' => 'Group',
281 'Filter' => '1',
282 ),
283 'TFinanceOperationListTreasury' => array(
284 'Type' => 'ManyToOne',
285 'Table' => 'FinanceOperation',
286 'Id' => 'Id',
287 'Ref' => 'Treasury',
288 'Filter' => '1',
289 ),
290 'TActionListIcon' => array(
291 'Type' => 'ManyToOne',
292 'Table' => 'Action',
293 'Id' => 'Id',
294 'Ref' => 'Icon',
295 'Filter' => '1',
296 ),
297 'TActionListType' => array(
298 'Type' => 'ManyToOne',
299 'Table' => 'Action',
300 'Id' => 'Id',
301 'Ref' => 'Type',
302 'Filter' => '1',
303 ),
304 'TStockSerialNumberListStockSerialNumber' => array(
305 'Type' => 'ManyToOne',
306 'Table' => 'StockSerialNumber',
307 'Id' => 'Id',
308 'Ref' => 'Esemble',
309 'Filter' => '1',
310 ),
311 'TCustomerListBillingPeriod' => array(
312 'Type' => 'ManyToOne',
313 'Table' => 'Member',
314 'Id' => 'Id',
315 'Ref' => 'BillingPeriod',
316 'Filter' => '1',
317 ),
318 'TFinanceOperationGroupListDocumentLine' => array(
319 'Type' => 'ManyToOne',
320 'Table' => 'FinanceOperationGroup',
321 'Id' => 'Id',
322 'Ref' => 'DocumentLine',
323 'Filter' => '1',
324 ),
325 'TFinanceInvoiceGroupListDocumentLine' => array(
326 'Type' => 'ManyToOne',
327 'Table' => 'FinanceInvoiceGroup',
328 'Id' => 'Id',
329 'Ref' => 'DocumentLine',
330 'Filter' => '1',
331 ),
332);
333}
Note: See TracBrowser for help on using the repository browser.