Commit 9b816e8c authored by 18083's avatar 18083

新建代理店-云南铁拳付款页面隐藏付款请求书打印按钮

parent 21c1d0ed
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: 18083
$Date:
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
Select decode(cc.division,'70',nvl(had.division_detail,'01'),'') division_detail
From csh_payment_req_ln t, con_contract cc,hls_bp_master_agent_division had
Where t.payment_req_id = ${/parameter/@payment_req_id}
And t.ref_doc_category = 'CONTRACT'
and t.ref_doc_id = cc.contract_id
and cc.division= had.division
and cc.bp_id_agent_level1= had.bp_id
and rownum = 1
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -22,6 +22,7 @@
fetchAll="true" model="hls.HLS003.hls_document_type" rootPath="default_payment_document_type"/>
<a:model-query fetchAll="true" model="csh.CSH501.get_loan_flag" rootPath="loan_flag_path"/>
<a:model-query fetchAll="true" model="csh.CSH501.get_vender_bank_info" rootPath="vender_account_path"/>
<a:model-query fetchAll="true" model="csh.CSH501.get_csh_division_detail" rootPath="division_detail_path"/>
</a:init-procedure>
<a:view>
<a:link id="csh_payment_req_word_print_link_id"
......@@ -77,6 +78,10 @@
if ('${/parameter/@source_type}' == 'WFL') {
document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
}
if('${/parameter/@division}' =='70' &&'${/model/division_detail_path/record/@division_detail}'=='03' ){
document.getElementById('${/parameter/@layout_code}_print').style.display = "none";
}
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var payment_req_id = '${/parameter/@payment_req_id}';
......@@ -236,7 +241,7 @@
}
var lnds_records = $(ds_id).getAll();
if (con_business_type == 'LEASEBACK'){
if ('${/parameter/@division}' ==91||'${/parameter/@division}' =='神钢建机'||'${/parameter/@division}' ==93||'${/parameter/@division}' =='新业务-厂商担保'){
if ('${/parameter/@division}' ==91||'${/parameter/@division}' ==93){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var records = $(ds_id).getAll();
for (i = 0; i < records.length; i++) {
......@@ -334,7 +339,7 @@
}
}
}
if ('${/parameter/@division}' ==91||'${/parameter/@division}' =='神钢建机'||'${/parameter/@division}' ==92||'${/parameter/@division}' =='北京心诚' ){
if ('${/parameter/@division}' ==91||'${/parameter/@division}' ==92 ){
if (con_business_type == 'LEASEBACK'){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
var records = $(ds_id).getAll();
......@@ -386,7 +391,7 @@
records[i].getField('amount_tenant').setRequired(false);
records[i].getField('amount_tenant').setReadOnly(true);
if(con_business_type == 'LEASEBACK'){
if ('${/parameter/@division}' ==91||'${/parameter/@division}' =='神钢建机'||'${/parameter/@division}' ==93||'${/parameter/@division}' =='新业务-厂商担保'){
if ('${/parameter/@division}' ==91||'${/parameter/@division}' ==93){
records[i].getField('tenant_bank_account_number').setRequired(false);
records[i].getField('tenant_bank_account_number_n').setRequired(false);
}else{
......@@ -639,14 +644,7 @@
}
//end
}
//新业务厂商全部支付给代理店且买断机为否,增加弱校验 18083
/*if (amount_vender == 0 && line_data.get('division') == '93' && line_data.get('is_buyout')=='N') {
$L.showConfirm('提示','是否买断机为否,请确认全部支付代理店!', function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return true;
});
$L.showInfoMessage('提示', '是否买断机为否,请确认全部支付代理店!');
}*/
//本次申请金额等于委托加我司加应付承租人金额
var this_apply_amount = plus(plus(amount_agent, amount_vender),amount_tenant);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment