<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="AutoBidDetail.aspx.cs" Inherits="WAP2P.Web.PC.User.Loan.AutoBidDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-userbox m-buserbox pb50">
        <div class="pa20 g-fright">
            <a href="AutoBidList<%= PageExt %>"><< 返回选择页面</a>
        </div>
        <div class="form-big ml150">
            <form class="js-auto js-vtip" method="post" action="<% =Request.RawUrl.UrlEncodeParam() %>" data-onsuccess="location.href='AutoBidList<% =PageExt %>';">
                <div class="input-big">
                    <label class="leftfont">方案名称</label>
                    <input type="text" class="text w230" name="name" maxlength="50" value="<% =model.Name.HtmlEncode() %>" placeholder="请输入您的方案名称" data-vtype="must" data-vmsg="请输入您的方案名称。" />
                </div>
                <div class="input-big">
                    <label class="leftfont">借款类型</label>
                    <ruson:Select runat="server" ID="borrowTypeId" TipsText="不限制"></ruson:Select>
                </div>
                <div class="input-big">
                    <label class="leftfont">借款金额区间</label>
                    <input type="text" name="validAmountMin" value="<% =model.ValidAmountMin.ToMoneyString() %>" class="text w130 ui-float input-moneyicon" placeholder="请输入最小借款金额" data-vtype="money" data-vmust="false" data-vmsg="请输入正确的金额。" /><span class="ml10 mr5 mt5">-</span>
                    <input type="text" name="validAmountMax" value="<% =model.ValidAmountMax.ToMoneyString() %>" class="text w130 ui-float input-moneyicon" placeholder="请输入最大借款金额" data-vtype="money" data-vmust="false" data-vmsg="请输入正确的金额。" />
                </div>

                <div class="input-big">
                    <label class="leftfont">借款期限区间</label>
                    <input type="text" class="text w130 ui-int input-monthicon" name="validDateMin" value="<% =model.ValidDateMin %>" placeholder="请输入最小时间" data-vtype="number" data-vmsg="请输入正确的数值。" data-vmust="false" /><span class="ml10 mr10">-</span><input type="text" class="text w130 ui-int input-monthicon" name="validDateMax" value="<% =model.ValidDateMax %>" placeholder="请输入最大时间" data-vtype="number" data-vmsg="请输入正确的数值。" data-vmust="false" />                    
                </div>

                <div class="input-big">
                    <label class="leftfont">借款利率区间</label>
                    <input type="text" class="text w130 ui-interest input-percentageicon" name="validInterestMin" value="<% =(model.ValidInterestMin * 100).ToInterestString() %>" placeholder="最小年化率" data-vtype="money|range" data-vmsg="请输入正确的利率。" data-vmust="false" data-vmin="0" data-vmax="100" /><span class="ml10 mr10">-</span><input type="text" class="text w130 ui-interest input-percentageicon" name="validInterestMax" value="<% =(model.ValidInterestMax * 100).ToInterestString() %>" placeholder="最大年化率" data-vtype="money|range" data-vmsg="请输入正确的利率。" data-vmust="false" data-vmin="0" data-vmax="100" />
                </div>

                <div class="ui-radio">                    
                    <span class="leftfont">借款人关系</span>                    
                    <label><input type="radio" name="relatedFilter" value="" <% =model.RelatedFilter == null ? "checked=\"checked\"" : string.Empty %>/> 不限制</label>
                    <label><input type="radio" name="relatedFilter" value="<% =(int)WAP2P.Member.Related.RelatedType.Friend %>" <% =model.RelatedFilter == WAP2P.Member.Related.RelatedType.Friend ? "checked=\"checked\"" : string.Empty %>/> 须为我的好友</label>
                    <label><input type="radio" name="relatedFilter" value="<% =(int)WAP2P.Member.Related.RelatedType.Black %>" <% =model.RelatedFilter == WAP2P.Member.Related.RelatedType.Black ? "checked=\"checked\"" : string.Empty %>/> 须不在我的黑名单中</label>                    
                </div>

                <div class="input-big">
                    <label class="leftfont">借款人信用</label>
                    <span> <ruson:Select runat="server" ID="creditLevelId" TipsText="不限制"></ruson:Select> 以上
                    </span>
                </div>

                <div class="input-big">
                    <label class="leftfont">投标金额区间</label>
                    <input type="text" class="text w130 ui-float input-moneyicon" name="bidAmountMin" value="<% =model.BidAmountMin.ToMoneyString() %>" placeholder="请输入最小金额" data-vtype="money" data-vmust="false" data-vmsg="请输入正确的金额。" />
                    <span class="ml10 mr5 mt5">-</span>
                    <input type="text" class="text w130 ui-float input-moneyicon" name="bidAmountMax" value="<% =model.BidAmountMax.ToMoneyString() %>" placeholder="请输入最大金额" data-vtype="money" data-vmust="false" data-vmsg="请输入正确的金额。" />
                </div>

                <div class="input-big ui-vcheckbox ml99">
                    <% =HtmlHelper.CheckBox("active", "启用此方案", model.Active) %>
                    <label for="agreement"><input type="checkbox" name="agreement" value="true" id="agreement" data-vtype="group" data-vmin="1" data-vmsg="您还没有同意智能投标协议" /> 同意<a href="/Agreement/?type=autobid" target="_blank">智能投标服务协议</a></label>
                </div>
                <div class="btn-submits mt10 ml99">
                    <input type="submit" class="btn-bbord c-normal wg3" value="提 交" data-success-text="保存成功" />
                    <div class="wg3"><em class="m-sumtip js-vsum"></em></div>                    
                </div>
            </form>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script>
        var msg = '<% =CurrentUser.IsBaseValided().Message %>';
        if (msg) {
            $.jError('请通过' + msg + '验证后再操作。', '错误', 300, function () { history.back(); });
        }
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>
