Changeset 19 for trunk/Forms/UMainForm.pas
- Timestamp:
- Jun 14, 2011, 12:20:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r17 r19 15 15 16 16 TMainForm = class(TForm) 17 published 17 18 AConnect: TAction; 19 AImportStructure: TAction; 18 20 AInitSystemValues: TAction; 19 21 ASettings: TAction; … … 50 52 MenuItem19: TMenuItem; 51 53 MenuItem2: TMenuItem; 54 MenuItem20: TMenuItem; 52 55 MenuItem3: TMenuItem; 53 56 MenuItem4: TMenuItem; … … 66 69 procedure AConnectExecute(Sender: TObject); 67 70 procedure AExitExecute(Sender: TObject); 71 procedure AImportStructureExecute(Sender: TObject); 68 72 procedure AInitSystemValuesExecute(Sender: TObject); 69 73 procedure AItemAddExecute(Sender: TObject); … … 124 128 uses 125 129 UItemView, UItemEdit, UItemAdd, ULoginForm, USettingForm, UApplicationInfo, 126 UCore ;130 UCore, UImportStructureForm; 127 131 128 132 {$R *.lfm} … … 340 344 '`Min` int NOT NULL,' + 341 345 '`Max` int NOT NULL,' + 346 'KEY `CustomType` (`CustomType`),' + 347 'PRIMARY KEY (`Id`)' + 348 ') ENGINE=InnoDB DEFAULT CHARSET=utf8'); 349 end; 350 351 if Tables.IndexOf(TypeFloat) = -1 then begin 352 Database.Query(DbRows, 'CREATE TABLE IF NOT EXISTS `' + TypeFloat + '` ( ' + 353 '`Id` int(11) NOT NULL AUTO_INCREMENT,' + 354 '`CustomType` int NOT NULL,' + 355 '`Default` float NOT NULL,' + 356 '`Min` float NOT NULL,' + 357 '`Max` float NOT NULL,' + 342 358 'KEY `CustomType` (`CustomType`),' + 343 359 'PRIMARY KEY (`Id`)' + … … 555 571 begin 556 572 Close; 573 end; 574 575 procedure TMainForm.AImportStructureExecute(Sender: TObject); 576 begin 577 ImportStructureForm.ShowModal; 557 578 end; 558 579
Note:
See TracChangeset
for help on using the changeset viewer.