天津投入产出系统后端
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.
 
 
 
 
 
 

91 lines
3.2 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.RoleModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
角色信息编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPEdit("角色信息", string.IsNullOrEmpty(Model.isEdit) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
<table id="editTable" cellpadding=0 cellspacing=0 align="center">
<tr>
<td>
<table>
<tr>
<th><%=Html.QV(p=>p.RoleDESC) %></th><td><%=Html.QC(p => p.RoleDESC)%> </td>
<%--<th><%=Html.QV(p=>p.OrgaDESC) %></th><td><%=Html.QC(p => p.OrgaID)%></td>--%>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="tab_set" style="width:490px;height:368px;">
<div title="系统功能" style="padding:5px;">
<%=Html.QTreeView("TreePowers1", "/Role/GetTreePowers?roleID="+Model.RoleID+"&SystemID=Main")%>
</div>
<div title="工控机操作" style="padding:5px;">
<%=Html.QTreeView("TreePowers2", "/Role/GetTreePowers?roleID="+Model.RoleID+"&SystemID=PC")%>
</div>
</div>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.RoleID) %>
<%=Html.HiddenFor(p=>p.isEdit) %>
<%=Html.HiddenFor(p=>p.CreateUser) %>
<%=Html.HiddenFor(p=>p.CreateTime) %>
<%=Html.HiddenFor(p=>p.UpdateUser) %>
<%=Html.HiddenFor(p=>p.UpdateTime) %>
<%=Html.QPEnd() %>
<%=Html.Hidden("SelectedPowers1")%>
<%=Html.Hidden("SelectedPowers2")%>
<%=Html.Hidden("SelectedPowers3")%>
<%=Html.Hidden("SelectedPowers4")%>
<%=Html.Hidden("SelectedPowers5")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td>
<%=Html.QTButtonSave("Role", "RoleSave", "Save()")%>
<%=Html.QTButton("close", "RoleList","close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
</td>
</tr>
</table>
<script type="text/javascript">
$(function () {
$('#tab_set').tabs({
});
$('#OrgaID').combobox({
url: '/User/GetOrgaList',
editable: 'false',
valueField: 'OrgaID',
textField: 'OrgaDESC'
});
});
//保存
function Save() {
//校验基本信息合法性
if (isValidate() == false) {
return false;
}
//接收权限
document.getElementById("SelectedPowers1").value = getTreeIDTreePowers1();
document.getElementById("SelectedPowers2").value = getTreeIDTreePowers2();
submitByButton("RoleSave");
}
//组织机构树
function Tree() {
//展示组织机构树
if (isValidate() == false) {
return false;
}
submitByButton("OrgaizationTree");
}
</script>
</asp:Content>