Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Customer/Customer.php

    r727 r738  
    1313    $this->Dependencies = array('User');
    1414  }
    15  
     15
    1616  function DoStart()
    1717  {
     
    3636        'Consumption' => array('Type' => 'TCustomerStockSerialNumber', 'Caption' => 'Spotřeba zařízení', 'Default' => ''),
    3737      ),
    38         'ItemActions' => array(
    39         array('Caption' => 'Klientská sekce', 'URL' => '/finance/platby/?i=#RowId'),
     38      'ItemActions' => array(
     39        array('Caption' => 'Klientská sekce', 'URL' => '/finance/platby/?i=#RowId'),
    4040      ),
    41     ));   
     41    ));
    4242    $this->System->FormManager->RegisterClass('MemberPayment', array(
    4343      'Title' => 'Placení zákazníků',
     
    5656    ));
    5757    $this->System->FormManager->RegisterFormType('TMember', array(
    58         'Type' => 'Reference',
    59         'Table' => 'Member',
    60         'Id' => 'Id',
    61         'Name' => 'Name',
    62         'Filter' => '1',
     58      'Type' => 'Reference',
     59      'Table' => 'Member',
     60      'Id' => 'Id',
     61      'Name' => 'Name',
     62      'Filter' => '1',
    6363    ));
    6464    $this->System->FormManager->RegisterClass('Service', array(
    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         ),
     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      ),
    8888    ));
    8989    $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         ),
     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      ),
    9696    ));
    9797    $this->System->FormManager->RegisterClass('ServiceCustomerRel', array(
     
    102102        'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''),
    103103        'ChangeAction' => array('Type' => 'TActionEnum', 'Caption' => 'Změna - akce', 'Default' => '', 'Null' => true),
    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),
     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),
    106106      ),
    107107    ));
    108108    $this->System->FormManager->RegisterFormType('TServiceCategory', array(
    109         'Type' => 'Reference',
    110         'Table' => 'ServiceCategory',
    111         'Id' => 'Id',
    112         'Name' => 'Name',
    113         'Filter' => '1',
     109      'Type' => 'Reference',
     110      'Table' => 'ServiceCategory',
     111      'Id' => 'Id',
     112      'Name' => 'Name',
     113      'Filter' => '1',
    114114    ));
    115115    $this->System->FormManager->RegisterFormType('TService', array(
    116         'Type' => 'Reference',
    117         'Table' => 'Service',
    118         'Id' => 'Id',
    119         'Name' => 'Name',
    120         'Filter' => '1',
     116      'Type' => 'Reference',
     117      'Table' => 'Service',
     118      'Id' => 'Id',
     119      'Name' => 'Name',
     120      'Filter' => '1',
    121121    ));
    122122    $this->System->FormManager->RegisterFormType('TServiceCustomerRel', array(
    123         'Type' => 'Reference',
    124         'Table' => 'ServiceCustomerRel',
    125         'Id' => 'Id',
    126         'Name' => 'Id',
    127         'Filter' => '1',
    128     ));   
     123      'Type' => 'Reference',
     124      'Table' => 'ServiceCustomerRel',
     125      'Id' => 'Id',
     126      'Name' => 'Id',
     127      'Filter' => '1',
     128    ));
    129129    $this->System->FormManager->RegisterFormType('TServiceCustomerRelListCustomer', array(
    130130      'Type' => 'ManyToOne',
     
    148148      'Filter' => '1',
    149149    ));
    150   } 
     150  }
    151151}
Note: See TracChangeset for help on using the changeset viewer.