<!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('Payout 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.payout.transactionId}"></p>：<input type="text" name="transactionId"/>
                            </li>
                            <li>
                                <p th:utext="#{adam.transquery.query.payout.walletNo}"></p>：<input type="text" name="walletNo"/>
                            </li>
                            <li>
                                <p th:utext="#{adam.transquery.query.payout.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.payout.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.payout.transactionDate}"></p>： </label>
                                <input type="text" class="time-input" id="transactionDateBegin" th:placeholder="#{admin.page.common.startTime}" name="transactionDateBegin"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="transactionDateEnd" th:placeholder="#{admin.page.common.endTime}" name="transactionDateEnd"/>
                            </li>
                            <li class="select-time">
                                <label><p th:utext="#{adam.transquery.query.payout.executionDate}"></p>： </label>
                                <input type="text" class="time-input" id="executionDateBegin" th:placeholder="#{admin.page.common.startTime}" name="executionDateBegin"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="executionDateEnd" th:placeholder="#{admin.page.common.endTime}" name="executionDateEnd"/>
                            </li>
                            <li>
                                <p th:utext="#{adam.transquery.query.payout.transactionStatus}"></p>：
                                <select name="transactionStatus" th:with="type=${@dict.getType('adam_payout_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>
                            </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 detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]];
    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 + "/payoutList",
            detailUrl: prefix + "/payoutDetail/{id}",
            updateUrl: prefix + "/payoutDetail/{id}",
            exportUrl: prefix + "/payoutListExport",
            sortName: "createTime",
            sortOrder: "desc",
            modalName: "payoutList",
            columns: [{
                checkbox: false
            },
                {
                    field: 'transactionId',
                    title: [[#{adam.transquery.payoutList.transactionId}]]
                },
                {
                    field: 'walletNo',
                    title: [[#{adam.transquery.payoutList.walletNo}]],
                    sortable: true
                },
                {
                    field: 'currency',
                        title: [[#{adam.transquery.payoutList.currency}]]
                },
                {
                    field: 'transactionAmount',
                    title: [[#{adam.transquery.payoutList.transactionAmount}]]
                },
                {
                    field: 'transactionDate',
                    title: [[#{adam.transquery.payoutList.transactionDate}]]
                },
                {
                    field: 'executionDate',
                    title: [[#{adam.transquery.payoutList.executionDate}]]
                },
                {
                    field: 'transactionStatus',
                    title: [[#{adam.transquery.payoutList.transactionStatus}]]
                },
                {
                    field: 'payoutWithFx',
                    title: [[#{adam.transquery.payoutList.payoutWithFx}]]
                },
                {
                    field: 'fxContractNo',
                    title: [[#{adam.transquery.payoutList.fxContractNo}]]
                },
                {
                    field: 'fxQuote',
                    title: [[#{adam.transquery.payoutList.fxQuote}]]
                },                {
                    field: 'paymentPurpose',
                    title: [[#{adam.transquery.payoutList.paymentPurpose}]]
                },
                {
                    field: 'paymentReference',
                    title: [[#{adam.transquery.payoutList.paymentReference}]]
                },                {
                    field: 'errorMessage',
                    title: [[#{adam.transquery.payoutList.errorMessage}]]
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.orderId + '\')"><i class="fa fa-search"></i>Detail</a>');
                        return actions.join('');
                    }
                }]
        };
        $.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>
