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
b068c00f
Commit
b068c00f
authored
Sep 20, 2019
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商机维护修改-ljj
parent
81460466
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1004 additions
and
70 deletions
+1004
-70
check_prj_record.lwm
...n/webapp/WEB-INF/classes/hls/HLS500N/check_prj_record.lwm
+30
-0
project_approval.lwm
...n/webapp/WEB-INF/classes/prj/PRJ501N/project_approval.lwm
+22
-0
hls_fin_calculator_update_n.lview
...app/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
+111
-33
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+130
-25
prj_project_create_entrance.lview
...app/modules/prj/PRJ500N/prj_project_create_entrance.lview
+2
-0
prj_project_history_display.lview
...app/modules/prj/PRJ501N/prj_project_history_display.lview
+13
-0
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+105
-3
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+581
-0
prj_project_modify_entrance.lview
...app/modules/prj/PRJ501N/prj_project_modify_entrance.lview
+10
-9
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS500N/check_prj_record.lwm
0 → 100644
View file @
b068c00f
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2014-2-28 下午03:32:03
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
begin
prj_project_check_pkg.check_prj_record(
p_project_id =>
${@project_id},
p_payment_deduction =>${@payment_deduction},
p_secondary_lease =>${@secondary_lease},
p_price_list =>${@price_list}
);
end;
]]>
</bm:update-sql>
<bm:parameters>
<bm:parameter
name=
"payment_deduction"
dataType=
"java.lang.String"
input=
"false"
output=
"true"
outputPath=
"/parameter/@payment_deduction"
/>
<bm:parameter
name=
"secondary_lease"
dataType=
"java.lang.String"
input=
"false"
output=
"true"
outputPath=
"/parameter/@secondary_lease"
/>
<bm:parameter
name=
"price_list"
dataType=
"java.lang.String"
input=
"false"
output=
"true"
outputPath=
"/parameter/@price_list"
/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/prj/PRJ501N/project_approval.lwm
0 → 100644
View file @
b068c00f
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: shenyamin
$Date: 2018-11_03 上午11:00:06
$Revision: 3.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
prj_project_pkg.project_submit(
p_project_id =>
${@project_id},
p_user_id => ${/session/@user_id}
);
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
View file @
b068c00f
...
...
@@ -35,6 +35,8 @@
<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_show_display_line_link_id"
url=
"${/request/@context_path}/modules/hls/HLS500N/hls_fin_calc_show_display_line_n.lview"
/>
<a:link
id=
"prj_check_prj_record_link_id"
model=
"hls.HLS500N.check_prj_record"
modelaction=
"execute"
/>
<style>
<![CDATA[
.finGrid td[dataindex=percent]{
border-right-color:#FFF;
...
...
@@ -76,40 +78,105 @@
Leaf.Masker.mask(document.documentElement, '${l:HLS.LOADING}');
function hls_hls500_save(nextStep, source_procedure) {
lock_calc_current_window('${l:HLS.SAVING}');
if (!$('hls_fin_calculator_hd_ds').validate() || !$('hls_fin_calculator_ln_ds').validate()) {
unlock_calc_current_window();
return;
}
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if (!$('temp_hd_attribute_ds').find('column_code', temp_head_records[i].get('column_code'))) {
$('temp_hd_attribute_ds').create(temp_head_records[i].data);
}
}
var all_records = $('temp_hd_attribute_ds').getAll();
var headRecord = $('hls_fin_cal_save_hd_ds').getAt(0);
headRecord.isNew = false;
headRecord.dirty = true;
create_record_column(all_records, headRecord);
function hls_fin_cal_save_hd_submitsuccess(ds, res) {
if (typeof(nextStep) == 'function') {
nextStep(source_procedure);
} else {
function on_ln_formula_load(ds) {
Leaf.SideBar.enable = true;
success_sidebar_show();
Leaf.request({
url: $('prj_check_prj_record_link_id').getUrl(),
para: {
'project_id': '${/parameter/@document_id}'
},
success: function(res) {
var secondary_lease = res.result.secondary_lease;
var payment_deduction = res.result.payment_deduction;
var price_list = res.result.price_list;
if(price_list=='DS_PRICE_10' && secondary_lease=='NO'){
var count=0;
var denominator=0;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if(temp_head_records[i].get('column_code')=='H16'||temp_head_records[i].get('column_code')=='H97'){
count=count+temp_head_records[i].get('column_value')||0
}else if(temp_head_records[i].get('column_code')=='H99'||temp_head_records[i].get('column_code')=='H102'){
denominator=denominator+temp_head_records[i].get('column_value')||0
}
}
if((count/denominator)<0.15){
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于15%');
unlock_calc_current_window('${l:HLS.CALCULATING}');
return;
}
}
if(price_list=='DS_PRICE_10'){
if(payment_deduction!='TRADE_IN'){
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if(temp_head_records[i].get('column_code')=='H109') {
temp_head_records[i].set('column_value',0);
// temp_head_records[i].set('column_value_c',0);
}
}
}else{
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
var H16;
if(temp_head_records[i].get('column_code')=='H16'){
H16=temp_head_records[i].get('column_value');
}
if(temp_head_records[i].get('column_code')=='H109') {
temp_head_records[i].set('column_value',H16);
// temp_head_records[i].set('column_value_c',0);
}
}
}
}
lock_calc_current_window('${l:HLS.SAVING}');
if (!$('hls_fin_calculator_hd_ds').validate() || !$('hls_fin_calculator_ln_ds').validate()) {
unlock_calc_current_window();
$('ln_formula_ds').un('load', on_ln_formula_load)
;
return
;
}
$('ln_formula_ds').on('load', on_ln_formula_load);
$('ln_formula_ds').query();
}
}
$('hls_fin_cal_save_hd_ds').on('submitsuccess', hls_fin_cal_save_hd_submitsuccess);
Leaf.SideBar.enable = false;
$('hls_fin_cal_save_hd_ds').submit();
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if (!$('temp_hd_attribute_ds').find('column_code', temp_head_records[i].get('column_code'))) {
$('temp_hd_attribute_ds').create(temp_head_records[i].data);
}
}
var all_records = $('temp_hd_attribute_ds').getAll();
var headRecord = $('hls_fin_cal_save_hd_ds').getAt(0);
headRecord.isNew = false;
headRecord.dirty = true;
create_record_column(all_records, headRecord);
function hls_fin_cal_save_hd_submitsuccess(ds, res) {
if (typeof(nextStep) == 'function') {
nextStep(source_procedure);
} else {
function on_ln_formula_load(ds) {
Leaf.SideBar.enable = true;
success_sidebar_show();
unlock_calc_current_window();
$('ln_formula_ds').un('load', on_ln_formula_load);
}
$('ln_formula_ds').on('load', on_ln_formula_load);
$('ln_formula_ds').query();
}
}
$('hls_fin_cal_save_hd_ds').on('submitsuccess', hls_fin_cal_save_hd_submitsuccess);
Leaf.SideBar.enable = false;
$('hls_fin_cal_save_hd_ds').submit();
},
failure: function() {
},
error: function() {
},
scope: this
});
}
...
...
@@ -120,6 +187,7 @@
function hls_hls500_calc() {
lock_calc_current_window('${l:HLS.CALCULATING}');
hls_hls500_save(calc_execute, 'CALC');
}
...
...
@@ -561,6 +629,14 @@
}
function
do_hls500_head_update(ds,
record,
name,
value,
old_value)
{
if
(record.get('column_code')
==
'H54'
)
{
var
sum=
record.get('column_value')-4.75
if(sum<0){
Leaf.showMessage('${l:PROMPT}',
'利率最低值不能低于4.75');
return;
}
}
if
(record.get('lov_return_vcode')
==
'N'
&&
(record.get('validation_type')
==
'COMBOBOX'
||
record.get('validation_type')
==
'LOV'))
{
value =
record.get('column_value_c');
}
else
{
...
...
@@ -598,6 +674,7 @@
recreate_L_formula =
'N'
;
}
}
onEditorupdate(ds,
record,
name,
value,
old_value);
}
...
...
@@ -700,6 +777,7 @@
}
function onEditorHdload(ds) {
var headRecords = ds.getAll();
if (headRecords[0].get('show_column_code') == 'N') {
$('hls_fin_calculator_hd_grid_id').hideColumn('column_code');
...
...
@@ -905,7 +983,7 @@
document_category:
'${/parameter/@document_category}'
},
success:
function()
{
$('${/parameter/@dsId}').query();
$('${/parameter/@dsId}').query();
if
('${/parameter/@quotation_id}')
{
var
win =
new
Leaf.Window({
id:
'hls_fin_calc_quotation_choose_winid',
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
b068c00f
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/prj/PRJ500N/prj_project_create_entrance.lview
View file @
b068c00f
...
...
@@ -35,6 +35,8 @@
record.set('document_category', 'PROJECT');
record.set('default_value_dsid', ds_id);
record.data['url_title'] = '租赁申请创建';
var division=record.get('division');
record.set('division',division);
var param = record.data;
record.set('winid', 'prj_porject_create_win_id');
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_history_display.lview
0 → 100644
View file @
b068c00f
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-3 上午10:57:29
$Revision: 1.0
$Purpose: 项目报告维护
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
customizationEnabled=
"true"
dynamiccreateenabled=
"true"
trace=
"true"
>
<a:view>
<script
type=
"text/javascript"
>
<![CDATA[
]]>
</script>
</a:view>
</a:screen>
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
b068c00f
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
0 → 100644
View file @
b068c00f
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/prj/PRJ501N/prj_project_modify_entrance.lview
View file @
b068c00f
...
...
@@ -43,29 +43,30 @@
param['layout_debugger_flag'] = 'Y';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'prj_project_modify_link', ds_id);
} else if (record.get('document_type') == 'CARLS') {
if (record.get('project_status') != 'PRE_APPROVING') {
maintain_type = 'UPDATE';
if (record.get('project_status') == 'APPROVED' ||record.get('project_status') == 'APPROVING') {
maintain_type = 'READONLY';
param = record.data;
param['bp_id_tenant'] = record.get('bp_id_tenant');
param['document_id'] = record.get('project_id');
param['function_code'] = 'PRJ501
D
';
param['function_usage'] = '
MODIF
Y';
param['function_code'] = 'PRJ501
_WFL
';
param['function_usage'] = '
QUER
Y';
param['bp_class'] = 'NP';
param['maintain_type'] = maintain_type;
param['bp_id'] = record.get('bp_id');
param['prj_bp_id'] = record.get('prj_bp_id');
param['bp_id_tenant'] = record.get('bp_id_tenant');
param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'car_modify_link', ds_id);
} else {
maintain_type = '
READONLY
';
maintain_type = '
UPDATE
';
param = record.data;
param['bp_id_tenant'] = record.get('bp_id_tenant');
param['document_id'] = record.get('project_id');
param['function_code'] = 'PRJ501D';
param['function_usage'] = '
QUER
Y';
param['function_usage'] = '
MODIF
Y';
param['bp_class'] = 'NP';
param['maintain_type'] = maintain_type;
param['bp_id'] = record.get('bp_id');
param['prj_bp_id'] = record.get('prj_bp_id');
param['bp_id_tenant'] = record.get('bp_id_tenant');
param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'car_modify_link', ds_id);
}
...
...
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