Changeset 907 for trunk/Modules


Ignore:
Timestamp:
Apr 16, 2021, 9:57:28 PM (4 years ago)
Author:
chronos
Message:
Location:
trunk/Modules
Files:
2 edited

Legend:

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

    r899 r907  
    168168        'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '0'),
    169169        'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '0'),
     170        'AddressPlace' => array('Type' => 'TAddressPlace', 'Caption' => 'Adresní místo', 'Default' => null, 'Null' => true),
    170171        'Service' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Služba', 'Default' => '', 'Null' => true),
    171172        'Used' => array('Type' => 'Boolean', 'Caption' => 'Použito', 'Default' => '1'),
  • trunk/Modules/System/System.php

    r900 r907  
    1818    $this->Dependencies = array(ModuleModuleManager::GetName());
    1919    $this->Models = array(UnitOfMeasure::GetClassName(), ActionIcon::GetClassName(), ActionGroup::GetClassName(),
    20       ActionType::GetClassName(), Action::GetClassName(), Language::GetClassName(), Country::GetClassName());
     20      ActionType::GetClassName(), Action::GetClassName(), Language::GetClassName(), Country::GetClassName(), AddressPlace::GetClassName());
    2121  }
    2222
     
    9393      'Filter' => '1',
    9494    ));
     95    $this->System->FormManager->RegisterFormType('TAddressPlace', array(
     96      'Type' => 'Reference',
     97      'Table' => 'AddressPlace',
     98      'Id' => 'Id',
     99      'Name' => 'CONCAT_WS(" ", NULLIF(AddressPlace.Town, ""), NULLIF(AddressPlace.HouseNumber, ""))',
     100      'Filter' => '1',
     101    ));
    95102    $this->System->FormManager->RegisterFormType('TUnitOfMeasure', array(
    96103      'Type' => 'Reference',
Note: See TracChangeset for help on using the changeset viewer.