Changeset 679
- Timestamp:
- Jul 26, 2014, 9:25:03 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r677 r679 576 576 'Filter' => '1', 577 577 ), 578 'TNetworkDeviceListProduct' => array( 579 'Type' => 'ManyToOne', 580 'Table' => 'NetworkDevice', 581 'Id' => 'Id', 582 'Ref' => 'Product', 583 'Filter' => '1', 584 ), 578 585 'TDocumentLine' => array( 579 586 'Type' => 'Reference', -
trunk/Application/Version.php
r678 r679 1 1 <?php 2 2 3 $Revision = 67 8; // Subversion revision4 $DatabaseRevision = 67 8; // SQL structure revision5 $ReleaseTime = strtotime('2014-07-2 5');3 $Revision = 679; // Subversion revision 4 $DatabaseRevision = 679; // SQL structure revision 5 $ReleaseTime = strtotime('2014-07-26'); -
trunk/Common/Global.php
r668 r679 365 365 global $Database; 366 366 367 $DbResult = $Database->query('SELECT Id FROM Member WHERE (SELECT Member FROM NetworkDevice WHERE (SELECT Device FROM NetworkInterface WHERE LocalIP = "'.$IP.'") = NetworkDevice.Id) = Member.Id'); 367 $DbResult = $Database->query('SELECT Id FROM Member WHERE '. 368 '(SELECT Member FROM NetworkDevice WHERE (SELECT Device FROM NetworkInterface '. 369 'WHERE LocalIP = "'.$IP.'") = NetworkDevice.Id) = Member.Id'); 368 370 if($DbResult->num_rows > 0) 369 371 { -
trunk/Common/Setup/Updates.php
r678 r679 879 879 } 880 880 881 function UpdateTo679($Manager) 882 { 883 $Manager->Execute('ALTER TABLE `NetworkDevice` ADD `Product` INT NOT NULL AFTER `Id` , 884 ADD INDEX ( `Product` ) ;'); 885 } 886 881 887 class Updates 882 888 { … … 926 932 674 => array('Revision' => 676, 'Function' => 'UpdateTo676'), 927 933 676 => array('Revision' => 678, 'Function' => 'UpdateTo678'), 934 678 => array('Revision' => 679, 'Function' => 'UpdateTo679'), 928 935 )); 929 936 } -
trunk/Modules/Network/Network.php
r677 r679 156 156 'Interfaces' => array('Type' => 'TInterfaceList', 'Caption' => 'Rozhraní', 'Default' => ''), 157 157 'MapPosition' => array('Type' => 'TMapPosition', 'Caption' => 'Pozice na mapě', 'Default' => '0', 'Null' => true), 158 'Product' => array('Type' => 'TProduct', 'Caption' => 'Produkt', 'Default' => '', 'Null' => true), 158 159 'LoginName' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => '', 'Null' => true), 159 160 'LoginPassword' => array('Type' => 'String', 'Caption' => 'Přihlašovací heslo', 'Default' => '', 'Null' => true), … … 180 181 'Type' => array('Type' => 'TNetworkInterfaceType', 'Caption' => 'Typ', 'Default' => '0'), 181 182 'MAC' => array('Type' => 'MacAddress', 'Caption' => 'Fyzická adresa (MAC)', 'Default' => ''), 182 'LocalIP' => array('Type' => 'IPv4Address', 'Caption' => 'IPv4', 'Default' => '' ),183 'LocalIP' => array('Type' => 'IPv4Address', 'Caption' => 'IPv4', 'Default' => '', 'Null' => true), 183 184 'IPv6' => array('Type' => 'IPv6Address', 'Caption' => 'IPv6', 'Default' => '', 'Null' => true), 184 185 'ExternalIP' => array('Type' => 'IPv4Address', 'Caption' => 'Veřejná IPv4', 'Default' => '', 'Null' => true), -
trunk/Modules/NetworkConfigRouterOS/Generators/Signal.php
r676 r679 37 37 echo($Device['LocalIP']."\n"); 38 38 $Routerboard = new RouterosAPI(); 39 //$Routerboard->SSL = true; 40 //$Routerboard->Port = 8729; 39 41 $Routerboard->Connect($Device['LocalIP'], $Config['API']['UserName'], $Config['API']['Password']); 40 42 $Routerboard->Write('/interface/wireless/registration-table/getall', false); -
trunk/Modules/Stock/Stock.php
r603 r679 13 13 $this->Dependencies = array('User', 'Customer', 'Network'); 14 14 } 15 15 16 16 function DoStart() 17 17 { … … 31 31 'UnitOfMeasure' => array('Type' => 'TUnitOfMeasure', 'Caption' => 'Měrná jednotka', 'Default' => '', 'Null' => true), 32 32 'StockItems' => array('Type' => 'TStockItemListProduct', 'Caption' => 'Položky na skladě', 'Default' => '', 'Suffix' => 'ks'), 33 'NetworkDevices' => array('Type' => 'TNetworkDeviceListProduct', 'Caption' => 'Síťová zařízení', 'Default' => ''), 33 34 ), 34 35 )); … … 51 52 'Info' => array('Type' => 'Text', 'Caption' => 'Informace', 'Default' => ''), 52 53 'Esemble' => array('Type' => 'TStockItem', 'Caption' => 'Celek', 'Default' => ''), 53 'Parts' => array('Type' => 'TStockItemListStockItem', 'Caption' => 'Části', 'Default' => ''), 54 'Parts' => array('Type' => 'TStockItemListStockItem', 'Caption' => 'Části', 'Default' => ''), 54 55 ), 55 56 )); … … 62 63 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '', 'Null' => true), 63 64 'Items' => array('Type' => 'TStockItemListStock', 'Caption' => 'Položky', 'Default' => ''), 64 'ItemsCount' => array('Type' => 'Integer', 'Caption' => 'Položek', 'Default' => '', 65 'ItemsCount' => array('Type' => 'Integer', 'Caption' => 'Položek', 'Default' => '', 65 66 'ReadOnly' => true, 'SQL' => '(SELECT COUNT(*) FROM `StockItem` WHERE '. 66 67 '(`StockItem`.`Stock`=#Id) AND (`StockItem`.`TimeElimination` IS NULL))'), 67 'TotalPrice' => array('Type' => 'Integer', 'Caption' => 'Celková cena', 'Default' => '', 68 'TotalPrice' => array('Type' => 'Integer', 'Caption' => 'Celková cena', 'Default' => '', 68 69 'ReadOnly' => true, 'SQL' => '(SELECT SUM(`SellPrice`) FROM `StockItem` WHERE '. 69 70 '(`StockItem`.`Stock`=#Id) AND (`StockItem`.`TimeElimination` IS NULL))', 'Suffix' => 'Kč'), 70 71 ), 71 72 )); 72 } 73 } 73 74 }
Note:
See TracChangeset
for help on using the changeset viewer.