- 查询整个公司的流程实例分布情况
- SELECT WFState, count(*) as Num FROM WF_GenerWorkFlow WHERE OrgNo='@WebUser.OrgNo' AND WFState!=0
- 查询我部门的流程实例分布情况
- SELECT WFState, count(*) as Num FROM WF_GenerWorkFlow WHERE OrgNo='@WebUser.FK_Dept' AND WFState!=0
- 查询整个公司的流程实例分布情况
- SELECT FlowName, count(*) as Num FROM WF_GenerWorkFlow WHERE OrgNo='@WebUser.OrgNo' AND WFState!=0
- 查询我部门的流程实例分布情况
- SELECT FlowName, count(*) as Num FROM WF_GenerWorkFlow WHERE FK_Dept='@WebUser.FK_Dept' AND WFState!=0