protected void Page_Load(object sender, EventArgs e) { if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:8px;\">"); Response.Write("<b>数据</b><br>"); Response.Write("设置列(单选框、复选框、下拉框)的选项数据来源。<br>"); Response.Write("</div> "); } eList datalist = new eList("a_eke_sysModelItems"); datalist.Where.Add("ModelID='" + modelid + "' and delTag=0"); //datalist.Where.Add("(Sys=0 or Code like '%User') and (showAdd=1 or showList=1) and (Code like '%User' or (Custom=1 or ControlType='searchselect' or ControlType='radio' or ControlType='checkbox' or ControlType='select' or ControlType='autoselect'))");//自定义列也要可以取值 Custom=0 and datalist.Where.Add("(showAdd=1 or showList=1)"); //datalist.Where.Add("sys=0"); datalist.OrderBy.Add("px"); Rep.ItemDataBound += new RepeaterItemEventHandler(Rep_ItemDataBound); datalist.Bind(Rep); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false;//不输出,要在获取后设,不然取不到内容。 Response.Write(sw.ToString()); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:6px;\">"); Response.Write("<b>客户端验证</b><br>"); Response.Write("设置表单提交前的数据长度、大小、是否必填等信息。"); Response.Write("</div> "); } eList datalist = new eList("a_eke_sysModelItems"); datalist.Where.Add("ModelID='" + modelid + "' and delTag=0 and showAdd=1 and sys=0 and Custom=0"); datalist.OrderBy.Add("addorder, PX, addTime"); datalist.Bind(Rep); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false;//不输出,要在获取后设,不然取不到内容。 Response.Write(sw.ToString()); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:8px;\">"); Response.Write("<b>对应关系</b><br>"); Response.Write("设置数据子模块回填数据到主模块的对应关系。"); Response.Write("</div> "); } me = eOleDB.getDataTable("select * from a_eke_sysModels where modelID='" + modelid + "'").Select()[0]; parent = eOleDB.getDataTable("select * from a_eke_sysModels where modelID='" + me["ParentID"].ToString() + "'").Select()[0]; List(); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false; Response.Write(sw.ToString()); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { dr = eOleDB.getDataTable("select * from a_eke_sysModels where ModelID='" + modelid + "'").Select()[0]; if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:6px;\">"); Response.Write("<b>搜索</b><br>"); Response.Write("设置列表搜索条件。"); Response.Write("</div> "); } Response.Write("<div style=\"margin:6px 0px 8px 0px;\">"); Response.Write(" 搜索列数:<input type=\"text\" value=\"" + dr["searchcolumncount"].ToString() + "\" oldvalue=\"" + dr["searchcolumncount"].ToString() + "\" class=\"edit\" style=\"width:40px;\" onBlur=\"setModel(this,'searchcolumncount');\" />"); if (eBase.showHelp()) { Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(107);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); } Response.Write("</div> "); eList datalist = new eList("a_eke_sysModelConditions"); datalist.Where.Add("delTag=0 and ModelID='" + modelid + "'"); datalist.OrderBy.Add("show desc,px,addTime"); Rep.ItemDataBound += new RepeaterItemEventHandler(Rep_ItemDataBound); datalist.Bind(Rep); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false;//不输出,要在获取后设,不然取不到内容。 Response.Write(sw.ToString()); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:8px;\">"); Response.Write("<b>导出</b><br>"); Response.Write("设置模块导出到Excel的列及宽度。"); Response.Write("</div> "); } eList datalist = new eList("a_eke_sysModelItems"); datalist.Where.Add("ModelID='" + modelid + "' and delTag=0"); datalist.OrderBy.Add("showExport desc,ExportOrder, addTime"); datalist.Bind(Rep); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false; Response.Write(sw.ToString()); }
protected void Page_Load(object sender, EventArgs e) { configName = eOleDB.getValue("select configName from ProductConfigs where ProductConfigID='" + PId + "'"); string sql = ""; if (act.Length == 0) { eList elist = new eList("a_eke_sysCheckUps"); elist.Where.Add("ModelID='" + PId + "' "); elist.OrderBy.Add("px,addTime"); elist.Bind(Rep); } else { #region 获取数据 if (act == "getdata") { Response.Clear(); List(); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false; Response.Write(sw.ToString()); Response.End(); } #endregion #region 流程 #region 添加 if (act == "addcheckup") { eOleDB.Execute("insert into a_eke_sysCheckUps (ModelID) values ('" + PId + "')"); eJson json = new eJson(); json.Add("success", "1"); json.Add("message", "添加成功"); //Response.AddHeader("Content-Type", "text/html; charset=UTF-8"); Response.Write(json.ToString()); Response.End(); } #endregion #region 修改动作 if (act == "setcheckup") { //拖动排序 if (item.ToLower() == "setorders") { string ids = eParameters.Form("ids"); string[] arr = ids.Split(",".ToCharArray()); for (int i = 0; i < arr.Length; i++) { value = (i + 1).ToString(); eOleDB.Execute("update a_eke_sysCheckUps set px='" + value + "' where ModelID='" + PId + "' and CheckupID='" + arr[i] + "'"); } Response.End(); } if (item.ToLower() == "px" && (value.Length == 0 || value == "0")) { value = "999999"; } if (item.ToLower() == "backprocess") { value = eBase.decode(value); } eOleDB.Execute("update a_eke_sysCheckUps set " + item + "='" + value + "' where ModelID='" + PId + "' and CheckupID='" + eParameters.QueryString("CheckupID") + "'"); Response.End(); } #endregion #region 除 if (act == "delcheckup") { eOleDB.Execute("delete from a_eke_sysCheckUps where CheckupID='" + eParameters.QueryString("CheckupID") + "'"); Response.End(); } #endregion #endregion } }
protected void Page_Load(object sender, EventArgs e) { DataRow dr = eOleDB.getDataTable("select b.Type as bType, a.* from a_eke_sysModels a left join a_eke_sysModels b on a.ParentID=b.ModelID where a.ModelID='" + modelid + "'").Select()[0]; if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:6px;\">"); Response.Write("<b>列表</b><br>"); Response.Write("设置列表相关参数;显示列是否显示、显示顺序、显示宽度、高度、点击排序、自定义显示等相关参数。"); Response.Write("</div> "); } if (dr["bType"].ToString() == "1" && dr["JoinMore"].ToString() == "True") { Response.Write("窗口宽度:"); Response.Write("<input type=\"text\" value=\"" + dr["width"].ToString() + "\" oldvalue=\"" + dr["width"].ToString() + "\" class=\"edit\" style=\"width:90px;\" onBlur=\"setModel(this,'width');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(84);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write(" 窗口高度:"); Response.Write("<input type=\"text\" value=\"" + dr["height"].ToString() + "\" oldvalue=\"" + dr["height"].ToString() + "\" class=\"edit\" style=\"width:90px;\" onBlur=\"setModel(this,'height');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(85);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write(" 最少行数:"); Response.Write("<input type=\"text\" value=\"" + dr["minCount"].ToString() + "\" oldvalue=\"" + dr["minCount"].ToString() + "\" class=\"edit\" style=\"width:90px;\" onBlur=\"setModel(this,'mincount');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(86);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write(" 最多行数:"); Response.Write("<input type=\"text\" value=\"" + dr["maxCount"].ToString() + "\" oldvalue=\"" + dr["maxCount"].ToString() + "\" class=\"edit\" style=\"width:90px;\" onBlur=\"setModel(this,'maxcount');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(87);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write("<br>"); } Response.Write("<input type=\"checkbox\" name=\"customheight\" id=\"customheight\" onclick=\"setModel(this,'customheight');\"" + (dr["customheight"].ToString() == "True" ? " checked" : "") + " /><label for=\"customheight\">拖动行高</label>"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(88);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); //Response.Write("<input type=\"checkbox\" name=\"customwidth\" id=\"customwidth\" onclick=\"setModel(this,'customwidth');\"" + (dr["customwidth"].ToString() == "True" ? " checked" : "") + " /><label for=\"customwidth\">拖动列宽</label>"); Response.Write("<input type=\"checkbox\" name=\"customshow\" id=\"customshow\" onclick=\"setModel(this,'customshow');\"" + (dr["customshow"].ToString() == "True" ? " checked" : "") + " /><label for=\"customshow\">列显示隐藏菜单</label>"); // //Response.Write("<input type=\"checkbox\" name=\"custommove\" id=\"custommove\" onclick=\"setModel(this,'custommove');\"" + (dr["custommove"].ToString() == "True" ? " checked" : "") + " /><label for=\"custommove\">拖动行位置</label>"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(89);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write(" 默认分页大小:<input type=\"text\" value=\"" + dr["PageSize"].ToString() + "\" oldvalue=\"" + dr["PageSize"].ToString() + "\" class=\"edit\" style=\"width:40px;\" onBlur=\"setModel(this,'pagesize');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(90);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write(" 默认分页大小(M):<input type=\"text\" value=\"" + dr["mPageSize"].ToString() + "\" oldvalue=\"" + dr["mPageSize"].ToString() + "\" class=\"edit\" style=\"width:40px;\" onBlur=\"setModel(this,'mpagesize');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(91);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write(" 默认行高:<input type=\"text\" value=\"" + dr["LineHeight"].ToString() + "\" oldvalue=\"" + dr["LineHeight"].ToString() + "\" class=\"edit\" style=\"width:40px;\" onBlur=\"setModel(this,'lineheight');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(92);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write(" 默认行高(M):<input type=\"text\" value=\"" + dr["mLineHeight"].ToString() + "\" oldvalue=\"" + dr["mLineHeight"].ToString() + "\" class=\"edit\" style=\"width:40px;\" onBlur=\"setModel(this,'mlineheight');\" />"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(93);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write("<br>补充自定义列:"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(94);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write("<br>\r\n"); Response.Write("<textarea name=\"textarea\" style=\"width:90%;\" rows=\"4\" onBlur=\"setModel(this,'listfields');\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["ListFields"].ToString()) + "\">" + System.Web.HttpUtility.HtmlEncode(dr["ListFields"].ToString()) + "</textarea>"); Response.Write("<br>\r\n"); //string value = eOleDB.getValue("select CondValue from a_eke_sysConditions where ModelID='" + modelid + "' and RoleID is null and UserID is null and delTag=0"); //Response.Write("模块条件:<br>"); //Response.Write("<input type=\"text\" value=\"" + System.Web.HttpUtility.HtmlEncode(value) + "\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(value) + "\" class=\"edit\" style=\"width:90%;\" onBlur=\"setModel(this,'modelcondition');\" /><br>"); //Response.Write("完整自定义列表查询:<br>"); //Response.Write("<textarea name=\"textarea\" style=\"width:90%;\" rows=\"4\" onBlur=\"setModel(this,'listsql');\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["ListSQL"].ToString()) + "\">" + System.Web.HttpUtility.HtmlEncode(dr["ListSQL"].ToString()) + "</textarea><br>\r\n"); Response.Write("默认条件:"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(95);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write("<br>\r\n"); Response.Write("<input type=\"text\" value=\"" + System.Web.HttpUtility.HtmlEncode(dr["defaultcondition"].ToString()) + "\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["defaultcondition"].ToString()) + "\" class=\"edit\" style=\"width:90%;\" onBlur=\"setModel(this,'defaultcondition');\" />"); Response.Write("<br>\r\n"); Response.Write("默认排序:"); if (eBase.showHelp()) Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(96);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); Response.Write("<br>\r\n"); Response.Write("<input type=\"text\" value=\"" + System.Web.HttpUtility.HtmlEncode(dr["defaultorderby"].ToString()) + "\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["defaultorderby"].ToString()) + "\" class=\"edit\" style=\"width:90%;\" onBlur=\"setModel(this,'defaultorderby');\" />"); Response.Write("<br>\r\n"); eList datalist = new eList("a_eke_sysModelItems"); datalist.Where.Add("ModelID='" + modelid + "' and delTag=0"); datalist.OrderBy.Add("showlist desc,listorder,px"); datalist.Bind(Rep); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false;//不输出,要在获取后设,不然取不到内容。 Response.Write(sw.ToString()); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:8px;\">"); Response.Write("<b>动作</b><br>"); Response.Write("模块扩展功能需要执行的SQL语句。<br>"); Response.Write("</div> "); } eList elist = new eList("a_eke_sysActions"); elist.Where.Add("ModelID='" + modelid + "' "); elist.OrderBy.Add("addTime"); elist.Bind(Rep); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false;//不输出,要在获取后设,不然取不到内容。 Response.Write(sw.ToString()); DataTable tb = eOleDB.getDataTable("select AddSQL,EditSQL,DeleteSQL from a_eke_sysModels where ModelID='" + modelid + "'"); if (tb.Rows.Count > 0) { Response.Write("<dl class=\"ePanel\">\r\n"); Response.Write("<dt><h1 onclick=\"showPanel(this);\"><a href=\"javascript:;\" class=\"cur\" onfocus=\"this.blur();\"></a>添加完成执行SQL</h1></dt>\r\n"); Response.Write("<dd style=\"display:none;\">"); if (eBase.showHelp()) { Response.Write("<img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(127);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;\">"); } Response.Write(" <textarea name=\"textarea\" style=\"width:95%;\" cols=\"100\" rows=\"10\" onBlur=\"setModel(this,'addsql');\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(tb.Rows[0]["AddSQL"].ToString()) + "\">" + System.Web.HttpUtility.HtmlEncode(tb.Rows[0]["AddSQL"].ToString()) + "</textarea><br>\r\n"); Response.Write("</dd>\r\n"); Response.Write("</dl>\r\n"); Response.Write("<dl class=\"ePanel\">\r\n"); Response.Write("<dt><h1 onclick=\"showPanel(this);\"><a href=\"javascript:;\" class=\"cur\" onfocus=\"this.blur();\"></a>修改完成执行SQL</h1></dt>\r\n"); Response.Write("<dd style=\"display:none;\">"); if (eBase.showHelp()) { Response.Write("<img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(128);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;\">"); } Response.Write(" <textarea name=\"textarea\" style=\"width:95%;\" cols=\"100\" rows=\"10\" onBlur=\"setModel(this,'editsql');\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(tb.Rows[0]["EditSQL"].ToString()) + "\">" + System.Web.HttpUtility.HtmlEncode(tb.Rows[0]["EditSQL"].ToString()) + "</textarea><br>\r\n"); Response.Write("</dd>\r\n"); Response.Write("</dl>\r\n"); Response.Write("<dl class=\"ePanel\">\r\n"); Response.Write("<dt><h1 onclick=\"showPanel(this);\"><a href=\"javascript:;\" class=\"cur\" onfocus=\"this.blur();\"></a>删除完成执行SQL</h1></dt>\r\n"); Response.Write("<dd style=\"display:none;\">"); if (eBase.showHelp()) { Response.Write("<img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(129);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;\">"); } Response.Write(" <textarea name=\"textarea\" style=\"width:95%;\" cols=\"100\" rows=\"10\" onBlur=\"setModel(this,'deletesql');\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(tb.Rows[0]["DeleteSQL"].ToString()) + "\">" + System.Web.HttpUtility.HtmlEncode(tb.Rows[0]["DeleteSQL"].ToString()) + "</textarea><br>\r\n"); Response.Write("</dd>\r\n"); Response.Write("</dl>\r\n"); } Response.End(); }
protected void Page_Load(object sender, EventArgs e) { DataRow dr = eOleDB.getDataTable("select * from a_eke_sysModels where ModelID='" + modelid + "'").Select()[0]; if (eBase.showHelp()) { Response.Write("<div class=\"tips\" style=\"margin-bottom:6px;\">"); Response.Write("<b>基本设置</b><br>管理列在表单的添加、编辑、查看的基本参数。"); Response.Write("</div> "); } Response.Write(" 表单列数:<input type=\"text\" value=\"" + dr["AddColumnCount"].ToString() + "\" oldvalue=\"" + dr["AddColumnCount"].ToString() + "\" class=\"edit\" style=\"width:40px;\" onBlur=\"setModel(this,'addcolumncount');\" />"); if (eBase.showHelp()) { Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(61);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); } Response.Write("<br>"); //Response.Write(" 保存文本:<input type=\"text\" value=\"" + System.Web.HttpUtility.HtmlEncode(dr["TextFields"].ToString()) + "\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["TextFields"].ToString()) + "\" class=\"edit\" style=\"width:540px;\" onBlur=\"setModel(this,'textfields');\" />"); //Response.Write(" 模块权限:<input type=\"text\" value=\"" + System.Web.HttpUtility.HtmlEncode(dr["Power"].ToString()) + "\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["Power"].ToString()) + "\" class=\"edit\" style=\"width:540px;\" onBlur=\"setModel(this,'power');\" />"); Response.Write(" 保存文本:"); if (eBase.showHelp()) { Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(62);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); } Response.Write("<br>"); Response.Write("<textarea reload=\"true\" id=\"model_textfields\" jsonformat=\"[{"text":"表单Name","value":"frmName"},{"text":"字段编码","value":"Field"}]\" name=\"textarea\" style=\"width:80%;display:none;\" rows=\"2\" onBlur=\"setModel(this,'textfields');\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["TextFields"].ToString()) + "\">" + System.Web.HttpUtility.HtmlEncode(dr["TextFields"].ToString()) + "</textarea>"); Response.Write("<img src=\"images/jsonedit.jpg\" style=\"cursor:pointer;margin-right:5px;\" align=\"absmiddle\" onclick=\"Json_Edit('model_textfields');\">"); Response.Write(getJsonText(dr["TextFields"].ToString(), "Field")); Response.Write("<br>\r\n"); Response.Write(" 模块权限:"); if (eBase.showHelp()) { Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(63);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); } Response.Write("<br>"); Response.Write("<textarea reload=\"true\" id=\"model_power\" jsonformat=\"[{"text":"文本","value":"text"},{"text":"值","value":"value"}]\" name=\"textarea\" style=\"width:80%;display:none;\" rows=\"2\" onBlur=\"setModel(this,'power');\" oldvalue=\"" + System.Web.HttpUtility.HtmlEncode(dr["Power"].ToString()) + "\">" + System.Web.HttpUtility.HtmlEncode(dr["Power"].ToString()) + "</textarea>"); Response.Write("<img src=\"images/jsonedit.jpg\" style=\"cursor:pointer;margin-right:5px;\" align=\"absmiddle\" onclick=\"Json_Edit('model_power');\">"); Response.Write(getJsonText(dr["Power"].ToString(), "text")); Response.Write("<br>\r\n"); Response.Write("<div style=\"padding:10px 0px 10px 0px;\">"); Response.Write("<input type=\"button\" name=\"Submit\" value=\"同步编码\" onclick=\"copyCode();\" />"); if (eBase.showHelp()) { Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(64);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); } Response.Write("<input type=\"button\" name=\"Submit\" value=\"还原编码\" onclick=\"restoreCode();\" style=\"margin-left:20px;\" />"); if (eBase.showHelp()) { Response.Write(" <img src=\"images/help.gif\" align=\"absmiddle\" border=\"0\" onclick=\"showHelp(65);\" title=\"查看帮助\" alt=\"查看帮助\" style=\"cursor:pointer;margin-bottom:4px;\">"); } Response.Write("</div>"); eList datalist = new eList("a_eke_sysModelItems"); datalist.Where.Add("ModelID='" + modelid + "' and delTag=0 and (Custom=0 or len(ProgrameFile)>0)"); datalist.OrderBy.Add("showadd desc,addorder, PX, addTime"); datalist.Bind(Rep); eList elist = new eList("a_eke_sysModelItems"); elist.Where.Add("ModelID='" + modelid + "' and Custom=1"); elist.OrderBy.Add("px,addTime"); elist.Bind(RepCustom); System.IO.StringWriter sw = new System.IO.StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); Rep.RenderControl(htw); Rep.Visible = false;//不输出,要在获取后设,不然取不到内容。 Response.Write(sw.ToString()); Response.Write("<strong>自定义列:</strong><br />"); sw = new System.IO.StringWriter(); htw = new HtmlTextWriter(sw); RepCustom.RenderControl(htw); RepCustom.Visible = false; Response.Write(sw.ToString()); Response.End(); }