procedure TMAINFORM.FlowBroker1BeforeFlowOut(Sender: TObject; Command: TFlowOutCommand);
var
temBool:Boolean;
I:Integer;
begin
temBool := False;
while not (dvDoc.Doc as TRELEVANCYGRID).dsbRelevancy.DataSet.Eof do
begin
if (dvDoc.Doc as TRELEVANCYGRID).dsbRelevancy.DataSet.FieldByName('FEDITSTATE').AsString<> 'esNone' then
begin
temBool:=True;
break
end;
(dvDoc.Doc as TRELEVANCYGRID).dsbRelevancy.DataSet.Next;
end;
if temBool then
begin
raise Exception.Create('文档未上传,请上传后再流转');
end;