wangsheng
2022-03-22 4e4227f9d9b0c7efc4e4afd2bb371bae9fe6cc03
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<%@ Page Language="C#"  masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="GwDm.aspx.cs" Inherits="_GwDm" %>
 
 
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <script>
        $(function () {
 
            $("#pager").Pager({
                pageSize: 20,
                onChange: function (pageIndex, pageSize) {
                    loadPageList();
                }
            });
 
            var time = '<%=string.Format("{0}",DateTime.Today.ToString("yyyy-MM-dd"))  %>';
            function loadPageList() {
                var SelectedApID = $("#ApID").val();
                var SelectedOpID = $("#OpID").val();
                var SelectedSPID = $("#SPID").val();
                var SelectedDestnationID = $("#DestnationID").val();
                var SelectedDate = $("#sDate").val();
                if (SelectedDate == null || SelectedDate == "") {
                    $("#sDate").val(time);
                }
                $.ajax({
                    url: "GwDm.ashx",
                    type: "POST",
                    data: { action: "loadGwDmPageList", SelectedApID: SelectedApID, SelectedOpID: SelectedOpID, SelectedSPID: SelectedSPID, SelectedDestnationID: SelectedDestnationID, SelectedDate: SelectedDate, pageSize: $("#pager").Pager("getPageSize"), pageIndex: $("#pager").Pager("getPageIndex") },
                    success: function (result) {
                        if (result.OK) {
                            $("#gwDmTable tbody").html(result.Message.Table);
                            $("#pager").Pager("setTotalCount", result.Message.TotalCount);
                        } else {
                            mytek.alert(result.Message, result.OK);
                        }
                    }
                });
            }
 
            $(document).ready(function () {
 
                $(document).on("click", ".action-query", function () {
                    loadPageList();
                });
 
                loadPageList();
            });
 
        })
    </script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="content" ID="Content3">
    <form name="Form_ID" method="post" action="GwDm.ashx?action=loadGwDmPageList" id="Form_ID"
    class="form-inline">
    <div class="ibox">
        <div class="form-group">
            <div class="input-group m-b">
                <span class="input-group-addon">APID</span>
                <input type="text" class="form-control" name="ApID" id="ApID" />
            </div>
        </div>
        <div class="form-group">
            <div class="input-group m-b">
                <span class="input-group-addon">OPID</span>
                <input type="text" class="form-control" name="OpID" id="OpID" />
            </div>
        </div>
        <div class="form-group">
            <div class="input-group m-b">
                <span class="input-group-addon">SPID</span>
                <input type="text" class="form-control" name="SPID" id="SPID" />
            </div>
        </div>
        <div class="form-group">
            <div class="input-group m-b">
                <span class="input-group-addon">接收号码</span>
                <input type="text" class="form-control" name="DestnationID" id="DestnationID" />
            </div>
        </div>
        <div class="form-group">
            <div class="input-group date m-b">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input name="sDate" id="sDate" class="form-control col-md-1" value="<%=string.Format("{0}",DateTime.Today.ToString("yyyy-MM-dd"))  %>"
                    type="text">
            </div>
        </div>
        <div class="form-group">
            <div class="input-group m-b">
                <input type="button" value="查询" class="btn btn-primary action-query" />
            </div>
        </div>
    </div>
    </form>
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover" id="gwDmTable">
            <thead>
                <tr class="header">
                    <th>
                        消息ID
                    </th>
                    <th>
                        CLIENTID
                    </th>
                    <th>
                        SPID
                    </th>
                    <th>
                        APID
                    </th>
                    <th>
                        OPID
                    </th>
                    <th>
                        源发号码
                    </th>
                    <th>
                        接收号码
                    </th>
                    <th>
                        扩展号
                    </th>
                    <th>
                        发送标识
                    </th>
                    <th>
                        消息格式
                    </th>
                    <th>
                        消息长度
                    </th>
                    <th>
                        时间
                    </th>
                </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>
    <div id="pager">
    </div>
</asp:Content>