WIDGET512.lview 2.32 KB
Newer Older
niminmin's avatar
niminmin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: huangtianyang
    $Date: 2018/7/3 下午6:09
    $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 widget512_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="widget512_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="widget512_leg_contract_result_grid" title="授信信息" bindTarget="widget512_leg_contract_result_ds"
                   titleimg="/images/lon/contract.png">
            <a:toolBar>
                <!--<a:button text="按钮测试" click="click1"/>-->
                <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="授信合同号" width="150"/>
                <a:column name="contract_name" prompt="额度类型" width="200"/>
                <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="widget512_detail" prompt="明细"/>

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

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