Commit 98e76b74 authored by lijingjing's avatar lijingjing

[feat]租金计划变更

parent 2dff001d
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
BEGIN
cus_con_change_req_pkg.con_single_calc(p_contract_id=>${@contract_id},
p_user_id=>${/session/@user_id});
END;
]]>
</bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:parameters>
<bm:parameter name="sum_unreceived_principal" dataType="java.lang.Double" input="false" output="true" outputPath="@sum_unreceived_principal"/>
</bm:parameters>
<bm:update-sql><![CDATA[
BEGIN
rent_plan_single_pkg.update_unrecived_principal(p_contract_id=>${@contract_id},
p_ccr_start_times => ${@ccr_start_times},
p_user_id=>${/session/@user_id},
p_sum_unreceived_principal => ${@sum_unreceived_principal});
END;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-4-24 上午10:17:59
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
rent_plan_single_pkg.calc_real_rate(p_calc_session_id =>${@calc_session_id},
p_user_id => ${/session/@user_id},
p_msg => ${@msg});
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="msg" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@msg"/>
</bm:parameters>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
rent_plan_single_pkg.manual_trial_after_calc(p_calc_session_id =>${@calc_session_id},
p_user_id => ${/session/@user_id},
p_msg => ${@msg});
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="msg" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@msg"/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -5,7 +5,7 @@
<a:link id="calc_leasse_amount_link" model="cont.CON731.calc_leasse_date" modelaction="execute"/>
<a:link id="calc_pay_amount_link" model="cont.CON731.calc_leasse_pay" modelaction="execute"/>
<a:link id="calc_tenant_amount_link" model="cont.CON733.calc_tenant_change_req" modelaction="execute"/>
<a:link id="con731_quote_link" url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/>
<a:link id="con731_quote_link" url="${/request/@context_path}/modules/cont/CON731/hls_fin_calculator_update_n.lview"/>
<a:link id="con733_quote_calc_change_req_link" model="cont.CON733.calc_change_req" modelaction="execute"/>
<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"/>
......@@ -14,6 +14,7 @@
<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}${/parameter/@tree_code}_hls_fin_doc_quotation_link_id" url="${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation.lsc"/>
<a:link id="set_sum_unreceived_principal_cancel_link" model="cont.CON731.con_change_calc" modelaction="update"/>
<script type="text/javascript"><![CDATA[
Ext.ux.Lightbox.register('a[ref=img]', true);
Leaf.onReady(function() {
......@@ -55,7 +56,7 @@
Leaf.request({
url: $('con733_quote_calc_change_req_link').getUrl(),
para: {
change_req_id: ${/parameter/@change_req_id},
change_req_id: '${/parameter/@change_req_id}',
ccr_start_times: ccr_start_times,
ccr_outstanding_times: ccr_outstanding_times,
calc_session_id: calc_session_id
......@@ -67,7 +68,7 @@
quo_win = new Leaf.Window({
id: '${/parameter/@layout_code}_hls_fin_calc_quotation_link_winid',
params: {
document_id: ${/parameter/@change_req_id},
document_id: '${/parameter/@change_req_id}',
document_category: document_category,
maintain_type: 'UPDATE',
calc_session_id: res.result.calc_session_id,
......@@ -145,9 +146,26 @@
}
}
// 租赁计划變更
if('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY'){debugger
if('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY'){
var lease_times = record.get('lease_times')||0;
if(name == 'ccr_start_times'){
Leaf.request({
url: $('set_sum_unreceived_principal_cancel_link').getUrl(),
para: {
contract_id: record.get('contract_id'),
ccr_start_times: value
},
success: function (res) {
record.set('sum_unreceived_principal', res.result.sum_unreceived_principal);
},
failure: function () {
},
error: function () {
},
scope: this
});
var ccr_outstanding_times = record.get('ccr_outstanding_times')||0;
var curr_times = minus(plus(value || 0,ccr_outstanding_times||0),1);
if(curr_times > lease_times){
......@@ -224,7 +242,7 @@
Leaf.request({
url: $('con731_submit_link').getUrl(),
para: {
change_req_id: ${/parameter/@change_req_id},
change_req_id: '${/parameter/@change_req_id}',
layout_code: '${/parameter/@layout_code}'
},
success: function(res) {
......
......@@ -30,7 +30,7 @@
<!-- <a:link id="hls_parameter_value_lov_link" url="${/request/@context_path}/modules/hls/HLS500/hls_parameter_value_lov.lview"/> -->
<a:link id="hls_fin_calculator_price_list" url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_price_list_n.lview"/>
<a:link id="hls_fin_calc_update" url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calc_update.lsc"/>
<a:link id="hls_fin_calculator_update" url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/>
<a:link id="hls_fin_calculator_update" url="${/request/@context_path}/modules/cont/CON_REPO001/hls_fin_calculator_update_n.lview"/>
<a:link id="hls_fin_calc_formula_update" url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calc_formula_update.lview"/>
<a:link id="hls_fin_calc_quotation_choose_id" url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calc_quotation_choose.lview"/>
<a:link id="hls_fin_calc_import_line_link_id" url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calc_import_line.lview"/>
......@@ -539,8 +539,8 @@
var ln_formula_record = $('ln_formula_ds').find('calc_line_id', lineRecords[i].get('calc_line_id'));
for (var j = 0;j < attribute_records.length;j++) {
var column_name = attribute_records[j].get('column_name');
/* var tooltip_ln_formula = escapeHtml(appendBr(ln_formula_record.get(column_name), 60));
lineRecords[i].getField(column_name).setPropertity('tooltip', tooltip_ln_formula);*/
/* var tooltip_ln_formula = escapeHtml(appendBr(ln_formula_record.get(column_name), 60));
lineRecords[i].getField(column_name).setPropertity('tooltip', tooltip_ln_formula);*/
}
}
}
......
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