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
Show 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,6 +78,61 @@
Leaf.Masker.mask(document.documentElement, '${l:HLS.LOADING}');
function hls_hls500_save(nextStep, source_procedure) {
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();
...
...
@@ -110,6 +167,16 @@
$('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');
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
b068c00f
...
...
@@ -39,15 +39,14 @@
model=
"hls.HLS500.hls_fin_calc_get_base_rate"
modelaction=
"update"
/>
<a:link
id=
"get_if_self_definition"
model=
"db.prj_project_pkg.get_if_self_definition"
modelaction=
"execute"
/>
<script
type=
"text/javascript"
>
<![CDATA[
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_CASHFLOW_NS', 'prj_quotation');
var record = $(quotation_ds_id).getCurrentRecord();
var head_record = $(ds_id).getAt(0);
if ('${/parameter/@calc_type}' == 'LITE_CALCULATOR') {
...
...
@@ -64,10 +63,10 @@
return;
}
if ($(quotation_ds_id).validate()) {
if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) {
/*
if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.QUOTATION_EXECUTE_AFTER_SAVE}');
return;
}
}
*/
var parent_pk_value = head_record.get('project_id');
record.set('function_code', 'PRJ505_QUOTATION');
...
...
@@ -97,6 +96,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$(quotation_ds_id).query();
$(history_ds_id).query();
var quotation_id = record.get('quotation_id') || res.result.record.quotation_id;
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid',
...
...
@@ -119,6 +119,7 @@
});
win.on('close', function () {
$(quotation_ds_id).query();
$(history_ds_id).query();
});
},
...
...
@@ -158,6 +159,7 @@
});
win.on('close', function () {
$(quotation_ds_id).query();
$(history_ds_id).query();
});
}else {
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
...
...
@@ -202,6 +204,7 @@
});
win.on('close', function () {
$(quotation_ds_id).query();
$(history_ds_id).query();
});
},
...
...
@@ -286,7 +289,6 @@
ka_prj_id: prj_record.get('ka_prj_id')
},
success: function (res) {
debugger;
var document_number = res.result.document_number;
prj_record.set('project_number', document_number);
check_flag = true;
...
...
@@ -427,7 +429,7 @@
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) {
debugger;
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp');
if (bp_ds_id == ds.id
&&
bp_ds_id) {
if (record.get('bp_category') == 'TENANT') {
...
...
@@ -440,6 +442,109 @@
}
}
};
//序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
//租赁物序号
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item');
if (ds_id == ds.id
&&
ds_id) {
//设置序号
var measure_records = ds.getAll(),
seq_num = 0;
if (measure_records.length) {
for (var j = 0;j
< measure_records.length
;j++)
{
var
measure_record =
measure_records[j],
rk =
measure_record.get('lease_item_seq');
if
(seq_num
<=
rk)
{
seq_num =
rk;
}
}
}
var
rk_value =
seq_num
+
1;
record.set('lease_item_seq',
rk_value);
}
};
//客户评分
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click']
=
function()
{
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
record =
$(ds_id).getCurrentRecord();
var
param =
{};
if(record.get('project_id')){
if(record.get('project_status')=='NEW'||record.get('project_status')=='APPROVE_RETURN'||record.get('project_status')=='REJECT'){
param['function_code']
=
'PRJ501TENANT';
param['function_usage']
=
'UPDATE';
}else{
param['function_code']
=
'PRJ501TENANT';
param['function_usage']
=
'QUERY';
}
param['project_id']
=
record.get('project_id');
param['winid']
=
'hl_tenant_score_rate_win_id';
param['url_title']
=
'客户评分明细';
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id',
param,
'${/parameter/@layout_code}tenant_rate_query_link',
'${/parameter/@layout_code}');
}else{
Leaf.showMessage('${l:PROMPT}',
'请先保存');
return;
}
}
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click']
=
function
()
{
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
lease_item_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project_lease_item');
var
quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
var
bp_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project_bp');
var
record =
$(quotation_ds_id).getCurrentRecord();
var
current_record =
$(ds_id).getCurrentRecord();
var
lease_item_record =
$(lease_item_ds_id).getCurrentRecord();
var
bp_record =
$(bp_ds_id).getCurrentRecord();
var
project_id =
current_record.get('project_id');
if
(
current_record.dirty =
=
true)
{
Leaf.showMessage('${l:PROMPT}',
'${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
if
(
record.dirty =
=
true)
{
Leaf.showMessage('${l:PROMPT}',
'${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
if
(
lease_item_record.dirty =
=
true)
{
Leaf.showMessage('${l:PROMPT}',
'${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
if
(
bp_record.dirty =
=
true)
{
Leaf.showMessage('${l:PROMPT}',
'${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
if($(ds_id).validate()){
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('prj_approval_link_id').getUrl(),
para:
{
project_id:
project_id
},
scope:
this,
success:
function()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure:
function()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error:
function()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}
}
/*
Leaf.onReady(function(){
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO',
'hls_bp_master');
var
url=
'${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}'
;
...
...
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