经过调试运行,发现:
procedure TOperatorFuncTree.LoadFuncFullFileNames;
var
I: Integer;
lOpr: TOperator;
lPos: TOperatorPosition;
lFuncItem: TOperatorFuncItem;
lFuncItems: TOperatorFuncItems;
begin
lOpr := FContext.GetParentContext(BizSys.IL_PERSON).Owner as TOperator;
if FContext.FindParentContext(BizSys.IL_POSITION) <> nil then
lPos := FContext.GetParentContext(BizSys.IL_POSITION).Owner as TOperatorPosition
else
lPos := nil;
lFuncItems := lOpr.FuncItems;
for I := 0 to lFuncItems.Count - 1 do
begin
lFuncItem := lFuncItems.Items[I];
if (lPos = nil) or lFuncItem.Has(lPos) then
begin
FFuncFullFileNames.AddObject(lFuncItem.FuncFileName, lFuncItem);
ExcludeFiles(lFuncItem.FuncFileName, FFuncFullFileNames);
end;
end;
end;
在这个函数中:
lOpr := FContext.GetParentContext(BizSys.IL_PERSON).Owner as TOperator;
此时查看lOpr.FuncItems,就已经包含了这个功能
帮忙分析一下吧,谢谢