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
006d0cec
Commit
006d0cec
authored
Jan 03, 2023
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
五级分类
parent
6706a8c7
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
392 additions
and
0 deletions
+392
-0
rsc_contract_query.lwm
.../webapp/WEB-INF/classes/rsc/RSC510/rsc_contract_query.lwm
+39
-0
rsc_insert_tab_id.lwm
...n/webapp/WEB-INF/classes/rsc/RSC510/rsc_insert_tab_id.lwm
+22
-0
rsc_update_text.lwm
...ain/webapp/WEB-INF/classes/rsc/RSC510/rsc_update_text.lwm
+17
-0
update_five_class.lwm
...n/webapp/WEB-INF/classes/rsc/RSC510/update_five_class.lwm
+17
-0
layout_config.js
...ebapp/WEB-INF/server-script/layoutconfig/layout_config.js
+11
-0
rsc_five_class_history.lview
...in/webapp/modules/rsc/RSC510/rsc_five_class_history.lview
+17
-0
rsc_five_class_wfl.lview
src/main/webapp/modules/rsc/RSC510/rsc_five_class_wfl.lview
+226
-0
rsc_update_text.lview
src/main/webapp/modules/rsc/RSC510/rsc_update_text.lview
+43
-0
No files found.
src/main/webapp/WEB-INF/classes/rsc/RSC510/rsc_contract_query.lwm
0 → 100644
View file @
006d0cec
<?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 t.*,(select scv.code_value_name
from sys_code_values_v scv
where scv.code = 'RSC_FIVE_CLASS_EXAMINE_STATUS'
and scv.code_value = t.status_name) status_name_n,
(select scv.code_value_name
from sys_code_values_v scv
where scv.code = 'RSC_FIVE_CLASS_CRITERION'
and scv.code_value = t.before_sort) before_sort_n ,
(SELECT hb.bp_name FROM hls_bp_master hb
where hb.bp_id=t.bp_id_tenant) bp_id_tenant_n,
(SELECT cc.contract_number FROM con_contract cc
where cc.contract_id=t.contract_id) contract_number_n FROM (SELECT cc.contract_id,
cc.overdue_max_days,
cc.bp_id_tenant,
cc.lease_channel,
'APPROVING' status_name,
nvl(cc.five_class, 'NORMAL') before_sort
FROM con_contract cc
where cc.data_class='NORMAL'
and cc.contract_number=${@contract_number}) t
]]>
</bm:query-sql>
</bm:operation>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
RSC_FIVE_CLASS_WFL.UPDATE_FINAL_SORT
(
p_estimate_num=>
${@estimate_num},
p_user_id=>${/session/@user_id}
);
end;]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/rsc/RSC510/rsc_insert_tab_id.lwm
0 → 100644
View file @
006d0cec
<?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=
"delete"
>
<bm:update-sql>
<![CDATA[
delete from con_five_table t where t.session_id = ${/session/@session_id}
]]>
</bm:update-sql>
</bm:operation>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
RSC_FIVE_CLASS_WFL.INSERT_CON_TEXT
(
p_tab_id=>
${@tab_id},
p_session_id=>${/session/@session_id}
);
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/rsc/RSC510/rsc_update_text.lwm
0 → 100644
View file @
006d0cec
<?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=
"update"
>
<bm:update-sql>
<![CDATA[
begin
RSC_FIVE_CLASS_WFL.UPDATE_CON_TEXT
( p_user_id=>
${/session/@user_id},
p_text=>${@text},
p_session_id=>${/session/@session_id}
);
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/rsc/RSC510/update_five_class.lwm
0 → 100644
View file @
006d0cec
<?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=
"update"
>
<bm:update-sql>
<![CDATA[
begin
RSC_FIVE_CLASS_WFL.REFRESH_FIVE_CLASS
(
p_estimate_num=>
${@estimate_num},
p_user_id=>${/session/@user_id}
);
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/server-script/layoutconfig/layout_config.js
View file @
006d0cec
...
@@ -317,6 +317,8 @@ var enableLayoutConfig = {
...
@@ -317,6 +317,8 @@ var enableLayoutConfig = {
'modules/lon/LON120/loan_contract_query.lview'
:
true
,
'modules/lon/LON120/loan_contract_query.lview'
:
true
,
'modules/lon/LON100/bp_funds_query.lview'
:
true
,
'modules/lon/LON100/bp_funds_query.lview'
:
true
,
'modules/lon/LON100/bp_credit_query.lview'
:
true
,
'modules/lon/LON100/bp_credit_query.lview'
:
true
,
'modules/cont/CON2000/collection_sms_query.lview'
:
true
,
'modules/cont/CON2000/project_maintain.lview'
:
true
,
'modules/rent/rent100/con_collection_trailer.lview'
:
true
,
'modules/rent/rent100/con_collection_trailer.lview'
:
true
,
'modules/rent/rent200/con_collection_income.lview'
:
true
,
'modules/rent/rent200/con_collection_income.lview'
:
true
,
'modules/cont/CON316/contract_cost_query_entrance.lview'
:
true
,
'modules/cont/CON316/contract_cost_query_entrance.lview'
:
true
,
...
@@ -326,5 +328,14 @@ var enableLayoutConfig = {
...
@@ -326,5 +328,14 @@ var enableLayoutConfig = {
'modules/hsbc/HSBC110/hsbc_paying_batch_modify.lview'
:
true
,
'modules/hsbc/HSBC110/hsbc_paying_batch_modify.lview'
:
true
,
'modules/hsbc/HSBC110/hsbc_paying_batch_detail.lview'
:
true
,
'modules/hsbc/HSBC110/hsbc_paying_batch_detail.lview'
:
true
,
'modules/hsbc/HSBC120/hsbc_paying_batch_query.lview'
:
true
,
'modules/hsbc/HSBC120/hsbc_paying_batch_query.lview'
:
true
,
'modules/hsbc/HSBC130/pingan_account_hisbalance_query.lview'
:
true
,
'modules/rsc/RSC510/rsc_five_class_wfl.lview'
:
true
,
'modules/rsc/RSC510/rsc_update_text.lview'
:
true
,
'modules/rsc/RSC510/rsc_five_class_history.lview'
:
true
,
'modules/hsbc/HSBC130/pingan_account_hisbalance_query.lview'
:
true
,
'modules/prj/PRJ501N/prj_project_lease_import_details.lview'
:
true
,
'modules/prj/PRJ501N/prj_project_lease_import.lview:'
:
true
,
'modules/csh/CSH531F/csh_bank_recoi_processing.lview'
:
true
,
'modules/csh/CSH531F/csh_bank_recoi_processing_workflow.lview'
:
true
'modules/hsbc/HSBC130/pingan_account_hisbalance_query.lview'
:
true
'modules/hsbc/HSBC130/pingan_account_hisbalance_query.lview'
:
true
};
};
\ No newline at end of file
src/main/webapp/modules/rsc/RSC510/rsc_five_class_history.lview
0 → 100644
View file @
006d0cec
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: 34291 gzj
$Date: 2022年9月5日
$Revision: 1.0
$Purpose:
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
customizationEnabled=
"true"
dynamiccreateenabled=
"true"
trace=
"true"
>
<a:view>
<script>
<![CDATA[
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
</a:view>
</a:screen>
src/main/webapp/modules/rsc/RSC510/rsc_five_class_wfl.lview
0 → 100644
View file @
006d0cec
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: 34291 gzj
$Date: 2022年9月5日
$Revision: 1.0
$Purpose:
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
customizationEnabled=
"true"
dynamiccreateenabled=
"true"
trace=
"true"
>
<a:init-procedure>
<a:model-query
model=
"rsc.RSC510.workflow_info"
defaultWhereClause=
"instance_id=${/parameter/@instance_id}"
rootPath=
"wolkflow_path"
></a:model-query>
</a:init-procedure>
<a:view>
<a:link
id=
"update_final_sort_id"
model=
"rsc.RSC510.rsc_contract_query"
modelaction=
"update"
/>
<a:link
id=
"update_five_class_link"
model=
"rsc.RSC510.update_five_class"
modelaction=
"update"
/>
<a:link
id=
"update_text_link"
url=
"${/request/@context_path}/modules/rsc/RSC510/rsc_update_text.lview"
/>
<script>
<![CDATA[
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
if('${/model/wolkflow_path/record/@current_seq}' == '10'){
var ds_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_five_classification');
var records = $(ds_id).getCurrentRecord();
if(ds.id==ds_id){
if(name=='final_sort') {
debugger
var presorting_result = records.get('presorting_result');
var final_sort = records.get('final_sort');
if(presorting_result != final_sort){
records.getField('text').setRequired(true);
}
if(presorting_result == final_sort){
records.getField('text').setRequired(false);
}
}
}
}else{
var ds_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
var ds_id_s=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT_SAME', 'con_five_classification');
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_five_classification');
var records = $(ds_id).getCurrentRecord();
var records_s = $(ds_id_s).getCurrentRecord();
if(ds.id==ds_id){
if(name=='final_sort') {
debugger
var presorting_result = records.get('presorting_result');
var final_sort = records.get('final_sort');
if(presorting_result != final_sort){
records.getField('text').setRequired(true);
}
if(presorting_result == final_sort){
records.getField('text').setRequired(false);
}
}
}
if(ds.id==ds_id_s){
if(name=='final_sort') {
debugger
var presorting_result = records_s.get('presorting_result');
var final_sort = records_s.get('final_sort');
if(presorting_result != final_sort){
records_s.getField('text').setRequired(true);
}
if(presorting_result == final_sort){
records_s.getField('text').setRequired(false);
}
}
}
}
}
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
if ('${/model/wolkflow_path/record/@current_seq}' == '30') {
document.getElementById("RSC_FIVE_CLASS_WFL_query").style.display = "none";
document.getElementById("RSC_FIVE_CLASS_WFL_user_button1").style.display = "none";
document.getElementById("RSC_FIVE_CLASS_WFL_user_button2").style.display = "none";
}
if('${/model/wolkflow_path/record/@current_seq}' == '20'){
document.getElementById("RSC_FIVE_CLASS_WFL_user_button1").style.display = "none";
document.getElementById("RSC_FIVE_CLASS_WFL_user_button2").style.display = "none";
document.getElementById("RSC_FIVE_CLASS_WFL_RESULT_SAVE_layout_dynamic_button_id").style.display = "none";
document.getElementById("RSC_FIVE_CLASS_WFL_RESULT_ADD_layout_dynamic_button_id").style.display = "none";
}
var estimate_num = '${/parameter/@estimate_num}';
if('${/model/wolkflow_path/record/@current_seq}' == '10'){
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
var records = $(ds_id).getAll();
for (var i = 0;i < records.length;i++) {
records[i].getField('contract_number').setReadOnly(true);
records[i].getField('contract_number_n').setReadOnly(true);
}
}else{
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
var ds_id_s=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT_SAME', 'con_five_classification');
var records = $(ds_id).getAll();
var records_s = $(ds_id_s).getAll();
for (var i = 0;i < records.length;i++) {
records[i].getField('contract_number').setReadOnly(true);
records[i].getField('contract_number_n').setReadOnly(true);
records[i].getField('text').setReadOnly(true);
records[i].getField('final_sort').setReadOnly(true);
records[i].getField('final_sort_n').setReadOnly(true);
}
for (var i = 0;i < records_s.length;i++) {
records_s[i].getField('contract_number').setReadOnly(true);
records_s[i].getField('contract_number_n').setReadOnly(true);
records_s[i].getField('text').setReadOnly(true);
records_s[i].getField('final_sort').setReadOnly(true);
records_s[i].getField('final_sort_n').setReadOnly(true);
}
}
Leaf.request({
url: $('update_final_sort_id').getUrl(),
para: {
estimate_num: estimate_num
},
success: function () {
// $(ds_id).query();
// $(ds_id_s).query();
},
error: function () {
},
failure: function () {
},
scope: this
})
}
//刷新
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var estimate_num = '${/parameter/@estimate_num}';
if('${/model/wolkflow_path/record/@current_seq}' == '10'){
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
Leaf.request({
url: $('update_five_class_link').getUrl(),
para: {
estimate_num: estimate_num
},
success: function() {
$(ds_id).query();
Leaf.SideBar.show({
msg:'刷新成功',
duration: 2000
});
},
failure: function() {
},
error: function() {
},
scope: this
});
}else{
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
var ds_id_s=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT_SAME', 'con_five_classification');
Leaf.request({
url: $('update_five_class_link').getUrl(),
para: {
estimate_num: estimate_num
},
success: function() {
$(ds_id).query();
$(ds_id_s).query();
Leaf.SideBar.show({
msg:'刷新成功',
duration: 2000
});
},
failure: function() {
},
error: function() {
},
scope: this
});
}
}
//批量录入说明
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
if('${/model/wolkflow_path/record/@current_seq}' == '10'){
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
var record = $(ds_id).getSelected();
if(record.length<1){
Leaf.showMessage('${l:HLS.PROMPT}', '请至少选择一条数据!');
return;
}
var win = new Leaf.Window({
id: 'update_text_winid',
url: $('update_text_link').getUrl(),
title: '批量录入说明',
height: 400,
width: 450,
});
}else{
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT', 'con_five_classification');
var ds_id_s=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'RESULT_SAME', 'con_five_classification');
var record = $(ds_id).getSelected();
var record_s = $(ds_id_s).getSelected();
if((record.length<1)&&(record_s.length<1)){
Leaf.showMessage('${l:HLS.PROMPT}', '请至少选择一条数据!');
return;
}
var win = new Leaf.Window({
id: 'update_text_winid',
url: $('update_text_link').getUrl(),
title: '批量录入说明',
height: 400,
width: 450,
});
}
}
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
</a:view>
</a:screen>
src/main/webapp/modules/rsc/RSC510/rsc_update_text.lview
0 → 100644
View file @
006d0cec
<?xml version="1.0" encoding="UTF-8"?>
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
>
<a:view>
<a:link
id=
"update_text_ds_link_id"
model=
"rsc.RSC510.rsc_update_text"
modelaction=
"update"
></a:link>
<script>
<![CDATA[
function back() {
$('update_text_winid').close();
}
function commit(){
debugger;
var count_ds=$('rsc_text_ds');
var new_record = $('RSC_FIVE_CLASS_WFL_RESULT_con_five_classification_ds').getSelected();
var record=count_ds.getCurrentRecord();
var text = record.get('text');
for (var i = 0;i < new_record.length;i++) {
var record = new_record[i];
record.set('text',text);
}
$('update_text_winid').close();
}
]]>
</script>
<a:dataSets>
<a:dataSet
id=
"rsc_text_ds"
autoCreate=
"true"
>
<a:fields>
<a:field
name=
"text"
required=
"true"
/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton
click=
"back"
text=
"后退"
/>
<a:gridButton
click=
"commit"
text=
"提交"
/>
</a:screenTopToolbar>
<a:fieldSet
style=
"margin-left:10px;margin-top:10px;"
labelWidth=
"130"
title=
"说明信息"
width=
"400"
>
<a:textField
name=
"text"
prompt=
"说明"
bindTarget=
"rsc_text_ds"
width=
"180"
/>
</a:fieldSet>
</a:screenBody>
</a:view>
</a:screen>
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