Changeset 640 for trunk/Application/FormClasses.php
- Timestamp:
- Mar 22, 2014, 12:00:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r632 r640 1 1 <?php 2 2 3 // TODO: Split all form class definitions to modules 3 // TODO: Split all form class definitions to modules 4 4 5 5 /* 6 6 Item definition: 7 Type - identifikace typu z podporovaných 7 Type - identifikace typu z podporovaných 8 8 Caption - popisek, titulek položky 9 9 Default - výchozí hodnota … … 31 31 'Table' => 'UserCustomerRel', 32 32 'Items' => array( 33 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => ''), 34 'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''), 33 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => ''), 34 'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''), 35 35 ), 36 36 ), … … 39 39 'Table' => 'FinanceInvoiceOperationRel', 40 40 'Items' => array( 41 'Invoice' => array('Type' => 'TFinanceInvoice', 'Caption' => 'Faktura', 'Default' => ''), 42 'Operation' => array('Type' => 'TFinanceOperation', 'Caption' => 'Platba', 'Default' => ''), 41 'Invoice' => array('Type' => 'TFinanceInvoice', 'Caption' => 'Faktura', 'Default' => ''), 42 'Operation' => array('Type' => 'TFinanceOperation', 'Caption' => 'Platba', 'Default' => ''), 43 43 ), 44 44 ), … … 47 47 'Table' => 'ServiceCustomerRel', 48 48 'Items' => array( 49 'Service' => array('Type' => 'TService', 'Caption' => 'Služba', 'Default' => ''), 50 'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''), 51 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true), 52 'ReplaceId' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Cílová položka', 'Default' => '', 'Null' => true), 49 'Service' => array('Type' => 'TService', 'Caption' => 'Služba', 'Default' => ''), 50 'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''), 51 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true), 52 'ReplaceId' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Cílová položka', 'Default' => '', 'Null' => true), 53 53 ), 54 54 ), … … 58 58 'DefaultSortColumn' => 'Name', 59 59 'Items' => array( 60 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 61 'Shortcut' => array('Type' => 'String', 'Caption' => 'Kód', 'Default' => ''), 62 'Sequence' => array('Type' => 'TDocumentLineSequenceListLine', 'Caption' => 'Čísleníky', 'Default' => ''), 60 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 61 'Shortcut' => array('Type' => 'String', 'Caption' => 'Kód', 'Default' => ''), 62 'Sequence' => array('Type' => 'TDocumentLineSequenceListLine', 'Caption' => 'Čísleníky', 'Default' => ''), 63 63 ), 64 64 ), … … 68 68 'DefaultSortColumn' => 'Id', 69 69 'Items' => array( 70 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => ''), 71 'FinanceYear' => array('Type' => 'TFinanceYear', 'Caption' => 'Účetní rok', 'Default' => ''), 72 'NextNumber' => array('Type' => 'Integer', 'Caption' => 'Další číslo', 'Default' => '1'), 73 'YearPrefix' => array('Type' => 'Boolean', 'Caption' => 'Rok jako přípona', 'Default' => '1'), 70 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => ''), 71 'FinanceYear' => array('Type' => 'TFinanceYear', 'Caption' => 'Účetní rok', 'Default' => ''), 72 'NextNumber' => array('Type' => 'Integer', 'Caption' => 'Další číslo', 'Default' => '1'), 73 'YearPrefix' => array('Type' => 'Boolean', 'Caption' => 'Rok jako přípona', 'Default' => '1'), 74 74 'Operations' => array('Type' => 'TFinanceOperationListDocumentLine', 'Caption' => 'Finanční operace', 'Default' => ''), 75 75 'Invoices' => array('Type' => 'TFinanceInvoiceListDocumentLine', 'Caption' => 'Faktury', 'Default' => ''), … … 81 81 'DefaultSortColumn' => 'Year', 82 82 'Items' => array( 83 'Year' => array('Type' => 'Integer', 'Caption' => 'Rok', 'Default' => ''), 84 'DateStart' => array('Type' => 'Date', 'Caption' => 'První den', 'Default' => ''), 85 'DateEnd' => array('Type' => 'Date', 'Caption' => 'Poslední den', 'Default' => ''), 86 'Closed' => array('Type' => 'Boolean', 'Caption' => 'Uzavřen', 'Default' => 0), 87 'Sequence' => array('Type' => 'TDocumentLineSequenceListYear', 'Caption' => 'Čísleníky', 'Default' => ''), 83 'Year' => array('Type' => 'Integer', 'Caption' => 'Rok', 'Default' => ''), 84 'DateStart' => array('Type' => 'Date', 'Caption' => 'První den', 'Default' => ''), 85 'DateEnd' => array('Type' => 'Date', 'Caption' => 'Poslední den', 'Default' => ''), 86 'Closed' => array('Type' => 'Boolean', 'Caption' => 'Uzavřen', 'Default' => 0), 87 'Sequence' => array('Type' => 'TDocumentLineSequenceListYear', 'Caption' => 'Čísleníky', 'Default' => ''), 88 'Income' => array('Type' => 'Integer', 'Caption' => 'Příjmy', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 89 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `FinanceYear`.`DateEnd`) '. 90 'AND (`FinanceOperation`.`Time` >= `FinanceYear`.`DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.`Value` > 0))'), 91 'Spending' => array('Type' => 'Integer', 'Caption' => 'Výdaje', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 92 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `FinanceYear`.`DateEnd`) '. 93 'AND (`FinanceOperation`.`Time` >= `FinanceYear`.`DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.`Value` < 0))'), 94 'OperationBalance' => array('Type' => 'Integer', 'Caption' => 'Zisk', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 95 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `FinanceYear`.`DateEnd`) '. 96 'AND (`FinanceOperation`.`Time` >= `FinanceYear`.`DateStart`) AND (`FinanceOperation`.`Taxable` = 1))'), 97 'Claims' => array('Type' => 'Integer', 'Caption' => 'Pohledávky', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 98 'SQL' => '(SELECT ROUND(SUM(`FinanceInvoice`.`Value`)) FROM `FinanceInvoice` WHERE (`FinanceInvoice`.`Time` <= `FinanceYear`.`DateEnd`) '. 99 'AND (`FinanceInvoice`.`Time` >= `FinanceYear`.`DateStart`) AND (`FinanceInvoice`.`Value` > 0))'), 100 'Liabilities' => array('Type' => 'Integer', 'Caption' => 'Závazky', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 101 'SQL' => '(SELECT -ROUND(SUM(`FinanceInvoice`.`Value`)) FROM `FinanceInvoice` WHERE (`FinanceInvoice`.`Time` <= `FinanceYear`.`DateEnd`) '. 102 'AND (`FinanceInvoice`.`Time` >= `FinanceYear`.`DateStart`) AND (`FinanceInvoice`.`Value` < 0))'), 103 'InvoiceBalance' => array('Type' => 'Integer', 'Caption' => 'Fakturační rozdíl', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 104 'SQL' => '(SELECT ROUND(SUM(`FinanceInvoice`.`Value`)) FROM `FinanceInvoice` WHERE (`FinanceInvoice`.`Time` <= `FinanceYear`.`DateEnd`) '. 105 'AND (`FinanceInvoice`.`Time` >= `FinanceYear`.`DateStart`))'), 88 106 ), 89 107 //'AfterInsert' => array($this, 'AfterInsertFinanceYear'), … … 105 123 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''), 106 124 ), 107 ), 125 ), 108 126 'FinanceBillingPeriod' => array( 109 127 'Title' => 'Platební období', … … 133 151 'Storage' => array('Type' => 'Integer', 'Caption' => 'Úložiště', 'Default' => '0', 'Suffix' => 'GB'), 134 152 'CPUCount' => array('Type' => 'Integer', 'Caption' => 'Počet jader', 'Default' => '0', 'Suffix' => ''), 135 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true), 153 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true), 136 154 'ReplaceId' => array('Type' => 'TService', 'Caption' => 'Cílová položka', 'Default' => '', 'Null' => true), 137 155 ), … … 180 198 'Type' => 'Enumeration', 181 199 'States' => array('Neplánováno', 'V plánu', 'Provádí se'), 182 ), 200 ), 183 201 'TAntennaPolarity' => array( 184 202 'Type' => 'Enumeration', 185 203 'States' => array('Vertikální', 'Horizontální', 'Kruhová', 'Vertikální i horizontální'), 186 ), 204 ), 187 205 'TNetworkDeviceState' => array( 188 206 'Type' => 'Enumeration', … … 196 214 'Type' => 'Enumeration', 197 215 'States' => array('add' => 'Přidat', 'modify' => 'Upravit', 'remove' => 'Odstranit'), 198 ), 216 ), 199 217 'TWirelessMode' => array( 200 218 'Type' => 'Enumeration', 201 219 'States' => array('Přístupový bod (AP)', 'Klient'), 202 ), 220 ), 203 221 'TService' => array( 204 222 'Type' => 'Reference', … … 268 286 'Table' => 'FinanceBankAccount', 269 287 'Id' => 'Id', 270 'Name' => 'CONCAT(`Comment`, " (", `Number`, "/", '. 288 'Name' => 'CONCAT(`Comment`, " (", `Number`, "/", '. 271 289 '(SELECT `FinanceBank`.`Code` FROM `FinanceBank` WHERE `FinanceBank`.`Id`=`FinanceBankAccount`.`Bank`), ")")', 272 290 'Filter' => '1', … … 290 308 'Table' => 'NetworkInterface', 291 309 'View' => '(SELECT NetworkInterface.*, CONCAT(NetworkDevice.Name, "-", NetworkInterface.Name) AS DeviceName FROM NetworkInterface '. 292 'LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device) AS T', 310 'LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device) AS T', 293 311 'Id' => 'Id', 294 312 'Name' => 'DeviceName', … … 490 508 'Ref' => 'Product', 491 509 'Filter' => '1', 492 ), 510 ), 493 511 'TDocumentLine' => array( 494 512 'Type' => 'Reference', … … 497 515 'Name' => 'Name', 498 516 'Filter' => '1', 499 ), 517 ), 500 518 'TFinanceYear' => array( 501 519 'Type' => 'Reference',
Note:
See TracChangeset
for help on using the changeset viewer.