|
楼主 |
发表于 2007-3-9 17:10:55
|
显示全部楼层
不知错在哪里了
procedure TBGSQS1.FlowBroker1CreateFlowOutFlowTasks(Sender: TObject; Command: TFlowOutCommand);
var
lFlowTask:TFlowTask;
lexecrange:string;
lperson: string;
begin
lFlowTask:=command.FlowTasks.FindFlowTask('ZRDWFK') ;
if lflowTask<>nil then
begin
lflowtask.ProcUnit.ID :='ZRDWFK';
lFlowTask.Executors.Clear;
lexecrange:='OrgChildren(OrgKey('''+datasetbroker1.dataset.fieldbyname('zrbm').asstring+''','''',''''),'''',true,false)';
lFlowTask.AllowExecutorRange:=lexecrange;
lFlowTask.ExecutorRange:=lexecrange;
end;
end;
|
|