- Timestamp:
- Apr 16, 2021, 9:57:28 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UpdateTrace.php
r901 r907 2152 2152 $Manager->Execute("INSERT INTO `PermissionOperation` (`Id`, `Module`, `Operation`, `Item`, `ItemId`) VALUES (NULL, '4', 'DownloadById', '', '0');"); 2153 2153 $Manager->Execute("INSERT INTO `PermissionGroupAssignment` (`Id`, `Group`, `AssignedGroup`, `AssignedOperation`) VALUES (NULL, '4', NULL, '53');"); 2154 } 2155 2156 function 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;'); 2154 2172 } 2155 2173 … … 2259 2277 882 => array('Revision' => 885, 'Function' => 'UpdateTo885'), 2260 2278 885 => array('Revision' => 901, 'Function' => 'UpdateTo901'), 2279 907 => array('Revision' => 907, 'Function' => 'UpdateTo907'), 2261 2280 ); 2262 2281 } -
trunk/Application/Version.php
r906 r907 1 1 <?php 2 2 3 $Revision = 90 6; // Subversion revision4 $DatabaseRevision = 90 1; // SQL structure revision5 $ReleaseTime = strtotime('2021-0 2-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 168 168 'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '0'), 169 169 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '0'), 170 'AddressPlace' => array('Type' => 'TAddressPlace', 'Caption' => 'Adresní místo', 'Default' => null, 'Null' => true), 170 171 'Service' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Služba', 'Default' => '', 'Null' => true), 171 172 'Used' => array('Type' => 'Boolean', 'Caption' => 'Použito', 'Default' => '1'), -
trunk/Modules/System/System.php
r900 r907 18 18 $this->Dependencies = array(ModuleModuleManager::GetName()); 19 19 $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()); 21 21 } 22 22 … … 93 93 'Filter' => '1', 94 94 )); 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 )); 95 102 $this->System->FormManager->RegisterFormType('TUnitOfMeasure', array( 96 103 'Type' => 'Reference', -
trunk/style/new/style.css
r901 r907 211 211 } 212 212 213 .Centered 214 { 215 text-align: center; 216 margin-left: auto; 217 margin-right: auto; 218 } 219 213 220 .Form 214 221 {
Note:
See TracChangeset
for help on using the changeset viewer.