Changeset 28 for trunk/USystem.pas
- Timestamp:
- Nov 23, 2011, 7:17:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/USystem.pas
r27 r28 6 6 7 7 uses 8 Classes, SysUtils, SpecializedList, SpecializedDictionary, 8 Classes, SysUtils, SpecializedList, SpecializedDictionary, USqlDatabase, 9 9 Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls, Controls, UChronisClient; 10 10 … … 104 104 Types: TChronisTypeList; 105 105 Client: TChronisClient; 106 Database: TSqlDatabase; 106 107 function AddType(Name, DataType: string; TypeIndex: TDbValueType): Integer; 107 108 function AddGroup(Name: string; ParentGroupId: Integer = 0): Integer; … … 180 181 procedure TReport.Load(Obj: TChronisObject; Filter: string = ''); 181 182 var 182 Properties: T ItemList;183 Values: T ItemList;183 Properties: TDbRows; 184 Values: TDbRows; 184 185 I: Integer; 185 186 C: Integer; … … 193 194 // Load column names 194 195 try 195 Properties := TItemList.Create; 196 Base.Client.GetItemList(PropertyTable, Condition, Properties); 197 ? 196 Properties := TDbRows.Create; 198 197 Base.Database.Query(Properties, 'SELECT * FROM `' + PropertyTable + 199 198 '` WHERE `Object`=' + IntToStr(Obj.Id));
Note:
See TracChangeset
for help on using the changeset viewer.