Changeset 723 for trunk/Modules/Customer/Customer.php
- Timestamp:
- Jan 3, 2015, 8:31:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Customer/Customer.php
r721 r723 63 63 'Filter' => '1', 64 64 )); 65 65 $this->System->FormManager->RegisterClass('Service', array( 66 'Title' => 'Služby', 67 'Table' => 'Service', 68 'DefaultSortColumn' => 'Name', 69 'Items' => array( 70 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 71 'Category' => array('Type' => 'TServiceCategory', 'Caption' => 'Skupina', 'Default' => '', 'Null' => true), 72 'Price' => array('Type' => 'Integer', 'Caption' => 'Cena', 'Default' => '0', 'Suffix' => 'Kč'), 73 'VAT' => array('Type' => 'TFinanceVATType', 'Caption' => 'Sazba DPH', 'Default' => '0', 'Suffix' => ''), 74 'CustomerCount' => array('Type' => 'Integer', 'Caption' => 'Počet zákazníků', 'Default' => '', 'ReadOnly' => true, 75 'SQL' => '(SELECT COUNT(*) FROM `ServiceCustomerRel` LEFT JOIN `Member` ON `Member`.`Id`=`ServiceCustomerRel`.`Customer` WHERE (`ServiceCustomerRel`.`Service`=#Id) AND (`Member`.`Blocked`=0))'), 76 'Public' => array('Type' => 'Boolean', 'Caption' => 'Veřejné', 'Default' => ''), 77 'InternetSpeedMin' => array('Type' => 'Integer', 'Caption' => 'Min. rychlost internetu', 'Default' => '0', 'Suffix' => 'kbit/s'), 78 'InternetSpeedMax' => array('Type' => 'Integer', 'Caption' => 'Max. rychlost internetu', 'Default' => '0', 'Suffix' => 'kbit/s'), 79 'UploadAsymmetry' => array('Type' => 'Integer', 'Caption' => 'Asymetrie odesílání', 'Default' => '1'), 80 'Memory' => array('Type' => 'Integer', 'Caption' => 'Paměť', 'Default' => '0', 'Suffix' => 'GB'), 81 'MemorySwap' => array('Type' => 'Integer', 'Caption' => 'Odkládací oddíl', 'Default' => '0', 'Suffix' => 'GB'), 82 'Storage' => array('Type' => 'Integer', 'Caption' => 'Úložiště', 'Default' => '0', 'Suffix' => 'GB'), 83 'CPUCount' => array('Type' => 'Integer', 'Caption' => 'Počet jader', 'Default' => '0', 'Suffix' => ''), 84 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true), 85 'ReplaceId' => array('Type' => 'TService', 'Caption' => 'Cílová položka', 'Default' => '', 'Null' => true), 86 'CustomerRel' => array('Type' => 'TServiceCustomerRelListService', 'Caption' => 'Placení zákazníky', 'Default' => ''), 87 ), 88 )); 89 $this->System->FormManager->RegisterClass('ServiceCategory', array( 90 'Title' => 'Kategorie služeb', 91 'Table' => 'ServiceCategory', 92 'Items' => array( 93 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 94 'Items' => array('Type' => 'TServiceListServiceCategory', 'Caption' => 'Služby', 'Default' => ''), 95 ), 96 )); 97 $this->System->FormManager->RegisterClass('ServiceCustomerRel', array( 98 'Title' => 'Vztahy služba - zákazník', 99 'Table' => 'ServiceCustomerRel', 100 'Items' => array( 101 'Service' => array('Type' => 'TService', 'Caption' => 'Služba', 'Default' => ''), 102 'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''), 103 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true), 104 'ReplaceId' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Cílová položka', 'Default' => '', 'Null' => true), 105 ), 106 )); 107 $this->System->FormManager->RegisterFormType('TServiceCategory', array( 108 'Type' => 'Reference', 109 'Table' => 'ServiceCategory', 110 'Id' => 'Id', 111 'Name' => 'Name', 112 'Filter' => '1', 113 )); 114 $this->System->FormManager->RegisterFormType('TService', array( 115 'Type' => 'Reference', 116 'Table' => 'Service', 117 'Id' => 'Id', 118 'Name' => 'Name', 119 'Filter' => '1', 120 )); 121 $this->System->FormManager->RegisterFormType('TServiceCustomerRel', array( 122 'Type' => 'Reference', 123 'Table' => 'ServiceCustomerRel', 124 'Id' => 'Id', 125 'Name' => 'Id', 126 'Filter' => '1', 127 )); 128 $this->System->FormManager->RegisterFormType('TServiceCustomerRelListCustomer', array( 129 'Type' => 'ManyToOne', 130 'Table' => 'ServiceCustomerRel', 131 'Id' => 'Id', 132 'Ref' => 'Customer', 133 'Filter' => '1', 134 )); 135 $this->System->FormManager->RegisterFormType('TServiceCustomerRelListService', array( 136 'Type' => 'ManyToOne', 137 'Table' => 'ServiceCustomerRel', 138 'Id' => 'Id', 139 'Ref' => 'Service', 140 'Filter' => '1', 141 )); 142 $this->System->FormManager->RegisterFormType('TServiceListServiceCategory', array( 143 'Type' => 'ManyToOne', 144 'Table' => 'Service', 145 'Id' => 'Id', 146 'Ref' => 'Category', 147 'Filter' => '1', 148 )); 66 149 } 67 150 }
Note:
See TracChangeset
for help on using the changeset viewer.