Changeset 907 for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r901 r907  
    21522152  $Manager->Execute("INSERT INTO `PermissionOperation` (`Id`, `Module`, `Operation`, `Item`, `ItemId`) VALUES (NULL, '4', 'DownloadById', '', '0');");
    21532153  $Manager->Execute("INSERT INTO `PermissionGroupAssignment` (`Id`, `Group`, `AssignedGroup`, `AssignedOperation`) VALUES (NULL, '4', NULL, '53');");
     2154}
     2155
     2156function UpdateTo907(UpdateManager $Manager): void
     2157{
     2158  $Manager->Execute('CREATE TABLE `AddressPlace` (
     2159  `Id` int(11) NOT NULL,
     2160  `Town` varchar(255) NOT NULL,
     2161  `Street` varchar(255) NOT NULL,
     2162  `HouseNumber` int(11) NOT NULL,
     2163  `HouseNumberType` int(11) NOT NULL,
     2164  `Psc` int(11) NOT NULL,
     2165  `RuianCode` int(11) NOT NULL
     2166) ENGINE=InnoDB DEFAULT CHARSET=utf8;');
     2167  $Manager->Execute('ALTER TABLE `AddressPlace` ADD PRIMARY KEY (`Id`);');
     2168  $Manager->Execute('ALTER TABLE `AddressPlace` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT;');
     2169  $Manager->Execute('ALTER TABLE `Member` ADD `AddressPlace` INT NULL AFTER `Subject`;');
     2170  $Manager->Execute('ALTER TABLE `Member` ADD KEY (`AddressPlace`);');
     2171  $Manager->Execute('ALTER TABLE `Member` ADD FOREIGN KEY (`AddressPlace`) REFERENCES `AddressPlace`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;');
    21542172}
    21552173
     
    22592277      882 => array('Revision' => 885, 'Function' => 'UpdateTo885'),
    22602278      885 => array('Revision' => 901, 'Function' => 'UpdateTo901'),
     2279      907 => array('Revision' => 907, 'Function' => 'UpdateTo907'),
    22612280    );
    22622281  }
  • trunk/Application/Version.php

    r906 r907  
    11<?php
    22
    3 $Revision = 906; // Subversion revision
    4 $DatabaseRevision = 901; // SQL structure revision
    5 $ReleaseTime = strtotime('2021-02-19');
     3$Revision = 907; // Subversion revision
     4$DatabaseRevision = 907; // SQL structure revision
     5$ReleaseTime = strtotime('2021-03-24');
  • 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',
  • trunk/style/new/style.css

    r901 r907  
    211211}
    212212
     213.Centered
     214{
     215  text-align: center;
     216  margin-left: auto;
     217  margin-right: auto;
     218}
     219
    213220.Form
    214221{
Note: See TracChangeset for help on using the changeset viewer.