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

<!--
    $Author: hty
    $Date: 2018/6/5 17:18
    $Revision: 1.0 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view template="default" package="leaf.ui.std">


        <script><![CDATA[
            function contract_number_template(rowdata) {
            return "<p style='margin: 0;padding: 0px;'>"+rowdata.data.contract_number+"</p><p style='margin: 0px;padding: 0px;'>"+rowdata.data.contract_name+"</p>";
            }
        ]]></script>

        <a:dataSets>
            <a:dataSet id="widget_contract_ds" pageSize="5" autoQuery="true" model="home.con_contract_query">
                <a:fields>
                </a:fields>
            </a:dataSet>
        </a:dataSets>

        <a:hapGrid id="widget_contract_ds_grid" title="合同信息" bindTarget="widget_contract_ds" titleImg="resources/images/home_page/search.png">
            <a:columns>
                <a:column name="contract_number" prompt="合同编号/名称" width="150" template="contract_number_template"/>
                <a:column name="bp_name" prompt="承租人" width="200"/>
                <a:column name="document_type_desc"  prompt="合同类型"/>
                <a:column name="finance_amount"  prompt="融资额" />
                <a:column name="contract_status_desc"  prompt="合同状态" />
            </a:columns>
        </a:hapGrid>


    </a:view>
</a:screen>