呵呵,关键问题就是需求审批审批和采购申请是同一个人来做的。。。
----------------------------------
用系统的流转按钮来结束,这样在BeforeFlowOut中把不符合条件的Command.Accept:=false就可以了。
BeforeFlowOut事件这么写对吧
while not eof do
begin
if fieldbyname('check_id').asstring = 'F' then
Command.Accept:=false;
next;
end;