|

楼主 |
发表于 2009-4-27 16:09:41
|
显示全部楼层
我按照29楼的方法做了一遍,
1.这种网页登录方式不可以单步调试吧?
2,我设了个断点,初始化运行,发现lfuncURLS[0]的值为:biz:\COLLABORATION\AUTOMAKEREMINDERTASK.FUNC,显而易见,lfuncURLS里面还包含系统的功能呢,我的代码这样写:
procedure TOperatorFuncNavBar.LoadFuncs;
var
lFuncURLs: TStringList;
lFuncItem: TOperatorFuncItem;
I: Integer;
YWKJID:string;
begin
YWKJID:=GetParamValue('Biz:\SYSTEM\DICT\YWCSZ1.ParamGroup\YWKJID.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;
那么我用YWKJID的值,用pos方法,过滤lfuncURLs,
不是也会把系统的这些功能给过滤掉吗? |
|