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
d06892e9
Commit
d06892e9
authored
Mar 24, 2023
by
Luochenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
附件json解析
parent
804596fa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
16 deletions
+49
-16
efile_archive_type_sql.lwm
...EB-INF/classes/efile/EFILE1030/efile_archive_type_sql.lwm
+22
-0
cloumn_define.lview
src/main/webapp/modules/efile/EFILE1010/cloumn_define.lview
+1
-1
efile_att_json_lov.lview
...n/webapp/modules/efile/EFILE1030/efile_att_json_lov.lview
+26
-15
No files found.
src/main/webapp/WEB-INF/classes/efile/EFILE1030/efile_archive_type_sql.lwm
0 → 100644
View file @
d06892e9
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: luochenglong
$Date: 2023-02-10 早上 11:03:31
$Revision: 1.0
$Purpose: 电子档案池bm
-->
<bm:model
xmlns:f=
"leaf.database.features"
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select v.code_value_name archive_type_desc
from sys_code_values_v v
where v.code = 'ARCHIVE_TYPE'
and v.code_value = ${@archive_type}
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field
name=
"archive_type_desc"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"ARCHIVE_TYPE_DESC"
/>
</bm:fields>
</bm:model>
src/main/webapp/modules/efile/EFILE1010/cloumn_define.lview
View file @
d06892e9
...
...
@@ -63,7 +63,7 @@
var ds = $('cloumn_para_ds');
var records=ds.getAll();
var paras = [];
var detail_mask
s
= Ext.getBody();
var detail_mask = Ext.getBody();
var base_archive_id='${/parameter/@record_id}';
console.log(base_archive_id);
for(var n=0;n<records.length;n++){
...
...
src/main/webapp/modules/efile/EFILE1030/efile_att_json_lov.lview
View file @
d06892e9
...
...
@@ -13,19 +13,24 @@
name);
}
var para = $ctx.current_parameter || $ctx.parameter;
var logger = $logger('server-script');
var sql_content;
var query_validation_sql_bm = $bm('efile.EFILE1030.efile_pool_att_para_sql');
var query_archive_type_bm = $bm('efile.EFILE1030.efile_archive_type_sql');
var config_map = query_validation_sql_bm.queryAsMap(para);
var config_map_detail = config_map.getChildren();
logger.info(config_map_detail.length);
if (config_map_detail.length != 0) {
sql_content = config_map_detail[0].sql_content;
logger.info(sql_content);
para.sql_content = sql_content;
}
//println(sql_content);
var obj;
var dataSet_id='att_json_ds';
if(typeof(sql_content)!="undefined"){
sql_content =
'{'+sql_content+'}';
sql_content =
'{'+sql_content+'}';
obj = JSON.parse(sql_content).attachmentList;
}else{
obj='';
...
...
@@ -48,6 +53,7 @@
// dataSets.addChild(dataSet.getData());
// var datas = newMap("datas");
// dataSet.addChild(datas.getData());
if(obj.length>
0){
for (var k in obj) {
// if (obj[k] instanceof Object) {
...
...
@@ -55,6 +61,11 @@
datasRecord.code_value = obj[k].fileURL;
datasRecord.code_value_name = obj[k].fileName;
datasRecord.action_type = obj[k].attachTypeCode;
var archive_type_desc_data=query_archive_type_bm.queryAsMap({
archive_type : obj[k].attachTypeCode
});
var archive_type_desc=archive_type_desc_data.getChildren()[0].archive_type_desc;
datasRecord.archive_type_desc=archive_type_desc;
datas.addChild(datasRecord.getData());
//println(datasRecord.code_value+":"+datasRecord.code_value_name);
...
...
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