Changeset 28 for trunk/USystem.pas


Ignore:
Timestamp:
Nov 23, 2011, 7:17:55 PM (13 years ago)
Author:
george
Message:
  • Fixed: Compilation after last change.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/USystem.pas

    r27 r28  
    66
    77uses
    8   Classes, SysUtils, SpecializedList, SpecializedDictionary,
     8  Classes, SysUtils, SpecializedList, SpecializedDictionary, USqlDatabase,
    99  Strings, UDataTypes, Dialogs, ComCtrls, StdCtrls, Controls, UChronisClient;
    1010
     
    104104    Types: TChronisTypeList;
    105105    Client: TChronisClient;
     106    Database: TSqlDatabase;
    106107    function AddType(Name, DataType: string; TypeIndex: TDbValueType): Integer;
    107108    function AddGroup(Name: string; ParentGroupId: Integer = 0): Integer;
     
    180181procedure TReport.Load(Obj: TChronisObject; Filter: string = '');
    181182var
    182   Properties: TItemList;
    183   Values: TItemList;
     183  Properties: TDbRows;
     184  Values: TDbRows;
    184185  I: Integer;
    185186  C: Integer;
     
    193194    // Load column names
    194195    try
    195       Properties := TItemList.Create;
    196       Base.Client.GetItemList(PropertyTable, Condition, Properties);
    197       ?
     196      Properties := TDbRows.Create;
    198197      Base.Database.Query(Properties, 'SELECT * FROM `' + PropertyTable +
    199198        '` WHERE `Object`=' + IntToStr(Obj.Id));
Note: See TracChangeset for help on using the changeset viewer.