Changeset 27 for trunk/USystem.pas
- Timestamp:
- Nov 9, 2011, 4:11:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/USystem.pas
r24 r27 6 6 7 7 uses 8 Classes, SysUtils, SpecializedList, SpecializedDictionary, USqlDatabase,9 Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls, Controls ;8 Classes, SysUtils, SpecializedList, SpecializedDictionary, 9 Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls, Controls, UChronisClient; 10 10 11 11 const … … 103 103 TChronisBase = class 104 104 Types: TChronisTypeList; 105 Database: TSQLDatabase;105 Client: TChronisClient; 106 106 function AddType(Name, DataType: string; TypeIndex: TDbValueType): Integer; 107 107 function AddGroup(Name: string; ParentGroupId: Integer = 0): Integer; … … 180 180 procedure TReport.Load(Obj: TChronisObject; Filter: string = ''); 181 181 var 182 Properties: T DbRows;183 Values: T DbRows;182 Properties: TItemList; 183 Values: TItemList; 184 184 I: Integer; 185 185 C: Integer; … … 193 193 // Load column names 194 194 try 195 Properties := TDbRows.Create; 195 Properties := TItemList.Create; 196 Base.Client.GetItemList(PropertyTable, Condition, Properties); 197 ? 196 198 Base.Database.Query(Properties, 'SELECT * FROM `' + PropertyTable + 197 199 '` WHERE `Object`=' + IntToStr(Obj.Id)); … … 627 629 begin 628 630 Types := TChronisTypeList.Create; 631 Client := nil; 629 632 end; 630 633 … … 632 635 begin 633 636 Types.Free; 637 Client.Free; 634 638 inherited Destroy; 635 639 end;
Note:
See TracChangeset
for help on using the changeset viewer.