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
b061d7f4
Commit
b061d7f4
authored
Dec 28, 2022
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手工凭证导入-附件模板传值修改
parent
545bdf34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
17 deletions
+25
-17
hls_journal_import_upload.lview
...webapp/modules/hls/HLS536/hls_journal_import_upload.lview
+25
-17
No files found.
src/main/webapp/modules/hls/HLS536/hls_journal_import_upload.lview
View file @
b061d7f4
...
...
@@ -3,11 +3,12 @@
<a:init-procedure/>
<a:view>
<script
type=
"text/javascript"
>
<![CDATA[
function saveClick() {
if (!$('template_ds').validate()) {
return;
}
var template
_
type = $('template_ds').getAt(0).get('template_type');
var templatetype = $('template_ds').getAt(0).get('template_type');
if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf("."));
...
...
@@ -15,15 +16,32 @@
if (fileType != '.xls'&&fileType != '.xlsx') {
alert('请选择正确的导入文件!请使用xls或者xlsx后缀的文件');
} else {
document.getElementById('template_type').value=template_type;
var ds = $('template_ds');
ds.setSubmitParameter('${@template_type}', template_type);
document.getElementById('importForm').submit();
doSubmit(templatetype);
//document.getElementById('importForm').submit();
}
}
}
function doSubmit(templatetype) {
var form = document.getElementById('importForm');
var url = '${/request/@context_path}/modules/hls/HLS536/hls_journal_import_trans_upload.lview?_csrf=${/session/@_csrf.token}&template_type='+templatetype;
form.action = url;
form.submit();
}
]]>
</script>
<a:dataSets>
<a:dataSet
id=
"template_type_desc_ds"
autoCreate=
"true"
>
<a:datas>
<a:record
code_value=
"GENERAL_SALARIES"
code_value_name=
"普通工资导入模板"
/>
<a:record
code_value=
"BPO_SALARIES"
code_value_name=
"BPO工资导入模板"
/>
<a:record
code_value=
"COST_IMPORT"
code_value_name=
"成本导入模板"
/>
<a:record
code_value=
"FUND_POOL"
code_value_name=
"资金池导入模板"
/>
<a:record
code_value=
"GLOBAL_TEMPLATE"
code_value_name=
"通用模板"
/>
<a:record
code_value=
"FINANCIAL_TEMPLATE"
code_value_name=
"财务模板"
/>
</a:datas>
</a:dataSet>
<a:dataSet
id=
"template_ds"
autoCreate=
"true"
>
<a:fields>
<a:field
name=
"template_type_desc"
displayField=
"code_value_name"
options=
"template_type_desc_ds"
...
...
@@ -40,16 +58,7 @@
<a:field
name=
"label6"
defaultValue=
"导入完毕后,请在系统内核实数据是否导入成功。"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"template_type_desc_ds"
>
<a:datas>
<a:record
code_value=
"GENERAL_SALARIES"
code_value_name=
"普通工资导入模板"
/>
<a:record
code_value=
"BPO_SALARIES"
code_value_name=
"BPO工资导入模板"
/>
<a:record
code_value=
"COST_IMPORT"
code_value_name=
"成本导入模板"
/>
<a:record
code_value=
"FUND_POOL"
code_value_name=
"资金池导入模板"
/>
<a:record
code_value=
"GLOBAL_TEMPLATE"
code_value_name=
"通用模板"
/>
<a:record
code_value=
"FINANCIAL_TEMPLATE"
code_value_name=
"财务模板"
/>
</a:datas>
</a:dataSet>
</a:dataSets>
<a:fieldSet
style=
"margin-left:10px;margin-top:10px;"
title=
"导入注意事项"
width=
"400"
>
<a:label
name=
"label2"
bindTarget=
"label_ds"
style=
"margin-left:10px;"
width=
"380"
/>
...
...
@@ -63,9 +72,8 @@
</a:fieldSet>
<a:fieldSet
style=
"margin-left:10px;margin-top:10px;"
title=
"导入文件"
width=
"400"
>
<form
name=
"upload"
id=
"importForm"
action=
"hls_journal_import_trans_upload.lview?session_id=${/parameter/@session_id}&template_type=${/parameter/@template_type}&parent_ds_id=${/parameter/@parent_ds_id}&
type=${/parameter/@type}&
_csrf=${/session/@_csrf.token}"
enctype=
"multipart/form-data"
method=
"post"
>
<form
name=
"upload"
id=
"importForm"
action=
"hls_journal_import_trans_upload.lview?session_id=${/parameter/@session_id}&template_type=${/parameter/@template_type}&parent_ds_id=${/parameter/@parent_ds_id}&_csrf=${/session/@_csrf.token}"
enctype=
"multipart/form-data"
method=
"post"
>
<label
style=
"margin-left:10px;margin-top:10px;"
>
<![CDATA[请选择文件:]]>
</label>
<input
name=
"template_type"
id=
"template_type"
type=
"hidden"
/>
<input
name=
"CONTENT"
id=
"importFile"
style=
"margin-bottom:4px;width:160px;height:22px;"
type=
"file"
/>
<input
onclick=
"saveClick()"
style=
"margin-left:10px;margin-top:10px;width:60px;"
type=
"button"
value=
"导入"
/>
</form>
...
...
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