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
bfd34465
Commit
bfd34465
authored
Mar 03, 2023
by
Luochenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成电子档案
parent
843d517a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
efile_generated_selected.lwm
...-INF/classes/efile/EFILE1020/efile_generated_selected.lwm
+24
-0
archives_post_list.lview
...n/webapp/modules/efile/EFILE1020/archives_post_list.lview
+35
-0
No files found.
src/main/webapp/WEB-INF/classes/efile/EFILE1020/efile_generated_selected.lwm
0 → 100644
View file @
bfd34465
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: trd
$Date: 2023-2-7 下午2:36:27
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"insert"
>
<bm:update-sql>
<![CDATA[
begin
elec_wfl_pkg.efile_generate_pool(p_e_archives_id =>
${@e_archives_id},
p_base_archive_code => ${@base_archive_code},
p_archive_type => ${@archive_type},
p_document_id => ${@document_id},
p_document_number => ${@document_number},
p_document_info => ${@document_info},
p_user_id => ${/session/@user_id});
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/modules/efile/EFILE1020/archives_post_list.lview
View file @
bfd34465
...
...
@@ -7,6 +7,7 @@
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
>
<a:view>
<a:link
id=
"efile1020_generated_save_link"
url=
"${/request/@context_path}/modules/efile/EFILE1020/efile_generated_save_selected.lsc"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function efile1020_query(){
$('archives_pool_list_ds').query();
...
...
@@ -16,6 +17,40 @@
$('archives_post_list_query').reset();
}
function efile1020_generated(){
var datas = [];
var records = $('archives_pool_list_ds').getSelected();
for (var i=0;i<records.length;i++){
var record = records[i];
datas.push(record.data);
}
var param = {};
param['details'] = datas;
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认生成电子档案?', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: $('efile1020_generated_save_link').getUrl(),
para: datas,
success: function (res) {
Leaf.SideBar.show({
msg: '生成成功',
duration: 2000
});
Leaf.Masker.unmask(Ext.getBody());
$('archives_pool_list_ds').query();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}, null);
}
]]>
</script>
<a:dataSets>
<a:dataSet
id=
"archive_type_ds"
lookupCode=
"ELEC_FILE_TYPE"
/>
...
...
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