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.
171 lines
6.9 KiB
171 lines
6.9 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.UserModel>" %>
|
|
|
|
<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">
|
|
<tr>
|
|
<td valign="top">
|
|
<table style="height: 280px">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.LoginUserID) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.LoginUserID)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right" nowrap="nowrap">
|
|
<%=Html.QV(p=>p.EmployeeNo) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.EmployeeNo)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right" nowrap="nowrap">
|
|
<%=Html.QV(p=>p.UserName) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.UserName)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.PassWord) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.PassWord)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.OrgaDESC) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.OrgaID)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right" nowrap="nowrap">
|
|
<%=Html.QV(p => p.UserType)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p=>p.UserType) %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.ActivateFlg)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.CheckBoxFor(p=>p.CkActivateFlg)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.Email) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.Email)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.Tel) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.Tel)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td valign="top">
|
|
<div id="tab_set" style="width: 298px; height: 398px;">
|
|
<div title="系统角色" style="padding: 5px;" align="left">
|
|
<%=Html.QTreeView("TreeRoles", "/User/GetTreeRoles?userID=" + Model.UserID+"&OrganID="+Model.OrgaID)%>
|
|
</div>
|
|
<div title="系统功能" style="padding: 5px;" align="left">
|
|
<%=Html.QTreeView("TreePowers1", "/User/GetTreePowers?userID=" + Model.UserID + "&SystemID=Main")%>
|
|
</div>
|
|
<div title="工控机操作" style="padding: 5px;" align="left">
|
|
<%=Html.QTreeView("TreePowers2", "/User/GetTreePowers?userID=" + Model.UserID + "&SystemID=PC")%>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.HiddenFor(p=>p.UserID) %>
|
|
<%=Html.HiddenFor(p => p.LoginUserID)%>
|
|
<%=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("SelectedRoles")%>
|
|
<%=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("User", "UserSave", "Save()")%>
|
|
<%=Html.QTButton("close", "UserList", "close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#OrgaID').combobox({
|
|
url: '/User/GetOrgaList',
|
|
editable: 'false',
|
|
valueField: 'id',
|
|
textField: 'text',
|
|
onSelect: function () {
|
|
var organID = $('#OrgaID').combobox('getValue');
|
|
var userID = "<%=Model.UserID %>";
|
|
var ops = $('#TreeRoles').tree('options');
|
|
ops.url = "/User/GetTreeRoles?userID=" + userID + "&OrganID=" + organID;
|
|
$('#TreeRoles').tree('reload');
|
|
}
|
|
});
|
|
$('#tab_set').tabs({
|
|
});
|
|
});
|
|
//保存
|
|
function Save() {
|
|
//校验基本信息合法性
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
//接收角色
|
|
document.getElementById("SelectedRoles").value = getTreeIDTreeRoles();
|
|
// //接收权限
|
|
// document.getElementById("SelectedPowers").value = getTreeIDTreePowers();
|
|
//// //接收组织机构
|
|
// // document.getElementById("SelectedOrgas").value = getTreeIDTreeOrgas();
|
|
//接收权限
|
|
document.getElementById("SelectedPowers1").value = getTreeIDTreePowers1();
|
|
document.getElementById("SelectedPowers2").value = getTreeIDTreePowers2();
|
|
submitByButton("UserSave");
|
|
}
|
|
//组织机构树
|
|
function Tree() {
|
|
//展示组织机构树
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
|
|
submitByButton("OrgaizationTree");
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|