<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Eugene Song $
    $Date: 2018年11月2日10:19:17 $
    $Revision: 1.1 $
    $Purpose: 网银代扣管理
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>

        <a:link id="import_upload_link"
                url="${/request/@context_path}/modules/ccb/CCB600/ccb_ebank_import_upload.lview"/>
        <script type="text/javascript"><![CDATA[

        function upload_batch_detail() {
            new Leaf.Window({
                id: 'upload_window_winid',
                url: $('import_upload_link').getUrl(),
                params: {
                    batch_id:'${/parameter/@batch_id}',
                    winid: 'upload_window_winid'
                },
                title: '导入',
                width: 420,
                height: 300
            });
        }

        function return_batch_detail() {
            $('${/parameter/@winid}').close();
        }

        ]]></script>
        <a:dataSets>
            <a:dataSet id="hls_ccb_withhold_grid_query_ds" autoQuery="true" fetchAll="true" model="ccb.CCB600.hls_ebank_withhold_detail" pageSize="15"
                       queryUrl="${/request/@context_path}/autocrud/ccb.CCB600.hls_ebank_withhold_detail/query?batch_id=${/parameter/@batch_id}"
                       selectable="true">
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar height="29">
                <!--<a:gridButton click="upload_batch_detail" text="导入"/>-->
                <a:gridButton click="return_batch_detail" text="返回"/>
            </a:screenTopToolbar>
            <a:grid id="hls_ccb_withhlod_query_grid" bindTarget="hls_ccb_withhold_grid_query_ds" height="500" width="850"
                    navBar="true">
                <a:toolBar>
                    <a:button type="excel" text="导出"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="contract_number" align="left" prompt="合同编号" width="100"/>
                    <a:column name="bp_name" align="left" prompt="客户名称" width="180"/>
                    <a:column name="bp_agent" align="left" prompt="代理商名称" width="180"/>
                    <a:column name="actual_amount" align="right" prompt="扣款金额" renderer="Leaf.formatMoney"
                              width="100"/>
                    <a:column name="real_amount" align="right" prompt="实扣金额" renderer="Leaf.formatMoney" width="100"/>
                    <a:column name="status_desc" align="left" prompt="返回状态" width="80"/>
                    <a:column name="receive_date_desc" align="left" prompt="返回日期" width="80"/>
                    <a:column name="res_msg" align="left" prompt="返回描述" editor="ta_grid" width="150"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>