<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="RechargeDetail.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Account.RechargeDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
    <form class="auto" method="post" action="<% =Request.RawUrl %>"  onsuccess="parent.$.jPopupEdit.close(true);">
        <div class="m-editbar">
            <% =(Model.Status == WAP2P.Account.Recharge.AuditingStatusType.Waiting && Request.QueryString["op"] == "valid") ? @"<input type=""submit"" class=""btn-larger c-priority iconfont"" value=""&#xe684; 保存"" />" : string.Empty %>            
            <input type="button" class="btn-larger c-normal iconfont" value="&#xe634; 关闭" onclick="parent.$.jPopupEdit.close();" />
        </div>
        <div class="m-content m-editcontent">  
            <table class="m-info" cellpadding="0" cellspacing="0" width="100%">  
                <tr>
                    <th>会员账号</th>
                    <td>
                        <%= Model.UserName %><input type="button" class="btn-base c-normal iconfont ml10" value="&#xe655; 查看资料" onclick="$.jPopupEdit('查看会员资料', '../Common/UserInfo.aspx?Id=<% =Model.UserId %>');" />
                    </td>
                </tr>
                <tr>
                    <th>入账银行(入账银行卡号)</th>
                    <td><%= Model.RecordedInfo %></td>
                </tr>
                <tr>
                    <th><%= Model.Type == WAP2P.Account.Recharge.RechargeType.Online ? "支付机构" : "支付银行" %></th>
                    <td><%= Model.PayPlatformName %></td>
                </tr>
                <tr>
                    <th>支付账号</th>
                    <td><%= Model.PayAccount %></td>
                </tr>
                <tr>
                    <th>订单/流水号</th>
                    <td><%= Model.OrderNo %></td>
                </tr>
                <tr>
                    <th>充值金额</th>
                    <td><%= Model.Amount.ToMoneyString() %> 元</td>
                </tr>
                <tr>
                    <th>充值手续费</th>
                    <td><%= Model.Fee.ToMoneyString() %> 元</td>
                </tr>
                <tr>
                    <th>到账金额</th>
                    <td><%= (Model.Amount - Model.Fee).ToMoneyString() %> 元</td>
                </tr>                
                <tr>
                    <th>添加时间</th>
                    <td><%= Model.CreateAt.ToDateTimeString() %></td>
                </tr>
                <% if(Model.Type == WAP2P.Account.Recharge.RechargeType.Offline) { %>
                <tr>
                    <th class="info-listhead" colspan="2">审核状态</th>
                </tr>
                <tr>
                    <th>审核状态</th>
                    <td>
                        <% if(isValid && Model.Status == WAP2P.Account.Recharge.AuditingStatusType.Waiting) { %>
                            <div class="ui-radio">                                
                                <label><input type="radio" name="status" value="<% =(int)WAP2P.Account.Recharge.AuditingStatusType.Success %>" checked="checked">通过</label>
                                <label><input type="radio" name="status" value="<% =(int)WAP2P.Account.Recharge.AuditingStatusType.Failure %>">拒绝</label>                                
                            </div>
                        <%} else { %>
                            <%= Model.Status != WAP2P.Account.Recharge.AuditingStatusType.Waiting ? string.Format("操作员[{0}] 于 {1}审核，状态为：{2}。",Model.VerifyAdminName, Model.VerifyAt.ToDateTimeString(), Model.Status.GetDescription()) : string.Empty %>
                        <% } %>
                    </td>
                </tr>
                <tr>
                    <th>充值手续费</th>
                    <td><%= isValid && Model.Status == WAP2P.Account.Recharge.AuditingStatusType.Waiting ? string.Format("<input type=\"text\" name=\"fee\" data-vtype=\"must\" data-vmsg=\"请输入充值手续费\" class=\"w100 ui-float\" value=\"{0}\" /> 元", Model.Fee.ToMoneyString()) : Model.Fee.ToMoneyString() + " 元" %></td>
                </tr>
                <tr>
                    <th>审核备注</th>
                    <td><%= isValid && Model.Status == WAP2P.Account.Recharge.AuditingStatusType.Waiting ? string.Format("<textarea name=\"userRemark\" data-vtype=\"must\" data-vmsg=\"请输入审核备注\" >{0}</textarea>", Model.UserRemark.HtmlEncode()) : Model.UserRemark.BrEncode() %></td>
                </tr>                               
                <%} %>
            </table>
        </div>
    </form>    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>
