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.
88 lines
3.6 KiB
88 lines
3.6 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.WarnManage.WarnInformerModel>" %>
|
||
|
|
||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||
|
报警发送
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||
|
<div region="north" border="true" title="" style="height: 35px;">
|
||
|
<%=Html.QPEdit("报警发送", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
|
||
|
<table id="editTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.INFOTYPE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.INFOTYPE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.QPEnd() %>
|
||
|
</div>
|
||
|
<div region="center" border="true">
|
||
|
<table id="tt" title="报警类别" class="easyui-datagrid" style="width: 550px; height: 210px">
|
||
|
</table>
|
||
|
</div>
|
||
|
<%=Html.HiddenFor(p => p.PID)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEUSER)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEUSER)%>
|
||
|
<%=Html.Hidden("selectKey")%>
|
||
|
<%=Html.HiddenFor(p => p.WarnInfoIds)%>
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
||
|
<table width="100%" cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<%=Html.QTButton("warnIsDeal", "WarnIsSendList", QMFrameWork.WebUI.IconCls.redo, "WarnIsSend()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonBack("close", "WarnInformerList", "parent.closeAppWindow1();return false;")%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<script type="text/javascript">
|
||
|
$(function () {
|
||
|
var WarnInfoIds = $("#WarnInfoIds").val();
|
||
|
$('#tt').datagrid({
|
||
|
url: '/WarnManage/GetWarnInformerListForSend?WarnInfoIds=' + WarnInfoIds,
|
||
|
columns: [[
|
||
|
{ checkbox: "true" },
|
||
|
{ field: 'PID', title: 'PID', width: 100, hidden: true },
|
||
|
{ field: 'INFORMNAME', title: '通知人姓名', width: 100 },
|
||
|
{ field: 'INFORMCODE', title: '通知人编号', width: 100, align: 'right' },
|
||
|
{ field: 'MAIL', title: '邮箱', width: 100, align: 'right' },
|
||
|
{ field: 'MOBILEPHONENUMBER', title: '电话号码', width: 100, align: 'right'}]],
|
||
|
|
||
|
onLoadSuccess: function (data) {
|
||
|
for (var i = 0; i < data.rows.length; i++) {
|
||
|
if (data.rows[i].IsTypeWithInformer == "True") {
|
||
|
$('#tt').datagrid('checkRow', i);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
})
|
||
|
function WarnIsSend() {
|
||
|
if (isValidate() == false) {
|
||
|
return false;
|
||
|
}
|
||
|
var WarnInfoIds = $("#WarnInfoIds").val();
|
||
|
var WarnInformerIds = "";
|
||
|
var selected = $('#tt').datagrid('getSelections');
|
||
|
for (var i = 0; i < selected.length; i++) {
|
||
|
WarnInformerIds += selected[i].PID + ":";
|
||
|
}
|
||
|
|
||
|
if (WarnInformerIds == "") {
|
||
|
MSI("提示", "请选择报警信息。");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
document.getElementById("selectKey").value = WarnInformerIds;
|
||
|
|
||
|
submitByButton("WarnIsSend?WarnInformerIds=" + WarnInformerIds + "&WarnInfoIds=" + WarnInfoIds);
|
||
|
}
|
||
|
</script>
|
||
|
</asp:Content>
|