Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
98e76b74
Commit
98e76b74
authored
Oct 31, 2019
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat]租金计划变更
parent
2dff001d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1520 additions
and
8 deletions
+1520
-8
con_change_calc.lwm
...in/webapp/WEB-INF/classes/cont/CON731/con_change_calc.lwm
+28
-0
hls_fin_calc_single_variable_calc.lwm
...classes/cont/CON731/hls_fin_calc_single_variable_calc.lwm
+35
-0
hls_con_contract_change_detail.lview
.../modules/cont/CON731/hls_con_contract_change_detail.lview
+23
-5
hls_fin_calculator_update_n.lview
...app/modules/cont/CON731/hls_fin_calculator_update_n.lview
+1431
-0
hls_fin_calculator_update_n.lview
...odules/cont/CON_REPO001/hls_fin_calculator_update_n.lview
+3
-3
No files found.
src/main/webapp/WEB-INF/classes/cont/CON731/con_change_calc.lwm
0 → 100644
View file @
98e76b74
<?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>
src/main/webapp/WEB-INF/classes/cont/CON731/hls_fin_calc_single_variable_calc.lwm
0 → 100644
View file @
98e76b74
<?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>
src/main/webapp/modules/cont/CON731/hls_con_contract_change_detail.lview
View file @
98e76b74
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<a:link
id=
"calc_leasse_amount_link"
model=
"cont.CON731.calc_leasse_date"
modelaction=
"execute"
/>
<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_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=
"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=
"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_submit_link"
model=
"cont.CON731.submit_change_req"
modelaction=
"execute"
/>
<a:link
id=
"con731_cancel_link"
model=
"cont.CON731.cancel_change_req"
modelaction=
"execute"
/>
<a:link
id=
"con731_cancel_link"
model=
"cont.CON731.cancel_change_req"
modelaction=
"execute"
/>
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<script
src=
"${/request/@context_path}/javascripts/lightbox.js"
type=
"text/javascript"
/>
<script
src=
"${/request/@context_path}/javascripts/lightbox.js"
type=
"text/javascript"
/>
<link
href=
"${/request/@context_path}/css/lightbox.css"
rel=
"stylesheet"
type=
"text/css"
/>
<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=
"${/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[
<script
type=
"text/javascript"
>
<![CDATA[
Ext.ux.Lightbox.register('a[ref=img]', true);
Ext.ux.Lightbox.register('a[ref=img]', true);
Leaf.onReady(function() {
Leaf.onReady(function() {
...
@@ -55,7 +56,7 @@
...
@@ -55,7 +56,7 @@
Leaf.request({
Leaf.request({
url: $('con733_quote_calc_change_req_link').getUrl(),
url: $('con733_quote_calc_change_req_link').getUrl(),
para: {
para: {
change_req_id:
${/parameter/@change_req_id}
,
change_req_id:
'${/parameter/@change_req_id}'
,
ccr_start_times: ccr_start_times,
ccr_start_times: ccr_start_times,
ccr_outstanding_times: ccr_outstanding_times,
ccr_outstanding_times: ccr_outstanding_times,
calc_session_id: calc_session_id
calc_session_id: calc_session_id
...
@@ -67,7 +68,7 @@
...
@@ -67,7 +68,7 @@
quo_win = new Leaf.Window({
quo_win = new Leaf.Window({
id: '${/parameter/@layout_code}_hls_fin_calc_quotation_link_winid',
id: '${/parameter/@layout_code}_hls_fin_calc_quotation_link_winid',
params: {
params: {
document_id:
${/parameter/@change_req_id}
,
document_id:
'${/parameter/@change_req_id}'
,
document_category: document_category,
document_category: document_category,
maintain_type: 'UPDATE',
maintain_type: 'UPDATE',
calc_session_id: res.result.calc_session_id,
calc_session_id: res.result.calc_session_id,
...
@@ -145,9 +146,26 @@
...
@@ -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;
var lease_times = record.get('lease_times')||0;
if(name == 'ccr_start_times'){
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 ccr_outstanding_times = record.get('ccr_outstanding_times')||0;
var curr_times = minus(plus(value || 0,ccr_outstanding_times||0),1);
var curr_times = minus(plus(value || 0,ccr_outstanding_times||0),1);
if(curr_times >
lease_times){
if(curr_times >
lease_times){
...
@@ -224,7 +242,7 @@
...
@@ -224,7 +242,7 @@
Leaf.request({
Leaf.request({
url:
$('con731_submit_link').getUrl(),
url:
$('con731_submit_link').getUrl(),
para:
{
para:
{
change_req_id:
${/parameter/@change_req_id}
,
change_req_id:
'${/parameter/@change_req_id}'
,
layout_code:
'${/parameter/@layout_code}'
layout_code:
'${/parameter/@layout_code}'
},
},
success:
function(res)
{
success:
function(res)
{
...
...
src/main/webapp/modules/cont/CON731/hls_fin_calculator_update_n.lview
0 → 100644
View file @
98e76b74
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON_REPO001/hls_fin_calculator_update_n.lview
View file @
98e76b74
...
@@ -30,7 +30,7 @@
...
@@ -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_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_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_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_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_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"
/>
<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 @@
...
@@ -539,8 +539,8 @@
var
ln_formula_record =
$('ln_formula_ds').find('calc_line_id',
lineRecords[i].get('calc_line_id'));
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++)
{
for
(var
j =
0;j
<
attribute_records.length;j++)
{
var
column_name =
attribute_records[j].get('column_name');
var
column_name =
attribute_records[j].get('column_name');
/*
var
tooltip_ln_formula =
escapeHtml(appendBr(ln_formula_record.get(column_name),
60));
/*
var
tooltip_ln_formula =
escapeHtml(appendBr(ln_formula_record.get(column_name),
60));
lineRecords[i].getField(column_name).setPropertity('tooltip',
tooltip_ln_formula);*/
lineRecords[i].getField(column_name).setPropertity('tooltip',
tooltip_ln_formula);*/
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment