customer_information_query.lview 5.85 KB
Newer Older
Spencer Chang's avatar
Spencer Chang 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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: wujun  
    $Date: 2016年11月9日14:40:40
    $Revision: 1.0  
    $Purpose: 客户信息查询
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <a:link id="hn5010_lessee_detail_detail" url="${/request/@context_path}/modules/hn/HN5020/hn_customer_lessee_details.lview"/>
        <a:link id="hn5020_bondsman_detail_detail" url="${/request/@context_path}/modules/hn/HN5020/hn_customer_bondsman_detail.lview"/>
        <script type="text/javascript"><![CDATA[
        	function open_lessee_detail_window(project_id) {
    		    var win = new Leaf.Window({
    		        id: 'hn5010_lessee_detail_detail_win_id',
    		        url: $('hn5010_lessee_detail_detail').getUrl(),
    		        params: {
    		            project_id: project_id,
    		            winid: 'hn5010_lessee_detail_detail_win_id'
    		        },
    		        title: '承租人信息',
    		        fullScreen: true
    		    });
    		}
    		
    		function lessee_detail_jp(value, record, name) {
    		    if (name == 'lessee_detail') {
    		        return '<a href="javascript:open_lessee_detail_window(' + record.get('project_id') + ');">明细</a>';
    		    }
    		}
    		function open_bondsman_detail_window(project_id) {
    		    var win = new Leaf.Window({
    		        id: 'hn5020_bondsman_detail_detail_win_id',
    		        url: $('hn5020_bondsman_detail_detail').getUrl(),
    		        params: {
    		            project_id: project_id,
    		            winid: 'hn5020_bondsman_detail_detail_win_id'
    		        },
    		        title: '担保人信息',
    		        fullScreen: true
    		    });
    		}
    		
    		function bondsman_detail_jp(value, record, name) {
    		    if (name == 'bondsman_detail') {
    		        return '<a href="javascript:open_bondsman_detail_window(' + record.get('project_id') + ');">明细</a>';
    		    }
    		}
    		function hn5020_prj_project_query() {
    		    $('hn5020_prj_project_result_ds').query();
    		}
    		
    		function hn5020_prj_project_reset() {
    		    $('hn5020_prj_project_query_ds').reset();
    		}
    		function hn5020_prj_project_export() {
    		    $('hn5020_prj_project_result_grid_id')._export();
    		}
		]]></script>
        <a:dataSets>
            <a:dataSet id="hn_industry_classification_ds" lookupCode="HN_INDUSTRY_CLASSIFICATION"/>
            <a:dataSet id="business_type_ds" autoQuery="true" model="rpt.RPT5010.rpt5010_business_type"/>
            <a:dataSet id="hn5020_prj_project_query_ds">
                <a:fields>
                    <a:field name="hn_industry_classification_n" displayField="code_value_name" options="hn_industry_classification_ds" returnField="hn_industry_classification" valueField="code_value"/>
                    <a:field name="business_type_n" displayField="description" options="business_type_ds" returnField="business_type" valueField="business_type"/>
                    <a:field name="virtual_con_number" typeCase="Upper"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="hn5020_prj_project_result_ds" autoPageSize="true" autoQuery="true" model="hn.HN5020.hn_customer_information_query" queryDataSet="hn5020_prj_project_query_ds" selectable="true">
                <a:fields>
                    <a:field name="hn_industry_classification_n" displayField="code_value_name" options="hn_industry_classification_ds" returnField="hn_industry_classification" valueField="code_value"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="hn5020_prj_project_query" text="HLS.QUERY"/>
                <a:gridButton click="hn5020_prj_project_reset" text="重置"/>
                <a:gridButton click="hn5020_prj_project_export" text="导出"/>
            </a:screenTopToolbar>
            <a:form column="3" marginWidth="30" title="查询条件">
                <a:textField name="virtual_con_number" bindTarget="hn5020_prj_project_query_ds" prompt="合同编号"/>
                <a:textField name="project_name" bindTarget="hn5020_prj_project_query_ds" prompt="项目名称"/>
                <a:comboBox name="hn_industry_classification_n" bindTarget="hn5020_prj_project_query_ds" prompt="行业分类"/>
                <a:comboBox name="business_type_n" bindTarget="hn5020_prj_project_query_ds" prompt="租赁形式"/>
                <a:textField name="binary_classification_n" bindTarget="hn5020_prj_project_query_ds" prompt="电源类型"/>
                <a:textField name="bp_name" bindTarget="hn5020_prj_project_query_ds" prompt="承租人名称"/>
                <a:textField name="guarantor_name" bindTarget="hn5020_prj_project_query_ds" prompt="担保人名称"/>
            </a:form>
            <a:grid id="hn5020_prj_project_result_grid_id" bindTarget="hn5020_prj_project_result_ds" marginHeight="200" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="virtual_con_number" align="center" prompt="合同编号" width="150"/>
                    <a:column name="project_name" prompt="项目名称" width="400"/>
                    <a:column name="hn_industry_classification_n" align="center" prompt="行业分类" width="100"/>
                    <a:column name="lease_form" align="center" prompt="租赁形式" width="100"/>
                    <a:column name="binary_classification_n" align="center" prompt="电源类型" width="150"/>
                    <a:column name="lessee_detail" align="center" prompt="承租人信息" renderer="lessee_detail_jp" width="100"/>
                    <a:column name="bondsman_detail" align="center" prompt="担保人信息" renderer="bondsman_detail_jp" width="100"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>