<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Moneys4.aspx.cs" Inherits="Pages_sxt_Moneys4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:12px;">
        <asp:GridView ID=GridView1 runat=server Caption="客户充值记录" OnPageIndexChanging=GridView1_PageIndexChanging >
            <Columns>
                <asp:TemplateField HeaderText="序号" ItemStyle-HorizontalAlign=Center>
                    <ItemTemplate>
                        <%#Container.DataItemIndex+1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="客户名称" ItemStyle-HorizontalAlign=Center HeaderStyle-Wrap=false ItemStyle-Wrap=false>
                    <ItemTemplate>
                        <%#CRM.Common.InitData.GetSalesName(Eval("eid").ToString()) %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="客户手机" HeaderStyle-Wrap=false ItemStyle-Wrap=false>
                    <ItemTemplate>
                        <%#GetClientMobile(Eval("eid").ToString()) %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="充值" HeaderText="本次充值" ItemStyle-HorizontalAlign=Center />
                <asp:TemplateField HeaderText="充值总额" HeaderStyle-Wrap=false ItemStyle-Wrap=false>
                    <ItemTemplate>
                        <%#GetTotleMoney(Eval("eid").ToString()) %>
                    </ItemTemplate>
                </asp:TemplateField>            
                <asp:BoundField DataField="消费" HeaderText="消费" ItemStyle-HorizontalAlign=Center />
                <asp:BoundField DataField="余额" HeaderText="余额" ItemStyle-HorizontalAlign=Center/>
                <asp:BoundField DataField="日期" HeaderText="日期" DataFormatString="{0:yyyy-MM-dd HH:MM}" ItemStyle-Width=100 ItemStyle-HorizontalAlign=Center/>
            </Columns>
            <EmptyDataTemplate>无充值/消费记录</EmptyDataTemplate>
        </asp:GridView>
        
    <div style=" display:none;">
        <table width=100% style="margin-top:48px;" cellpadding=1 cellspacing=1>
            <tr>
                <td colspan=3 style="border-bottom:solid 1px Black;"><b>短信价格设置</b></td><td>&nbsp;</td>
            </tr>
            <tr><td style="width:80px; text-align:center;">当前价格</td><td><asp:Label ID=Label1 runat=server /></td><td>&nbsp;</td></tr>
            <tr>
                <td style="width:80px; text-align:center;">新价格</td><td width=80><asp:TextBox ID=TextBox1 runat=server /></td>
                <td style="width:80px; text-align:center;"><asp:Button ID=Button2 runat=server Text=提交 OnClick=Button2_Click OnClientClick="return confirm('确定？')" /></td>
                <td>&nbsp;</td>
            </tr>           
        </table>
    </div>        
    </div>
    </form>
    </body>
</html>
