|

楼主 |
发表于 2010-7-12 20:11:12
|
显示全部楼层
procedure TOperatorFuncNavBar.LoadFuncs;
var
lFuncURLs: TStringList;
lFuncItem: TOperatorFuncItem;
I: Integer;
YWKJID:string;
begin
YWKJID:=GetParamValue('Biz:\SYSTEM\SYSPARAMS.PARAMGROUP\MKFL.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; |
|