@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right as string;
    string BrandId = ViewBag.BrandId as string;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>商户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
    <script src="/admin/js/jquery-1.10.1.min.js"></script>
    <style>
        .layui-input-inline{
            width: 175px !important;
        }
        .layui-form-label{
            width: 85px !important;
        }
        .layui-inline{
            margin-right: 0px !important;
        }        
        .w100{
            width: 100px !important;
        }
        .ml50{
            margin-left: 50px !important;
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto">
                <input type="hidden" name="BrandId" value="@BrandId">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">商户编号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="MerchantNo" 
                                autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">商户名称</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="MerchantName" 
                                autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">创客编号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="MakerCode" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">创客姓名</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="RealName" autocomplete="off">
                        </div>
                    </div>
                
                    <div class="layui-inline">
                        <label class="layui-form-label">商户创客编号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="MerchantMakerCode" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">商户手机号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="MerchantMobile" 
                                autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">快钱商户号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="KqMerNo" placeholder="快钱商户号"
                                autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">SN号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="KqSnNo" placeholder="SN号" autocomplete="off">
                        </div>
                    </div>
                
                    <div class="layui-inline">
                        <label class="layui-form-label">SN仓库编号</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="StoreNo" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">SN仓库名称</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" name="StoreName" autocomplete="off">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">商户状态</label>
                        <div class="layui-input-inline">
                            <select id="MerStatusSelect" name="MerStatusSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">正常</option>
                                <option value="1">冻结</option>
                                <option value="2">关闭</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">激活状态</label>
                        <div class="layui-input-inline">
                            <select id="ActiveStatusSelect" name="ActiveStatusSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">未激活</option>
                                <option value="1">已激活</option>
                                <option value="2">SN已返现</option>
                            </select>
                        </div>
                    </div>
                
                    <div class="layui-inline">
                        <label class="layui-form-label">激活类型</label>
                        <div class="layui-input-inline">
                            <select id="ActTypeSelect" name="ActTypeSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">正常激活</option>
                                <option value="1">首次已激活MPOS</option>
                                <option value="2">首次已激活KPOS</option>
                                <option value="3">循环机划拨激活</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">商户创客类型</label>
                        <div class="layui-input-inline">
                            <select id="MerUserTypeSelect" name="MerUserTypeSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">非商户型创客</option>
                                <option value="1">商户型创客</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline" style="width:300px">
                        <label class="layui-form-label">注册时间</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" readonly name="KqRegTimeData" id="KqRegTime" autocomplete="off">
                        </div>
                    </div>
                    @{Dictionary<string, string> TopUserDic = new MySystem.DictionaryClass().getTopUserDic();}
                    <div class="layui-inline">
                        <label class="layui-form-label">顶级创客</label>
                        <div class="layui-input-inline">
                            <select id="TopUserId" name="TopUserId" lay-search="">
                                <option value="">全部...</option>
                                @foreach (string key in TopUserDic.Keys)
                                {
                                <option value="@key">@TopUserDic[key]</option>
                                }
                            </select>
                        </div>
                    </div>
                
                    <div class="layui-inline ml50">
                        <button class="layui-btn" lay-submit lay-filter="LAY-list-front-search">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
                        </button>
                        <button class="layui-btn" lay-submit lay-filter="LAY-list-front-searchall">
                            <i class="layui-icon layui-icon-list layuiadmin-button-btn"></i>全部
                        </button>
                        @if (RightInfo.Contains("," + right + "_export,"))
                        {
                            <button class="layui-btn" data-type="ExportExcel">
                                <i class="layui-icon layui-icon-export layuiadmin-button-btn"></i>导出
                            </button>
                        }
                    </div>
                </div>
            </div>

            <div class="layui-card-body">
                
                <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
                <script type="text/html" id="table-list-tools">
                    @if (RightInfo.Contains("," + right + "_sycn,"))
                    {
                    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="sycntrade"><i class="layui-icon layui-icon-edit"></i>同步交易额</a>
                    }
                </script>
            </div>
        </div>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script src="/layuiadmin/modules_main/PosMerchantInfo_Admin.js?r=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
    <script>
        var BrandId = '@BrandId';
    </script>
</body>
</html>