Changeset 719 for trunk/Application/FormClasses.php
- Timestamp:
- Jan 2, 2015, 11:16:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r712 r719 2 2 3 3 // TODO: Split all form class definitions to modules 4 5 /*6 Item definition:7 Type - identifikace typu z podporovaných8 Caption - popisek, titulek položky9 Default - výchozí hodnota10 Null - hodnota nemusí být zadána11 NoInList - sloupec viditelný v seznamu12 Suffix - text za hodnotou13 Description - popis významu položky14 ReadOnly - je položky pouze pro čtení15 Required - položka je vyžadována16 */17 4 18 5 function RegisterFormClasses($FormManager) … … 91 78 'ReadOnly' => true), 92 79 'Income' => array('Type' => 'Integer', 'Caption' => 'Příjmy', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 93 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` )) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '.94 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.` Value` > 0))'),80 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` * `FinanceOperation`.`Direction`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 81 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Direction` = 1))'), 95 82 'Spending' => array('Type' => 'Integer', 'Caption' => 'Výdaje', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 96 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value` )) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '.97 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.` Value` < 0))'),83 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value` * `FinanceOperation`.`Direction`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 84 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Direction` = -1))'), 98 85 'OperationBalance' => array('Type' => 'Integer', 'Caption' => 'Zisk', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 99 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` )) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '.86 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` * `FinanceOperation`.`Direction`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 100 87 'AND (`FinanceOperation`.`Time` >= `DateStart`))'), 101 88 'TaxIncome' => array('Type' => 'Integer', 'Caption' => 'Daňové příjmy', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 102 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` )) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '.103 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.` Value` > 0))'),89 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` * `FinanceOperation`.`Direction`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 90 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.`Direction` = 1))'), 104 91 'TaxSpending' => array('Type' => 'Integer', 'Caption' => 'Daňové výdaje', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 105 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value` )) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '.106 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.` Value` < 0))'),92 'SQL' => '(SELECT -ROUND(SUM(`FinanceOperation`.`Value` * `FinanceOperation`.`Direction`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 93 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1) AND (`FinanceOperation`.`Direction` = -1))'), 107 94 'TaxBase' => array('Type' => 'Integer', 'Caption' => 'Základ daně', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true, 108 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` )) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '.95 'SQL' => '(SELECT ROUND(SUM(`FinanceOperation`.`Value` * `FinanceOperation`.`Direction`)) FROM `FinanceOperation` WHERE (`FinanceOperation`.`Time` <= `DateEnd`) '. 109 96 'AND (`FinanceOperation`.`Time` >= `DateStart`) AND (`FinanceOperation`.`Taxable` = 1))'), 110 97 'Claims' => array('Type' => 'Integer', 'Caption' => 'Pohledávky', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true,
Note:
See TracChangeset
for help on using the changeset viewer.