%@ WebHandler Language="C#" Class="DataShow" %> using System; using System.Collections.Generic; using System.Web; using System.Data; using System.Data.Common; using System.Web.SessionState; using System.Text; using eMIS; public class DataShow : IHttpHandler , IRequiresSessionState { private int fixedcolumns=0; private int displaySubprogramCount = 0; private int openSubprogramCount = 0; private int elementsCount = 0; private int subProgramCount = 0; private string joinCellJs = ""; private int headMaxRow = 0; private int headMaxCel = 0; 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 wwwroot = context.Request.ApplicationPath; string menuId = context.Request.QueryString["mid"].ToString(); string recordId = context.Request.QueryString["rid"].ToString(); string currId = context.Request.QueryString["sid"].ToString(); string userId = context.Session["userid"].ToString(); string rand = DateTime.Now.Ticks.ToString(); if (wwwroot == "/") wwwroot = ""; string ver = "2019108"; string ThemePath = wwwroot + "/Themes/" + context.Session["theme"].ToString(); string buttonGroupId = (context.Request.QueryString["bgid"] == null ? "" : context.Request.QueryString["bgid"].ToString()); DataManager sysData = new DataManager(); sysData.Operator.OpenConnection(); InstanceManager instManager = new InstanceManager(context,sysData,menuId); string programId = instManager.ProgramID; ProgramManager pm = instManager.Program; DataTable listElements = pm.ListElements; DataRow businessDataRow = null; TagManager tagManger = new TagManager(); tagManger.Context = context; elementsCount = listElements.Rows.Count; subProgramCount = pm.Subprograms.Rows.Count; int i,l,j,k,ii; string s,s2,s3,web,param,s4; string tjfs; string[] arr_temp; string[] arr_temp1; string url="", xml, str_bg, elementType; string primaryKeyValue; string primaryKey, foreignKey, relationDesc, relationCondition; DataTable listDataTable; string systemName = DataManager.GetSystemName(); HttpCookie cookie = context.Request.Cookies.Get("pk" + menuId); string spk = ""; if (cookie != null) { spk = ","+cookie.Value.Replace("%2C", ",")+","; } string pageTitle = pm.Properties["bt"].ToString(); if (instManager.FlowNode != "") { pageTitle += "-" + instManager.Flow.GetNodeProperty(instManager.Flow.CurrentNodeID, "jdmc"); } StringBuilder sb = new StringBuilder(); s = instManager.SqlOrder; string sortColumn = ""; string sortOrder = ""; if (s != "") { s = s.Replace(",", " "); arr_temp = s.Split(' '); sortColumn = arr_temp[0]; sortOrder = arr_temp[1]; } //sb.Append(instManager.GetListSqlWhere()); sb.AppendLine(""); sb.AppendLine("
"); string DZDYYM = pm.Properties["DZDYYM"].ToString(); sb.Append(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine("" + parentList.Rows[i]["kjms"].ToString() + " | "); } } sb.Append("|
" + listDataTable.Rows[j][i].ToString() + " | "); sb.Append("" + controlsub.Text + " | "); } } } sb.Append("
" + dr["glms"].ToString() + " | ");
if (relid == currId)
currjs = "em_subs_select(" + currId + ",\"" + url + "\");";
}
}
sb.Append("