<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="UserQuotaLogDetail.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Member.UserQuotaLogDetail" %>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <form class="auto" method="post" action="<% =Request.RawUrl %>" onsuccess="parent.$.jPopupEdit.close(true);">
        <div class="m-editbar">
            <input type="submit" class="btn-larger c-priority iconfont" value="&#xe684; 保存" />
            <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 class="g-fbold"><%= GetUserDisplay(Model.UserId, Model.UserName) %></td>
                </tr>
                <tr>
                    <th>申请借款类型</th>
                    <td><%= Model.BorrowTypeName %></td>
                </tr>
                <tr>
                    <th>申请额度</th>
                    <td><%= Model.ApplyAmount.ToMoneyString() %> 元</td>
                </tr>
                <tr>
                    <th>基本认证情况</th>
                    <td><%= GetBasicStatus(user) %></td>
                </tr>
                <tr>
                    <th>基本资料认证情况</th>
                    <td><%= GetDataStatus(user) %></td>
                </tr>
                <tr>
                    <th>借款资料认证情况</th>
                    <td><%= GetBorrowInfoStatus() %></td>
                </tr>
                <tr>
                    <th>现有额度</th>
                    <td><%= Model.QuotaOld.ToMoneyString() %> 元</td>
                </tr>
                <tr>
                    <th>申请时间</th>
                    <td><%= Model.CreateAt.ToDateTimeString() %></td>
                </tr>
                <tr>
                    <th>申请备注</th>
                    <td><%= Model.ApplyRemark.BrEncode() %></td>
                </tr>
            </table>
            <ruson:Space runat="server" ID="handle" Visible="false">
                <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th class="info-listhead" colspan="2">审核状态</th>
                    </tr>
                    <tr id="tr_status">
                        <th>操作员处理</th>
                        <td>
                            <div class="ui-radio">
                                <label><input name="status" type="radio" value="0">未审核</label>
                                <label><input name="status" type="radio" value="1">待复审</label>
                                <label><input name="status" type="radio" value="200" checked="checked">通过</label>
                                <label><input name="status" type="radio" value="-1">拒绝</label>
                            </div>
                        </td>
                    </tr>
                    <tr id="tr_applyAmount">
                        <th>通过额度</th>
                        <td><input type="text" name="verifyApplyAmount" class="w150 ui-float" data-vtype="money" value="<%= Model.ApplyAmount.ToMoneyString() %>" data-vmsg="请输入正确的金额" />元</td>
                    </tr>
                    <tr>
                        <th>有效期</th>
                        <td><input type="text" name="expires" value="<% =Model.Expires.ToDateString() %>" placeholder="长期" data-vtype="date" data-vmust="false" data-vmsg="请输入正确的日期" class="ui-date w150"  /></td>
                    </tr>
                    <tr>
                        <th>操作员备注</th>
                        <td><textarea name="verifyRemark" data-vtype="must" data-vmsg="请输入操作员备注" ></textarea></td>
                    </tr>
                </table>
            </ruson:Space>
            <ruson:Space runat="server" ID="processing" Visible="false">
                <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th class="info-listhead" colspan="2">审核状态</th>
                    </tr>
                    <tr>
                        <th>操作员处理结果</th>
                        <td><%= Model.Status.GetDescription() %></td>
                    </tr>
                    <ruson:Space runat="server" ID="passAmount" Visible="false">
                        <tr>
                            <th>通过额度</th>
                            <td><%= Model.PassAmount.ToMoneyString() %> 元</td>
                        </tr>
                        <tr>
                            <th>有效期</th>
                            <td><% =Model.Expires.ToDateString("长期") %></td>
                        </tr>
                    </ruson:Space>
                    <tr>
                        <th>操作员备注</th>
                        <td><%= Model.VerifyRemark.BrEncode() %></td>
                    </tr>
                    <tr>
                        <th>操作员名称</th>
                        <td><%= Model.VerifyAdminName %></td>
                    </tr>
                    <tr>
                        <th>处理时间</th>
                        <td><%= Model.VerifyAt.ToDateTimeString() %></td>
                    </tr>
                </table>
            </ruson:Space>
        </div>
    </form>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#tr_status input[name='status']").click(function () {
                if ($(this).val() != '200') {
                    $('#tr_applyAmount').hide();
                } else {
                    $('#tr_applyAmount').show();
                }
            });
        });
    </script>
</asp:Content>
