Changeset 712 for trunk/Modules


Ignore:
Timestamp:
Dec 29, 2014, 12:56:55 AM (10 years ago)
Author:
chronos
Message:
  • Modified: More FormType definition moved from global file to corresponding modules.
Location:
trunk/Modules
Files:
6 edited

Legend:

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

    r711 r712  
    416416      ),
    417417    ));
     418    $this->System->FormManager->RegisterFormType('TFinanceTreasury', array(
     419        'Type' => 'Reference',
     420        'Table' => 'FinanceTreasury',
     421        'Id' => 'Id',
     422        'Name' => 'Name',
     423        'Filter' => '1',
     424    ));
    418425    $this->System->FormManager->RegisterClass('FinanceBankAccount', array(
    419426      'Title' => 'Účty',
     
    442449      ),
    443450    ));
     451    $this->System->FormManager->RegisterFormType('TFinanceBankAccount'. array(
     452        'Type' => 'Reference',
     453        'Table' => 'FinanceBankAccount',
     454        'Id' => 'Id',
     455        'Name' => 'Comment',
     456        'Filter' => '1',
     457    ));   
    444458    $this->System->FormManager->RegisterClass('FinanceBank', array(
    445459      'Title' => 'Banky',
     
    451465        'Country' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => ''),
    452466      ),
     467    ));
     468    $this->System->FormManager->RegisterFormType('TFinanceBank', array(
     469      'Type' => 'Reference',
     470      'Table' => 'FinanceBank',
     471      'Id' => 'Id',
     472      'Name' => 'CONCAT(Name, " (", Code, ")")',
     473      'Filter' => '1',
    453474    ));
    454475    $this->System->FormManager->RegisterClass('Currency', array(
     
    507528      'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'),
    508529    ));
     530    $this->System->FormManager->RegisterFormType('TContract', array(
     531      'Type' => 'Reference',
     532      'Table' => 'Contract',
     533      'Id' => 'Id',
     534      'Name' => 'BillCode',
     535      'Filter' => '1',
     536    ));
    509537    $this->System->FormManager->RegisterFormType('TFinanceVAT', array(
    510538        'Type' => 'Reference',
     
    521549                'Filter' => '1',
    522550    ));
    523    
     551    $this->System->FormManager->RegisterFormType('TBankAccount', array(
     552        'Type' => 'Reference',
     553        'Table' => 'FinanceBankAccount',
     554        'Id' => 'Id',
     555        'Name' => 'CONCAT(`Comment`, " (", `Number`, "/", '.
     556        '(SELECT `FinanceBank`.`Code` FROM `FinanceBank` WHERE `FinanceBank`.`Id`=`FinanceBankAccount`.`Bank`), ")")',
     557        'Filter' => '1',
     558    ));   
    524559
    525560    $this->System->AddModule(new Bill($this->System));
  • trunk/Modules/Map/Map.php

    r586 r712  
    224224      ),
    225225    ));
     226    $this->System->FormManager->RegisterFormType('TMapPosition', array(
     227        'Type' => 'Reference',
     228        'Table' => 'MapPosition',
     229        'Id' => 'Id',
     230        'Name' => 'Name',
     231        'Filter' => '1',
     232    ));
    226233   
    227234  } 
  • trunk/Modules/Network/Network.php

    r711 r712  
    406406      'Filter' => '1',
    407407    ));
     408    $this->System->FormManager->RegisterFormType('TNetworkSegment', array(
     409        'Type' => 'Reference',
     410        'Table' => 'NetworkSegment',
     411        'Id' => 'Id',
     412        'Name' => 'Name',
     413        'Filter' => '1',
     414    ));
     415   
    408416  }
    409417
  • trunk/Modules/System/System.php

    r711 r712  
    252252          ),
    253253    ));
     254    $this->System->FormManager->RegisterFormType('TCountry', array(
     255        'Type' => 'Reference',
     256        'Table' => 'Country',
     257        'Id' => 'Id',
     258        'Name' => 'Name',
     259        'Filter' => '1',
     260    ));
    254261    $this->System->FormManager->RegisterFormType('TUnitOfMeasure', array(
    255262        'Type' => 'Reference',
  • trunk/Modules/TV/TV.php

    r604 r712  
    154154      ),
    155155    ));
    156    
     156    $this->System->FormManager->RegisterFormType('TTVGroup', array(
     157        'Type' => 'Reference',
     158        'Table' => 'TVGroup',
     159        'Id' => 'Id',
     160        'Name' => 'Name',
     161        'Filter' => '1',
     162    ));
     163    $this->System->FormManager->RegisterFormType('TTVListCategory', array(
     164        'Type' => 'ManyToOne',
     165        'Table' => 'TV',
     166        'Id' => 'Id',
     167        'Ref' => 'Category',
     168        'Filter' => '1',
     169    ));   
    157170  } 
    158171 
  • trunk/Modules/Task/Task.php

    r711 r712  
    6060      ),
    6161    ));
     62    $this->System->FormManager->RegisterFormType('TTask', array(
     63      'Type' => 'Reference',
     64      'Table' => 'Task',
     65      'Id' => 'Id',
     66      'Name' => 'Name',
     67      'Filter' => '1',
     68    ));
    6269    $this->System->FormManager->RegisterFormType('TWorkListTask', array(
    6370        'Type' => 'ManyToOne',
     
    6774        'Filter' => '1',
    6875    ));
     76    $this->System->FormManager->RegisterFormType('TTaskList', array(
     77        'Type' => 'ManyToOne',
     78        'Table' => 'Task',
     79        'Id' => 'Id',
     80        'Ref' => 'Group',
     81        'Filter' => '1',
     82    ));
     83    $this->System->FormManager->RegisterFormType('TTaskGroup', array(
     84        'Type' => 'Reference',
     85        'Table' => 'TaskGroup',
     86        'Id' => 'Id',
     87        'Name' => 'Name',
     88        'Filter' => '1',
     89    ));
    6990   
    7091  }
Note: See TracChangeset for help on using the changeset viewer.