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
Hide 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
...
...
@@ -14,6 +14,9 @@
<a:model-query
autoCount=
"false"
fetchAll=
"true"
model=
"gld.FND5800.gld_period_status_fieldset"
rootPath=
"fieldset"
/>
<a:model-query
autoCount=
"false"
model=
"hls.HLS801.sys_role_flag"
rootPath=
"sys_role_path"
/>
<a:model-query
defaultWhereClause=
"t1.role_id=${/session/@role_id}"
fetchAll=
"true"
model=
"cont.CON733.query_roles_info"
rootPath=
"role_code"
/>
<a:model-query
model=
"hls.HLS801.con_exist_approving"
rootPath=
"con_status"
/>
</a:init-procedure>
<a:view>
<a:link
id=
"con_finance_income_link"
...
...
@@ -40,9 +43,15 @@
<a:link
id=
"hls_tax_refresh_link"
model=
"hls.HLS801.hls_tax_act_confirm"
modelaction=
"execute"
/>
<a:link
id=
"hls_tax_confirm_create_je_link"
url=
"${/request/@context_path}/modules/hls/HLS801/tax_confirm.lsc"
/>
<a:link
id=
"create_con_monthly_statement_link"
model=
"hls.HLS801.con_monthly_statement"
modelaction=
"update"
/>
<a:link
id=
"con_monthly_submit_link"
model=
"hls.HLS801.con_monthly_statement_wfl"
modelaction=
"update"
/>
<!-- <a:link id="acp_invoice_attachment_uploadFile_id" url="${/request/@context_path}/check_uploadFile.lview"/>-->
<a:link
id=
"hls_attachment_uploadFile_id"
url=
"${/request/@context_path}/uploadFile.lview"
/>
<a:link
id=
"hls_attachment_downloadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<a:link
id=
"hls_attachment_uploadonlyFile_id"
url=
"${/request/@context_path}/uploadonlyFile.lview"
/>
<script>
<![CDATA[
//HLS801.NEXT_STEP
var step =
0
;
var step =
1
;
var g_company_id;
var g_company_id_2;
...
...
@@ -56,6 +65,15 @@
history.back();
});
}
if('${/model/role_code/record/@role_code}'!='0013'){
document.getElementById('step_0').style.display = "none";
document.getElementById('step_next').style.display = "none";
}
if('${/model/con_status/record/@wfl_count}'>
0){
var rocode= $('attachment_list_ds');
rocode.getField('report_name').setReadOnly(true);
}
$('attachment_list_ds').query();
});
function nextStep() {
...
...
@@ -396,6 +414,147 @@
}
var g_return_value;
function month_end_next() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
var year = record.get('period_name').substring(0, 4);
var month = record.get('period_name').substring(5, 7);
var date = year+month;
var wfl_count;
$L.request({
url: '${/request/@context_path}/autocrud/hls.HLS801.get_wfl_status/query',
para: {
date: date
},
sync: true,
success: function (res) {
wfl_count=res.result.record.wfl_count;
},
error: function () {
},
failure: function () {
},
scope: this,
sync: true,
});
if( wfl_count ==0){
$L.showMessage('提示','请先提交审批在再进行下一步');
return ;
}else{
nextStep();
}
}
//add by gzj
function next_monthly_end() {
debugger;
//nextStep();
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
var year = record.get('period_name').substring(0, 4);
var month = record.get('period_name').substring(5, 7);
var date = year+month;
Leaf.request({
url: $('create_con_monthly_statement_link').getUrl(),
para: {
date: date
},
success: function () {
$('month_report_ds').query();
nextStep();
},
scope: this
});
}
//add by 月结报表提交审批
function submit() {
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确定提交审批?', function() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
var year = record.get('period_name').substring(0, 4);
var month = record.get('period_name').substring(5, 7);
var date = year+month;
Leaf.request({
url: $('con_monthly_submit_link').getUrl(),
para: {
date: date
},
success: function () {
Leaf.showMessage('${l:HLS.PROMPT}', '提交审批成功');
},
scope: this
});
});
}
function detail_upload_window(record_id) {
var record = $('month_report_ds').getAll()[0];
var status=record.get('status_name');
if(status=='APPROVING'){
var url = $('hls_attachment_downloadFile_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
});
}else{
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: 'month_uploadFile_id',
width: 850,
height: 400
});
}
win.on('close', function() {
$('month_report_ds').query();
});
}
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) {
debugger;
var record = $('month_report_ds').getAll()[0];
var status=record.get('status_name');
if(status=='APPROVING'){
var url = $('hls_attachment_downloadFile_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
});
}else{
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: 'sbo_month_uploadFile_id',
width: 850,
height: 400
});
}
win.on('close', function() {
$('month_report_ds').query();
});
}
function sbo_attachment_upload(val,rec,name) {
return '
<a
href=
javascript:sbo_detail_upload_window('+rec.get('tab_id')+')
>
附件上传
</a>
';
}
function unearned_finance_income_confirm() {
var headers_ds = $('hls_monthly_statement_ds');
...
...
@@ -465,9 +624,38 @@
@Description:
月结结束校验
@Param:
*/
var
headers_ds =
$('hls_monthly_statement_ds');
var
record =
headers_ds.getAt(0);
var
role_flag =
'${/model/sys_role_path/record/@role_code}'
;
//add
by
34291
月结结束前需要提交审批
var
year =
record.get('period_name').substring(0,
4);
var
month =
record.get('period_name').substring(5,
7);
var
date =
year+month;
var
wfl_count;
$L.request({
url:
'${/request/@context_path}/autocrud/hls.HLS801.get_wfl_status/query',
para:
{
date:
date
},
sync:
true,
success:
function
(res)
{
wfl_count=
res.result.record.wfl_count;
},
error:
function
()
{
},
failure:
function
()
{
},
scope:
this,
sync:
true,
});
if(
wfl_count =
=0){
$L.showMessage('提示','请先提交审批通过后在再进行下一步');
return
;
}
Leaf.showConfirm('${l:HLS.PROMPT}',
'本次月结结束后不可执行当月其他相关操作,是否确认结束?',
function
okFun()
{
Leaf.Masker.mask(Ext.getBody(),
'${l:HLS.SAVING}');
$L.request({
...
...
@@ -808,6 +996,30 @@
});
}
function
hls801_add()
{
var
ds =
$('attachment_list_ds');
var
record =
ds.create(ds.currentIndex);
$('attachment_list_id').showEditorByRecord(record);
}
function
hls801_delete()
{
var
ds =
$('attachment_list_ds');
var
records =
ds.getSelected();
if
(records.length
!=
0)
{
Leaf.showConfirm('${l:HLS.PROMPT}',
'${l:HLS030.CONFIRM_DELETE}',
function()
{
ds.remove(records);
});
}
}
function
hls801_save()
{
debugger
var
ds =
$('attachment_list_ds');
if
(ds.validate())
{
ds.submit();
}
}
]]
></script>
<a:dataSets>
...
...
@@ -917,6 +1129,19 @@
<a:event
name=
"beforeremove"
handler=
"tax_confirm_beforeremove"
/>
</a:events>
</a:dataSet>
<a:dataSet
id=
"report_name_ds"
lookupCode=
"HLS_REPORT_NAME"
/>
<a:dataSet
id=
"month_report_ds"
autoQuery=
"false"
fetchAll=
"true"
model=
"hls.HLS801.con_monthly_statement"
queryDataSet=
"unearned_finance_income_query_ds"
>
<a:fields>
<a:field
name=
"report_name"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"attachment_list_ds"
autoQuery=
"true"
fetchAll=
"true"
model=
"hls.HLS801.hls_attachment_list"
selectable=
"true"
queryUrl=
"${/request/@context_path}/autocrud/hls.HLS801.hls_attachment_list/query"
>
<a:fields>
<a:field
name=
"report_name"
required=
"true"
/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
...
...
@@ -928,7 +1153,7 @@
<a:hBox>
<a:tabPanel
id=
"step"
marginHeight=
"80"
marginWidth=
"50"
>
<a:tabs>
<a:tab
id=
"step_
0
"
disabled=
"false"
marginHeight=
"20"
width=
"100"
prompt=
"营业月结"
<a:tab
id=
"step_
1
"
disabled=
"false"
marginHeight=
"20"
width=
"100"
prompt=
"营业月结"
selected=
"true"
>
<a:hBox
height=
"50"
>
<!--<a:button click="upStep" text="HLS801.LAST_STEP"/>-->
...
...
@@ -938,7 +1163,6 @@
<a:button
click=
"csh_transaction_confirm"
text=
"月结确认"
/>
<a:label
width=
"5"
/>
</a:hBox>
<p/>
<a:grid
id=
"csh_transaction_confirm_grid"
bindTarget=
"csh_transaction_confirm_ds"
marginHeight=
"200"
marginWidth=
"80"
navBar=
"true"
style=
"margin-left:3px"
>
...
...
@@ -973,11 +1197,34 @@
<a:hBox>
<a:tabPanel
id=
"step"
marginHeight=
"80"
marginWidth=
"50"
>
<a:tabs>
<a:tab
id=
"step_0"
disabled=
"
false"
marginHeight=
"20"
width=
"100"
prompt=
"营业月结
"
selected=
"true
"
>
<a:tab
id=
"step_0"
disabled=
"
true"
prompt=
"月结资料维护"
selected=
"false
"
width=
"100
"
>
<a:hBox
height=
"50"
>
<a:button
disabled=
"true"
click=
"upStep"
text=
"HLS801.LAST_STEP"
/>
<a:label
width=
"5"
/>
<a:button
click=
"nextStep"
text=
"HLS801.NEXT_STEP"
/>
<a:label
width=
"80"
/>
<a:gridButton
click=
"hls801_add"
text=
"新增"
/>
<a:gridButton
click=
"hls801_delete"
text=
"删除"
/>
<a:gridButton
click=
"hls801_save"
text=
"HLS.SAVE"
/>
</a:hBox>
<p/>
<a:grid
id=
"attachment_list_id"
bindTarget=
"attachment_list_ds"
marginHeight=
"200"
marginWidth=
"80"
navBar=
"true"
>
<a:columns>
<a:column
name=
"report_name"
align=
"center"
prompt=
"报表名称"
editor=
"report_name_edit"
width=
"100"
/>
</a:columns>
<a:editors>
<a:textField
id=
"report_name_edit"
/>
</a:editors>
</a:grid>
</a:tab>
<a:tab
id=
"step_1"
disabled=
"false"
marginHeight=
"20"
width=
"100"
prompt=
"营业月结"
selected=
"true"
>
<a:hBox
height=
"50"
>
<a:button
id=
"step_next"
click=
"upStep"
text=
"HLS801.LAST_STEP"
/>
<a:label
width=
"5"
/>
<a:button
click=
"csh_transaction_confirm"
text=
"HLS801.NEXT_STEP"
/>
</a:hBox>
<p/>
...
...
@@ -1007,12 +1254,12 @@
</a:grid>
</a:tab>
<a:tab
id=
"step_
1
"
disabled=
"true"
prompt=
"GLD_PERIODS.PERIOD_NAME"
selected=
"false"
<a:tab
id=
"step_
2
"
disabled=
"true"
prompt=
"GLD_PERIODS.PERIOD_NAME"
selected=
"false"
width=
"100"
>
<a:hBox
height=
"50"
>
<a:button
click=
"upStep"
text=
"HLS801.LAST_STEP"
/>
<a:label
width=
"5"
/>
<a:button
click=
"step_0NextStep"
text=
"HLS801.NEXT_STEP"
/>
<a:button
click=
"step_0NextStep"
text=
"HLS801.NEXT_STEP"
/>
</a:hBox>
<a:hBox>
<a:fieldSet
height=
"250"
title=
"GLD_PERIODS.PERIOD_NAME"
width=
"300"
>
...
...
@@ -1024,7 +1271,7 @@
</a:fieldSet>
</a:hBox>
</a:tab>
<a:tab
id=
"step_
2
"
disabled=
"true"
marginHeight=
"200"
prompt=
"提前收款确认增值税"
<a:tab
id=
"step_
3
"
disabled=
"true"
marginHeight=
"200"
prompt=
"提前收款确认增值税"
selected=
"false"
width=
"140"
>
<a:hBox
height=
"50"
>
...
...
@@ -1069,7 +1316,7 @@
</a:columns>
</a:grid>
</a:tab>
<a:tab
id=
"step_
3
"
disabled=
"true"
marginHeight=
"20"
prompt=
"HLS801.INCOME"
<a:tab
id=
"step_
4
"
disabled=
"true"
marginHeight=
"20"
prompt=
"HLS801.INCOME"
selected=
"false"
width=
"100"
>
<a:hBox
height=
"50"
>
...
...
@@ -1147,30 +1394,12 @@
</a:columns>
</a:grid>
</a:tab>
<a:tab
id=
"step_
3"
disabled=
"true"
prompt=
"HLS801.MONTH_END
"
selected=
"false"
<a:tab
id=
"step_
4"
disabled=
"true"
prompt=
"HLS801.PERIOD_CONTROL
"
selected=
"false"
width=
"100"
>
<a:hBox
height=
"50"
>
<a:button
click=
"upStep"
text=
"HLS801.LAST_STEP"
/>
<a:label
width=
"5"
/>
<a:button
click=
"nextStep"
text=
"HLS801.NEXT_STEP"
/>
<a:label
width=
"80"
/>
<a:button
click=
"monthlyendFun"
text=
"HLS801.MONTH_END"
/>
</a:hBox>
<a:form
column=
"1"
marginWidth=
"80"
style=
"margin-left:3px"
title=
"HLS.QUERY_TITLE"
>
<a:box
column=
"2"
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:tab>
<a:tab
id=
"step_5"
disabled=
"true"
prompt=
"HLS801.PERIOD_CONTROL"
selected=
"false"
width=
"100"
>
<a:hBox
height=
"50"
>
<a:button
click=
"upStep"
text=
"HLS801.LAST_STEP"
/>
<a:label
width=
"5"
/>
<a:button
disabled=
"true"
text=
"HLS801.NEXT_STEP"
/>
<a:button
click=
"next_monthly_end"
text=
"HLS801.NEXT_STEP"
/>
<a:label
width=
"50"
/>
</a:hBox>
<a:grid
id=
"close_open_grid"
bindTarget=
"close_open_ds"
marginHeight=
"300"
...
...
@@ -1208,6 +1437,38 @@
</a:editors>
</a:grid>
</a:tab>
<a:tab
id=
"step_5"
disabled=
"true"
prompt=
"HLS801.MONTH_END"
selected=
"false"
width=
"100"
>
<a:hBox
height=
"50"
>
<a:button
click=
"upStep"
text=
"HLS801.LAST_STEP"
/>
<a:label
width=
"5"
/>
<a:button
disabled=
"true"
click=
"month_end_next"
text=
"HLS801.NEXT_STEP"
/>
<a:label
width=
"80"
/>
<a:button
click=
"submit"
text=
"提交审批"
/>
<!-- <a:button click="monthlyendFun" text="HLS801.MONTH_END"/>-->
</a:hBox>
<a:form
column=
"1"
marginWidth=
"80"
style=
"margin-left:3px"
title=
"HLS.QUERY_TITLE"
>
<a:box
column=
"2"
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=
"80"
>
<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:tab>
</a:tabs>
</a:tabPanel>
</a:hBox>
...
...
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