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

48 lines
1.5 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">
Trees
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPEdit() %>
<table>
<tr>
<td><%=Html.QTreeView("OrgaizationTreeData", "/Orgaization/GetTreeData","singletype")%></td>
</tr>
</table>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey") %>
<%=Html.Hidden("isEdit",Model.isEdit)%>
<%=Html.Hidden("OrgaID",Model.OrgaID)%>
<%=Html.Hidden("OrgaDESC", Model.OrgaDESC)%>
<%=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("Orgaization", "SaveTree", "Save()")%>
<%=Html.QTButtonBack("Orgaization", "OrgaizationEdit", "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("OrgaizationEdit");
}
</script>
</asp:Content>