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

49 lines
1.5 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">
Trees
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPEdit() %>
<table>
<tr>
<td><%=Html.QTreeView("OrgaizationTreeData", "/Role/GetTreeData1","single")%></td>
</tr>
</table>
<%=Html.QPEnd() %>
<%=Html.HiddenFor(p=>p.RoleID) %>
<%=Html.HiddenFor(p=>p.RoleDESC) %>
<%=Html.HiddenFor(p=>p.OrgaID) %>
<%=Html.HiddenFor(p=>p.OrgaDESC) %>
<%=Html.Hidden("selectKey") %>
<%=Html.Hidden("isEdit",Model.isEdit)%>
<%=Html.HiddenFor(p=>p.CreateUser) %>
<%=Html.HiddenFor(p=>p.CreateTime) %>
<%=Html.HiddenFor(p=>p.UpdateUser) %>
<%=Html.HiddenFor(p=>p.UpdateTime) %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<%=Html.QTButtonSave("Role", "SaveTree", "Save()")%>
<%=Html.QTButtonBack("Role", "RoleEdit", "Back()")%>
<script type="text/javascript" language="javascript">
function Save() {
var nodes = $('#OrgaizationTreeData').tree('getSelected');
var s = '';
if (s != '') s += ',';
s += nodes.id + ":" + nodes.text;
document.getElementById("selectKey").value = s;
submitByButton("SaveTree");
}
function Back() {
submitByButton("RoleEdit");
}
</script>
</asp:Content>