1 | <?php
|
---|
2 |
|
---|
3 | $FormClasses = array(
|
---|
4 | 'NewPayment' => array(
|
---|
5 | 'Title' => 'Nová platba',
|
---|
6 | 'Items' => array(
|
---|
7 | 'Time' => array('Type' => 'Time', 'Caption' => 'Čas', 'Default' => 'Now'),
|
---|
8 | 'Subject' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0),
|
---|
9 | 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0'),
|
---|
10 | 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Přijatá záloha'),
|
---|
11 | 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotovost', 'Default' => '1'),
|
---|
12 | 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Ovlivňující daňový základ', 'Default' => '1'),
|
---|
13 | ),
|
---|
14 | ),
|
---|
15 | 'NewInvoice' => array(
|
---|
16 | 'Title' => 'Nová faktura',
|
---|
17 | 'Items' => array(
|
---|
18 | 'Time' => array('Type' => 'Time', 'Caption' => 'Čas', 'Default' => 'Now'),
|
---|
19 | 'Contractor' => array('Type' => 'TFinanceSubject', 'Caption' => 'Dodavatel', 'Default' => 1),
|
---|
20 | 'Customer' => array('Type' => 'TFinanceSubject', 'Caption' => 'Odběratel', 'Default' => 0),
|
---|
21 | 'Items' => array('Type' => 'Array', 'Caption' => 'Položky', 'ItemClass' => 'FinanceInvoiceItem'),
|
---|
22 | ),
|
---|
23 | ),
|
---|
24 | 'FinanceInvoiceItem' => array(
|
---|
25 | 'Title' => 'Položka faktury',
|
---|
26 | 'Items' => array(
|
---|
27 | 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0'),
|
---|
28 | 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Položka'),
|
---|
29 | 'Quantity' => array('Type' => 'Integer', 'Caption' => 'Množství', 'Default' => '1'),
|
---|
30 | 'Tax' => array('Type' => 'Integer', 'Caption' => 'Daň [%]', 'Default' => '19'),
|
---|
31 | ),
|
---|
32 | ),
|
---|
33 | 'Measure' => array(
|
---|
34 | 'Title' => 'Měření',
|
---|
35 | 'Table' => 'Measure',
|
---|
36 | 'Items' => array(
|
---|
37 | 'Name' => array('Type' => 'String', 'Caption' => 'Zkratka', 'Default' => 'measure'),
|
---|
38 | 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'Měření'),
|
---|
39 | 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Měření veličiny'),
|
---|
40 | 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''),
|
---|
41 | 'Continuity' => array('Type' => 'Boolean', 'Caption' => 'Spojitost', 'Default' => '0'),
|
---|
42 | 'Period' => array('Type' => 'Integer', 'Caption' => 'Perioda měření', 'Default' => '60'),
|
---|
43 | 'PermissionAdd' => array('Type' => 'String', 'Caption' => 'Oprávnění k měření', 'Default' => 'localhost.localdomain'),
|
---|
44 | 'PermissionView' => array('Type' => 'String', 'Caption' => 'Oprávnění k prohlížení', 'Default' => 'all'),
|
---|
45 | 'Enabled' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => '1'),
|
---|
46 | 'DataType' => array('Type' => 'String', 'Caption' => 'Typ datových položek', 'Default' => 'int'),
|
---|
47 | 'DataTable' => array('Type' => 'String', 'Caption' => 'Tabulka měřených dat', 'Default' => 'data'),
|
---|
48 | ),
|
---|
49 | ),
|
---|
50 | 'UserOptions' => array(
|
---|
51 | 'Title' => 'Základní nastavení',
|
---|
52 | 'Table' => 'User',
|
---|
53 | 'Items' => array(
|
---|
54 | 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
|
---|
55 | 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
|
---|
56 | 'FirstName' => array('Type' => 'String', 'Caption' => 'Křestní jméno', 'Default' => ''),
|
---|
57 | 'SecondName' => array('Type' => 'String', 'Caption' => 'Přijmení jméno', 'Default' => ''),
|
---|
58 | 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
|
---|
59 | ),
|
---|
60 | ),
|
---|
61 | 'UserRegister' => array(
|
---|
62 | 'Title' => 'Registrace uživatele',
|
---|
63 | 'Table' => 'User',
|
---|
64 | 'Items' => array(
|
---|
65 | 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
|
---|
66 | 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
|
---|
67 | 'Password2' => array('Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Default' => ''),
|
---|
68 | 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
|
---|
69 | 'FirstName' => array('Type' => 'String', 'Caption' => 'Křestní jméno', 'Default' => ''),
|
---|
70 | 'SecondName' => array('Type' => 'String', 'Caption' => 'Přijmení jméno', 'Default' => ''),
|
---|
71 | ),
|
---|
72 | ),
|
---|
73 | 'NewNetworkDevice' => array(
|
---|
74 | 'Title' => 'Vložit nové zařízení',
|
---|
75 | 'Table' => 'network_devices',
|
---|
76 | 'Items' => array(
|
---|
77 | 'name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
|
---|
78 | 'price' => array('Type' => 'Float', 'Caption' => 'Cena', 'Default' => 0),
|
---|
79 | 'count' => array('Type' => 'Integer', 'Caption' => 'Počet', 'Default' => 1),
|
---|
80 | 'date' => array('Type' => 'Time', 'Caption' => 'Datum zakoupení', 'Default' => 'Now'),
|
---|
81 | 'segment' => array('Type' => 'TNetworkSegment', 'Caption' => 'Segment sítě', 'Default' => 0),
|
---|
82 | 'date' => array('Type' => 'Time', 'Caption' => 'Datum zakoupení', 'Default' => 'Now'),
|
---|
83 | 'used' => array('Type' => 'TNetworkDeviceState', 'Caption' => 'Stav', 'Default' => 0),
|
---|
84 | 'consumption' => array('Type' => 'Integer', 'Caption' => 'Spotřeba', 'Default' => 0),
|
---|
85 | 'user' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0),
|
---|
86 | 'info' => array('Type' => 'String', 'Caption' => 'Poznámky', 'Default' => ''),
|
---|
87 | 'shop' => array('Type' => 'String', 'Caption' => 'Obchod', 'Default' => ''),
|
---|
88 | 'device_id' => array('Type' => 'String', 'Caption' => 'Sériové číslo', 'Default' => ''),
|
---|
89 | ),
|
---|
90 | ),
|
---|
91 | 'NewNetworkDeviceHistory' => array(
|
---|
92 | 'Title' => 'Vložit záznam historie zařízení',
|
---|
93 | 'Table' => 'NetworkDeviceHistory',
|
---|
94 | 'Items' => array(
|
---|
95 | 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => 0),
|
---|
96 | 'Time' => array('Type' => 'Time', 'Caption' => 'Čas', 'Default' => 'Now'),
|
---|
97 | 'Action' => array('Type' => 'TNetworkDeviceAction', 'Caption' => 'Akce', 'Default' => 0),
|
---|
98 | 'Notice' => array('Type' => 'String', 'Caption' => 'Poznámka', 'Default' => ''),
|
---|
99 | ),
|
---|
100 | ),
|
---|
101 | );
|
---|
102 |
|
---|
103 | $FormTypes = array(
|
---|
104 | 'TNetworkDeviceState' => array(
|
---|
105 | 'Type' => 'Enumeration',
|
---|
106 | 'States' => array('Vyřazeno', 'Použito', 'Na skladě'),
|
---|
107 | ),
|
---|
108 | 'TNetworkDeviceAction' => array(
|
---|
109 | 'Type' => 'Enumeration',
|
---|
110 | 'States' => array('Zakoupeno', 'Prodáno', 'Zařazeno do použití', 'Vyřazeno z použití', 'Zasláno do reklamace', 'Přijato z reklamace'),
|
---|
111 | ),
|
---|
112 | 'TFinanceSubject' => array(
|
---|
113 | 'Type' => 'Reference',
|
---|
114 | 'Table' => 'users',
|
---|
115 | 'Id' => 'id',
|
---|
116 | 'Name' => 'CONCAT(second_name, " ", first_name)',
|
---|
117 | 'Filter' => 'role=2',
|
---|
118 | ),
|
---|
119 | 'TNetworkDevice' => array(
|
---|
120 | 'Type' => 'Reference',
|
---|
121 | 'Table' => 'network_devices',
|
---|
122 | 'Id' => 'id',
|
---|
123 | 'Name' => 'name',
|
---|
124 | 'Filter' => '1',
|
---|
125 | ),
|
---|
126 | 'TNetworkSegment' => array(
|
---|
127 | 'Type' => 'Reference',
|
---|
128 | 'Table' => 'network_segments',
|
---|
129 | 'Id' => 'id',
|
---|
130 | 'Name' => 'name',
|
---|
131 | 'Filter' => '1',
|
---|
132 | ),
|
---|
133 | );
|
---|
134 |
|
---|
135 | ?>
|
---|