Changeset 37 for trunk/Application/UChronisClient.pas
- Timestamp:
- Mar 8, 2012, 3:11:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UChronisClient.pas
r34 r37 19 19 Properties: TDictionaryStringString; 20 20 Client: TChronisClient; 21 ObjectName: string; 22 SchemaName: string; 21 23 procedure Load; 22 24 procedure Save; … … 39 41 ColumnsFilter: TListString; 40 42 ColummsFilterUse: Boolean; 41 ConditionColumn: string; 42 ConditionValue: string; 43 ConditionUse: Boolean; 43 Condition: string; 44 44 ObjectName: string; 45 45 SchemaName: string; 46 46 Objects: TListObject; // TListObject<TObjectProxy> 47 procedure SetCondition(ColumnName: string; Value: string);48 47 procedure Clear; 49 48 constructor Create; … … 53 52 end; 54 53 54 TChronisType = class 55 OID: Integer; 56 Name: string; 57 end; 58 59 TChronisTypeRecordItem = class 60 Name: string; 61 ItemType: TChronisType; 62 end; 63 64 { TChronisTypeRecord } 65 66 TChronisTypeRecord = class(TChronisType) 67 Items: TListObject; // TListObject<TChronisTypeRecordItem> 68 constructor Create; 69 destructor Destroy; override; 70 end; 71 55 72 { TChronisClient } 56 73 57 74 TChronisClient = class 75 protected 76 function GetConnected: Boolean; virtual; 77 public 58 78 Host: string; 59 79 Port: Word; … … 67 87 procedure ListLoad(AList: TListProxy); virtual; abstract; 68 88 procedure ListSave(AList: TListProxy); virtual; abstract; 89 procedure DefineType(AType: TChronisType); virtual; abstract; 90 procedure UndefineType(AType: TChronisType); virtual; abstract; 69 91 constructor Create; virtual; 92 procedure Connect; virtual; abstract; 93 procedure Disconnect; virtual; abstract; 94 property Connected: Boolean read GetConnected; 70 95 end; 71 96 72 97 implementation 98 99 { TChronisTypeRecord } 100 101 constructor TChronisTypeRecord.Create; 102 begin 103 Items := TListObject.Create; 104 end; 105 106 destructor TChronisTypeRecord.Destroy; 107 begin 108 Items.Free; 109 inherited Destroy; 110 end; 73 111 74 112 { TObjectProxy } … … 107 145 { TListProxy } 108 146 109 procedure TListProxy.SetCondition(ColumnName: string; Value: string);110 begin111 ConditionColumn := ColumnName;112 ConditionValue := Value;113 ConditionUse := True;114 end;115 116 147 procedure TListProxy.Clear; 117 148 begin 118 ConditionUse := False;119 149 PageUse := False; 120 150 ColummsFilterUse := False; … … 148 178 { TChronisClient } 149 179 180 function TChronisClient.GetConnected: Boolean; 181 begin 182 Result := False; 183 end; 184 150 185 constructor TChronisClient.Create; 151 186 begin
Note:
See TracChangeset
for help on using the changeset viewer.