<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="OfflineApplyDetail.aspx.cs" Inherits="WAP2P.Web.PC.Admin.BorrowLoan.OfflineApplyDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<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">
            <ruson:Space runat="server" ID="saveSpace" Visible="false"><input type="submit" class="btn-larger c-priority iconfont" value="&#xe684; 保存" /></ruson:Space>
            <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.Name %></td>
                </tr>
                <tr>
                    <th>联系电话</th>
                    <td><% =Model.Phone %></td>
                </tr>
                <tr>
                    <th>申请时间</th>
                    <td><% =Model.CreateAt.ToDateTimeString() %></td>
                </tr>
                <asp:Repeater runat="server" ID="rptInfo">
                    <ItemTemplate>
                        <tr>
                            <th><%# Eval("Key") %></th>
                            <td><%# Eval("Value") %></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>                
                <ruson:Space runat="server" ID="admin" Visible="false">
                    <tr>
                        <th>指定跟单人</th>
                        <td>
                            <input type="text" name="adminBy" id="adminBy" class="w150 g-valign" maxlength="30" data-vtype="must" data-vmsg="请选择跟单员" value="<% =Model.AdminById.HasValue ? WAP2P.Sys.Admin.LoadOrNew(Model.AdminById.Value).Name : Model.UserId.HasValue ? WAP2P.Sys.Admin.LoadOrNew(WAP2P.Member.UserAdminMapping.GetUserSale(Model.UserId.Value)).Name : string.Empty %>" />
                            <input type="button" class="btn-base c-normal iconfont g-valign" value="&#xe60f;" onclick="$.jPopupEdit('选择跟单员账号', '../Common/AdminSelect.aspx?radio=true&fn=selectAdmin');" />
                            <script>
                                function selectAdmin(obj) {
                                    if (obj && obj.admins && obj.admins.length)
                                        $('#adminBy').val(obj.admins[0].name);
                                }
                            </script>
                        </td>
                    </tr>
                </ruson:Space>
                <ruson:Space runat="server" ID="track" Visible="false">
                    <tr>
                        <th>指定跟单人</th>
                        <td><% =Model.AdminById.HasValue ? WAP2P.Sys.Admin.LoadOrNew(Model.AdminById.Value).Name : string.Empty %></td>
                    </tr>                    
                </ruson:Space>
                <tr>
                    <th>跟踪详情</th>
                    <td>
                        <ul class="m-trackinfo">
                            <ruson:Repater runat="server" ID="rptTrackLog" ItemType="WAP2P.BorrowLoan.OfflineApply.TrackLogInfo">
                                <ItemTemplate>
                                    <li>
                                        <span>【<%# Item.At.ToLocalTime().ToDateTimeString() %>】 状态：<%# Item.Status %> 记录人：<%# Item.By %></span>
                                        <span class="track-remark"><%# Item.Remark %></span>
                                    </li>
                                </ItemTemplate>
                                <EmptyTemplate>
                                    <li>无任何记录。</li>
                                </EmptyTemplate>
                            </ruson:Repater>                            
                        </ul>
                        <ruson:Space runat="server" ID="trackOper" Visible="false">                        
                            <hr />                            
                            <div class="pt10"><textarea name="remark" data-vtype="must" data-vmsg="请输入跟单详情" placeholder="请输入跟单详情"></textarea></div>
                            <div class="g-ohide mt10" style="width:60%;">
                                <div class="g-left">
                                    跟踪状态：
                                    <ruson:Select runat="server" ID="status" TipsText="请选择" data-vtype="must" data-vmsg="请选择跟单状态">
                                        <option value="已联系">已联系</option>
                                        <option value="跟踪中">跟踪中</option>
                                        <option value="已成功">已成功</option>
                                        <option value="已失败">已失败</option>
                                    </ruson:Select>
                                </div>
                                <div class="g-right"><input type="submit" class="btn-base c-priority iconfont" value="&#xe684; 添加" /></div>
                            </div>
                        </ruson:Space>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>