取参数
unit MainForm;
interface
uses
Business.System, Business.Forms, Business.Model, Business.Data,RSDTGLInfo,
RelevancyLib,CommonFunctionLib,Business.Model.Flow,Business.Model.org;
type
TMainForm = class(TForm)
DocView1: TDocView;
TabSheet2: TTabSheet;
DocView2: TDocView;
FuncBroker1: TFuncBroker;
InfoBroker1: TInfoBroker;
dsbMaster: TDataSetBroker;
procedure BizFormShow(Sender: TObject);
private
{private declarations}
function GetFunc: TRSDTGLFunc;
protected
Fgoha: string;
public
{public declarations}
constructor Create(Acontext:Tcontext);
property Func: TRSDTGLFunc read GetFunc;
end;
implementation
constructor TMainForm.Create(Acontext:Tcontext);
begin
inherited;
Fgoha := '';
end;
function TMainForm.GetFunc: TRSDTGLFunc;
begin
Result := Context.GetParentContext(BizSys.IL_FUNC).Owner as TRSDTGLFunc;
end;
procedure TMainForm.BizFormShow(Sender: TObject);
begin
Fgoha := Func.Parameters;
if Fgoha <> '' then
begin
TSqldataset(dsbMaster.dataset).sqlfiltered := False;
TSqldataset(dsbMaster.dataset).sqlfilter := 'goha = '''+Fgoha+'''';
TSqldataset(dsbMaster.dataset).sqlfiltered := True;
end;
end;
end.
SetViewMode是什么意思? |