<%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="AlarmLog.aspx.cs" Inherits="AlarmLog" %>
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="Server">
|
</asp:Content>
|
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
|
<script>
|
$(function () {
|
|
$("#pager").Pager({
|
pageSize: 20,
|
onChange: function (pageIndex, pageSize) {
|
loadPage();
|
}
|
});
|
|
function loadPage() {
|
$.ajax({
|
url: "AlarmLog.ashx",
|
type: "POST",
|
data: { action: "loadAlarmLogList", pageSize: $("#pager").Pager("getPageSize"), pageIndex: $("#pager").Pager("getPageIndex") },
|
success: function (result) {
|
if (result.OK) {
|
$("#alarmTable tbody").html(result.Message.Table);
|
$("#pager").Pager("setTotalCount", result.Message.TotalCount);
|
} else {
|
mytek.alert(result.Message, result.OK);
|
}
|
}
|
});
|
}
|
|
$(document).ready(function () {
|
loadPage();
|
});
|
|
|
})
|
</script>
|
</asp:Content>
|
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server">
|
<div class="col-sm-12">
|
<table class="table table-striped table-bordered table-hover" id="alarmTable">
|
<thead>
|
<tr>
|
<td class="col-md-1">
|
编号
|
</td>
|
<td class="col-md-1">
|
告警类型
|
</td>
|
<td class="col-md-4">
|
内容
|
</td>
|
<td class="col-md-1">
|
时间
|
</td>
|
<td class="col-md-1">
|
是否恢复
|
</td>
|
<td class="col-md-1">
|
恢复时间
|
</td>
|
<td class="col-md-3">
|
恢复详情
|
</td>
|
</tr>
|
</thead>
|
<tbody>
|
</tbody>
|
</table>
|
<div id="pager">
|
</div>
|
</div>
|
</asp:Content>
|