天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

143 lines
6.2 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.OnLineHelpModel>" ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
在线帮助修改
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script src="../../Scripts/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="../../Scripts/ueditor/ueditor.all.js" type="text/javascript"></script>
<script type="../../Scripts/text/javascript" charset="utf-8" src="../../Scripts/ueditor/lang/zh-cn/zh-cn.js"></script>
<%=Html.QPEdit("信息", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
<table id="tbEdit">
<tr>
<th align="right" valign="top" style="width:auto">
帮助内容
</th>
<td>
<table id="tbPage" cellpadding="0" cellspacing="0">
<tr>
<td align="left" colspan="2" >
<%= Html.QC(p=>p.HELPCONTENT)%>
<%=Html.Hidden("CONTENT") %>
<%=Html.Hidden("FieldsJson")%>
<script type="text/javascript">
//百度富文本编辑器
var editor = new UE.ui.Editor();
editor.render("HELPCONTENT");
function Save() {
var menuId = document.getElementById("MENUID").value;
if (menuId == "") {
MSI("提示", "父菜单不能保存页面帮助信息!");
return false;
}
_showProgress();
var rows = $('#tbField').datagrid('getRows');
for (var i = 0; i < rows.length; i++) {
$('#tbField').datagrid('endEdit', i);
}
var colHelps = $('#tbField').datagrid('getData');
var colJson = JSON.stringify(colHelps.rows);
document.getElementById("FieldsJson").value = colJson;
submitByButton("SavePageHelp");
}
</script>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<th align="right" valign="top" style="width:auto"></th>
<td>
<table id="tbField" class="easyui-datagrid" title="" style="width:680px;height:0px;display:none;">
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.PID) %>
<%=Html.HiddenFor(p=>p.MENUID) %>
<%=Html.HiddenFor(p=>p.MODELNAME) %>
<%=Html.HiddenFor(p=>p.PAGENAME) %>
<%=Html.HiddenFor(p=>p.KIND) %>
<%=Html.QPEnd() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSave("OnLineHelp", "SavePageHelp", "return Save();")%>
<%=Html.QTButton("help", "", "help", "SysHelp('0113000','SingleTableList')", (s, f) => { return true; })%>
</td>
</tr>
</table>
<script type="text/javascript">
$(function () {
//var menuId = document.getElementById("MENUID").value;
//加载和编辑字段帮助信息
// $('#tbField').datagrid({
// singleSelect: true,
// iconCls: "icon-edit",
// columns: [[
// { field: 'PAGENAME', title: '页面', width: 100 },
// { field: 'COLUMNANME', title: '字段名', width: 100 },
// { field: 'HELPCONTENT', title: '帮助信息', width: 460, editor: 'text' },
// { field: 'PID', title: '', width: 0 },
// { field: 'MENUID', title: '', width: 0 },
// { field: 'MODELNAME', title: '', width: 0 },
// { field: 'KIND', title: '', width: 0 }
// ]],
// onBeforeEdit: function (index, row) {
// row.editing = true;
// $('#tbField').datagrid('refreshRow', index);
// },
// onAfterEdit: function (index, row) {
// row.editing = false;
// $('#tbField').datagrid('refreshRow', index);
// },
// onCancelEdit: function (index, row) {
// row.editing = false;
// $('#tbField').datagrid('refreshRow', index);
// },
// onLoadSuccess: function () {
// var rows = $('#tbField').datagrid('getRows');
// for (var i = 0; i < rows.length; i++) {
// $('#tbField').datagrid('beginEdit', i);
// }
// }
// });
// $("#tbField").datagrid('hideColumn', 'PID');
// $("#tbField").datagrid('hideColumn', 'MENUID');
// $("#tbField").datagrid('hideColumn', 'MODELNAME');
// $("#tbField").datagrid('hideColumn', 'KIND');
// $.ajax({
// url: 'GetColumnHelps',
// type: "post",
// data: { menuId: menuId },
// dataType: 'json',
// success: function (json) {
// $("#tbField").datagrid("loadData", json);
// }
//});
<%if(ViewData["SetPagePID"]!=null)
{%>
$("#PID").val("<%=ViewData["SetPagePID"] %>");
<%}%>
});
</script>
</asp:Content>