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.
176 lines
6.1 KiB
176 lines
6.1 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">
|
|
支持交互
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%=Html.QPSeach(80,true) %>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th>
|
|
<%=Html.QV(p => p.PType)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.PType)%>
|
|
</td>
|
|
<th>
|
|
<%=Html.QV(p=>p.Shkey) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.Shkey)%>
|
|
</td>
|
|
<th>
|
|
<%=Html.QV(p=>p.PStatus) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.PStatus)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.Web.Models.Sys.SupportInteractionModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<script language="javascript" type="text/javascript">
|
|
//加载部门信息
|
|
$(function () {
|
|
$('#PType').combobox({
|
|
url: '/SupportInteraction/GetTypeList',
|
|
editable: 'false',
|
|
valueField: 'id',
|
|
textField: 'text',
|
|
width: 155
|
|
});
|
|
});
|
|
|
|
//增加问题
|
|
function Insert() {
|
|
openAppWindow1('添加问题', '/SupportInteraction/SupportInteractionEdit', '600', '400');
|
|
}
|
|
|
|
|
|
//删除支持交互信息
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
|
|
if (ids == "") {
|
|
MSI("错误", "至少选择一条记录。");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
|
submitByButton("SupportInteractionDelete");
|
|
})
|
|
}
|
|
}
|
|
|
|
function deal() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择修改记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能修改一条记录。");
|
|
return;
|
|
}
|
|
|
|
//2)校验选中问题是否已关闭,如果已关闭,提示“此问题已关闭,无法处理”,返回(使用ajax)。
|
|
var closed = false; ;
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "CheckProblemClosed",
|
|
async: false,
|
|
data: { PID: ids },
|
|
success: function (msg) {
|
|
closed = msg;
|
|
}
|
|
});
|
|
|
|
if (closed) {
|
|
alert("此问题已关闭,无法处理!");
|
|
return false;
|
|
}
|
|
|
|
var dept = false;
|
|
//校验选中问题的处理部门是否为当前用户部门,如果不是,提示“此问题已提交,无法处理”,返回(使用ajax)。
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "CheckProblemDept",
|
|
async: false,
|
|
data: { PID: ids },
|
|
success: function (msg) {
|
|
dept = msg;
|
|
}
|
|
});
|
|
|
|
if (!dept) {
|
|
alert("此问题已提交,无法处理!");
|
|
return false;
|
|
}
|
|
|
|
var user = false;
|
|
//校验选中问题的处理人是否为当前用户,如果不是,提示“此问题已提交,无法处理”,返回(使用ajax)。
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "CheckProblemUser",
|
|
async: false,
|
|
data: { PID: ids },
|
|
success: function (msg) {
|
|
user = msg;
|
|
}
|
|
});
|
|
if (!user) {
|
|
alert("此问题已提交,无法处理!");
|
|
return false;
|
|
}
|
|
|
|
openAppWindow1('处理问题', 'SupportInteractionDeal?PID=' + ids , '640', '480');
|
|
}
|
|
|
|
function ViewDealList(rowIndex, field, value) {
|
|
if (field == "DealList") {
|
|
openAppWindow1('处理记录', 'SIDealList', '520', '480');
|
|
}
|
|
}
|
|
|
|
|
|
//导出
|
|
function Export() {
|
|
document.getElementById("selectKey").value = getSelectKey();
|
|
submitByButton("ProblemManageExportExcel");
|
|
}
|
|
|
|
//查看
|
|
function ViewDealList(rowIndex, field, value) {
|
|
|
|
$('#QDateGrid').datagrid('clearSelections');
|
|
if (field == "DealList") {
|
|
var rows = $('#QDateGrid').datagrid('getRows');
|
|
var id = rows[rowIndex].PID;
|
|
openAppWindow1('处理问题', 'SIDealInfoList?ZPDDBPID=' + id, '800', '460');
|
|
}
|
|
|
|
if (field == "PSequ") {
|
|
$('#QDateGrid').datagrid('selectRow', rowIndex);
|
|
deal();
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table id="EditTable" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<%=Html.QTButtonSearch("SupportInteraction", "SupportInteractionList", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonAdd("SupportInteraction", "SupportInteractionEdit", "Insert();", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("deal", "SupportInteractionDeal", QMFrameWork.WebUI.IconCls.edit, "deal()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("export", "ProblemManageExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("help", "", "help", "SysHelp('Support030000','SupportInteractionModel');", (s, f) => { return true; })%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|