<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: huangtianyang
    $Date: 2018/7/10 上午11:01
    $Revision: 1.0
    授权信息
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view template="default" package="leaf.ui.std">
        <div></div>
        <style>
            html, body {
                padding: 0;
                width: 870px;
                height: 355px;
            }
        </style>
        <script><![CDATA[
        function click1(data) {
            alert(data);
        }

        function click2(data) {
            alert(data);
        }

        function click3(data) {
            alert(data);
        }

        function widget516_detail() {
            debugger
            // return '<img width="15" height="15" style="cursor: pointer;" src="${/request/@context_path}/images/lon/detail.png"/>'
        }



        ]]></script>
        <a:dataSets>
            <a:dataSet id="widget516_leg_contract_result_ds" pageSize="2" autoPageSize="true" autoQuery="true"
                       model="leg.LEG501.leg_contract_query">
                <a:fields>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:hapGrid id="widget516_leg_contract_result_grid" title="授信信息" bindTarget="widget516_leg_contract_result_ds"
                   titleimg="/images/lon/receipt.png">
            <a:toolBar>
                <!--<a:button text="按钮测试" click="click1"/>-->
                <a:button icon="/images/lon/search_flag.png" click="click2"/>
                <a:button icon="/images/lon/add.png" click="click2"/>
                <!--<a:button type="search" click="click3" width="150px" placeholder="请输入合同编号"/>-->
            </a:toolBar>
            <a:columns>
                <a:column name="contract_number" prompt="合同编号/合同名称" />
                <a:column name="contract_name" prompt="债权人"/>
                <a:column name="overdue_max_days" prompt="融资金额"/>
                <a:column name="overdue_amount" prompt="融资方式"/>
                <a:column name="unreceived_fine_amount" prompt="合同状态"/>
                <a:column name="contract_status_desc" template="widget516_detail" prompt="明细"/>

            </a:columns>
        </a:hapGrid>
        <a:screenBody>
            <script><![CDATA[

            ]]></script>
        </a:screenBody>
    </a:view>
</a:screen>