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
8db3d770
Commit
8db3d770
authored
Oct 31, 2022
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月结修改
parent
3445c74f
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
676 additions
and
29 deletions
+676
-29
con_exist_approving.lwm
...webapp/WEB-INF/classes/hls/HLS801/con_exist_approving.lwm
+25
-0
con_monthly_statement.lwm
...bapp/WEB-INF/classes/hls/HLS801/con_monthly_statement.lwm
+44
-0
con_monthly_statement_wfl.lwm
.../WEB-INF/classes/hls/HLS801/con_monthly_statement_wfl.lwm
+40
-0
get_wfl_status.lwm
...main/webapp/WEB-INF/classes/hls/HLS801/get_wfl_status.lwm
+22
-0
hls_attachment_list.lwm
...webapp/WEB-INF/classes/hls/HLS801/hls_attachment_list.lwm
+20
-0
downloadFile.lview
src/main/webapp/downloadFile.lview
+79
-0
hls_monthly_enclosure_wfl.lview
...webapp/modules/hls/HLS801/hls_monthly_enclosure_wfl.lview
+156
-0
hls_monthly_statement.lview
...ain/webapp/modules/hls/HLS801/hls_monthly_statement.lview
+290
-29
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS801/con_exist_approving.lwm
0 → 100644
View file @
8db3d770
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022年6月14日
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:fields>
<bm:field
name=
"wfl_count"
databaseType=
"NUMBER"
datatype=
"java.lang.Long"
physicalName=
"WFL_COUNT"
/>
</bm:fields>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT count(1) wfl_count
FROM con_monthly_statement t
where t.history_flag='N'
and t.status_name ='APPROVING'
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field
name=
"wfl_count"
></bm:field>
</bm:fields>
</bm:model>
src/main/webapp/WEB-INF/classes/hls/HLS801/con_monthly_statement.lwm
0 → 100644
View file @
8db3d770
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022-10-9 14:14:34
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<!-- <bm:fields>-->
<!-- <bm:field name="sbo_file_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ATTACH_FILE_NAME" prompt="HLS.ATTACH_FILE_NAME"/>-->
<!-- <bm:field name="business_file_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ATTACH_FILE_NAME" prompt="HLS.ATTACH_FILE_NAME"/>-->
<!-- </bm:fields>-->
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT t.*,
(SELECT sv.code_value_name
FROM sys_code_values_v sv
WHERE sv.code = 'HLS_REPORT_NAME'
and sv.code_value = t.report_name
and sv.code_enabled_flag = 'Y') report_name_desc,
hls_sys_upload_pkg.get_atm_file_names(p_table_pk_value =>
t.tab_id,
p_source_type => 'SBO_REPORT',
p_user_id => 10423) AS sbo_file_name,
hls_sys_upload_pkg.get_atm_file_names(p_table_pk_value => t.tab_id,
p_source_type => 'BUSINESS_REPORT',
p_user_id => 10423) AS business_file_name
FROM con_monthly_statement t
where t.monthly_date = (${@year}||${@month})
and t.history_flag = 'N'
order by t.tab_id asc
]]>
</bm:query-sql>
</bm:operation>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
con_monthly_statement_pkg.create_monthly_statement(p_user_id =>
${/session/@user_id},
p_date =>${@date});
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/hls/HLS801/con_monthly_statement_wfl.lwm
0 → 100644
View file @
8db3d770
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022-10-9 14:14:34
$Revision: 1.0
$Purpose:
-->
<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 sv.code_value_name
FROM sys_code_values_v sv
WHERE sv.code = 'HLS_REPORT_NAME'
and sv.code_value = t.report_name
and sv.code_enabled_flag = 'Y') report_name_desc,
hls_sys_upload_pkg.get_atm_file_names(p_table_pk_value =>
t.tab_id,
p_source_type => 'SBO_REPORT',
p_user_id => 10423) AS sbo_file_name,
hls_sys_upload_pkg.get_atm_file_names(p_table_pk_value => t.tab_id,
p_source_type => 'BUSINESS_REPORT',
p_user_id => 10423) AS business_file_name
FROM con_monthly_statement t
where t.monthly_date = ${@month_date}
and t.batch_number=${@batch_num}
order by t.tab_id asc
]]>
</bm:query-sql>
</bm:operation>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
con_monthly_statement_pkg.monthly_wfl_start(p_user_id =>
${/session/@user_id},
p_date =>${@date});
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/hls/HLS801/get_wfl_status.lwm
0 → 100644
View file @
8db3d770
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022年6月14日
$Revision: 1.0
$Purpose:
-->
<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) wfl_count
FROM con_monthly_statement t
where t.monthly_date = ${@date}
and t.status_name ='APPROVED'
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field
name=
"wfl_count"
></bm:field>
</bm:fields>
</bm:model>
src/main/webapp/WEB-INF/classes/hls/HLS801/hls_attachment_list.lwm
0 → 100644
View file @
8db3d770
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: 34291
$Date: 2022-10-17 11:26:43
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:e=
"leaf.service.exception"
xmlns:o=
"leaf.database.local.oracle"
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
xmlns:f=
"leaf.database.features"
alias=
"t1"
baseTable=
"CON_MONTHLY_ATTACHMENT_LIST"
>
<bm:fields>
<bm:field
name=
"list_id"
databaseType=
"NUMBER"
datatype=
"java.lang.Long"
physicalName=
"LIST_ID"
prompt=
"CON_MONTHLY_ATTACHMENT_LIST.LIST_ID"
/>
<bm:field
name=
"report_name"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"REPORT_NAME"
prompt=
"CON_MONTHLY_ATTACHMENT_LIST.REPORT_NAME"
/>
</bm:fields>
<bm:features>
<o:sequence-pk
sequenceName=
"con_monthly_attachment_list_s"
/>
<f:standard-who/>
</bm:features>
<bm:primary-key>
<bm:pk-field
name=
"list_id"
/>
</bm:primary-key>
</bm:model>
src/main/webapp/downloadFile.lview
0 → 100644
View file @
8db3d770
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: niujiaqing1265 $
$Date: 2010/11/30 06:14:58 $
$Revision: 1.8 $
$Purpose: 系统级描述
-->
<a:screen
xmlns:c=
"leaf.application.action"
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:p=
"uncertain.proc"
trace=
"true"
>
<a:init-procedure>
<a:model-query
model=
"sys.sys_enable_image_system_query"
rootPath=
"enable_image_system_flag"
/>
<p:switch
test=
"/model/enable_image_system_flag/record/@enable_image_system"
>
<p:case
value=
"Y"
>
<a:model-query
model=
"img.img_attachment_url"
rootPath=
"att_url"
/>
<a:model-query
model=
"img.img_document_num_query"
rootPath=
"doc_info"
/>
<a:model-execute
model=
"db.img_pkg.add_doc_to_interface"
/>
<a:model-query
model=
"img.img_upload_seqid_query"
rootPath=
"upload"
/>
<a:model-execute
model=
"db.img_pkg.add_img_upload_control"
/>
<a:model-query
model=
"img.img_download_seqid_query"
rootPath=
"download"
/>
<a:model-execute
model=
"db.img_pkg.add_img_download_control"
/>
</p:case>
</p:switch>
</a:init-procedure>
<a:view
package=
"leaf.ui.std"
template=
"default"
>
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<script
type=
"text/javascript"
>
<![CDATA[
function selectTabFun(tab,tabIndex){
if(tabIndex == 0){
reloadUpload();
}else if (tabIndex == 1){
reloadDownload();
}
}
function reloadUpload(){
document.getElementById('upload_att').src = '${/model/att_url/record/@img_attachment_url}?type=1&barcode=${/model/doc_info/record/@document_number}&seqid=${/model/upload/record/@upload_seqid}&IMGTYPE=${/model/doc_info/record/@img_type}&IMGNAME=${/model/doc_info/record/@img_name}&CURRENTIMGTYPE=${/model/doc_info/record/@current_img_type}&CURRENTIMGNAME=${/model/doc_info/record/@current_img_name}&_csrf=${/session/@_csrf.token}';
}
function reloadDownload(){
document.getElementById('download_att').src = '${/model/att_url/record/@img_attachment_url}?type=2&barcode=${/model/doc_info/record/@document_number}&seqid=${/model/download/record/@download_seqid}&IMGTYPE=${/model/doc_info/record/@img_type}&IMGNAME=${/model/doc_info/record/@img_name}&CURRENTIMGTYPE=${/model/doc_info/record/@current_img_type}&CURRENTIMGNAME=${/model/doc_info/record/@current_img_name}&_csrf=${/session/@_csrf.token}';
}
//Ext.ux.Lightbox.register('a[ref=img]', true);
]]>
</script>
<a:screenBody>
<a:switch
test=
"/model/enable_image_system_flag/record/@enable_image_system"
>
<a:case
value=
"N"
>
<div
style=
"width:800px"
>
<a:switch
test=
"/parameter/@useSubFolder"
>
<a:case
value=
"Y"
>
<a:upload
buttonWidth=
"75"
fileType=
"*.*"
pkvalue=
"${/parameter/@header_id}"
showDelete=
"false"
showUpload=
"false"
sourcetype=
"${/parameter/@table_name}"
text=
"附件上传"
uploadurl=
"${/request/@context_path}/atm_upload_unUseSubFolder.lsc"
/>
</a:case>
<a:case
value=
"*"
>
<a:upload
buttonWidth=
"75"
fileType=
"*.*"
pkvalue=
"${/parameter/@header_id}"
showDelete=
"false"
showUpload=
"false"
sourcetype=
"${/parameter/@table_name}"
text=
"附件上传"
uploadurl=
"${/request/@context_path}/atm_upload.lsc"
/>
</a:case>
</a:switch>
<br/>
</div>
</a:case>
<a:case
value=
"Y"
>
<a:tabPanel
height=
"380"
width=
"580"
>
<a:tabs>
<a:tab
prompt=
"附件上传"
>
<iframe
id=
"upload_att"
frameborder=
"no"
height=
"345"
src=
"${/model/att_url/record/@img_attachment_url}?type=1&barcode=${/model/doc_info/record/@document_number}&seqid=${/model/upload/record/@upload_seqid}&IMGTYPE=${/model/doc_info/record/@img_type}&IMGNAME=${/model/doc_info/record/@img_name}&CURRENTIMGTYPE=${/model/doc_info/record/@current_img_type}&CURRENTIMGNAME=${/model/doc_info/record/@current_img_name}&_csrf=${/session/@_csrf.token}"
style=
"broder:none;margin:0;padding:0;"
width=
"570"
/>
</a:tab>
<a:tab
prompt=
"附件查看"
>
<iframe
id=
"download_att"
frameborder=
"no"
height=
"345"
src=
"${/model/att_url/record/@img_attachment_url}?type=2&barcode=${/model/doc_info/record/@document_number}&seqid=${/model/download/record/@download_seqid}&IMGTYPE=${/model/doc_info/record/@img_type}&IMGNAME=${/model/doc_info/record/@img_name}&CURRENTIMGTYPE=${/model/doc_info/record/@current_img_type}&CURRENTIMGNAME=${/model/doc_info/record/@current_img_name}&_csrf=${/session/@_csrf.token}"
style=
"broder:none;margin:0;padding:0;"
width=
"570"
/>
</a:tab>
</a:tabs>
<a:events>
<a:event
name=
"select"
handler=
"selectTabFun"
/>
</a:events>
</a:tabPanel>
</a:case>
</a:switch>
</a:screenBody>
</a:view>
</a:screen>
src/main/webapp/modules/hls/HLS801/hls_monthly_enclosure_wfl.lview
0 → 100644
View file @
8db3d770
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: qwm
$Date: 2013-12-28 下午1:24:13
$Revision: 1.0
$Purpose:
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
customizationEnabled=
"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=
"hls_attachment_uploadFile_id"
url=
"${/request/@context_path}/uploadFile.lview"
/>
<a:link
id=
"hls_attachment_uploadonlyFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<a:link
id=
"hls_month_end_print_id"
url=
"${/request/@context_path}/modules/cus_deposit/CUS_DEPOSIT106/hls_month_end_print.lsc"
/>
<script>
<![CDATA[
//add by gzj
function detail_upload_window(record_id) {
if('${/model/wolkflow_path/record/@current_seq}' == '10'){
var url = $('hls_attachment_uploadFile_id').getUrl() + '?table_name=BUSINESS_REPORT&header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'hls_month_downloadFile_id',
width: 850,
height: 400
});
}else{
var url = $('hls_attachment_uploadonlyFile_id').getUrl() + '?table_name=BUSINESS_REPORT&header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'month_downloadFile_id',
width: 850,
height: 400
});
}
}
function attachment_upload(val,rec,name) {
return '<a href=javascript:detail_upload_window('+rec.get('tab_id')+')>
附件上传
</a>
';
}
function sbo_detail_upload_window(record_id) {
if('${/model/wolkflow_path/record/@current_seq}' == '10'){
var url = $('hls_attachment_uploadFile_id').getUrl() + '?table_name=SBO_REPORT
&
header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'hls_sbo_month_downloadFile_id',
width: 850,
height: 400
});
}else{
var url = $('hls_attachment_uploadonlyFile_id').getUrl() + '?table_name=SBO_REPORT
&
header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'sbo_month_downloadFile_id',
width: 850,
height: 400
});
}
}
function sbo_attachment_upload(val,rec,name) {
return '
<a
href=
javascript:sbo_detail_upload_window('+rec.get('tab_id')+')
>
附件上传
</a>
';
}
//审批通过打印审批记录
function month_approved_print() {
debugger;
var headers_ds = $('unearned_finance_income_query_ds');
var record = headers_ds.getCurrentRecord();
var year = record.get('year');
var month = record.get('month');
var date = year+month;
// var record = $('csh_transaction_return_wfl_ds').getCurrentRecord();
// var return_id = record.get('return_id');
var file_name = "报表确认流程" + "-" + year+'年'+ month + "月审批记录";
var url_l = $('hls_month_end_print_id').getUrl() + '?document_id=' + date + '
&
file_name=' + encodeURI(file_name) + '
&document_table=HLS_MONTH_END&batch_flag=Y&source_type=common';
window.open(href = url_l, target = "_self");
}
]]>
</script>
<a:dataSets>
<a:dataSet
id=
"unearned_finance_income_query_ds"
autoCreate=
"true"
>
<a:fields>
<a:field
name=
"month_date"
defaultValue=
"${/parameter/@month_date}"
/>
<a:field
name=
"year"
/>
<a:field
name=
"month"
/>
<a:field
name=
"batch_num"
defaultValue=
"${/parameter/@batch_num}"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"report_name_ds"
lookupCode=
"HLS_REPORT_NAME"
/>
<a:dataSet
id=
"month_report_ds"
autoQuery=
"true"
fetchAll=
"true"
model=
"hls.HLS801.con_monthly_statement_wfl"
queryDataSet=
"unearned_finance_income_query_ds"
>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton
id=
"month_approved_print_id"
click=
"month_approved_print"
text=
"月结报表审批记录打印"
/>
</a:screenTopToolbar>
<a:form
column=
"1"
marginWidth=
"80"
style=
"margin-left:3px"
title=
"HLS.QUERY_TITLE"
>
<a:box
column=
"3"
labelWidth=
"150"
style=
"margin-left:-80px"
>
<a:textField
name=
"year"
bindTarget=
"unearned_finance_income_query_ds"
prompt=
"HLS801.YEAR"
readOnly=
"true"
/>
<a:textField
name=
"month"
bindTarget=
"unearned_finance_income_query_ds"
prompt=
"HLS801.MONTH"
readOnly=
"true"
/>
</a:box>
</a:form>
<a:grid
id=
"month_report_id"
bindTarget=
"month_report_ds"
marginHeight=
"300"
marginWidth=
"150"
>
<a:columns>
<a:column
name=
"report_name"
align=
"center"
prompt=
"报表名称"
width=
"100"
/>
<a:column
name=
"sbo_attachment_upload"
align=
"center"
prompt=
"SB0报表"
renderer=
"sbo_attachment_upload"
width=
"80"
/>
<a:column
name=
"sbo_file_name"
align=
"center"
prompt=
"附件名称"
width=
"100"
/>
<a:column
name=
"attachment_upload"
align=
"center"
prompt=
"业务系统报表"
renderer=
"attachment_upload"
width=
"80"
/>
<a:column
name=
"business_file_name"
align=
"center"
prompt=
"附件名称"
width=
"100"
/>
</a:columns>
</a:grid>
</a:screenBody>
<script>
Leaf.onReady(function () {
Leaf.onReady(init);
function init() {
debugger;
var a = '${/parameter/@instance_id}';
alert(a);
var record = $('unearned_finance_income_query_ds').getCurrentRecord();
var year = "${/parameter/@month_date}".substring(0, 4);
var month = "${/parameter/@month_date}".substring(4, 6);
record.set('year',year);
record.set('month',month);
if ('${/model/wolkflow_path/record/@current_seq}' == '10'||'${/model/wolkflow_path/record/@current_seq}' == '20') {
document.getElementById("month_approved_print_id").style.display = "none";
}
// var records = $('month_report_ds').getAll()[0];
// var status=records.get('status_name');
// if (status != 'APPROVED') {
// document.getElementById("month_approved_print_id").style.display = "none";
// }
$('month_report_ds').query();
}
})
</script>
</a:view>
</a:screen>
src/main/webapp/modules/hls/HLS801/hls_monthly_statement.lview
View file @
8db3d770
This diff is collapsed.
Click to expand it.
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