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.
54 lines
1.6 KiB
54 lines
1.6 KiB
4 years ago
|
<%@ 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">
|
||
|
Trees
|
||
|
</asp:Content>
|
||
|
|
||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||
|
|
||
|
<%=Html.QPEdit() %>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><%=Html.QTreeView("OrgaizationTreeData", "/User/GetTreeData","single")%></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.QPEnd() %>
|
||
|
<%=Html.HiddenFor(p => p.LoginUserID)%>
|
||
|
<%=Html.HiddenFor(p => p.UserID)%>
|
||
|
<%=Html.HiddenFor(p => p.UserName)%>
|
||
|
<%=Html.HiddenFor(p => p.PassWord)%>
|
||
|
<%=Html.HiddenFor(p => p.OrgaDESC)%>
|
||
|
<%=Html.HiddenFor(p => p.Tel)%>
|
||
|
<%=Html.HiddenFor(p => p.Email)%>
|
||
|
<%=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("User", "SaveTree", "Save()")%>
|
||
|
<%=Html.QTButtonBack("User", "UserEdit", "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("UserEdit");
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</asp:Content>
|