@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right 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">
                <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="UserIdMakerCode" 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="UserIdRealName" 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="StoreIdCode" 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="StoreIdName" 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="PosSn" placeholder="" autocomplete="off">
                        </div>
                    </div>
                    @* <div class="layui-inline">
                        <label class="layui-form-label">是否调升费率</label>
                        <div class="layui-input-inline">
                            <select id="UpFeeFlagSelect" name="UpFeeFlagSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0" selected="selected">未调升</option>
                                <option value="1">已调升</option>
                            </select>
                        </div>
                    </div> *@
                    <div class="layui-inline">
                        <label class="layui-form-label">绑定状态</label>
                        <div class="layui-input-inline">
                            <select id="BindingStateSelect" name="BindingStateSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">未绑定</option>
                                <option value="1">已绑定</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">激活状态</label>
                        <div class="layui-input-inline">
                            <select id="ActivationStateSelect" name="ActivationStateSelect" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">未激活</option>
                                <option value="1">已激活</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">激活时间</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" type="text" readonly name="ActivationDateData"
                                id="ActivationTime" placeholder="激活时间" 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" readonly name="BindingDateData" id="BindingTime"
                                placeholder="绑定时间" autocomplete="off">
                        </div>
                    </div>
                    @{
                        Dictionary<string, string> ProfitObjectsActivesDic = new MySystem.DictionaryClass().getKqProductBrandDic();
                    }
                    <div class="layui-inline">
                        <label class="layui-form-label">品牌</label>
                        <div class="layui-input-inline">
                            <select id="BrandSelect" name="BrandSelect" lay-search="">
                                <option value="">全部...</option>
                                @foreach (string key in ProfitObjectsActivesDic.Keys)
                                {
                                    <option value="@key" @(key == "1" ? "selected" : "")>@ProfitObjectsActivesDic[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>
                        }
                        @if (RightInfo.Contains("," + right + "_batchset,"))
                        {
                            <button class="layui-btn" data-type="BatchSetting"><i
                                class="layui-icon layui-icon-edit layuiadmin-button-btn"></i>批量调升费率</button>
                        }
                        @if (RightInfo.Contains("," + right + "_import,"))
                        {
                            @* <button class="layui-btn" data-type="ImportData"><i class="layui-icon layui-icon-export
                                layuiadmin-button-btn"></i>导入机具费率</button> *@
                            @* <button class="layui-btn" data-type="ImportData"><i
                                class="layui-icon layui-icon-upload layuiadmin-button-btn"></i>导入调低机具费率</button> *@
                        }
                    </div>
                </div>
            </div>
            <div id="excelForm" style="display:none; padding:20px;">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">模板下载</label>
                        <div class="layui-form-mid layui-word-aux" id="excelTemp">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">excel文件</label>
                        <div class="layui-form-mid layui-word-aux">
                            <div class="layui-upload">
                                <input type="file" id="ExcelFile" name="ExcelFile" value="">
                            </div>
                            <div class="mt10" id="ExcelFileList">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item ml10">
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn" onclick="ConfirmImport()">立即导入</button>
                    </div>
                </div>
            </div>

            <div class="layui-card-body">
                <blockquote class="layui-elem-quote layui-text">
                    总机具(台)：<span style="color: #f00;" id="TotalCount">0</span>
                </blockquote>
                <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
                <script type="text/html" id="table-list-tools">
                    @if (RightInfo.Contains("," + right + "_edit,"))
                    {
                            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
                    }
                    @if (RightInfo.Contains("," + right + "_Home,"))
                    {
                            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="home"><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/PosMachinesTwoChange_Admin.js?r=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
    <script>

    </script>
</body>

</html>