Ignore:
Timestamp:
Nov 6, 2015, 8:40:19 PM (9 years ago)
Author:
chronos
Message:
  • Added: Customer support activity table.
  • Added: Show operations for operation group.
File:
1 edited

Legend:

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

    r755 r765  
    3434        'UserRel' => array('Type' => 'TUserCustomerRelListCustomer', 'Caption' => 'Přiřazení uživatelé', 'Default' => ''),
    3535        'ServiceRel' => array('Type' => 'TServiceCustomerRelListCustomer', 'Caption' => 'Placené služby', 'Default' => ''),
     36        'SupportActivity' => array('Type' => 'TSupportActivityListCustomer', 'Caption' => 'Zákaznická podpora', 'Default' => ''),
    3637        'Consumption' => array('Type' => 'TCustomerStockSerialNumber', 'Caption' => 'Spotřeba zařízení', 'Default' => ''),
    3738      ),
     
    148149      'Filter' => '1',
    149150    ));
     151    $this->System->FormManager->RegisterClass('SupportActivity', array(
     152      'Title' => 'Zákaznická podpora',
     153      'Table' => 'SupportActivity',
     154      'DefaultSortColumn' => 'Time',
     155      'Items' => array(
     156        'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''),
     157        'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),
     158        'Customer' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => ''),
     159        'User' => array('Type' => 'TUser', 'Caption' => 'Pracovník', 'Default' => ''),
     160      ),
     161    ));
     162    $this->System->FormManager->RegisterFormType('TSupportActivityListCustomer', array(
     163      'Type' => 'ManyToOne',
     164      'Table' => 'SupportActivity',
     165      'Id' => 'Id',
     166      'Ref' => 'Customer',
     167      'Filter' => '1',
     168    ));
    150169
    151170    $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Customer',
Note: See TracChangeset for help on using the changeset viewer.