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.
116 lines
4.2 KiB
116 lines
4.2 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.QPSeach(80,true) %>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.PTypeName)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.PTypeName)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.SDept) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.SDept)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.SUser) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QMyPerceptTextboxFor(p => p.SUserID, p => p.SUserName, "userlist", "SelectUser", null)%>
|
|
</td>
|
|
<td>
|
|
<%=Html.HiddenFor(p => p.SUser) %>
|
|
<%=Html.QReadOnlyTextboxFor(p => p.SUserName)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.Web.Models.Sys.SIProblemTypeModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<script language="javascript" type="text/javascript">
|
|
//加载部门信息
|
|
$(function () {
|
|
$('#SDept').combobox({
|
|
url: '/SIProblemType/GetOrgaList',
|
|
editable: 'false',
|
|
valueField: 'id',
|
|
textField: 'text',
|
|
width: 155
|
|
});
|
|
});
|
|
|
|
//增加支持交互问题类型信息
|
|
function Insert() {
|
|
openAppWindow1('添加问题类型', '/SIProblemType/SIProblemTypeAdd', '500', '400');
|
|
}
|
|
|
|
//修改支持交互问题类型信息
|
|
function Update() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择修改记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能修改一条记录。");
|
|
return;
|
|
}
|
|
openAppWindow1('修改问题类型', 'SIProblemTypeEdit?PID=' + ids, '500', '400');
|
|
}
|
|
|
|
|
|
//删除支持交互问题类型信息
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
|
|
if (ids == "") {
|
|
MSI("错误", "至少选择一条记录。");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
|
submitByButton("SIProblemTypeDelete");
|
|
})
|
|
}
|
|
}
|
|
|
|
//导出
|
|
function Export() {
|
|
document.getElementById("selectKey").value = getSelectKey();
|
|
submitByButton("ExportExcel");
|
|
}
|
|
|
|
//选择委托用户
|
|
function SelectUser(data) {
|
|
if (data != null) {
|
|
if (data.id == $("#SUser").val())
|
|
return;
|
|
$("#SUser").val(data.id);
|
|
}
|
|
else {
|
|
if ($("#SUser").val() == "")
|
|
return;
|
|
$("#SUser").val("");
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<%=Html.QTButtonSearch("SIProblemType", "SIProblemTypeList", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonAdd("SIProblemType", "SIProblemTypeAdd", "Insert();", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonUpdate("SIProblemType", "SIProblemTypeEdit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonDelete("SIProblemType", "SIProblemTypeDelete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("help", "", "help", "SysHelp('Support010000','SIProblemTypeModel');", (s, f) => { return true; })%>
|
|
</asp:Content>
|
|
|