Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5lcyq
Overview
Overview
Details
Activity
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
管理员
jfV5lcyq
Commits
52b088f7
Commit
52b088f7
authored
Jul 13, 2018
by
陈玉兰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
f66352fa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
100 additions
and
17 deletions
+100
-17
formtableTab.js
WebContent/process/pages/formtable/js/formtableTab.js
+12
-2
peopleTab.js
WebContent/process/pages/procdefinition/js/peopleTab.js
+45
-7
formtableDAO.xml
src_process/com/gaowj/business/formtable/formtableDAO.xml
+15
-4
procdefiChooseDeptDAO.xml
...owj/business/procdefiChooseDept/procdefiChooseDeptDAO.xml
+12
-4
actAction.java
src_process/com/gaowj/formtable/action/actAction.java
+16
-0
No files found.
WebContent/process/pages/formtable/js/formtableTab.js
View file @
52b088f7
...
...
@@ -602,8 +602,17 @@ function synchRow(index){
if
(
is_row
[
0
].
IS_DBSYNCH
==
'1'
){
$
.
messager
.
alert
(
'警告'
,
"该表已同步到数据库"
,
'info'
);
}
is_row
[
0
].
IS_DBSYNCH
=
1
;
formtableModule
.
act
.
updateFormTable
(
is_row
[
0
])
$
.
ajax
({
url
:
'formtableAct_synchFormTable'
,
data
:{
tableId
:
is_row
[
0
].
UUID
,
tableName
:
is_row
[
0
].
TABLE_NAME
},
success
:
function
(
data
){
console
.
log
(
data
);
}
});
//formtableModule.act.updateFormTable(is_row[0])
return
;
}
\ No newline at end of file
WebContent/process/pages/procdefinition/js/peopleTab.js
View file @
52b088f7
...
...
@@ -49,6 +49,7 @@ $(function(){
var
linkId
=
$
.
getUrlParam
(
"procdef_linkId"
);
$
(
'#list1'
).
datagrid
({
title
:
'人员'
,
idField
:
'CODE'
,
iconCls
:
$
.
getJwWindowPic
(),
url
:
gaowj
.
WEB_APP_NAME
+
"/systemdata_listSysUser"
,
queryParams
:
queryData
,
//查询参数
...
...
@@ -79,6 +80,7 @@ $(function(){
$
(
'#list2'
).
datagrid
({
title
:
'人员'
,
idField
:
'CODE'
,
iconCls
:
$
.
getJwWindowPic
(),
url
:
gaowj
.
WEB_APP_NAME
+
"/procdefinitionData_getChooseUser?key_id="
+
linkId
,
queryParams
:
queryData
,
//查询参数
...
...
@@ -111,20 +113,56 @@ $(function(){
function
choosePeople
(){
var
is_row
=
$
(
'#list1'
).
datagrid
(
'getSelections'
);
$
.
each
(
is_row
,
function
(
index
,
value
)
{
$
(
'#list2'
).
datagrid
(
'appendRow'
,
is_row
[
index
]);
var
is_row1
=
$
(
'#list1'
).
datagrid
(
'getSelections'
);
var
is_row2
=
$
(
'#list2'
).
datagrid
(
'getRows'
);
var
arr1
=
[];
var
arr2
=
[];
$
.
each
(
is_row1
,
function
(
index
,
value
)
{
console
.
log
(
value
);
arr1
.
push
(
value
.
CODE
);
});
$
.
each
(
is_row2
,
function
(
index
,
value
)
{
console
.
log
(
value
);
arr2
.
push
(
value
.
CODE
);
});
select_diff
(
arr1
,
arr2
);
$
(
'#list1'
).
datagrid
(
'clearSelections'
);
/*$.each(is_row,function(index,value) {
$('#list2').datagrid('appendRow',is_row[index]);
});*/
}
function
select_diff
(
arr1
,
arr2
){
//临时数组存放
var
tempArray1
=
[];
//临时数组1
var
tempArray2
=
[];
//临时数组2
//通过对两个数组的对比,筛选出不同的code
for
(
var
i
=
0
;
i
<
arr2
.
length
;
i
++
){
tempArray1
[
arr2
[
i
]]
=
true
;
//将数array2 中的元素值作为tempArray1 中的键,值为true;
}
for
(
var
i
=
0
;
i
<
arr1
.
length
;
i
++
){
if
(
!
tempArray1
[
arr1
[
i
]]){
tempArray2
.
push
(
arr1
[
i
]);
//过滤array1 中与array2 相同的元素;
}
}
//根据筛选出来的结果,找到那几行的数据,并追加上去
for
(
var
i
=
0
;
i
<
tempArray2
.
length
;
i
++
){
var
rowIndex
=
$
(
'#list1'
).
datagrid
(
'getRowIndex'
,
tempArray2
[
i
]);
//id是关键字值
var
data
=
$
(
'#list1'
).
datagrid
(
'getData'
).
rows
[
rowIndex
];
$
(
'#list2'
).
datagrid
(
'appendRow'
,
data
);
}
}
function
cancelChoosePeople
(){
var
is_row
=
$
(
'#list2'
).
datagrid
(
'getSelections'
);
$
.
each
(
is_row
,
function
(
index
,
value
)
{
var
index
=
$
(
'#list2'
).
datagrid
(
'getRowIndex'
,
value
);
//console.log(index)
for
(
var
i
=
0
;
i
<
is_row
.
length
;
i
++
){
var
index
=
$
(
'#list2'
).
datagrid
(
'getRowIndex'
,
is_row
[
i
]);
$
(
'#list2'
).
datagrid
(
'deleteRow'
,
index
);
});
}
}
function
savePeople
(
key_id
){
...
...
src_process/com/gaowj/business/formtable/formtableDAO.xml
View file @
52b088f7
...
...
@@ -84,14 +84,24 @@
<trim
prefix=
""
suffixOverrides=
","
>
<foreach
collection=
"list"
item=
"item"
>
${item.FIELD_NAME} ${item.TYPE}
<if
test=
"item.LENGTH == null"
>
#{item.LENGTH},
<choose>
<when
test=
"item.LENGTH == null"
>
#{item.LENGTH}
</when>
<when
test=
"item.LENGTH != null"
>
(#{item.LENGTH})
</when>
</choose>
<if
test=
"item.IS_NULL == 0"
>
NOT NULL
</if>
<if
test=
"item.
LENGTH != null
"
>
(#{item.LENGTH}),
<if
test=
"item.
IS_NULL == 1
"
>
DEFAULT NULL
</if>
COMMENT '#{item.CONTENT}',
</foreach>
</trim>
<![CDATA[ ) ]]>
ENGINE=InnoDB DEFAULT CHARSET=utf8;
</update>
</mapper>
\ No newline at end of file
src_process/com/gaowj/business/procdefiChooseDept/procdefiChooseDeptDAO.xml
View file @
52b088f7
...
...
@@ -7,6 +7,9 @@
<if
test=
"KEY_ID != null and KEY_ID != ''"
>
and f.KEY_ID = #{KEY_ID}
</if>
<if
test=
"LINK_KEY != null and LINK_KEY != ''"
>
and f.LINK_KEY = #{LINK_KEY}
</if>
</trim>
</sql>
<insert
id=
"insert_procdefi_chooseDept"
parameterType=
"map"
>
...
...
@@ -53,11 +56,16 @@
<select
id=
"list_procdefi_chooseDept"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<![CDATA[
select f.* ,
select * FROM (
select A.* ,
U.`DPT_NAME`,
U.`DPT_NO`
from C_T_PROC_CHOOSE_DEPT f
LEFT JOIN LCYQ_SYSTEM.C_T_SYS_DEPARTMENT U ON U.`DPT_NO`=f.`DEPT_ID`
U.`DPT_NO`,
L.`LINK_KEY`
from C_T_PROC_CHOOSE_DEPT A
LEFT JOIN LCYQ_SYSTEM.C_T_SYS_DEPARTMENT U ON U.`DPT_NO`=A.`DEPT_ID`
LEFT JOIN C_T_PROC_DEFINITION_INIT_LINK L ON L.`UUID`=A.`KEY_ID`
) f
]]>
<include
refid=
"Where_Clause"
/>
order by f.CREATE_TIME DESC
...
...
src_process/com/gaowj/formtable/action/actAction.java
View file @
52b088f7
...
...
@@ -215,6 +215,22 @@ public class actAction extends BasicAction {
}
public
String
synchFormTable
()
throws
BusinessException
{
//
FormfieldBusiness
fieldBusiness
=
BusinessManager
.
getBusiness
(
FormfieldBusiness
.
class
);
FormtableBusiness
tableBusiness
=
BusinessManager
.
getBusiness
(
FormtableBusiness
.
class
);
Map
<
String
,
Object
>
query
=
new
HashMap
<
String
,
Object
>();
String
table_id
=
RequestUtils
.
getString
(
request
,
"tableId"
);
String
table_name
=
RequestUtils
.
getString
(
request
,
"tableName"
);
List
<
Map
<
String
,
Object
>>
listField
=
fieldBusiness
.
list_form_field_byTableid
(
table_id
);
Map
<
String
,
Object
>
create_param
=
new
HashMap
<
String
,
Object
>();
create_param
.
put
(
"tableName"
,
table_name
);
create_param
.
put
(
"list"
,
listField
);
tableBusiness
.
create_form_table
(
create_param
);
return
"json"
;
}
public
String
listTableFile
()
throws
BusinessException
{
FormfieldBusiness
fieldBusiness
=
BusinessManager
.
getBusiness
(
FormfieldBusiness
.
class
);
String
tableId
=
RequestUtils
.
getString
(
request
,
"UUID"
);
...
...
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