|
楼主 |
发表于 2007-5-23 16:19:52
|
显示全部楼层
现在想改用业务参数来做了,但是 lParam.Value:=Edit1.Text;{值赋不进去},用单步跟踪来看会看到如图:
procedure TACSCZCT.Button1Click(Sender: TObject);
var
lParam: TBizParam;
lContextCurrent: TContextCurrent;
lBizUrl: TBizURL;
TESTURL:string;
FUNCURL:string;
begin
TESTURL:='Biz:STUDYSPACEHYYWCSZ.ParamGroupCSCS.Param';
//预打开功能URL
FUNCURL:='Biz:STUDYSPACEHYBCSCZGN.Func';
lContextCurrent := TContextCurrent.Create(self.Context);
lBizUrl := TBizURL.Create;
try
lBizUrl.URL:=TESTURL;
lParam := lContextCurrent.GetParam(lBizUrl);
lParam.Value:=Edit1.Text;{值赋不进去}
//打开功能
Systemcore.TSystemCore.FuncManager.RunFunc(Context, '', FUNCURL, '', nil, False);
finally
lBizUrl.Free;
lContextCurrent.Free;
end;
end;
|
|