Changeset 45 for trunk/Application
- Timestamp:
- Mar 12, 2012, 10:23:40 AM (13 years ago)
- Location:
- trunk/Application
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Clients/UChronisClientMySQL.pas
r44 r45 40 40 SMissingBaseType = 'Missing base typ for %s'; 41 41 SUndefinedType = 'Undefinned type %s'; 42 SCantLoadObjectWithoutId = 'Can''t load object without id'; 42 43 43 44 … … 69 70 Table: string; 70 71 begin 72 if AObject.Id = 0 then raise Exception.Create(SCantLoadObjectWithoutId); 71 73 try 72 74 DbRows := TDbRows.Create; -
trunk/Application/UApplicationInfo.pas
r41 r45 50 50 Name := 'ChronIS'; 51 51 Identification := 1; 52 ReleaseDate := EncodeDate(2012, 3, 9);52 ReleaseDate := EncodeDate(2012, 3, 12); 53 53 MajorVersion := 0; 54 54 MinorVersion := 1; -
trunk/Application/UChronisClient.pas
r44 r45 112 112 end; 113 113 114 115 114 implementation 116 115 … … 251 250 NewProxy.Load; 252 251 if NewProxy.Objects.Count > 0 then begin 253 DbVersion := TObjectProxy(NewProxy.Objects[0]).Properties.Values['Version']; 252 NewObject := TObjectProxy.Create; 253 NewObject.Client := Self; 254 NewObject.SchemaName := Schema; 255 NewObject.ObjectName := SystemVersionObject; 256 NewObject.Id := 1; 257 NewObject.Load; 258 259 DbVersion := NewObject.Properties.Values['Version']; 254 260 if Version <> DbVersion then 255 261 raise Exception.Create(Format(SVersionMismatch, [Version, DbVersion])); -
trunk/Application/UDataTypes.pas
r42 r45 270 270 Proxy.ObjectName := PropertyTable; 271 271 Proxy.Condition := 'Id=' + IntToStr(PropertyID); 272 Proxy.Load; 272 273 ObjectId := StrToInt(TObjectProxy(Proxy.Objects[0]).Properties.Values['Object']); 273 274 PropertyName := TObjectProxy(Proxy.Objects[0]).Properties.Values['ColumnName'];
Note:
See TracChangeset
for help on using the changeset viewer.