<%@ WebHandler Language="C#" Class="Send" %> using System; using System.Collections.Generic; using System.Web; using System.Data; using System.Data.Common; using System.Web.SessionState; using System.Text; using System.Reflection; using eMIS; using eMIS.WebManager; public class Send : IHttpHandler , IRequiresSessionState { public void ProcessRequest (HttpContext context) { if (context.Session["userid"] == null) { LoginManager lm = new LoginManager(context); if (!lm.VerifyIdentity()) { context.Response.Write("会话丢失,请重新登陆!"); context.Response.End(); } } string menuId = context.Request.QueryString["proid"].ToString(); string recordId = context.Request.QueryString["recid"].ToString(); string dealType = context.Request.QueryString["type"].ToString(); //发送、退回 DataManager systemDataManager = new DataManager(); InstanceManager instanceManager = null; if (menuId == "") { instanceManager = new InstanceManager(context, systemDataManager, context.Request.QueryString["flowid"].ToString(), context.Request.QueryString["nodeid"].ToString(), recordId); } else { instanceManager = new InstanceManager(context, systemDataManager, menuId); instanceManager.PrimaryKeyValue = recordId; } FlowManager flowManager = new FlowManager(instanceManager); flowManager.CurrNodeAction = dealType; flowManager.MenuID = menuId; SendUIPage page = new SendUIPage(); page.Render(context, flowManager); } public bool IsReusable { get { return false; } } }