Changeset 53 for trunk/Client/USystem.pas
- Timestamp:
- Apr 3, 2012, 8:31:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Client/USystem.pas
r52 r53 194 194 Properties.Client := Base.Client; 195 195 Properties.ObjectName := PropertyTable; 196 Properties. SchemaName:= Base.Client.Schema;196 Properties.Path := Base.Client.Schema; 197 197 Properties.Condition := 'Object="' + IntToStr(Obj.Id) + '"'; 198 198 Properties.Load; … … 219 219 Values.ColummsFilterUse := True; 220 220 Values.ObjectName := Obj.Table; 221 Values. SchemaName:= Obj.Schema;221 Values.Path := Obj.Schema; 222 222 Values.Condition := Filter; 223 223 Values.Load; … … 249 249 Client.Connect; 250 250 if Client.Connected then begin 251 if not Modules.IsInstalled then begin 252 Modules.Install; 253 Modules.UpdateList; 254 end; 255 Modules.UpdateList; 251 256 if not ModuleSystem.IsInstalled then ModuleSystem.Install; 252 257 LoadTypes; … … 273 278 Proxy.Client := Client; 274 279 Proxy.ObjectName := PropertyTypeTable; 280 Proxy.Id := Integer(TypeIndex); 275 281 Proxy.Properties.Add('Name', Name); 276 282 Proxy.Properties.Add('DbType', DataType); 277 Proxy.Properties.Add('Id', IntToStr(Integer(TypeIndex)));278 283 Proxy.Save; 279 284 Result := Proxy.Id; … … 655 660 Proxy := TListProxy.Create; 656 661 Proxy.Client := Client; 657 Proxy. SchemaName:= 'information_schema';662 Proxy.Path := 'information_schema'; 658 663 Proxy.ObjectName := 'tables'; 659 664 Proxy.Condition := 'table_name = "SystemModule" AND table_schema = "' + … … 719 724 List.Client := Core.System.Client; 720 725 List.ObjectName := ObjectTable; 721 List. SchemaName:= Core.System.Client.Schema;726 List.Path := Core.System.Client.Schema; 722 727 List.Condition := 'Id=' + IntToStr(ObjectId); 723 728 List.Load; … … 758 763 List := TListProxy.Create; 759 764 List.Client := Base.Client; 760 List.SchemaName := Base.Client.Schema; 761 NewObject := TObjectProxy.Create; 762 NewObject.Client := Base.Client; 765 List.Path := Base.Client.Schema; 766 List.ObjectName := SystemModuleObject; 763 767 for I := 0 to Count - 1 do 764 768 with TChronisModule(Items[I]) do begin 765 769 List.Condition := 'SysName="' + SysName + '"'; 766 770 List.Load; 771 NewObject := TObjectProxy.Create; 772 NewObject.Client := Base.Client; 767 773 if List.Objects.Count > 0 then 768 774 NewObject.Id := StrToInt(TObjectProxy(List.Objects[0]).Properties.Values['Id']) 769 775 else NewObject.Id := 0; 770 NewObject. SchemaName:= Base.Client.Schema;776 NewObject.Path := Base.Client.Schema; 771 777 NewObject.ObjectName := SystemModuleObject; 772 NewObject.Properties.Add('SysName', SysName); 773 NewObject.Properties.Add('Name', Name); 774 NewObject.Properties.Add('Version', Version); 775 NewObject.Properties.Add('License', License); 776 NewObject.Properties.Add('Creator', Creator); 777 NewObject.Properties.Add('HomePage', HomePage); 778 with NewObject.Properties do begin 779 Add('SysName', SysName); 780 Add('Name', Name); 781 Add('Version', Version); 782 Add('License', License); 783 Add('Creator', Creator); 784 Add('HomePage', HomePage); 785 end; 778 786 NewObject.Save; 779 end;780 NewObject.Free;787 NewObject.Free; 788 end; 781 789 List.Free; 782 790 end;
Note:
See TracChangeset
for help on using the changeset viewer.