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
6db78262
Commit
6db78262
authored
Dec 26, 2022
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手工凭证导入-凭证挂载excel
parent
bda9e82d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
hls_journal_import_entrance.lview
...bapp/modules/hls/HLS536/hls_journal_import_entrance.lview
+19
-0
hls_journal_import_trans_upload.lview
.../modules/hls/HLS536/hls_journal_import_trans_upload.lview
+7
-4
hls_journal_import_upload.lview
...webapp/modules/hls/HLS536/hls_journal_import_upload.lview
+2
-2
No files found.
src/main/webapp/modules/hls/HLS536/hls_journal_import_entrance.lview
View file @
6db78262
...
...
@@ -19,6 +19,7 @@
<a:link
id=
"hls_journal_submit_link_id"
url=
"${/request/@context_path}/modules/hls/HLS536/batch_hls_journal_tmp.lsc"
/>
<a:link
id=
"hls_journal_import_delete_link"
model=
"hls.HLS536.hls_journal_import_delete"
modelaction=
"batch_update"
/>
<a:link
id=
"journal_attachment_uploadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<script>
<![CDATA[
//查询按钮
...
...
@@ -201,6 +202,23 @@
return '
<a
href=
"javascript:hls536_link_dynamic(' + record.id + ',' + record.get('journal_header_id') + ');"
>
' + value + '
</a>
';
}
function receipt_attachment_upload(val,rec,name){
return '
<a
href=
javascript:open_upload_window('+rec.get('journal_header_id')+')
>
附件
</a>
';
}
function open_upload_window(record_id){
var url = $('journal_attachment_uploadFile_id').getUrl() + '?table_name=HLS_JOURNAL_HEADER_IMP
&
header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'attachment_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function() {
});
}
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<a:dataSets>
...
...
@@ -314,6 +332,7 @@
<a:column
name=
"description"
prompt=
"凭证摘要"
width=
"220"
/>
<a:column
name=
"je_detail_count"
prompt=
"凭证行数量"
width=
"50"
/>
<a:column
name=
"wfl_status_n"
prompt=
"凭证导入状态"
width=
"100"
/>
<a:column
name=
"attachment_file"
prompt=
"附件"
width=
"120"
renderer=
"receipt_attachment_upload"
align=
"center"
/>
-
</a:columns>
</a:grid>
</a:screenBody>
...
...
src/main/webapp/modules/hls/HLS536/hls_journal_import_trans_upload.lview
View file @
6db78262
<?xml version="1.0" encoding="UTF-8"?>
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
trace=
"true"
>
<!--<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">-->
<a:screen
xmlns:p=
"uncertain.proc"
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:s=
"leaf.plugin.script"
trace=
"true"
>
<a:init-procedure>
<a:model-execute
model=
"hls.HLS536.delete_hls_journal_tmp"
/>
<a:import-excel
header_id=
"${/session/@session_id}"
separator=
","
status_field=
"/parameter/@ImportSuccess"
template_code=
"HLS_JOURNAL_IMPORT"
user_id=
"${/session/@user_id}"
/>
<a:import-excel
header_id=
"${/session/@session_id}"
attribute5=
"D:\u01,fnd_interface_headers,${/session/@session_id}"
separator=
","
status_field=
"/parameter/@ImportSuccess"
template_code=
"HLS_JOURNAL_IMPORT"
user_id=
"${/session/@user_id}"
/>
<a:model-execute
model=
"hls.HLS536.insert_hls_journal_tmp"
/>
</a:init-procedure>
<a:view>
<a:link
id=
"hls_journal_entrance_import_link"
url=
"${/request/@context_path}/modules/hls/HLS536/hls_journal_import_entrance.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
window.location.href = $('hls_journal_entrance_import_link').getUrl();
]]>
</script>
</a:view>
</a:screen>
src/main/webapp/modules/hls/HLS536/hls_journal_import_upload.lview
View file @
6db78262
...
...
@@ -17,7 +17,7 @@
} else {
document.getElementById('template_type').value=template_type;
var ds = $('template_ds');
ds.setSubmitParameter('
template_type
', template_type);
ds.setSubmitParameter('
${@template_type}
', template_type);
document.getElementById('importForm').submit();
}
}
...
...
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