<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SMSPayDetailList.aspx.cs" Inherits="OAWeb.SMSGateway.SMSPayDetailList" %>

<%@ Register Src="../UserControls/SMSGatewayNav.ascx" TagName="SMSGatewayNav" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:SMSGatewayNav ID="SMSGatewayNav1" runat="server" />
            </td>
            <td class="main_center">
                <div class="page_main">
                    <div class="page_content">
                        <table class="data_title" cellspacing="3">
                            <tr>
                                <td class="data_caption">
                                    短信充值历史
                                </td>
                            </tr>
                            <tr>
                                <td class="data_field">
                                    客户：<asp:HiddenField ID="hdfCustomerId" runat="server" />
                                    <asp:TextBox ID="txtCustomerName" runat="server" CssClass="text_box width200" ReadOnly="True"></asp:TextBox>&nbsp;<asp:Button
                                        ID="btnSelect" runat="server" Text="选择" OnClientClick="OpenRadioDialog('/Dialog/CustomerDialog.aspx','选择客户',CallRadioFun);return false;" />&nbsp;<input type="button" value="清除" onclick="ClearCsutomer();" />
                                    &nbsp;<asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btn_77px" />
                                </td>
                            </tr>
                        </table>
                        <div class="list">
                            <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                                GridLines="None" OnRowDataBound="gvData_RowDataBound" CellPadding="0" CssClass="table_list"
                                EnableModelValidation="True">
                                <RowStyle HorizontalAlign="Left" />
                                <Columns>
                                    <asp:BoundField DataField="CustomerName" HeaderText="客户名称"></asp:BoundField>
                                    <asp:BoundField DataField="PayType" HeaderText="支付方式"></asp:BoundField>
                                    <asp:BoundField DataField="Amount" HeaderText="充值金额" DataFormatString="{0:0.00 元}" />
                                    <asp:BoundField DataField="AuditState" HeaderText="状态"></asp:BoundField>
                                    <asp:BoundField DataField="EnterDate" HeaderText="录入日期"></asp:BoundField>
                                    <asp:BoundField DataField="AuditDate" HeaderText="审核时间"></asp:BoundField>
                                    <asp:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnAudite" runat="server">审核</asp:LinkButton>
                                            <asp:LinkButton ID="lbtnDelete" runat="server">删除</asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle Width="200px" />
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <div class="pager-bar">
                                <webdiyer:AspNetPager ID="pager" runat="server" CssClass="anpager" currentpagebuttonclass="cpb"
                                    PageSize="20" NextPageText="下一页" LastPageText="页 尾" FirstPageText="第一页" PrevPageText="上一页"
                                    ShowBoxThreshold="10" SubmitButtonText="跳 转" UrlPaging="True">
                                </webdiyer:AspNetPager>
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        function CallRadioFun(text, value) {
            $("#<%=hdfCustomerId.ClientID %>").val(value);
            $("#<%=txtCustomerName.ClientID %>").val(text);
        }
        function ClearCsutomer() {
            $("#<%=hdfCustomerId.ClientID %>").val("");
            $("#<%=txtCustomerName.ClientID %>").val("");
        }
    </script>
</asp:Content>
