|
@@ -17,10 +17,12 @@ type
|
|
TWebDataAction = (wdaUnknown,wdaRead,wdaUpdate,wdaInsert,wdaDelete);
|
|
TWebDataAction = (wdaUnknown,wdaRead,wdaUpdate,wdaInsert,wdaDelete);
|
|
|
|
|
|
{ TCustomWebdataInputAdaptor }
|
|
{ TCustomWebdataInputAdaptor }
|
|
|
|
+ TTransCodeEvent = Procedure (Sender : TObject; Var S : String);
|
|
|
|
|
|
TCustomWebdataInputAdaptor = class(TComponent)
|
|
TCustomWebdataInputAdaptor = class(TComponent)
|
|
private
|
|
private
|
|
FAction: TWebDataAction;
|
|
FAction: TWebDataAction;
|
|
|
|
+ FOntransCode: TTransCodeEvent;
|
|
FRequest: TRequest;
|
|
FRequest: TRequest;
|
|
FBatchCount : Integer;
|
|
FBatchCount : Integer;
|
|
FRequestPathInfo : String;
|
|
FRequestPathInfo : String;
|
|
@@ -39,6 +41,7 @@ type
|
|
Function GetFieldValue(Const AFieldName : String) : String;
|
|
Function GetFieldValue(Const AFieldName : String) : String;
|
|
Property Request : TRequest Read FRequest Write SetRequest;
|
|
Property Request : TRequest Read FRequest Write SetRequest;
|
|
Property Action : TWebDataAction Read GetAction Write FAction;
|
|
Property Action : TWebDataAction Read GetAction Write FAction;
|
|
|
|
+ Property OnTransCode : TTransCodeEvent Read FOntransCode Write FOnTransCode;
|
|
end;
|
|
end;
|
|
TCustomWebdataInputAdaptorClass = Class of TCustomWebdataInputAdaptor;
|
|
TCustomWebdataInputAdaptorClass = Class of TCustomWebdataInputAdaptor;
|
|
|
|
|
|
@@ -605,6 +608,8 @@ begin
|
|
Result:=(I<>-1);
|
|
Result:=(I<>-1);
|
|
If Result then
|
|
If Result then
|
|
L.GetNameValue(I,N,AValue);
|
|
L.GetNameValue(I,N,AValue);
|
|
|
|
+ If (AValue<>'') and Assigned(FOnTranscode) then
|
|
|
|
+ FOnTransCode(Self,Avalue);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TCustomWebdataInputAdaptor.TryFieldValue(const AFieldName: String;
|
|
function TCustomWebdataInputAdaptor.TryFieldValue(const AFieldName: String;
|