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.
117 lines
3.8 KiB
117 lines
3.8 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.SIProblemTypeModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
支持交互问题类型
|
|
</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.PTypeName)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.PTypeName)%>
|
|
</td>
|
|
</tr>
|
|
<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>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.Remark)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.Remark)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.HiddenFor(p=>p.PID)%>
|
|
<%=Html.HiddenFor(p =>p.CreateUser)%>
|
|
<%=Html.HiddenFor(p=>p.CreateDate)%>
|
|
<%=Html.HiddenFor(p=>p.UpdateUser)%>
|
|
<%=Html.HiddenFor(p=>p.UpdateDate)%>
|
|
<%=Html.QPEnd() %>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<%=Html.QTButtonSave("SIProblemType", "SIProblemTypeSave", "Save()")%>
|
|
<%=Html.QTButton("close", "SIProblemTypeList", "close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
|
|
//加载部门信息
|
|
$(function () {
|
|
$('#SDept').combobox({
|
|
url: '/User/GetOrgaList',
|
|
editable: 'false',
|
|
valueField: 'id',
|
|
textField: 'text',
|
|
width: 155,
|
|
onSelect: function () {
|
|
LoadUserList();
|
|
$('#SUser').combobox("select", "");
|
|
}
|
|
});
|
|
|
|
//编辑时部门不为空去更新人员下拉列表
|
|
if ($("#SDept").combobox("getValue") != null && "<%=Model.SUser %>" != "") {
|
|
LoadUserList();
|
|
$('#SUser').combobox("select", "<%=Model.SUser %>");
|
|
}
|
|
});
|
|
|
|
function LoadUserList() {
|
|
$('#SUser').combobox({
|
|
url: '/SIProblemType/GetUserList/?orgaID=' + $('#SDept').combobox('getValue'),
|
|
editable: 'false',
|
|
valueField: 'UserID',
|
|
textField: 'UserName',
|
|
width:155
|
|
});
|
|
}
|
|
|
|
//保存
|
|
function Save() {
|
|
//校验基本信息合法性
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
//判断类型名称是否已存在
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "CheckProblemTypeNameExist",
|
|
async: false,
|
|
data: { PID: $("#PID").val(), PTypeName: $("#PTypeName").val() },
|
|
success: function (msg) {
|
|
if (msg) {
|
|
alert("类型名称已存在.");
|
|
} else {
|
|
|
|
submitByButton("SIProblemTypeSave");
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|