<%@ WebHandler Language="C#" Class="GetNewId" %> using System; using System.Collections.Generic; using System.Web; using System.Data; using eMIS; using System.Text; using System.Data.Common; using System.Web.SessionState; public class GetNewId : IHttpHandler, IRequiresSessionState { public void ProcessRequest (HttpContext context) { string[] a = context.Request.QueryString["nid"].ToString().Split('.'); string nodeId = a[1]; string flowId = a[0]; StringBuilder sb = new StringBuilder(); DataManager dataManager = new DataManager(); FlowManager flow = new FlowManager(flowId, dataManager); string param = flow.GetNodeProperty(nodeId, "PARAM"); sb.Append("[{backdesc:'"+StringHelper.GetParamValue(param, "backdesc") +"',senddesc:'"+StringHelper.GetParamValue(param, "senddesc") +"',endorse:'" + StringHelper.GetParamValue(param, "endorse") + "',impbutton:'" + StringHelper.GetParamValue(param, "impbutton") + "',back:'" + flow.GetNodeProperty(nodeId, "HTJD") + "',silentSend:'" + StringHelper.GetParamValue(flow.GetNodeProperty(nodeId, "PARAM"), "SilentSend") + "',hiddenTask:'" + StringHelper.GetParamValue(flow.GetNodeProperty(nodeId, "PARAM"), "HiddenTask") + "'}"); //if (flow.GetNodeProperty(nodeId, "fzlx") == "1") if(false) { a = flow.GetNodeProperty(nodeId, "xjjd").Split(new char[]{','},StringSplitOptions.RemoveEmptyEntries); string desc; for (int i = 1; i < a.Length; i++) { desc = flow.GetNodeProperty(a[i], "jdms"); if(desc=="") desc = flow.GetNodeProperty(a[i], "jdmc"); sb.Append(",{desc:'" + desc +"',id:'" + a[i] + "'}"); } } sb.Append("]"); context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); context.Response.Write(sb.ToString()); } public bool IsReusable { get { return false; } } }