<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('Funding details')" />
    <th:block th:include="include :: layout-latest-css" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="gray-bg">

<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="user-form">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p th:utext="#{adam.transquery.query.recharge.transactionId}"></p>：<input type="text" name="transactionId"/>
                            </li>
                            <li>
                                <p th:utext="#{adam.transquery.query.recharge.walletNo}"></p>：<input type="text" name="walletNo"/>
                            </li>
<!--                            ${@dict.getLabel('sys_oper_type',operLog.businessType)}-->
<!--                            <li class="select-selectpicker">-->
<!--                                <label>操作类型： </label><select id="businessTypes" th:with="type=${@dict.getType('sys_oper_type')}" class="selectpicker" data-none-selected-text="请选择" multiple>-->
<!--                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
<!--                            </select>-->
<!--                            </li>-->
<!--                            <li>-->
<!--                                <label>操作状态：</label><select name="status" th:with="type=${@dict.getType('sys_common_status')}">-->
<!--                                <option value="">所有</option>-->
<!--                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
<!--                            </select>-->
<!--                            </li>-->
                            <li>
                                <p th:utext="#{adam.transquery.query.recharge.currency}"></p>：
                                <select name="currency" th:with="type=${@dict.getType('adam_trans_currency')}">
                                    <option value=""><p th:utext="#{admin.page.common.all}"></p></option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
                                </select>
                            </li>
                            <li>
                                <p th:utext="#{adam.transquery.query.recharge.transactionAmount}"></p>：
                                <input type="text" name="transactionAmountBegin"/> To <input type="text" name="transactionAmountEnd"/>
                            </li>
                        </ul>
                        <ul>
                            <li class="select-time">
                                <label><p th:utext="#{adam.transquery.query.recharge.createDate}"></p>： </label>
                                <input type="text" class="time-input" id="createDateBegin" th:placeholder="#{admin.page.common.startTime}" name="createDateBegin"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="createDateEnd" th:placeholder="#{admin.page.common.endTime}" name="createDateEnd"/>
                            </li>
                            <li class="select-time">
                                <label><p th:utext="#{adam.transquery.query.recharge.completedDate}"></p>： </label>
                                <input type="text" class="time-input" id="completedDateBegin" th:placeholder="#{admin.page.common.startTime}" name="completedDateBegin"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="completedDateEnd" th:placeholder="#{admin.page.common.endTime}" name="completedDateEnd"/>
                            </li>
                            <li>
                                <p th:utext="#{adam.transquery.query.recharge.transactionStatus}"></p>：
                                <select name="transactionStatus" th:with="type=${@dict.getType('adam_recharge_status')}">
                                    <option value=""><p th:utext="#{admin.page.common.all}"></p></option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
                                </select>
<!--                                <select name="transactionStatus">-->
<!--                                    <option value=""><p th:utext="#{adam.user.userStatus.all}"></p></option>-->
<!--                                    <option th:text="ADMIN" th:value="ADMIN"></option>-->
<!--                                    <option th:text="COMMON" th:value="COMMON"></option>-->
<!--                                </select>-->
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;<p th:utext="#{admin.page.common.search}"></p></a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;<p th:utext="#{admin.page.common.reset}"></p></a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbar" role="group">
<!--                <a class="btn btn-success" onclick="$.operate.addTab()" shiro:hasPermission="system:user:add">-->
<!--                    <i class="fa fa-plus"></i> <p th:utext="#{admin.page.common.new}"></p>-->
<!--                </a>-->
<!--                <a class="btn btn-primary single disabled" onclick="$.operate.editTab()" shiro:hasPermission="system:user:edit">-->
<!--                    <i class="fa fa-edit"></i> <p th:utext="#{admin.page.common.modify}"></p>-->
<!--                </a>-->
<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">-->
<!--                    <i class="fa fa-remove"></i> <p th:utext="#{admin.page.common.delete}"></p>-->
<!--                </a>-->
<!--                <a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import">-->
<!--                    <i class="fa fa-upload"></i> <p th:utext="#{admin.page.common.import}"></p>-->
<!--                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:user:export">
                    <i class="fa fa-download"></i> <p th:utext="#{admin.page.common.export}"></p>
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer" />
<th:block th:include="include :: layout-latest-js" />
<th:block th:include="include :: ztree-js" />
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:user:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:user:remove')}]];
    var resetPwdFlag = [[${@permission.hasPermi('system:user:resetPwd')}]];
    var prefix = ctx + "adam/trans-query";

    $(function() {
        var panehHidden = false;
        if ($(this).width() < 769) {
            panehHidden = true;
        }
        $('body').layout({ initClosed: panehHidden, west__size: 185 });
        queryUserList();
    });

    function queryUserList() {
        var options = {
            url: prefix + "/rechargeList",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/rechargeListExport",
            importUrl: prefix + "/importData",
            importTemplateUrl: prefix + "/importTemplate",
            sortName: "createTime",
            sortOrder: "desc",
            modalName: "rechargeList",
            columns: [{
                checkbox: false
            },
                {
                    field: 'transactionId',
                    title: [[#{adam.transquery.rechargeList.transactionId}]]
                },
                {
                    field: 'walletNo',
                    title: [[#{adam.transquery.rechargeList.walletNo}]],
                    sortable: true
                },
                {
                    field: 'currency',
                    title: [[#{adam.transquery.rechargeList.currency}]]
                },
                {
                    field: 'transactionAmount',
                    title: [[#{adam.transquery.rechargeList.transactionAmount}]]
                },
                {
                    field: 'createDate',
                    title: [[#{adam.transquery.rechargeList.createDate}]]
                },
                {
                    field: 'completedDate',
                    title: [[#{adam.transquery.rechargeList.completedDate}]]
                },
                {
                    field: 'transactionStatus',
                    title: [[#{adam.transquery.rechargeList.transactionStatus}]]
                },
                {
                    field: 'reason',
                    title: [[#{adam.transquery.rechargeList.reason}]]
                },
                {
                    field: 'reference',
                    title: [[#{adam.transquery.rechargeList.reference}]]
                },
                {
                    field: 'errorMessage',
                    title: [[#{adam.transquery.rechargeList.errorMessage}]]
                }]
        };
        $.table.init(options);
    }

    $('#btnExpand').click(function() {
        $._tree.expandAll(true);
        $(this).hide();
        $('#btnCollapse').show();
    });

    $('#btnCollapse').click(function() {
        $._tree.expandAll(false);
        $(this).hide();
        $('#btnExpand').show();
    });


</script>
</body>
</html>
