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.
78 lines
2.4 KiB
78 lines
2.4 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.SupportInteractionModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
SelectSupportUser
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%=Html.QPEdit("提交", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
|
|
<table id="editTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.SDept)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.SDept)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.SUser)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.SUser)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd() %>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<script type="text/javascript">
|
|
//加载部门信息
|
|
$(function () {
|
|
$('#SDept').combobox({
|
|
url: '/SupportInteraction/GetCurrentHandleOrga',
|
|
editable: 'false',
|
|
valueField: 'id',
|
|
textField: 'text',
|
|
width: 155,
|
|
onSelect: function () { LoadUserList(); }
|
|
});
|
|
|
|
});
|
|
|
|
|
|
function LoadUserList() {
|
|
$('#SUser').combobox({
|
|
url: '/SIProblemType/GetUserList/?orgaID=' + $('#SDept').combobox('getValue'),
|
|
editable: 'false',
|
|
valueField: 'UserID',
|
|
textField: 'UserName',
|
|
width: 155
|
|
});
|
|
}
|
|
|
|
function submitForm() {
|
|
//校验基本信息合法性
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
parent.setReturnValue($("#SDept").combobox('getValue'), $("#SUser").combobox('getValue'));
|
|
parent.closeAppWindow1();
|
|
}
|
|
|
|
function unselectUser() {
|
|
parent.setReturnValue("", "");
|
|
parent.closeAppWindow1();
|
|
}
|
|
</script>
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<%=Html.QTButton("ok", "SelectSupportUser", QMFrameWork.WebUI.IconCls.ok, "submitForm();", (s, f) => { return true; })%>
|
|
<%=Html.QTButton("close", "SelectSupportUser", "close", "unselectUser();", (s, f) => { return true; })%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|