fcl-db: formatting

git-svn-id: trunk@22939 -
This commit is contained in:
lacak 2012-11-06 09:29:22 +00:00
parent 221ee477b2
commit 43375ef468
2 changed files with 21 additions and 19 deletions

View File

@ -429,7 +429,7 @@ begin
end;
{ ---------------------------------------------------------------------
TMasterDataLink
TMasterParamsDataLink
---------------------------------------------------------------------}
constructor TMasterParamsDataLink.Create(ADataSet: TDataSet);
@ -448,7 +448,7 @@ begin
end;
Procedure TMasterParamsDataLink.SetParams(AVAlue : TParams);
Procedure TMasterParamsDataLink.SetParams(AValue : TParams);
begin
FParams:=AValue;

View File

@ -1760,6 +1760,22 @@ type
property OnMasterDisable: TNotifyEvent read FOnMasterDisable write FOnMasterDisable;
end;
{ TMasterParamsDataLink }
TMasterParamsDataLink = Class(TMasterDataLink)
Private
FParams : TParams;
Procedure SetParams(AVAlue : TParams);
Protected
Procedure DoMasterDisable; override;
Procedure DoMasterChange; override;
Public
constructor Create(ADataSet: TDataSet); override;
Procedure RefreshParamNames; virtual;
Procedure CopyParamsFromMaster(CopyBound : Boolean); virtual;
Property Params : TParams Read FParams Write SetParams;
end;
{ TDataSource }
TDataChangeEvent = procedure(Sender: TObject; Field: TField) of object;
@ -1951,20 +1967,6 @@ type
end;
TMasterParamsDataLink = Class(TMasterDataLink)
Private
FParams : TParams;
Procedure SetParams(AVAlue : TParams);
Protected
Procedure DoMasterDisable; override;
Procedure DoMasterChange; override;
Public
constructor Create(ADataSet: TDataSet); override;
Procedure RefreshParamNames; virtual;
Procedure CopyParamsFromMaster(CopyBound : Boolean); virtual;
Property Params : TParams Read FParams Write SetParams;
end;
const
FieldTypetoVariantMap : array[TFieldType] of Integer = (varError, varOleStr, varSmallint,
varInteger, varSmallint, varBoolean, varDouble, varCurrency, varCurrency,