Changeset 27 for trunk/USystem.pas


Ignore:
Timestamp:
Nov 9, 2011, 4:11:56 PM (13 years ago)
Author:
george
Message:
  • Added: Partial client-server protocol layer implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/USystem.pas

    r24 r27  
    66
    77uses
    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;
    1010
    1111const
     
    103103  TChronisBase = class
    104104    Types: TChronisTypeList;
    105     Database: TSQLDatabase;
     105    Client: TChronisClient;
    106106    function AddType(Name, DataType: string; TypeIndex: TDbValueType): Integer;
    107107    function AddGroup(Name: string; ParentGroupId: Integer = 0): Integer;
     
    180180procedure TReport.Load(Obj: TChronisObject; Filter: string = '');
    181181var
    182   Properties: TDbRows;
    183   Values: TDbRows;
     182  Properties: TItemList;
     183  Values: TItemList;
    184184  I: Integer;
    185185  C: Integer;
     
    193193    // Load column names
    194194    try
    195       Properties := TDbRows.Create;
     195      Properties := TItemList.Create;
     196      Base.Client.GetItemList(PropertyTable, Condition, Properties);
     197      ?
    196198      Base.Database.Query(Properties, 'SELECT * FROM `' + PropertyTable +
    197199        '` WHERE `Object`=' + IntToStr(Obj.Id));
     
    627629begin
    628630  Types := TChronisTypeList.Create;
     631  Client := nil;
    629632end;
    630633
     
    632635begin
    633636  Types.Free;
     637  Client.Free;
    634638  inherited Destroy;
    635639end;
Note: See TracChangeset for help on using the changeset viewer.