<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserWithdraw.aspx.cs" Inherits="JRAPI.Web.User.UserWithdraw" %>
<%@ Register src="Foot.ascx" tagname="Foot" tagprefix="uc2" %>
<%@ Register Src="Top.ascx" TagName="Top" TagPrefix="uctop" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!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 id="Head1" runat="server">
    <title>用户提现</title>
    <script src="js/jquery-1.8.0.js" type="text/javascript"></script>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script src="../DatePicker/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="js/comm.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
         <uctop:Top ID="top1" runat="server" hoverNum="4"/>
    <div id="content">
        <div class="box" id="txgl">
            <div class="txts">
                <p class="red">
                    * 注意：提现为即时提现，一般1-2小时到账!(<asp:Literal ID="liStartTime" runat="server"></asp:Literal>至<asp:Literal
                        ID="liEndTime" runat="server"></asp:Literal>为系统过帐时间,期间暂停提现)
                </p>
                <div class="zhxx">
                    <dl class="user">
                        <dt>开户银行：</dt><dd><strong><%=uc.BankName%></strong></dd>
                        <dt>开户姓名：</dt><dd><strong><%=uc.ACCount%></strong></dd>
                        <dt>银行帐号：</dt><dd><strong><%=uc.BankCard%></strong></dd>
                    </dl>
                    <dl class="money">
                        <dt>帐户余额：</dt><dd><strong><%=uc.Balance%></strong>元</dd>
                        <dt>可结算金额：</dt><dd><strong><asp:Label ID="AllowMoney" runat="server"></asp:Label></strong>元</dd>
                        <dt>提现中金额：</dt><dd><strong><asp:Label ID="inwithdraw" runat="server"></asp:Label></strong>元</dd>
                    </dl>
                </div>
                <div class="txje" runat="server" id="txje">
                    <span>提现金额:</span>
                    <asp:TextBox ID="txtMoney" Style="border: solid #DDDDDD 1px; height: 25px; margin-right: 20px;" runat="server" type="text"></asp:TextBox>
                        <span>提现密码:</span>
                    <asp:TextBox ID="txtSafeCode" Style="border: solid #DDDDDD 1px; height: 25px;;
                        margin-right: 20px;" runat="server" type="text" TextMode="Password"></asp:TextBox>
                        <span runat="server" id="smsspan">手机验证码:</span>
                    <asp:TextBox ID="txtSmsCode" Style="border: solid #DDDDDD 1px; height: 25px;width:80px;
                        margin-right: 20px;" runat="server" type="text"></asp:TextBox>
                    <input id="btnGetSmsCode" type="button" value="获取验证码" class="btn" runat="server" onclick="sendMobileCode('btnGetSmsCode')" />
                    <asp:Button ID="Button1" runat="server" CssClass="btn" Text="申请提现" onclick="Button1_Click" />
                        <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtMoney" ErrorMessage="* 请输入提现金额" ForeColor="Red" 
                        Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtMoney" Display="Dynamic" ErrorMessage="*请输入正确的提现金额" 
                        ForeColor="Red" ValidationExpression="^[1-9]\d*$"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtSafeCode" Display="Dynamic" ErrorMessage="*请输入提现密码" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="resms"
                            runat="server" ErrorMessage="* 请输入手机验证码" ControlToValidate="txtSmsCode" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                </div>
            </div>
            <p class="title">
                <b>提现记录</b></p>
                <span style=" line-height:30px; height:30px; display:block; margin-top:20px;">
                提现时间：<asp:TextBox ID="txtStartTime" runat="server" onClick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" CssClass="Wdate" Style="border: solid #DDDDDD 1px; height: 25px; width: 150px;"></asp:TextBox>
                &nbsp;
                至&nbsp;
                <asp:TextBox ID="txtEndTime" runat="server" onClick="WdatePicker({startDate:'%y-%M-01 23:59:59',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" CssClass="Wdate" Style="border: solid #DDDDDD 1px; height: 25px; width: 150px;"></asp:TextBox>
                &nbsp;
                <asp:Button ID="btnSearch" runat="server" CssClass="btn" Text="开始搜索" 
                onclick="btnSearch_Click" CausesValidation="false" />
                &nbsp;
                <!---<asp:Button ID="btnSaveExcel" runat="server" CssClass="btn" Text="导出Excel" 
                onclick="btnSaveExcel_Click" CausesValidation="false"  />--->
                </span>

            <table class="table">
                <tr>
                    <%--  <th>
                        商户ID
                    </th>
                    <th>
                        商户名称
                    </th>--%>
                    <th>
                        提现金额
                    </th>
                    <th>
                        手续费率
                    </th>
                    <th>
                        手续费
                    </th>
                    <th>
                        提现时间
                    </th>
                    <th>
                        支付时间
                    </th>
                    <th>
                        状态
                    </th>
                </tr>
                <tr>
                    <asp:Repeater ID="repList" runat="server">
                        <ItemTemplate>
                            <tr>
                               <%-- <td align="center">
                                    <%# Eval("userid") %>
                                </td>
                                <td align="center">
                                    <%# Eval("UserName") %>
                                </td>--%>
                                <td align="center">
                                    <%# Eval("WithdrawMoney")%>
                                </td>
                                <td align="center">
                                    <%=GroupCost*100%>%
                                </td>
                                <td align="center">
                                    <%# Eval("WithdrawRate")%>
                                </td>
                                <td align="center">
                                    <%# Eval("WithdrawAddtime")%>
                                </td>
                                <td align="center">
                                    <%# Eval("ProcessingTime")%>
                                </td>
                                <td align="center">
                                    <%# JRAPI.Common.pub.getWithdrawStatus(Convert.ToInt32(Eval("WithdrawStatus")))%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tr>
            </table>
            <div class="page">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" PrevPageText="上一页" AlwaysShow="True" PageSize="15" UrlPageIndexName="pageindex"
                    UrlPaging="True" CustomInfoHTML="<span>共有%RecordCount%条数据,每页%PageSize%条,当前第%CurrentPageIndex%页,共%PageCount%页</span>"
                    ShowCustomInfoSection="Right" CssClass="pager" CustomInfoClass="results" CurrentPageButtonClass="current"
                    MoreButtonsClass="separator" Width="100%" 
                    PagingButtonLayoutType="UnorderedList" 
                   >
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    <uc2:Foot ID="Foot1" runat="server" />
    </form>
</body>
</html>
