Commit 00638cf4 authored by 王炜's avatar 王炜

合同签约前变更提交=>龚镇江

parent 30aea40b
......@@ -25,6 +25,12 @@ values ('CONTRACT', 'CON_CONTRACT_CCR_Q_LV', 'VIEW', -1, sysdate, -1, sysdate);
insert into HLS_DOC_CATEGORY_DB_OBJECT (DOCUMENT_CATEGORY, OBJECT_NAME, OBJECT_TYPE, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE)
values ('CONTRACT', 'con_contract_history_lv', 'VIEW', -1, sysdate, -1, sysdate);
insert into HLS_DOC_CATEGORY_DB_OBJECT (DOCUMENT_CATEGORY, OBJECT_NAME, OBJECT_TYPE, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE)
values ('CONTRACT', 'con_contract_con733_lv', 'VIEW', -1, sysdate, -1, sysdate);
insert into HLS_DOC_CATEGORY_DB_OBJECT (DOCUMENT_CATEGORY, OBJECT_NAME, OBJECT_TYPE, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE)
values ('CONTRACT', 'CON_CONTRACT_LEASE_ITEM_CCR_LV', 'VIEW', -1, sysdate, -1, sysdate);
end;
/
commit;
......
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool REGISTER_ACP522.log
set feedback off
set define off
begin
--页面注册
sys_function_assign_pkg.service_load('modules/cont/CON731/hls_before_sign_change_detail.lview','签约前合同变更',1,1,0);
--功能定义
--分配页面
sys_function_assign_pkg.func_service_load('CON733','modules/cont/CON731/hls_before_sign_change_detail.lview');
sys_function_assign_pkg.func_service_load('CON736','modules/cont/CON731/hls_before_sign_change_detail.lview');
sys_function_assign_pkg.func_service_load('ZJWFL5110','modules/cont/CON731/hls_before_sign_change_detail.lview');
sys_function_assign_pkg.func_service_load('CON733','modules/hls/HLS500N/hls_fin_calculator_update_n.lview');
sys_function_assign_pkg.func_service_load('CON736','modules/hls/HLS500N/hls_fin_calculator_update_n.lview');
sys_function_assign_pkg.func_service_load('ZJWFL5110','modules/hls/HLS500N/hls_fin_calculator_update_n.lview');
--分配bm
sys_function_assign_pkg.func_bm_load('CON733','check_after_save_bm.check_change_con_lease_item');
sys_function_assign_pkg.func_bm_load('CON736','check_after_save_bm.check_change_con_lease_item');
sys_function_assign_pkg.func_bm_load('ZJWFL5110','check_after_save_bm.check_change_con_lease_item');
end;
/
commit;
set feedback on
set define on
spool off
exit
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei
$Date: 2022-12_06 上午11:00:06
$Revision: 3.0
$Purpose:合同变更租赁物保存校验
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
con_contract_workflow_pkg.check_change_con_lease_item(
p_contract_id =>${@contract_id},
p_machine_number =>${@machine_number},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.change_req_id = ${/parameter/@change_req_id}"
model="cus_deposit.CUS_DEPOSIT106.get_contract_wfl_status" rootPath="default_value_path"/>
</a:init-procedure>
<a:view>
<a:link id="con731_submit_link" model="cont.CON731.submit_change_req" modelaction="execute"/>
<a:link id="con731_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>
<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id"
model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="con_buyback_info_print_link_id"
url="${/request/@context_path}/modules/csh/CSH501/csh_con_req_history_pdf_print.lsc"/>
<a:link id="con_check_deduction_limit_link" model="check_after_save_bm.con_check_deduction_limit_after_save"
modelaction="update"/>
<a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id"
url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/>
<script type="text/javascript"><![CDATA[
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var cashflow_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_cashflow');
var record = $(ds_id).getCurrentRecord();
var price_list = record.get('price_list');
var calc_session_id = record.get('calc_session_id');
var parent_pk_value = record.get('contract_id');
var calc_type = '${/parameter/@calc_type}' || 'CLASSIC_CALCULATOR';
var maintain_type = 'QUERY'
if (calc_session_id) {
//直接进入报价页面
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
params: {
layout_code: '${/parameter/@layout_code}',
document_id: parent_pk_value,
price_list: price_list,
document_category: 'CONTRACT',
contract_status: record.get('contract_status'),
maintain_type: 'MODIFY',
business_type: record.get('business_type'),
calc_session_id: record.get('calc_session_id'),
//quotation_id: record.get('quotation_id'),
dsId: cashflow_ds_id,
winId: 'hls_fin_calc_quotation_update_link_winid',
global_flag: 'Y',
id_num: 1,
calc_type: calc_type,
recreate_L_formula: 'Y',
recreate_H_formula: 'Y'
},
url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(),
fullScreen: true,
draggable: true
});
win.on('close', function () {
$(cashflow_ds_id).query();
$(ds_id).query();
});
}
}
/* window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
};*/
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
// $('${/parameter/@layout_code}_submit_approval').disable();
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_ds_id2 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item');
var req_record = $(req_ds_id).getAt(0);
var case_type = '';
var document_type = '${/parameter/@document_type}';
var calc_session_id = req_record.get('calc_session_id');
if ($(req_ds_id).validate($('${/parameter/@layout_code}_submit_approval').enable()) && $(req_ds_id2).validate($('${/parameter/@layout_code}_submit_approval').enable())) {
con731_submit();
} else {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
};
function con731_submit() {
var showMessage ='是否确认提交审批?';
Leaf.showConfirm('${l:HLS.PROMPT}', showMessage, function () {
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_record = $(req_ds_id).getAt(0);
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('con731_submit_link').getUrl(),
para: {
change_req_id: '${/parameter/@change_req_id}',
layout_code: '${/parameter/@layout_code}'
},
success: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
}, null, 300, 150);
}
//保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res, bp_seq) {
var ca_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_cashflow');
if (ca_ds_id) {
$(ca_ds_id).query();
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认取消变更?', function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('con731_cancel_link').getUrl(),
para: {
change_req_id: '${/parameter/@change_req_id}'
},
success: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
});
};
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
if(ds.id == lease_item_ds_id&&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('division_n');
$(gridId).hideColumn('equipments');
$(gridId).hideColumn('machine_model_class_n');
$(gridId).hideColumn('item_type_n');
$(gridId).hideColumn('equipment_type_n');
$(gridId).hideColumn('machine_number');
record.getField('machine_number').setRequired(false);
}else {
$(gridId).hideColumn('machine_number_70');
$(gridId).hideColumn('lease_name_n');
$(gridId).hideColumn('brand_value');
$(gridId).hideColumn('type_name');
$(gridId).hideColumn('produce_date');
$(gridId).hideColumn('using_hour');
$(gridId).hideColumn('detention_amount');
$(gridId).hideColumn('residual_value_amount');
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
}
if(record.data.division=='30'||record.data.division=='50'||record.data.division=='80'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
if(Ext.isEmpty(record.get('set_number'))){
record.set('set_number',1);
}
}
}
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
......@@ -10,6 +10,7 @@
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="con_contract_modify_link" url="${/request/@context_path}/modules/cont/CON501N/con_contract_modify.lview"/>
<a:link id="con_contract_change_link" url="${/request/@context_path}/modules/cont/CON731/hls_con_contract_change_detail.lview"/>
<a:link id="con_contract_sign_before_change_link" url="${/request/@context_path}/modules/cont/CON731/hls_before_sign_change_detail.lview"/>
<a:link id="hls_ccr_modify_wfl_msg_link" url="${/request/@context_path}/modules/cont/CON732/hls_ccr_modify_wfl_msg_detail.lview"/>
<a:link id="con_contract_change_req_link" url="${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"/>
<script type="text/javascript"><![CDATA[
......@@ -118,8 +119,19 @@
param['function_code'] = 'CON733BPB';
param['url_title'] = '变更申请-合同回款账户变更';
}
else if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
param['function_code'] = 'CON733CBSIGN';
param['url_title'] = '变更申请-签约前合同变更';
}
param['document_type'] = record.get('ccr_document_type');
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
//签约前变更换个页面,方便后续新人代码阅读 wangwei
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
}
};
//变更申请打印单
......
......@@ -18,6 +18,7 @@
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
<a:link id="con_contract_change_link"
url="${/request/@context_path}/modules/cont/CON731/hls_con_contract_change_detail.lview"/>
<a:link id="con_contract_sign_before_change_link" url="${/request/@context_path}/modules/cont/CON731/hls_before_sign_change_detail.lview"/>
<a:link id="con733_create_change_link" model="cont.CON733.create_change_req" modelaction="execute"/>
<a:link id="con_contract_change_req_link"
url="${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"/>
......@@ -68,6 +69,10 @@
$(ds_id).setQueryParameter('contract_status', '');
$(ds_id).query();
}
if (value == 'CCR_BEFORE_SIGN') {
$(ds_id).setQueryParameter('contract_status', 'NEW');
$(ds_id).query();
}
}
};
......@@ -101,7 +106,6 @@
var head_record = $(head_ds_id).getAt(0);
var record = records[0];
var ccr_document_type = head_record.get('ccr_document_type');
debugger;
if ($(head_ds_id).validate($('${/parameter/@layout_code}_user_button1').enable())) {
//售后回租 无法进行承租人变更和回款账户变更
if (record.get('business_type') == 'LEASEBACK' && (ccr_document_type == 'LEASE_CHAG' || ccr_document_type == 'ACC_CHAG')) {
......@@ -113,6 +117,10 @@
Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!');
return;
}
/*if(record.get('division') != '70' && ccr_document_type == 'CCR_BEFORE_SIGN'){
Leaf.showErrorMessage('${l:PROMPT}', '仅铁甲业务可操作此项变更!');
return;
}*/
Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!</span>', function () {
var contract = record.get('contract_id');
......@@ -151,8 +159,18 @@
param['function_code'] = 'CON733BPB';
param['url_title'] = '变更申请-合同回款账户变更';
param['winid'] = 'con733_bpb_change_detail_winid';
}else if (ccr_document_type == 'CCR_BEFORE_SIGN') {
param['function_code'] = 'CON733CBSIGN';
param['url_title'] = '变更申请-签约前合同变更';
param['winid'] = 'con733_before_sign_change_detail_winid';
}
if(ccr_document_type == 'CCR_BEFORE_SIGN') {
//签约前变更换个页面,方便后续新人代码阅读 wangwei
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
}
},
failure: function () {
// $('${/parameter/@layout_code}_user_button1').enable(); //按钮启用
......@@ -176,8 +194,7 @@
}
};
]]></script>
<a:screen-include
screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON733"/>
<a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON733"/>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-4-17 上午09:26:12
$Revision: 1.0
$Purpose:
$Author: gaoyang
$Date: 2013-4-17 上午09:26:12
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:c="leaf.application.action" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc"
customizationEnabled="true" trace="true">
<a:screen xmlns:c="leaf.application.action" xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true">
<a:init-procedure participants="leaf.service.exception.ExceptionHandler">
<a:model-query defaultWhereClause="d.enabled_flag=&apos;Y&apos; and nvl(d.display_flag,&apos;N&apos;)!=&apos;N&apos;" fetchAll="true" model="hls.HLS500.hls_fin_calc_config_ln" rootPath="calc_config_ln_path"/>
<a:model-query defaultWhereClause="d.enabled_flag=&apos;Y&apos;" fetchAll="true" model="hls.HLS500.hls_fin_calc_config_ln" rootPath="calc_config_ln_all_path"/>
......@@ -58,19 +57,19 @@
margin-left:3px;
}
.item-slideBar{
top:10px;
width:600px;
height:30px;
border:1px solid #009900;
background-color:#CCFBD5;
color:#009900;
font-weight:bold;
font-size:12px;
text-align:center;
line-height:20px;
white-space :nowrap;
position:absolute;
}
top:10px;
width:600px;
height:30px;
border:1px solid #009900;
background-color:#CCFBD5;
color:#009900;
font-weight:bold;
font-size:12px;
text-align:center;
line-height:20px;
white-space :nowrap;
position:absolute;
}
.item-slideBar .inner{
width: 600px;
max-width: 500px;
......@@ -173,13 +172,14 @@
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show = down_payment_rate_new * 100;
// if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// unlock_calc_current_window();
// Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
// return false;
//}
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
if ('${/parameter/@division}'!=91) {
unlock_calc_current_window();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return false;
}else{
if ('${/parameter/@division}'==91){
Leaf.SideBar.show({
// msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%',
msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%',
......@@ -1437,7 +1437,12 @@
$('${/parameter/@layout_code}_F_QUOTATION_N_prj_quotation_ds').query();
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_ds').query();
} else if ('${/parameter/@document_category}' == 'CONTRACT') {
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
if($('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds')){
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}if( $('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds')){
$('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}
}
// success_sidebar_show();
get_warning_message(res.result.msg);
......@@ -1533,7 +1538,6 @@
function hls_hls500_save_new(nextStep, source_procedure) {
debugger;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
var H1, H54, H159, H16, H12,H99,H102;
for (var i = 0; i < temp_head_records.length; i++) {
......@@ -1554,23 +1558,21 @@
H102 = temp_head_records[i].get('column_value') || 0;
}
}
// if ('${/parameter/@division}'==91 && (((H1<=12 && plus(H54,4.75) != 6.75) || (H1 > 12 && plus(H54,4.75) != 7.3))||H54 < 0)){
// Leaf.SideBar.show({
// msg:"租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%",
// duration: 5000
// });
// }
// if(H1<2){
// Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
// return false;
// }
if (H1 > 70) {
Leaf.showMessage('${l:PROMPT}', '还款期数应小于70期');
unlock_calc_current_window();
return false;
}
//if (H1 > 70) {
// Leaf.showMessage('${l:PROMPT}', '还款期数应小于或等于70期');
// unlock_calc_current_window();
// return false;
//}
if (H54 < 0&&'${/parameter/@division}'!=91) {
Leaf.showMessage('${l:PROMPT}', '利率最低值不能低于4.75');
unlock_calc_current_window();
......@@ -1585,15 +1587,15 @@
var dowm_payment = div(H16, plus(H99,H102)).toFixed(2) * 100;
if (dowm_payment < 15) {
if ('${/parameter/@division}'!=91) {
Leaf.showMessage('${l:PROMPT}', '回租首付款比例不低于15%');
unlock_calc_current_window();
return false;
Leaf.showMessage('${l:PROMPT}', '回租首付款比例不低于15%');
unlock_calc_current_window();
return false;
}else{
Leaf.SideBar.show({
//msg: "回租首付款比例不低于15%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%",
msg: "回租首付款比例不低于15%",
duration: 5000
});
Leaf.SideBar.show({
//msg: "回租首付款比例不低于15%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%",
msg: "回租首付款比例不低于15%",
duration: 5000
});
}
}
}
......@@ -1635,17 +1637,18 @@
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show = down_payment_rate_new * 100;
//if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// unlock_calc_current_window();
// Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
// return false;
//}
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
if ('${/parameter/@division}'!=91) {
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
unlock_calc_current_window();
return false;
}else{
Leaf.SideBar.show({
// msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%',
msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%',
duration: 10000
});
if ('${/parameter/@division}'==91) {
Leaf.SideBar.show({
// msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%',
msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%',
duration: 10000
});
}
}
......@@ -1912,7 +1915,14 @@
$('${/parameter/@layout_code}_F_QUOTATION_N_prj_quotation_ds').query();
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_ds').query();
} else if ('${/parameter/@document_category}' == 'CONTRACT') {
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
if($('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds')){
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}
if( $('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds')){
$('${/parameter/@layout_code}_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}
}
open_after_save_execute();
},
......
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