ps.SQL="SELECT count(b.WorkID) as Num FROM WF_Generworkflow a JOIN WF_GenerWorkerList b ON a.WorkID=b.WorkID WHERE b.FK_Emp="+dbstr+"FK_Emp AND b.IsPass=0 AND a.WFState <> 0 " +wfSql;
ps.SQL="SELECT count(b.WorkID) as Num FROM WF_Generworkflow a JOIN WF_GenerWorkerList b ON a.WorkID=b.WorkID WHERE b.FK_Emp="+dbstr+"FK_Emp AND b.IsPass=0 AND a.WFState > 1 " +wfSql;