You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.5 KiB
Plaintext
75 lines
2.5 KiB
Plaintext
11 months ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Data;
|
||
|
using System.Text;
|
||
|
using BP.DA;
|
||
|
using BP.Sys;
|
||
|
using BP.Web;
|
||
|
using BP.Port;
|
||
|
using BP.En;
|
||
|
using BP.WF.Data;
|
||
|
using LitJson;
|
||
|
using System.Net;
|
||
|
using System.IO;
|
||
|
using BP.Difference;
|
||
|
|
||
|
namespace BP.WF.HttpHandler
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 页面功能实体
|
||
|
/// </summary>
|
||
|
public class WF_AppGuest : DirectoryPageBase
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 构造函数
|
||
|
/// </summary>
|
||
|
public WF_AppGuest()
|
||
|
{
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 初始化Home
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public string Home_Init()
|
||
|
{
|
||
|
Hashtable ht = new Hashtable();
|
||
|
ht.Add("UserNo", BP.Web.WebUser.No);
|
||
|
ht.Add("UserName", BP.Web.WebUser.Name);
|
||
|
|
||
|
//系统名称.
|
||
|
ht.Add("SysName", BP.Difference.SystemConfig.SysName);
|
||
|
ht.Add("CustomerName", BP.Difference.SystemConfig.CustomerName);
|
||
|
|
||
|
ht.Add("Todolist_EmpWorks", BP.WF.Dev2Interface.Todolist_EmpWorks);
|
||
|
ht.Add("Todolist_Runing", BP.WF.Dev2Interface.Todolist_Runing);
|
||
|
ht.Add("Todolist_Sharing", BP.WF.Dev2Interface.Todolist_Sharing);
|
||
|
ht.Add("Todolist_CCWorks", BP.WF.Dev2Interface.Todolist_CCWorks);
|
||
|
ht.Add("Todolist_Apply", BP.WF.Dev2Interface.Todolist_Apply); //申请下来的任务个数.
|
||
|
ht.Add("Todolist_Draft", BP.WF.Dev2Interface.Todolist_Draft); //草稿数量.
|
||
|
ht.Add("Todolist_Complete", BP.WF.Dev2Interface.Todolist_Complete); //完成数量.
|
||
|
ht.Add("UserDeptName", WebUser.DeptName);
|
||
|
|
||
|
//我发起
|
||
|
MyStartFlows myStartFlows = new MyStartFlows();
|
||
|
QueryObject obj = new QueryObject(myStartFlows);
|
||
|
obj.AddWhere(MyStartFlowAttr.Starter, WebUser.No);
|
||
|
obj.addAnd();
|
||
|
//运行中\已完成\挂起\退回\转发\加签\批处理\
|
||
|
obj.addLeftBracket();
|
||
|
obj.AddWhere("WFState=2 or WFState=3 or WFState=4 or WFState=5 or WFState=6 or WFState=8 or WFState=10");
|
||
|
obj.addRightBracket();
|
||
|
obj.DoQuery();
|
||
|
ht.Add("Todolist_MyStartFlow", myStartFlows.Count);
|
||
|
|
||
|
//我参与
|
||
|
MyJoinFlows myFlows = new MyJoinFlows();
|
||
|
obj = new QueryObject(myFlows);
|
||
|
obj.AddWhere("Emps like '%" + WebUser.No + "%'");
|
||
|
obj.DoQuery();
|
||
|
ht.Add("Todolist_MyFlow", myFlows.Count);
|
||
|
|
||
|
return BP.Tools.Json.ToJsonEntityModel(ht);
|
||
|
}
|
||
|
}
|
||
|
}
|