@using MySystem.Models;
@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right as string;
    string UserId = ViewBag.UserId as string;
    List<Users> TopUsers = ViewBag.TopUsers as List<Users>;
    List<KqProducts> Brands = ViewBag.Brands as List<KqProducts>;
    
}
<!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="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="TransRecordNo" 
                                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="CreateDateData" id="CreateDate"
                            placeholder="交易时间" autocomplete="off">
                        </div>
                    </div>
                
                    <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(Users TopUser in TopUsers)
                                {
                                <option value="@TopUser.Id">@TopUser.RealName</option>
                                }
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">交易类型</label>
                        <div class="layui-input-inline">
                            <select id="ChangeType" name="ChangeType" lay-search="">
                                <option value="">全部...</option>
                                <option value="0">激活奖励</option>
                                <option value="1">交易分润</option>
                                <option value="11">月月红</option>
                                <option value="2">提现申请</option>
                                <option value="3">提现代付</option>
                                <option value="4">提现手续费</option>
                                <option value="5">提现税点扣除</option>
                                <option value="6">提现失败，解冻</option>
                                <option value="61">人工冻结</option>
                                <option value="62">人工解冻</option>
                                <option value="63">人工扣减</option>
                                <option value="64">人工增加</option>
                                <option value="7">系统扣除</option>
                                <option value="10">办卡奖励</option>
                                <option value="20">余额支付</option>
                                <option value="21">余额退款</option>
                                <option value="22">余额退款手续费</option>
                                <option value="30">红包奖励</option>
                                <option value="31">活动奖励</option>
                                <option value="40">商户达标返</option>
                                <option value="50">开机奖励</option>
                                <option value="60">流量卡分佣</option>
                                <option value="111">分润补贴</option>
                                <option value="112">直推奖励</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">产品类型</label>
                        <div class="layui-input-inline">
                            <select id="ProductType" name="ProductType" lay-search="">
                                <option value="">全部...</option>
                                @foreach(KqProducts Brand in Brands)
                                {
                                <option value="@Brand.Id">@Brand.Name</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">
                <blockquote class="layui-elem-quote layui-text">
                    激活奖励(元)：<span style="color: #f00;" id="ChangeTypeAmount0">0.00</span>　|　交易分润(元)：<span style="color: #f00;" id="ChangeTypeAmount1">0.00</span>　|　创客开机奖励(元)：<span style="color: #f00;" id="ChangeTypeAmount50">0.00</span>　|　分润补贴(元)：<span style="color: #f00;" id="ChangeTypeAmount111">0.00</span>　| 直推奖励(元)：<span style="color: #f00;" id="ChangeTypeAmount112">0.00</span>　|　流量卡分佣(元)：<span style="color: #f00;" id="ChangeTypeAmount60">0.00</span>　|　红包奖励(元)：<span style="color: #f00;" id="ChangeTypeAmount31">0.00</span>
                    <br />
                    提现申请(元)：<span style="color: #f00;" id="ChangeTypeAmount2">0.00</span>　|　提现失败，解冻(元)：<span style="color: #f00;" id="ChangeTypeAmount6">0.00</span>　|　人工冻结(元)：<span style="color: #f00;" id="ChangeTypeAmount61">0.00</span>　| 人工解冻(元)：<span style="color: #f00;" id="ChangeTypeAmount62">0.00</span>　| 人工扣减(元)：<span style="color: #f00;" id="ChangeTypeAmount63">0.00</span>　|　人工增加(元)：<span style="color: #f00;" id="ChangeTypeAmount64">0.00</span>　|　提现税点扣除(元)：<span style="color: #f00;" id="ChangeTypeAmount5">0.00</span>
                </blockquote>
                <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
                <script type="text/html" id="table-list-tools">
                </script>
            </div>
        </div>
    </div>

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