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
04f11195
Commit
04f11195
authored
Dec 30, 2019
by
Darming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat]商业伙伴评分
parent
45c3f50c
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
244 additions
and
104 deletions
+244
-104
fnd_sc_score_query.lwm
.../webapp/WEB-INF/classes/fnd/FND714/fnd_sc_score_query.lwm
+1
-1
fnd_sc_score_result_dtl_query.lwm
...-INF/classes/fnd/FND714/fnd_sc_score_result_dtl_query.lwm
+96
-58
bp_tenant_detail_exists_query.lwm
...INF/classes/prj/PRJ500D/bp_tenant_detail_exists_query.lwm
+15
-0
bp_tenant_old_r_query.lwm
...app/WEB-INF/classes/prj/PRJ500D/bp_tenant_old_r_query.lwm
+24
-0
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+104
-44
prj_project_score_result_detail.lview
.../modules/prj/PRJ902/prj_project_score_result_detail.lview
+4
-1
No files found.
src/main/webapp/WEB-INF/classes/fnd/FND714/fnd_sc_score_query.lwm
View file @
04f11195
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
from prj_project prj
from prj_project prj
where prj.project_id = sc.object_id),
where prj.project_id = sc.object_id),
'PD',
'PD',
(select
bp.bp_name
(select
decode(bp.bp_class,'NP',bp.bp_name,'ORG',bp.legal_person)
from hls_bp_master bp
from hls_bp_master bp
where bp.bp_id = sc.object_id),
where bp.bp_id = sc.object_id),
'') object_name,
'') object_name,
...
...
src/main/webapp/WEB-INF/classes/fnd/FND714/fnd_sc_score_result_dtl_query.lwm
View file @
04f11195
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/classes/prj/PRJ500D/bp_tenant_detail_exists_query.lwm
0 → 100644
View file @
04f11195
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT count(1) list_count
FROM bp_tenant_rate_detail_v t1
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter
name=
"query"
expression=
"(rownum = 1)"
/>
</bm:data-filters>
</bm:model>
src/main/webapp/WEB-INF/classes/prj/PRJ500D/bp_tenant_old_r_query.lwm
0 → 100644
View file @
04f11195
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT *
FROM (
SELECT bp.*, fsr.object_id bp_id
FROM bp_tenant_rate_detail_v bp,
fnd_sc_score fss,
fnd_sc_score_result fsr,
fnd_score_template fst
WHERE bp.project_id = fss.project_id
AND fss.sc_score_id = fsr.sc_score_id
AND fsr.score_template_id = fst.score_template_id
AND fst.score_template_code = 'HL_CM_NP' order by bp.BP_DETAIL_ID desc) t1
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter
name=
"query"
expression=
"(rownum = 1)"
/>
</bm:data-filters>
</bm:model>
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
04f11195
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
]]>
]]>
</s:server-script>
</s:server-script>
<a:model-query
model=
"prj.PRJ500D.bp_tenant_detail_exists_query"
defaultWhereClause=
"t1.project_id=${/parameter/@project_id}"
rootPath=
"bp_tenant_detail_exists"
/>
<a:model-query
model=
"prj.PRJ500D.bp_tenant_old_r_query"
defaultWhereClause=
"t1.bp_id=${/parameter/@bp_id_tenant}"
rootPath=
"bp_tenant_detail_path"
/>
</a:init-procedure>
</a:init-procedure>
<a:view>
<a:view>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id"
<a:link
id=
"${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id"
...
@@ -614,15 +618,28 @@
...
@@ -614,15 +618,28 @@
});
});
}
}
if
(
name =
=
'bp_birth')
{
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
debugger;
if
(
score_ds_id =
=
ds.id)
{
if(jsGetAge(value.format('yyyy-mm-dd').toString())
==
-1){
if
(
name =
=
'bp_birth')
{
Leaf.showInfoMessage("提示","出生日期不能大于当前日期");
if
(jsGetAge(value.format('yyyy-mm-dd').toString())
==
-1)
{
setTimeout(function(){
Leaf.showInfoMessage("提示",
"出生日期不能大于当前日期");
record.set('bp_birth',old_value);
setTimeout(function
()
{
},0);
record.set('bp_birth',
old_value);
}else{
},
0);
record.set('bp_age',jsGetAge(value.format('yyyy-mm-dd').toString()));
}
else
{
record.set('bp_age',
jsGetAge(value.format('yyyy-mm-dd').toString()));
}
}
}
var
device_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_SCORE_DEVICE',
'bp_tenant_rate_item');
if
(
device_ds_id =
=
ds.id)
{
if
(
name =
=
'quantity')
{
if
(value
<=
0)
{
Leaf.showInfoMessage("提示",
"数量必须大于等于0");
setTimeout(function
()
{
record.set('quantity',
old_value);
},
0);
}
}
}
}
}
};
};
...
@@ -647,6 +664,16 @@
...
@@ -647,6 +664,16 @@
};
};
function
arrToObject(arr)
{
var
strJs =
'({'
;
for
(var
i =
0;
i
<
arr.length;
i
+=
1)
{
var
as =
arr[i].split("=");
strJs =
strJs
+
as[0]
+
':'
+
'"'
+
as[1]
+
'"'
+
',';
}
strJs =
strJs.substr(0,
strJs.length
-
1)
+
'})';
return
eval(strJs);
}
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
if
(
ds_id =
=
ds.id
&&
ds_id)
{
if
(
ds_id =
=
ds.id
&&
ds_id)
{
...
@@ -657,14 +684,30 @@
...
@@ -657,14 +684,30 @@
record.getField('bank_account_id_n').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
}
}
}
}
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
if
(
score_ds_id =
=
ds.id){
if
(
score_ds_id =
=
ds.id)
{
if
(!record.get('score_name'))
{
if
(!record.get('score_name'))
{
if
($(ds_id).getCurrentRecord())
{
if
($(ds_id).getCurrentRecord())
{
var
score_name =
$(ds_id).getCurrentRecord().get('legal_person')
||
$(ds_id).getCurrentRecord().get('bp_id_tenant_n');
var
score_name =
$(ds_id).getCurrentRecord().get('legal_person')
||
$(ds_id).getCurrentRecord().get('bp_id_tenant_n');
record.set('score_name',score_name);
record.set('score_name',
score_name);
}
}
}
}
var
str_r =
String('${/model/bp_tenant_detail_path/record}').replace('{','').replace('}','');
if('${/model/bp_tenant_detail_exists/record/@list_count}'
==
0){
var
obj =
JSON.parse('{'
+
str_r.replace(/(\w+)=/g,
'"$1":').replace(/:([^,]*)/g,':"$1"')
+
'}');
for(var
key
in
record.data){
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name')
{
var
vl =
obj[key];
if(
key =
=
'bp_birth'){
vl =
new
Date(obj[key].toString());
}
if(vl
!=
"null"){
record.set(key,vl);
}
}
}
}
}
}
};
};
...
@@ -723,6 +766,25 @@
...
@@ -723,6 +766,25 @@
record.set('lease_item_seq',
rk_value);
record.set('lease_item_seq',
rk_value);
}
}
var
device_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_SCORE_DEVICE',
'bp_tenant_rate_item');
var
traffic_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_SCORE_TRAFFIC',
'bp_tenant_rate_item');
if
((
device_ds_id =
=
ds.id
&&
device_ds_id)
||
(
traffic_ds_id =
=
ds.id
&&
traffic_ds_id))
{
//设置序号
var
rs =
ds.getAll(),
seq_num =
0;
if
(rs.length)
{
for
(var
j =
0;
j
<
rs.length;
j++)
{
var
r =
rs[j],
rk =
r.get('seq_num');
if
(seq_num
<=
rk)
{
seq_num =
rk;
}
}
}
var
rk_value =
seq_num
+
1;
record.set('seq_num',
rk_value);
}
};
};
//indexchange事件(grid,attach,gridbox,table)
//indexchange事件(grid,attach,gridbox,table)
...
@@ -743,37 +805,35 @@
...
@@ -743,37 +805,35 @@
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
record =
$(ds_id).getCurrentRecord();
var
record =
$(ds_id).getCurrentRecord();
var
param =
record.data;
if
(record)
{
if
(record.get('project_id'))
{
var
param =
record.data;
if
(record.get('project_id'))
{
//
if(record.get('project_status')=='NEW'||record.get('project_status')=='APPROVE_RETURN'||record.get('project_status')=='REJECT'){
param['project_id']
=
record.get('project_id');
//
param['function_code']
=
'PRJ501TENANT';
param['winid']
=
'hl_tenant_score_rate_win_id';
//
param['function_usage']
=
'UPDATE';
param['url_title']
=
'客户评分明细';
//
}else{
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
//
param['function_code']
=
'PRJ501TENANT';
var
r =
$(score_ds_id).getCurrentRecord();
//
param['function_usage']
=
'QUERY';
if
(r.dirty)
{
//
}
Leaf.showInfoMessage('提示',
'评分数据发生修改,请先保存再进行评分');
//
return;
param['project_id']
=
record.get('project_id');
}
param['winid']
=
'hl_tenant_score_rate_win_id';
if
($(ds_id).validate())
{
param['url_title']
=
'客户评分明细';
var
win =
new
Leaf.Window({
//
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id',
param,
'${/parameter/@layout_code}_tenant_rate_query_link',
'${/parameter/@layout_code}');
id:
param['winid'],
var
win =
new
Leaf.Window({
params:
param,
id:
param['winid'],
url:
$('${/parameter/@layout_code}_tenant_rate_query_link').getUrl(),
params:
param,
title:
param['url_title'],
url:
$('${/parameter/@layout_code}_tenant_rate_query_link').getUrl(),
fullScreen:
true,
title:
param['url_title'],
draggable:
true
fullScreen:
true,
});
draggable:
true
}
});
}
else
{
Leaf.showMessage('${l:PROMPT}',
'请先保存');
}
else
{
return;
Leaf.showMessage('${l:PROMPT}',
'请先保存');
}
return;
}
}
};
}
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click']
=
function
()
{
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
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
lease_item_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project_lease_item');
...
...
src/main/webapp/modules/prj/PRJ902/prj_project_score_result_detail.lview
View file @
04f11195
...
@@ -48,6 +48,9 @@
...
@@ -48,6 +48,9 @@
if (record.get('summary_flag') == 'Y') {
if (record.get('summary_flag') == 'Y') {
return '';
return '';
}
}
if (value == 'DQ'){
return '
<font
color=
red
>
'+ value + '
</font>
';
}
return value;
return value;
}
}
...
@@ -298,7 +301,7 @@
...
@@ -298,7 +301,7 @@
<a:column
name=
"target_value_name"
prompt=
"指标值"
width=
"250"
/>
<a:column
name=
"target_value_name"
prompt=
"指标值"
width=
"250"
/>
<!-- <a:column name="score_value" prompt="权重" renderer="fnd714_sc_score_result_dtl_render_score_value" width="80"/> -->
<!-- <a:column name="score_value" prompt="权重" renderer="fnd714_sc_score_result_dtl_render_score_value" width="80"/> -->
<!-- <a:column name="target_score" editorFunction="fnd714_sc_score_result_dtl_grid_editorFunc" prompt="FND714.TARGET_SCORE" renderer="fnd714_sc_score_result_dtl_render_target_score"/> -->
<!-- <a:column name="target_score" editorFunction="fnd714_sc_score_result_dtl_grid_editorFunc" prompt="FND714.TARGET_SCORE" renderer="fnd714_sc_score_result_dtl_render_target_score"/> -->
<a:column
name=
"target_score"
prompt=
"得分"
renderer=
"fnd714_sc_score_result_dtl_render_target_score"
width=
"80"
/>
<a:column
name=
"target_score"
prompt=
"得分"
align=
"right"
renderer=
"fnd714_sc_score_result_dtl_render_target_score"
width=
"80"
/>
<a:placeHolder
id=
"fnd714_dynamicColumns"
/>
<a:placeHolder
id=
"fnd714_dynamicColumns"
/>
<a:column
name=
"target_score_sum"
prompt=
"小计"
renderer=
"fnd714_sc_score_result_dtl_render_target_score_sum"
width=
"80"
/>
<a:column
name=
"target_score_sum"
prompt=
"小计"
renderer=
"fnd714_sc_score_result_dtl_render_target_score_sum"
width=
"80"
/>
</a:columns>
</a:columns>
...
...
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