<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: qwm $Date: 2013-6-24 下午1:29:07 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure> <a:model-query defaultWhereClause="enabled_flag='Y'" fetchAll="true" model="basic.hls_document_type_v" rootPath="document_type"/> <a:model-query defaultWhereClause="enabled_flag='Y'" fetchAll="true" model="hls.HLS002.hls_document_category" rootPath="document_category"/> <a:model-query fetchAll="true" model="basic.hls_division_for_lov" rootPath="hls_division_path"/> <a:model-query fetchAll="true" model="cont.CON701.con_contract_et_profile" rootPath="et_profile"/> </a:init-procedure> <a:view> <a:link id="con_contract_adv_settle_create_link" url="${/request/@context_path}/modules/cont/CON701/con_early_termination_create.lview"/> <script type="text/javascript"><![CDATA[ function contractQueryScreen_query() { $('contractQueryScreen_mainDs').query(); } function contractQueryScreen_reset() { $('contractQueryScreen_paraDs').reset(); } function contractQueryScreen_add() { var records = $('contractQueryScreen_mainDs').getSelected(); var record = records[0], contract_id = record.get('contract_id'); var win = new Leaf.Window({ id: 'con_contract_adv_settle_create_window', url: $('con_contract_adv_settle_create_link').getUrl(), params: { winId: 'con_contract_adv_settle_create_window' }, title: '中途偿还创建', fullScreen: true }); win.on('close', function() { $('contractQueryScreen_mainDs').query(); }); } ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&function_code=CON701"/> <a:dataSets> <a:dataSet id="yes_or_no_ds" lookupCode="YES_NO"/> <a:dataSet id="contract_status_ds" lookupCode="CON500_CONTRACT_STATUS"/> <a:dataSet id="document_type_ds"> <a:datas dataSource="/model/document_type"/> </a:dataSet> <a:dataSet id="document_type_for_et_ds"> <a:datas dataSource="/model/document_type_for_et"/> </a:dataSet> <a:dataSet id="document_category_ds"> <a:datas dataSource="/model/document_category"/> </a:dataSet> <a:dataSet id="et_profile_ds"> <a:datas dataSource="/model/et_profile"/> </a:dataSet> <a:dataSet id="hls_division_ds"> <a:datas dataSource="/model/hls_division_path"/> </a:dataSet> <a:dataSet id="contractQueryScreen_paraDs"> <a:fields> <a:field name="document_type_desc" displayField="document_type_desc" options="document_type_ds" returnField="document_type" valueField="document_type"/> <a:field name="document_category_desc" displayField="description" options="document_category_ds" returnField="document_category" valueField="document_category"/> <a:field name="employee_id"/> <a:field name="employee_code" lovGridHeight="300" lovHeight="450" lovService="basic.hls_salesman_assign_v_for_lov" lovWidth="500" title="PRJ501.PRJ_contract.EMPLOYEE_NAME"> <a:mapping> <a:map from="employee_id" to="employee_id"/> <a:map from="employee_name" to="employee_name"/> <a:map from="employee_code" to="employee_code"/> </a:mapping> </a:field> <a:field name="contract_number" typeCase="upper"/> <a:field name="date_from"/> <a:field name="date_to"/> <a:field name="bp_id_tenant"/> <a:field name="bp_name" lovGridHeight="330" lovHeight="470" lovLabelWidth="120" lovService="cont.CON701.hls_bp_master_v_all_lov?bp_category=TENANT" lovWidth="700" title="承租人"> <a:mapping> <a:map from="bp_id" to="bp_id_tenant"/> <a:map from="bp_name" to="bp_name"/> </a:mapping> </a:field> <!--代理商--> <a:field name="bp_id_agent_level1"/> <a:field name="bp_agent" lovGridHeight="330" lovHeight="470" lovLabelWidth="120" lovService="cont.CON701.hls_bp_master_v_all_lov?bp_category=AGENT" lovWidth="700" title="代理商"> <a:mapping> <a:map from="bp_id" to="bp_id_agent_level1"/> <a:map from="bp_name" to="bp_agent"/> </a:mapping> </a:field> <!--产品线--> <a:field name="division_n" displayField="description" options="hls_division_ds" returnField="division" valueField="division"/> <a:field name="project_number" title="申请编号" typeCase="upper"/> <a:field name="user_desc" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="basic.sys_user_for_lov" lovWidth="500" prompt="AUT_TRX_USER_AUTHORIZE.USER_ID" title="员工选择"> <a:mapping> <a:map from="description" to="user_desc"/> <a:map from="user_id" to="user_id"/> </a:mapping> </a:field> <a:field name="overdue_status"/> <a:field name="overdue_status_desc" displayField="code_value_name" options="yes_or_no_ds" returnField="overdue_status" valueField="code_value"/> <a:field name="contract_status"/> <a:field name="contract_status_desc" displayField="code_value_name" options="contract_status_ds" returnField="contract_status" valueField="code_value"/> </a:fields> </a:dataSet> <a:dataSet id="contractQueryScreen_mainDs" autoQuery="true" fetchAll="false" model="cont.CON701.con_early_termination_query" pageSize="14" queryDataSet="contractQueryScreen_paraDs" selectable="true" selectionModel="single"> <a:fields> <a:field name="et_type_dis" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="cont.CON701.hls_document_type_for_et_lov" lovWidth="500" prompt="提前结清类型" readOnly="true" required="true"> <a:mapping> <a:map from="document_type" to="et_type"/> <a:map from="document_type_desc" to="et_type_dis"/> </a:mapping> </a:field> <a:field name="termination_date" datatype="date" required="true"/> <a:field name="overdue_status" checkedValue="Y" uncheckedValue="N"/> <a:field name="trial" checkedValue="Y" uncheckedValue="N"/> <a:field name="lease_execution_date" datatype="date"/> </a:fields> <a:events> <a:event name="query" handler="aut_authority_list_validate_query"/> </a:events> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="contractQueryScreen_query" text="HLS.QUERY"/> <a:gridButton click="contractQueryScreen_reset" text="HLS.RESET"/> <a:gridButton click="contractQueryScreen_add" text="HLS.CREATE"/> </a:screenTopToolbar> <a:form column="4" labelWidth="100" marginWidth="40" title="HLS.QUERY_TITLE"> <a:textField name="contract_number" bindTarget="contractQueryScreen_paraDs" prompt="合同编号"/> <a:lov name="bp_name" bindTarget="contractQueryScreen_paraDs" prompt="承租人名称"/> <a:lov name="bp_agent" bindTarget="contractQueryScreen_paraDs" prompt="代理商名称"/> <a:comboBox name="division_n" bindTarget="contractQueryScreen_paraDs" prompt="产品线"/> <a:textField name="received_times" bindTarget="contractQueryScreen_paraDs" prompt="已还款期数"/> <a:comboBox name="contract_status_desc" bindTarget="contractQueryScreen_paraDs" prompt="合同状态"/> <a:datePicker name="lease_execution_date_from" bindTarget="contractQueryScreen_paraDs" prompt="执行日期从"/> <a:datePicker name="lease_execution_date_to" bindTarget="contractQueryScreen_paraDs" prompt="执行日期到"/> <a:comboBox name="overdue_status_desc" bindTarget="contractQueryScreen_paraDs" prompt="是否逾期"/> </a:form> <a:grid id="contractQueryScreen_mainDs_grid" bindTarget="contractQueryScreen_mainDs" marginHeight="230" marginWidth="40" navBar="true"> <a:columns> <a:column name="contract_number" prompt="合同编号" width="120" align="left"/> <a:column name="bp_name" prompt="承租人名称" width="200" align="left"/> <a:column name="bp_agent" prompt="代理商名称" width="200" align="left"/> <a:column name="division_n" prompt="产品线" width="120" align="left"/> <a:column name="received_times" prompt="已还款期数" width="80" align="right"/> <a:column name="status_desc" prompt="合同状态" width="120" align="center"/> <a:column name="lease_execution_date" prompt="执行日期" renderer="Leaf.formatDate" width="120" align="center"/> <a:column name="overdue_status" prompt="是否逾期" width="100" align="center"/> </a:columns> </a:grid> </a:screenBody> </a:view> </a:screen>