<?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>