Changeset 738 for trunk/Modules/Customer/Customer.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Customer/Customer.php
r727 r738 13 13 $this->Dependencies = array('User'); 14 14 } 15 15 16 16 function DoStart() 17 17 { … … 36 36 'Consumption' => array('Type' => 'TCustomerStockSerialNumber', 'Caption' => 'Spotřeba zařízení', 'Default' => ''), 37 37 ), 38 39 38 'ItemActions' => array( 39 array('Caption' => 'Klientská sekce', 'URL' => '/finance/platby/?i=#RowId'), 40 40 ), 41 )); 41 )); 42 42 $this->System->FormManager->RegisterClass('MemberPayment', array( 43 43 'Title' => 'Placení zákazníků', … … 56 56 )); 57 57 $this->System->FormManager->RegisterFormType('TMember', array( 58 59 60 61 62 58 'Type' => 'Reference', 59 'Table' => 'Member', 60 'Id' => 'Id', 61 'Name' => 'Name', 62 'Filter' => '1', 63 63 )); 64 64 $this->System->FormManager->RegisterClass('Service', array( 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 65 'Title' => 'Služby', 66 'Table' => 'Service', 67 'DefaultSortColumn' => 'Name', 68 'Items' => array( 69 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 70 'Category' => array('Type' => 'TServiceCategory', 'Caption' => 'Skupina', 'Default' => '', 'Null' => true), 71 'Price' => array('Type' => 'Integer', 'Caption' => 'Cena', 'Default' => '0', 'Suffix' => 'Kč'), 72 'VAT' => array('Type' => 'TFinanceVATType', 'Caption' => 'Sazba DPH', 'Default' => '0', 'Suffix' => ''), 73 'CustomerCount' => array('Type' => 'Integer', 'Caption' => 'Počet zákazníků', 'Default' => '', 'ReadOnly' => true, 74 'SQL' => '(SELECT COUNT(*) FROM `ServiceCustomerRel` LEFT JOIN `Member` ON `Member`.`Id`=`ServiceCustomerRel`.`Customer` WHERE (`ServiceCustomerRel`.`Service`=#Id) AND (`Member`.`Blocked`=0))'), 75 'Public' => array('Type' => 'Boolean', 'Caption' => 'Veřejné', 'Default' => ''), 76 'InternetSpeedMin' => array('Type' => 'Integer', 'Caption' => 'Min. rychlost internetu', 'Default' => '0', 'Suffix' => 'kbit/s'), 77 'InternetSpeedMax' => array('Type' => 'Integer', 'Caption' => 'Max. rychlost internetu', 'Default' => '0', 'Suffix' => 'kbit/s'), 78 'UploadAsymmetry' => array('Type' => 'Integer', 'Caption' => 'Asymetrie odesílání', 'Default' => '1'), 79 'Memory' => array('Type' => 'Integer', 'Caption' => 'Paměť', 'Default' => '0', 'Suffix' => 'GB'), 80 'MemorySwap' => array('Type' => 'Integer', 'Caption' => 'Odkládací oddíl', 'Default' => '0', 'Suffix' => 'GB'), 81 'Storage' => array('Type' => 'Integer', 'Caption' => 'Úložiště', 'Default' => '0', 'Suffix' => 'GB'), 82 'CPUCount' => array('Type' => 'Integer', 'Caption' => 'Počet jader', 'Default' => '0', 'Suffix' => ''), 83 'ChangeAction' => array('Type' => 'TActionEnum', 'Caption' => 'Změna - akce', 'Default' => '', 'Null' => true), 84 'ChangeTime' => array('Type' => 'DateTime', 'Caption' => 'Změna - čas', 'Default' => '', 'Null' => true), 85 'ChangeReplaceId' => array('Type' => 'TService', 'Caption' => 'Změna - položka', 'Default' => '', 'Null' => true), 86 'CustomerRel' => array('Type' => 'TServiceCustomerRelListService', 'Caption' => 'Placení zákazníky', 'Default' => ''), 87 ), 88 88 )); 89 89 $this->System->FormManager->RegisterClass('ServiceCategory', array( 90 91 92 93 94 95 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 96 )); 97 97 $this->System->FormManager->RegisterClass('ServiceCustomerRel', array( … … 102 102 'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''), 103 103 'ChangeAction' => array('Type' => 'TActionEnum', 'Caption' => 'Změna - akce', 'Default' => '', 'Null' => true), 104 105 104 'ChangeTime' => array('Type' => 'DateTime', 'Caption' => 'Změna - čas', 'Default' => '', 'Null' => true), 105 'ChangeReplaceId' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Změna - položka', 'Default' => '', 'Null' => true), 106 106 ), 107 107 )); 108 108 $this->System->FormManager->RegisterFormType('TServiceCategory', array( 109 110 111 112 113 109 'Type' => 'Reference', 110 'Table' => 'ServiceCategory', 111 'Id' => 'Id', 112 'Name' => 'Name', 113 'Filter' => '1', 114 114 )); 115 115 $this->System->FormManager->RegisterFormType('TService', array( 116 117 118 119 120 116 'Type' => 'Reference', 117 'Table' => 'Service', 118 'Id' => 'Id', 119 'Name' => 'Name', 120 'Filter' => '1', 121 121 )); 122 122 $this->System->FormManager->RegisterFormType('TServiceCustomerRel', array( 123 124 125 126 127 128 )); 123 'Type' => 'Reference', 124 'Table' => 'ServiceCustomerRel', 125 'Id' => 'Id', 126 'Name' => 'Id', 127 'Filter' => '1', 128 )); 129 129 $this->System->FormManager->RegisterFormType('TServiceCustomerRelListCustomer', array( 130 130 'Type' => 'ManyToOne', … … 148 148 'Filter' => '1', 149 149 )); 150 } 150 } 151 151 }
Note:
See TracChangeset
for help on using the changeset viewer.