Changeset 53 for trunk/Client
- Timestamp:
- Apr 3, 2012, 8:31:39 AM (13 years ago)
- Location:
- trunk/Client
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Client/Application/UChronisModule.pas
r52 r53 45 45 List := TListProxy.Create; 46 46 List.Client := TChronisBase(System).Client; 47 List. SchemaName:= TChronisBase(System).Client.Schema;47 List.Path := TChronisBase(System).Client.Schema; 48 48 List.ObjectName := SystemModuleObject; 49 49 List.Condition := '(SysName="' + SysName + '") AND (Installed=1)'; … … 60 60 List := TListProxy.Create; 61 61 List.Client := TChronisBase(System).Client; 62 List. SchemaName:= TChronisBase(System).Client.Schema;62 List.Path := TChronisBase(System).Client.Schema; 63 63 List.ObjectName := SystemModuleObject; 64 64 List.Condition := 'SysName="' + SysName + '"'; … … 68 68 NewObject.Id := StrToInt(TObjectProxy(List.Objects[0]).Properties.Values['Id']); 69 69 NewObject.Client := TChronisBase(System).Client; 70 NewObject. SchemaName:= TChronisBase(System).Client.Schema;70 NewObject.Path := TChronisBase(System).Client.Schema; 71 71 NewObject.ObjectName := SystemModuleObject; 72 72 NewObject.Properties.Add('Installed', '1'); … … 84 84 List := TListProxy.Create; 85 85 List.Client := TChronisBase(System).Client; 86 List. SchemaName:= TChronisBase(System).Client.Schema;86 List.Path := TChronisBase(System).Client.Schema; 87 87 List.ObjectName := SystemModuleObject; 88 88 List.Condition := 'SysName="' + SysName + '"'; … … 92 92 NewObject.Id := StrToInt(TObjectProxy(List.Objects[0]).Properties.Values['Id']); 93 93 NewObject.Client := TChronisBase(System).Client; 94 NewObject. SchemaName:= TChronisBase(System).Client.Schema;94 NewObject.Path := TChronisBase(System).Client.Schema; 95 95 NewObject.ObjectName := SystemModuleObject; 96 96 NewObject.Properties.Add('Installed', '0'); -
trunk/Client/Forms/UFormItemAdd.pas
r52 r53 64 64 NewProxy.Client := Client; 65 65 NewProxy.ObjectName := SelectedObject.Table; 66 NewProxy. SchemaName:= SelectedObject.Schema;66 NewProxy.Path := SelectedObject.Schema; 67 67 for I := 0 to Report.Columns.Count - 1 do 68 68 if not (TReportColumn(Report.Columns[I]).CustomType is TDataTypeRelationMany) then -
trunk/Client/Forms/UFormItemEdit.pas
r52 r53 128 128 Proxy.Client := Client; 129 129 Proxy.ObjectName := SelectedObject.Table; 130 Proxy. SchemaName:= SelectedObject.Schema;130 Proxy.Path := SelectedObject.Schema; 131 131 Proxy.Id := SelectedItemId; 132 132 for I := 0 to Report.Columns.Count - 1 do -
trunk/Client/Forms/UFormMenu.pas
r52 r53 142 142 Groups.Client := Core.System.Client; 143 143 Groups.ObjectName := ObjectGroupTable; 144 Groups. SchemaName:= Core.System.Client.Schema;144 Groups.Path := Core.System.Client.Schema; 145 145 Groups.Load; 146 146 for I := 0 to Groups.Objects.Count - 1 do begin … … 154 154 Objects.Client := Core.System.Client; 155 155 Objects.ObjectName := ObjectTable; 156 Objects. SchemaName:= Core.System.Client.Schema;156 Objects.Path := Core.System.Client.Schema; 157 157 Objects.Condition := '`Group`="' + Obj.Properties.Values['Id'] + '"'; 158 158 Objects.Load; -
trunk/Client/Module/UModuleSystem.pas
r52 r53 312 312 begin 313 313 inherited Create; 314 SysName := 'System'; 314 315 Name := 'System'; 316 Version := '1.0'; 315 317 end; 316 318 -
trunk/Client/Module/UModuleUser.pas
r52 r53 37 37 constructor TModuleUser.Create; 38 38 begin 39 SysName := 'User'; 39 40 Name := 'User'; 41 Version := '1.0'; 40 42 inherited Create; 41 43 end; -
trunk/Client/UCore.pas
r52 r53 7 7 uses 8 8 Classes, SysUtils, FileUtil, UCoolTranslator, UDebugLog, USystem, Registry, 9 USqlDatabase, UFormLoginProfile, URegistry, UPDClient , UModuleSystem;9 USqlDatabase, UFormLoginProfile, URegistry, UPDClient; 10 10 11 11 type … … 38 38 Core: TCore; 39 39 40 40 41 implementation 41 42 43 uses 44 UModuleSystem, UModuleUser, UApplicationInfo; 45 42 46 {$R *.lfm} 43 44 uses45 UApplicationInfo;46 47 47 48 { TCore } … … 58 59 System.RegisterModule(TModuleSystem); 59 60 System.ModuleSystem := TModuleSystem(System.Modules.Last); 61 System.RegisterModule(TModuleUser); 60 62 61 63 {$IFDEF DEBUG} -
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.