%@ WebHandler Language="C#" Class="CheckPriKey" %> using System; using System.Collections.Generic; using System.Web; using System.Data; using System.IO; using eMIS.Data; using System.Data.Common; using System.Text; using System.Web.SessionState; using eMIS; public class CheckPriKey : IHttpHandler, IRequiresSessionState { public void ProcessRequest (HttpContext context) { string recordId = context.Request.QueryString["rid"].ToString(); string flowId = context.Request.QueryString["fid"].ToString(); string displayMode = context.Request.QueryString["dm"].ToString(); DataManager dm = new DataManager(); string sql; if (flowId == "") { sql = "select lcid from com_lcdyb where cxid=" + context.Request.QueryString["pid"].ToString(); object obj = dm.Operator.ExecuteScalar(sql); if (obj != null) flowId = obj.ToString(); } FlowManager flow = new FlowManager(flowId, dm); sql = "select a.jdid,a.jdid_d,a.lx,b.xingming,a.czsj,a.bz,a.jsr,b.gw from XT_LCRZ a,com_yhb b where a.lcid=" + flowId + " and a.jlid=" + recordId + " and a.czrid=b.id "; //if (displayMode == "1") sql += " and a.zt=1 "; sql += "order by a.id"; DbDataReader reader = dm.ExecuteReader(sql); StringBuilder sb = new StringBuilder(); sb.Append("
时间 | 岗位 | 姓名 | 操作 | 接收人 | 意见 |
" + n2 + " | "); sb.Append("" + reader["gw"].ToString() + " | "); sb.Append("" + reader["xingming"].ToString() + " | "); sb.Append("" + reader["lx"].ToString() + " | "); sb.Append("" + reader["jsr"].ToString() + " | "); sb.Append("" + reader["bz"].ToString() + " | "); sb.Append("