|

楼主 |
发表于 2010-5-26 16:10:08
|
显示全部楼层
JSP中
document.title = X3X.DisplayName;
X3X.Params = "<%= params%>";
X3X.UpdateVersion();
X3X.ShowSplash();
X3X.Init();
X3X.Logon("050456","050456");
X3X.CloseSplash();
X3X.Run("Biz:\System\Init.func", "Biz:COLLABORATION", "", "");
document.body.onbeforeunload=BeforeClose;
document.title = X3X.DisplayName;
系统初始化代码中
procedure TInit.SetParamValue(AValue: String);
var
lParam: TBizParam;
lBizURL: TBizURL;
lContextCurrent: TContextCurrent;
begin
lBizURL := TBizURL.Create;
lContextCurrent := TContextCurrent.Create(Context);
try
lBizURL.URL := 'Biz:SYSTEMSYSPARAMS.PARAMGROUPMKFL.Param';
lParam := lContextCurrent.GetParam(lBizURL);
lParam.Value := AValue;
finally
lBizURL.Free;
end;
procedure TINIT.DoRun;
var
I: Integer;
lContext: TContext;
lOperator: TOperator;
lClassURL: TBizClassURL;
lServiceFuncs: TStrings;
Param : String;
组件库代码
procedure TOperatorFuncNavBar.LoadFuncs;
var
lFuncURLs: TStringList;
lFuncItem: TOperatorFuncItem;
I: Integer;
YWKJID:string;
begin
YWKJID:=GetParamValue('Biz:SYSTEMSYSPARAMS.PARAMGROUPMKFL.Param');
lFuncURLs := TStringList.Create;
FAllocatedFuncs.BeginUpdate;
try
TContextUtils.GetAllocatedFuncs(FContext, lFuncURLs);
FAllocatedFuncs.Clear;
for I := 0 to lFuncURLs.Count - 1 do
begin
if stringutils.Pos(YWKJID,lFuncURLs)<>0 then
begin
lFuncItem := TOperatorFuncItem(lFuncURLs.Objects[I]);
FAllocatedFuncs.Add(lFuncItem.FuncURL.FileName);
end;
end;
finally
FAllocatedFuncs.EndUpdate;
lFuncURLs.Free;
end;
end;
系统参数
|
|