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

94 lines
3.4 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.OrgaizationModel>" %>
<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>
<tr>
<td>
<table>
<tr>
<th nowrap=nowrap><%=Html.QV(p=>p.OrgaID) %></th><td><%=Html.QC(p => p.OrgaID,new {title="请输入组织结构编号" })%>
</td>
<th nowrap=nowrap><%=Html.QV(p=>p.OrgaDESC) %></th><td><%=Html.QC(p => p.OrgaDESC, new { title = "请输入组织结构名称" })%> </td>
</tr>
<tr>
<th nowrap=nowrap><%=Html.QV(p=>p.ACTIVATEFLG)%></th><td><%=Html.CheckBoxFor(p=>p.CkACTIVATEFLG) %></td>
<th nowrap=nowrap></th><td nowrap=nowrap>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=center>
<div id="tab_set" style="width:490px;height:340px;">
<div title="系统角色" style="padding:5px;" align="left">
<%=Html.QTreeView("TreeRoles", "/Orgaization/GetTreeRoles?organID="+Model.OrgaID)%>
</div>
<%--<div title="系统权限" style="padding:5px;">
<%=Html.QTreeView("TreePowers", "/Orgaization/GetTreePowers?orgaID=" + Model.OrgaID)%>
</div>--%>
</div>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.OrgaID) %>
<%=Html.HiddenFor(p=>p.isEdit) %>
<%=Html.HiddenFor(p => p.OrgaParent)%>
<%=Html.HiddenFor(p=>p.CreateUser) %>
<%=Html.HiddenFor(p=>p.CreateTime) %>
<%=Html.HiddenFor(p=>p.UpdateUser) %>
<%=Html.HiddenFor(p=>p.UpdateTime) %>
<%=Html.Hidden("SelectedPowers")%>
<%=Html.Hidden("SelectedRoles")%>
<%=Html.QPEnd() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td>
<%=Html.QTButtonSave("Orgaization", "OrgaizationSave", "Save()")%>
<%=Html.QTButton("close", "OrgaizationList","close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
</td>
</tr>
</table>
<script type="text/javascript">
$(function () {
$('#tab_set').tabs({
});
});
//保存
function Save() {
//校验基本信息合法性
if (isValidate() == false) {
return false;
}
//接收权限
//document.getElementById("SelectedPowers").value = getTreeIDTreePowers();
//接收角色
document.getElementById("SelectedRoles").value = getTreeIDTreeRoles();
submitByButton("OrgaizationSave");
}
//组织机构树
function Tree() {
//展示组织机构树
if (isValidate() == false) {
return false;
}
submitByButton("OrgaizationTree");
}
</script>
</asp:Content>