Changeset 15 for trunk/USystem.pas


Ignore:
Timestamp:
Jun 13, 2011, 8:25:31 AM (13 years ago)
Author:
george
Message:
  • Modified: USqlDatabase used from CoolWeb package.
  • Added: Store item data to database for Add and Edit dialog.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        44heaptrclog.trc
        55chronis.exe
         6DebugLog.txt
  • trunk/USystem.pas

    r14 r15  
    184184        Columns.Add(NewColumn);
    185185        NewColumn.Caption := Properties[I].Values['Name'];
    186         NewColumn.ColumnName := Properties[I].Values['ColumnName'];;
     186        NewColumn.ColumnName := Properties[I].Values['ColumnName'];
    187187        NewColumn.CustomType := GetDataType(StrToInt(Properties[I].Values['CustomType']));
    188188      end;
     
    298298    Data.Add('Default', IntToStr(Default));
    299299    Database.Insert(TypeNumber, Data);
    300     CustomTypeId := Database.LastInsertId;
     300    //CustomTypeId := Database.LastInsertId;
    301301
    302302    Result := AddProperty(ObjectId, Name, ColumnName, CustomTypeId);
     
    414414constructor TChronisBase.Create;
    415415begin
    416   Database := TSqlDatabase.Create;
    417416  Types := TChronisTypeList.Create;
    418417end;
     
    421420begin
    422421  Types.Free;
    423   Database.Free;
    424422  inherited Destroy;
    425423end;
Note: See TracChangeset for help on using the changeset viewer.