<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: zhangyu $Date: 2014-11-10 上午10:12:30 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:view> <a:link id="con_content_record_id" url="${/request/@context_path}/modules/csh/CSH530/con_contract_content.lview"/> <a:link id="csh_offset_reverse_confirm_link" url="${/request/@context_path}/modules/csh/CSH533/csh_offset_reverse_confirm.lview"/> <script type="text/javascript"><![CDATA[ function csh_offset_reset() { $('csh_offset_reversed_query_ds').reset(); } function csh_offset_query() { $('csh_offset_reversed_result_ds').query(); } function csh533_render_contractMaintainDs_grid(value, record, name) { if (name == 'contract_number') { return '<a href="javascript:csh533_contractMaintainDs_grid_query(' + record.get('contract_id') + ');">' + value + '</a>'; } } function csh533_contractMaintainDs_grid_query(contract_id) { var url = $('con_content_record_id').getUrl(); var win = new Leaf.Window({ id: 'con_contract_content_window', url: url, params:{ contract_id:contract_id }, title: '合同附件查看', fullScreen: true }); win.on('close',function(){$('csh_offset_reversed_result_ds').query();}); } function csh_offset_reverse(){ var record = $('csh_offset_reversed_result_ds').getCurrentRecord(); if(record == undefined){ Leaf.showMessage('${l:PROMPT_MESSAGE}','未选中行',null,250,100); }else{ new Leaf.Window({ id: 'csh_offset_reverse_confirm_window', url: $('csh_offset_reverse_confirm_link').getUrl(), params:{ }, title: '收付抵扣反冲确认', height: 200, width: 1000 }); } } ]]></script> <a:dataSets> <a:dataSet id="hls_reversed_flag_ds" lookupCode="HLS_REVERSED_FLAG"/> <a:dataSet id="csh_offset_reversed_query_ds"> <a:fields> <!-- <a:field name="journal_date" datatype="java.util.Date" required="true"/> --> <a:field name="bp_vender" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov?bp_category=VENDER" lovWidth="500"> <a:mapping> <a:map from="bp_name" to="bp_vender"/> </a:mapping> </a:field> <a:field name="bp_name" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov?bp_category=TENANT" lovWidth="500"> <a:mapping> <a:map from="bp_name" to="bp_name"/> </a:mapping> </a:field> </a:fields> </a:dataSet> <a:dataSet id="csh_offset_reversed_result_ds" autoQuery="true" model="csh.CSH533.csh_offset_reversed" pageSize="14" queryDataSet="csh_offset_reversed_query_ds" selectable="true" selectionModel="single"> <a:fields> <a:field name="contract_number" readOnly="true"/> <a:field name="bp_name" readOnly="true"/> <a:field name="offset_amount" readOnly="true"/> <a:field name="journal_date" datatype="java.util.Date" required="true"/> <a:field name="reverse_date" required="true"/> </a:fields> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="csh_offset_query" text="HAP_QUERY"/> <a:gridButton click="csh_offset_reset" text="HAP_RESET"/> <a:gridButton click="csh_offset_reverse" text="HLS.REVERSE"/> </a:screenTopToolbar> <a:form column="5" marginWidth="30" title="收付抵扣反冲"> <a:textField name="contract_number" bindTarget="csh_offset_reversed_query_ds" prompt="HLS.CONTRACT_NUMBER"/> <a:lov name="bp_name" bindTarget="csh_offset_reversed_query_ds" prompt="HLS.TENANT_CODE"/> <a:datePicker name="journal_date_from" bindTarget="csh_offset_reversed_query_ds" prompt="凭证日期从"/> <a:datePicker name="journal_date_to" bindTarget="csh_offset_reversed_query_ds" prompt="凭证日期到"/> </a:form> <a:grid id="csh_offset_reversed_result_grid_id" bindTarget="csh_offset_reversed_result_ds" height="410" marginWidth="30" navBar="true"> <a:columns> <a:column name="contract_number" prompt="HLS.CONTRACT_NUMBER" renderer="csh533_render_contractMaintainDs_grid" sortable="true" width="120"/> <a:column name="bp_name" prompt="HLS.TENANT_CODE" sortable="true" width="80"/> <a:column name="lease_item_amount" align="right" prompt="租赁物总价" renderer="Leaf.formatMoney" width="90"/> <a:column name="down_payment" align="right" prompt="HLS.DOWN_PAYMENT" renderer="Leaf.formatMoney" width="90"/> <a:column name="consulting_service" align="right" prompt="咨询服务费" renderer="Leaf.formatMoney" width="90"/> <a:column name="deposit" align="right" prompt="保证金" renderer="Leaf.formatMoney" width="90"/> <a:column name="lease_charge" align="right" prompt="手续费" renderer="Leaf.formatMoney" width="90"/> <a:column name="first_rent" align="right" prompt="首期租金" renderer="Leaf.formatMoney" width="90"/> <a:column name="offset_amount" align="right" prompt="抵扣合计" renderer="Leaf.formatMoney" width="90"/> <a:column name="downpay_proof" prompt="首付款证明" width="100"/> <a:column name="journal_date" prompt="凭证日期" renderer="Leaf.formatDate" width="100"/> <a:column name="subsystem_journal" prompt="子系统凭证" width="100"/> </a:columns> </a:grid> </a:screenBody> </a:view> </a:screen>