yzh
2022-03-14 9f5df1b277c9f72f0aeb847de042de4934286f60
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
<%@ Page Language="C#"  masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="GwSpChargeLog.aspx.cs" Inherits="_GwSpChargeLog" %>
 
 
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server">
    <script>
        $(function () {
 
            $("#pager").Pager({
                pageSize: 20,
                onChange: function (pageIndex, pageSize) {
                    loadPageList();
                }
            });
 
            var TeDate = '<%=eDate %>';
            var TsDate = '<%=sDate %>';
            function loadPageList() {
                var SpID = $("#SpID").val();
                var ClientID = $("#ClientID").val();
                var ClientName = $("#ClientName").val();
                var sDate = $("#sDate").val();
                if (sDate == null || sDate == "") {
                    $("#sDate").val(TsDate);
                }
                var EndTime = $("#eDate").val();
                if (EndTime == null || EndTime == "") {
                    $("#eDate").val(TeDate);
                }
 
                $.ajax({
                    url: "GwSp.ashx",
                    type: "POST",
                    data: { action: "loadChargeLogPageList", SpID: SpID, ClientID: ClientID, ClientName: ClientName, sDate: sDate, EndTime: EndTime, pageSize: $("#pager").Pager("getPageSize"), pageIndex: $("#pager").Pager("getPageIndex") },
                    success: function (result) {
                        if (result.OK) {
                            $("#chargeLogTable tbody").html(result.Message.Table);
                            $("#pager").Pager("setTotalCount", result.Message.TotalCount);
                        } else {
                            mytek.alert(result.Message, result.OK);
                        }
                    }
                });
            }
 
            $(document).ready(function () {
                $(".input-daterange").datepicker({ keyboardNavigation: !1, forceParse: !1, autoclose: !0 });
 
                $(document).on("click", ".action-query", function () {
                    loadPageList();
                });
                loadPageList();
 
            })
 
        })</script>
    <form name="ChargeLogForm" method="post" action="GwSpChargeLog.aspx" id="ChargeLogForm"
    class="form-inline">
    <div class="ibox">
        <div class="input-group m-b">
            <span class="input-group-addon">SPID</span>
            <input type="text" name="SpID" id="SpID" class="form-control" />
        </div>
        <div class="input-group m-b">
            <span class="input-group-addon">客户ID</span>
            <input type="text" name="ClientID" id="ClientID" class="form-control" />
        </div>
        <div class="input-group m-b">
            <span class="input-group-addon">客户名称</span>
            <input type="text" name="ClientName" id="ClientName" class="form-control " />
        </div>
        <div class="input-group m-b">
            <div class="input-daterange input-group " id="datepicker">
                <span class="input-group-addon">时间范围&nbsp;<i class="fa fa-calendar"></i></span>
                <input type="text" class=" form-control" name="sDate" id="sDate" value="<%=sDate%>" />
                <span class="input-group-addon">到</span> <span class="input-group-addon"><i class="fa fa-calendar">
                </i></span>
                <input type="text" class=" form-control" name="eDate" id="eDate" value="<%=eDate%>" />
            </div>
        </div>
        <div class="input-group m-b">
            <input type="button" value="查询" class="btn btn-primary action-query" />
        </div>
    </div>
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover" id="chargeLogTable">
            <thead>
                <tr class="header">
                    <th>
                        编号
                    </th>
                    <th>
                        客户ID
                    </th>
                    <th>
                        客户名称
                    </th>
                    <th>
                        SPID
                    </th>
                    <th>
                        充值时间
                    </th>
                    <th>
                        充值金额
                    </th>
                    <th>
                        操作用户
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        处理时间
                    </th>
                    <th>
                        备注
                    </th>
                </tr>
            </thead>
            <tbody>
            </tbody>
            <%--<%=ViewState["list"] %>--%>
        </table>
    </div>
    </form>
    <div id="pager">
    </div>
    <%--<div class="footBar">
        <div class="pageBar">
            <%=PagerStr%>
        </div>
    </div>--%>
</asp:Content>