wangsheng
2021-09-26 fad59c96add549467aeb66a0e1c39950886ce02b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<%@ 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>