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

<!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="客户充值管理" OnRowCommand="GridView_RowCommand" >
            <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:BoundField DataField="消费" HeaderText="消费" ItemStyle-HorizontalAlign=Center />
                <asp:BoundField DataField="余额" HeaderText="余额" ItemStyle-HorizontalAlign=Center/>
                <asp:BoundField DataField="可用余额" HeaderText="可用余额" ItemStyle-HorizontalAlign=Center ItemStyle-Width=80 />
                <asp:BoundField DataField="日期" HeaderText="日期" DataFormatString="{0:yyyy-MM-dd HH:MM}" ItemStyle-Width=100 ItemStyle-HorizontalAlign=Center/>
                <asp:TemplateField HeaderStyle-Wrap=false ItemStyle-Wrap=false HeaderText="操作" ItemStyle-Width=80>
                    <ItemTemplate>
                        <asp:Button ID=Button3 runat=server CommandName="Yes" CommandArgument='<%#Eval("id").ToString() %>' Text="审核" OnClientClick="return confirm('确定？审核后不能修改！')" />
                        <asp:Button ID=Button4 runat=server CommandName="Del" CommandArgument='<%#Eval("id").ToString() %>' Text="删除" OnClientClick="return confirm('确定？审核后不能恢复！')"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>无充值/消费记录</EmptyDataTemplate>
        </asp:GridView>
        
    <div style="display:none;">
        <table width=100% style="margin-top:48px;">
            <tr>
                <td colspan=3 style="border-bottom:solid 1px Black;"><b>帐户充值</b></td><td>&nbsp;</td>
            </tr>
            <tr>
                <td style="width:80px;">充值金额</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>
