using System; using System.Collections.Generic; using System.Collections; using System.Data; using System.Web; using System.Web.Services; namespace CCFlow.SDKFlowDemo { /// /// WindowsFormsApplicationDemo 的摘要说明 /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。 // [System.Web.Script.Services.ScriptService] public class WindowsFormsApplicationDemo : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello World"; } /// /// 创建workid. /// /// /// [WebMethod(EnableSession = true)] public Int64 CreateBlankWork(string flowNo, string userNo) { if (BP.Web.WebUser.No != userNo) BP.WF.Dev2Interface.Port_Login(userNo); return BP.WF.Dev2Interface.Node_CreateBlankWork(flowNo); } /// /// 工作发送 /// /// /// /// /// /// /// /// public string Node_SendWork(string userNo, string flowNo, Int64 workid, int toNodeID, string toEmps, Hashtable ht) { if (BP.Web.WebUser.No != userNo) BP.WF.Dev2Interface.Port_Login(userNo); return BP.WF.Dev2Interface.Node_SendWork(flowNo,workid,ht,toNodeID,toEmps).ToMsgOfText(); } /// /// 退回 /// /// 用户 /// 流程编号 /// 工作ID /// 当前节点ID /// 退回到 /// 退回消息 /// 是否原路返回 /// 执行结果 public string Node_ReturnWork(string userNo, string flowNo, Int64 workid, int currentNodeID, int returnToNodeID, string msg, bool isBackToThisNode = false) { if (BP.Web.WebUser.No != userNo) BP.WF.Dev2Interface.Port_Login(userNo); return BP.WF.Dev2Interface.Node_ReturnWork(flowNo, workid, 0, currentNodeID, returnToNodeID, msg, isBackToThisNode); } /// /// 获得发起列表. /// /// /// [WebMethod(EnableSession = true)] public DataTable Start(string userNo) { return BP.WF.Dev2Interface.DB_StarFlows(userNo); } /// /// 获得待办 /// /// /// [WebMethod(EnableSession = true)] public DataTable Todolist(string userNo) { return BP.WF.Dev2Interface.DB_Todolist(userNo); } /// /// 在途 /// /// /// [WebMethod(EnableSession = true)] public DataTable Runing(string userNo) { return BP.WF.Dev2Interface.DB_GenerRuning(userNo); } } }