static function TCOMMONFUNCTIONLIB.isfunc(personid:string;funcid:string):boolean;
var
list: TOrgFuncItems;
I: integer;
begin
result:=false;
list := TOrgFuncItems.Create;
try
if OrgSys.OrgSystem.GetPersonAllFuncs(personid, list) then
for I := 0 to list.Count - 1 do
begin
if list.Items[I].FuncURL.id= funcid then
begin
result:=true;
break;
end;
end;
finally
list.Free;
end;
end;