Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
150f4941
Commit
150f4941
authored
Sep 12, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.角色权限复制功能
parent
fa49d08c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
408 additions
and
29 deletions
+408
-29
ServiceHGWD003B.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD003B.java
+1
-1
ServiceXS3201B.java
...ava/com/baosight/xservices/xs/service/ServiceXS3201B.java
+136
-0
XS02.xml
src/main/java/com/baosight/xservices/xs/sql/XS02.xml
+23
-3
XS07.xml
src/main/java/com/baosight/xservices/xs/sql/XS07.xml
+47
-24
XsTools.java
src/main/java/com/baosight/xservices/xs/tools/XsTools.java
+81
-0
XS3201.js
src/main/webapp/XS/XS3201.js
+34
-0
XS3201.jsp
src/main/webapp/XS/XS3201.jsp
+1
-1
XS3201B.js
src/main/webapp/XS/XS3201B.js
+58
-0
XS3201B.jsp
src/main/webapp/XS/XS3201B.jsp
+27
-0
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD003B.java
View file @
150f4941
...
...
@@ -107,7 +107,7 @@ public class ServiceHGWD003B extends ServiceEPBase {
// 已存在的授权用户信息
List
<
HGWD003
>
dbWd003s
=
dbWd003Map
==
null
?
null
:
dbWd003Map
.
get
(
fileId
);
List
<
String
>
userIds
=
CollectionUtils
.
isEmpty
(
dbWd003s
)
?
new
ArrayList
<>()
:
dbWd003
Map
.
get
(
fileId
)
.
stream
().
map
(
HGWD003:
:
getUserId
).
collect
(
Collectors
.
toList
());
:
dbWd003
s
.
stream
().
map
(
HGWD003:
:
getUserId
).
collect
(
Collectors
.
toList
());
// 过滤出未授权的用户,并重新赋值FILE_ID
List
<
HGWD003
>
filterWd003s
=
dbMainWd003s
.
stream
()
.
filter
(
dbMainWd003
->
!
userIds
.
contains
(
dbMainWd003
.
getUserId
()))
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS3201B.java
0 → 100644
View file @
150f4941
package
com
.
baosight
.
xservices
.
xs
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.hg.wd.domain.HGWD003
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.ObjectUtils
;
import
com.baosight.iplat4j.core.ei.EiBlockMeta
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.xservices.xs.domain.XS02
;
import
com.baosight.xservices.xs.tools.XsTools
;
import
com.baosight.xservices.xs.util.LoginUserDetails
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* 复制角色权限
*
* @author:songx
* @date:2024/5/9,11:04
*/
public
class
ServiceXS3201B
extends
ServiceEPBase
{
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@Override
@OperationLogAnnotation
(
operModul
=
"文档权限"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
/**
* 查询
*
* @param inInfo
* @return
*/
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
// 非超级管理只能看到所属企业的信息 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
queryMap
.
put
(
"accountCode"
,
UserSessionUtils
.
getAccountCode
());
}
// 排除自身
queryMap
.
put
(
"excludeEnames"
,
new
String
[]{
MapUtils
.
getString
(
queryMap
,
"mainGroupEname"
)});
inInfo
=
super
.
query
(
inInfo
,
"XS02.query"
,
new
XS02
());
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 确认
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"文档权限"
,
operType
=
"保存"
,
operDesc
=
"操作"
)
public
EiInfo
confirm
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
// 获取Group_ID信息
String
mainGroupEname
=
MapUtils
.
getString
(
queryMap
,
"mainGroupEname"
);
Map
resultMap
=
XsTools
.
Xs02
.
getGroup
(
mainGroupEname
);
AssertUtils
.
isEmpty
(
resultMap
,
String
.
format
(
"【%s】角色不存在"
,
mainGroupEname
));
// 获取Group_ID授权信息
List
<
Map
>
dbMainAuths
=
XsTools
.
Xs07
.
listBySubject
(
MapUtils
.
getString
(
resultMap
,
"groupId"
));
AssertUtils
.
isEmpty
(
dbMainAuths
,
String
.
format
(
"【%s】角色还未进行授权,请授权后再进行复制"
,
mainGroupEname
));
// 复制授权信息
List
<
Map
>
fGroupMaps
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
this
.
copyAuthUser
(
fGroupMaps
,
dbMainAuths
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"复制角色权限成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"复制角色权限失败"
);
}
return
inInfo
;
}
/**
* 复制授权用户
*
* @param fGroupMaps
* @param dbMainAuths
*/
private
void
copyAuthUser
(
List
<
Map
>
fGroupMaps
,
List
<
Map
>
dbMainAuths
)
{
List
<
String
>
groupIds
=
ObjectUtils
.
listKey
(
fGroupMaps
,
"groupId"
);
// 已授权信息
Map
<
String
,
List
<
Map
>>
dbAuthMap
=
XsTools
.
Xs07
.
mapBySubject
(
groupIds
);
for
(
String
groupId
:
groupIds
)
{
// 已存在的授权用户信息
List
<
Map
>
dbAuths
=
dbAuthMap
==
null
?
null
:
dbAuthMap
.
get
(
groupId
);
List
<
String
>
objectIds
=
CollectionUtils
.
isEmpty
(
dbAuths
)
?
new
ArrayList
<>()
:
dbAuths
.
stream
().
map
(
item
->
item
.
get
(
"objectId"
).
toString
()).
collect
(
Collectors
.
toList
());
// 过滤出未授权的用户,并重新赋值FILE_ID
List
<
Map
>
filterAuths
=
dbMainAuths
.
stream
()
.
filter
(
dbMainAuth
->
!
objectIds
.
contains
(
dbMainAuth
.
get
(
"objectId"
)))
.
map
(
dbMainAuth
->
{
dbMainAuth
.
put
(
"subjectId"
,
groupId
);
dbMainAuth
.
put
(
"recCreator"
,
UserSessionUtils
.
getLoginName
());
dbMainAuth
.
put
(
"recCreateTime"
,
DateUtils
.
shortDateTime
());
dbMainAuth
.
put
(
"sortIndex"
,
0
);
return
dbMainAuth
;
}).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
filterAuths
))
{
DaoUtils
.
insertBatch
(
"XS07.insert"
,
filterAuths
);
}
}
}
}
src/main/java/com/baosight/xservices/xs/sql/XS02.xml
View file @
150f4941
...
...
@@ -104,22 +104,26 @@
t1.id = #groupId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"groupEname"
>
t1.group_ename like
('%$groupEname$%')
t1.group_ename like
'%$groupEname$%'
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"groupCname"
>
t1.group_cname like
('%$groupCname$%')
t1.group_cname like
'%$groupCname$%'
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"groupType"
>
t1.group_type = #groupType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"manageGroupEname"
>
t1.manage_group_ename like
('%$manageGroupEname$%')
t1.manage_group_ename like
'%$manageGroupEname$%'
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
t1.account_code = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"excludeEnames"
>
t1.group_ename not in
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"excludeEnames"
>
#excludeEnames[]#
</iterate>
</isNotEmpty>
ORDER BY t1.SORT_INDEX,t1.ID
</select>
<select
id=
"queryByManageGroupEname"
resultClass=
"java.util.HashMap"
>
SELECT
t1.id as "groupId",
...
...
@@ -273,6 +277,22 @@
</isNotEmpty>
</select>
<select
id=
"getGroup"
resultClass=
"java.util.HashMap"
>
SELECT
id as "groupId",
group_ename as "gEname",
group_cname as "gCname"
FROM ${platSchema}.XS_USER_GROUP
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"groupEname"
>
group_ename = #groupEname#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"groupCname"
>
group_cname like '%$groupCname$%'
</isNotEmpty>
ORDER BY SORT_INDEX, ID
</select>
<select
id=
"queryGroup"
resultClass=
"java.util.HashMap"
>
SELECT
id as "groupId",
...
...
src/main/java/com/baosight/xservices/xs/sql/XS07.xml
View file @
150f4941
...
...
@@ -36,6 +36,9 @@
<isNotEmpty
prepend=
" AND "
property=
"subjectId"
>
subject_id = #subjectId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"subjectIds"
>
subject_id in
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"subjectIds"
>
#subjectIds[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"objectId"
>
object_id = #objectId#
</isNotEmpty>
...
...
@@ -88,11 +91,11 @@
LEFT JOIN ${platSchema}.XS_RESOURCE t7 ON t1.object_id = t7.ID
LEFT JOIN ${platSchema}.TEDFA00 t8 ON t7.RESOURCE_ENAME = t8.FORM_ENAME
LEFT JOIN (
SELECT
concat(concat(c.form_ename, '.'), d.button_ename) as form_ename,
concat(concat(c.form_cname, '-'), d.button_cname) as form_cname
FROM ${platSchema}.TEDFA00 c, ${platSchema}.TEDFA01 d
WHERE c.form_ename = d.form_ename
SELECT
concat(concat(c.form_ename, '.'), d.button_ename) as form_ename,
concat(concat(c.form_cname, '-'), d.button_cname) as form_cname
FROM ${platSchema}.TEDFA00 c, ${platSchema}.TEDFA01 d
WHERE c.form_ename = d.form_ename
) t9 ON t7.resource_ename = t9.form_ename
where 1=1 and t1.operation_type != 'PROCESS'
<isNotEmpty
prepend=
" AND "
property=
"subjectId"
>
...
...
@@ -112,14 +115,14 @@
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"subjectName"
>
(t2.group_cname like ('%$subjectName$%')
or t3.user_name like ('%$subjectName$%')
or t4.resource_group_cname like ('%$subjectName$%')
or t5.resource_ename like ('%$subjectName$%') )
or t3.user_name like ('%$subjectName$%')
or t4.resource_group_cname like ('%$subjectName$%')
or t5.resource_ename like ('%$subjectName$%') )
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"objectName"
>
(t6.resource_group_cname like concat('%', #objectName#, '%')
or t8.form_cname like concat('%', #objectName#, '%')
or t9.form_cname like concat('%', #objectName#, '%'))
or t8.form_cname like concat('%', #objectName#, '%')
or t9.form_cname like concat('%', #objectName#, '%'))
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operationType"
>
t1.operation_type = #operationType#
...
...
@@ -403,18 +406,18 @@
t1.archive_flag as "archiveFlag",
t1.sort_index as "sortIndex"
FROM (
select
ID as "OBJECT_ID",
RESOURCE_GROUP_ENAME,
RESOURCE_GROUP_CNAME
from ${platSchema}.XS_RESOURCE_GROUP
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"objectEname"
>
resource_group_ename = #objectEname#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"objectName"
>
resource_group_cname like ('%$objectName$%')
</isNotEmpty>
select
ID as "OBJECT_ID",
RESOURCE_GROUP_ENAME,
RESOURCE_GROUP_CNAME
from ${platSchema}.XS_RESOURCE_GROUP
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"objectEname"
>
resource_group_ename = #objectEname#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"objectName"
>
resource_group_cname like ('%$objectName$%')
</isNotEmpty>
)t6
join ${platSchema}.XS_AUTHORIZATION t1 on t1.object_id = t6.OBJECT_ID
AND t1.operation_type != 'PROCESS'
...
...
@@ -464,10 +467,10 @@
from ${platSchema}.XS_RESOURCE
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"objectEname"
>
resource_ename = #objectEname#
resource_ename = #objectEname#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"objectName"
>
resource_ename like ('%$objectName$%')
resource_ename like ('%$objectName$%')
</isNotEmpty>
)t7
join ${platSchema}.XS_AUTHORIZATION t1 on t1.object_id = t7.OBJECT_ID
...
...
@@ -846,4 +849,24 @@
SELECT $valueColumn$ as "subjectId" FROM ${platSchema}.$table$ WHERE $conditionColumn$ = #subjectEname#
</select>
<select
id=
"get"
resultClass=
"java.util.HashMap"
>
SELECT
SUBJECT_ID AS "subjectId",
SUBJECT_TYPE AS "subjectType",
OBJECT_ID AS "objectId",
OBJECT_TYPE AS "objectType",
OPERATION_TYPE AS "operationType"
FROM ${platSchema}.XS_AUTHORIZATION
WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"subjectId"
>
subject_id = #subjectId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"subjectIds"
>
subject_id in
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"subjectIds"
>
#subjectIds[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"objectId"
>
object_id = #objectId#
</isNotEmpty>
</select>
</sqlMap>
src/main/java/com/baosight/xservices/xs/tools/XsTools.java
0 → 100644
View file @
150f4941
package
com
.
baosight
.
xservices
.
xs
.
tools
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.util.AssertUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* @author:songx
* @date:2024/9/12,16:18
*/
public
class
XsTools
{
/**
* 用户角色
*
* @author:songx
* @date:2024/9/12,16:19
*/
public
static
class
Xs02
{
/**
* @param groupEname
* @return
*/
public
static
Map
getGroup
(
String
groupEname
)
{
AssertUtils
.
isEmpty
(
groupEname
,
"角色英文名不能为空"
);
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"groupEname"
,
groupEname
);
List
<
Map
>
results
=
DaoBase
.
getInstance
().
query
(
"XS02.getGroup"
,
queryMap
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
}
}
/**
* @author:songx
* @date:2024/9/12,16:28
*/
public
static
class
Xs07
{
/**
* @param subjectId
* @return
*/
public
static
List
<
Map
>
listBySubject
(
String
subjectId
)
{
AssertUtils
.
isEmpty
(
subjectId
,
"subjectId不能为空"
);
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"subjectId"
,
subjectId
);
return
DaoBase
.
getInstance
().
query
(
"XS07.get"
,
queryMap
);
}
/**
* @param subjectIds
* @return
*/
public
static
List
<
Map
>
listBySubject
(
List
<
String
>
subjectIds
)
{
AssertUtils
.
isEmpty
(
subjectIds
,
"subjectId不能为空"
);
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"subjectIds"
,
subjectIds
);
return
DaoBase
.
getInstance
().
query
(
"XS07.get"
,
queryMap
);
}
/**
* @param subjectIds
* @return
*/
public
static
Map
<
String
,
List
<
Map
>>
mapBySubject
(
List
<
String
>
subjectIds
)
{
List
<
Map
>
results
=
listBySubject
(
subjectIds
);
if
(
CollectionUtils
.
isEmpty
(
results
))
{
return
null
;
}
return
results
.
stream
().
collect
(
Collectors
.
groupingBy
(
item
->
item
.
get
(
"subjectId"
).
toString
()));
}
}
}
src/main/webapp/XS/XS3201.js
View file @
150f4941
...
...
@@ -165,6 +165,8 @@ $(function () {
// result4Grid.dataSource.page(1);
result5Grid
.
dataSource
.
page
(
1
);
})
// 打开复制权限页面
$
(
"#COPY_3"
).
on
(
"click"
,
copyAuth
);
},
onSave
:
(
e
)
=>
{
if
(
resultGrid
?.
getCheckedRows
()?.
length
===
1
&&
resultGrid
?.
getCheckedRows
()[
0
].
id
!==
lastUserGroupId
)
{
...
...
@@ -402,6 +404,38 @@ const authImpl = (grid, operation = "ACCESS", objectType = "RESOURCE_GROUP") =>
$
(
"#authWindow"
).
data
(
"kendoWindow"
).
close
();
}
/**
* 复制角色权限
*/
const
copyAuth
=
function
()
{
let
checkRows
=
resultGrid
.
getCheckedRows
();
if
(
checkRows
.
length
<
1
)
{
IPLAT
.
alert
(
"请在角色列表中勾选一行数据"
);
return
;
}
let
groupCname
=
checkRows
[
0
].
groupCname
;
let
params
=
{
"inqu_status-0-mainGroupEname"
:
checkRows
[
0
].
groupEname
}
JSColorbox
.
open
({
href
:
"XS3201B"
,
title
:
"<div style='text-align: center;'>正在复制:【"
+
groupCname
+
"】的菜单权限...</div>"
,
width
:
"70%"
,
height
:
"80%"
,
params
:
params
,
callbackName
:
copyAuthCallback
});
}
/**
* 复制授权回调
*
* @param res
*/
const
copyAuthCallback
=
function
(
res
)
{
}
let
resultGridHeight
;
window
.
onload
=
()
=>
{
const
tab_Strip
=
$
(
"#resourceTab"
).
data
(
"kendoTabStrip"
);
...
...
src/main/webapp/XS/XS3201.jsp
View file @
150f4941
...
...
@@ -41,7 +41,7 @@
<%-- </EF:EFRegion>--%>
<%-- <EF:EFRegion id="userGroupTable" title="用户组信息" style="overflow-y:auto">--%>
<div style="margin-bottom: 0px">
<EF:EFGrid blockId="result" autoDraw="no" serviceName="XS02" personal="true" checkMode="single">
<EF:EFGrid blockId="result" autoDraw="no" serviceName="XS02" personal="true" checkMode="
row,
single">
<EF:EFColumn ename="groupId" cname="用户群组ID" readonly="false" hidden="true"
primaryKey="true"/>
<EF:EFColumn ename="groupEname" cname="角色英文名" style="text-align:left;" readonly="true"
...
...
src/main/webapp/XS/XS3201B.js
0 → 100644
View file @
150f4941
$
(
function
()
{
IPLATUI
.
EFGrid
=
{
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
20
,
pageSizes
:
[
20
,
50
,
100
,
150
],
},
loadComplete
:
function
(
grid
)
{
}
}
}
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
query
);
// 确认
$
(
"#CONFIRM"
).
on
(
"click"
,
confirm
);
});
/**
* 页面加载
*/
$
(
window
).
load
(
function
()
{
// 查询
query
();
});
/**
* 查询
*/
let
query
=
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
}
/**
* 确认
*/
let
confirm
=
function
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
复制
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"XS3201B"
,
"confirm"
,
false
,
function
(
res
)
{
message
(
res
.
msg
);
if
(
res
.
status
!==
-
1
)
{
parent
.
JSColorbox
.
setValueCallback
(
res
);
}
}
);
}
});
}
src/main/webapp/XS/XS3201B.jsp
0 → 100644
View file @
150f4941
<!DOCTYPE html>
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<EF:EFPage
title=
"复制角色授权"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFInput
ename=
"mainGroupEname"
cname=
"主角色英文名"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<div
class=
"row"
>
<EF:EFInput
ename=
"groupEname"
cname=
"角色英文名"
blockId=
"inqu_status"
row=
"0"
colWidth=
"4"
/>
<EF:EFInput
ename=
"groupCname"
cname=
"角色中文名"
blockId=
"inqu_status"
row=
"0"
colWidth=
"4"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
height=
"69vh"
>
<EF:EFColumn
ename=
"groupId"
cname=
"用户群组ID"
hidden=
"true"
primaryKey=
"true"
/>
<EF:EFColumn
ename=
"groupEname"
cname=
"角色英文名"
enable=
"false"
width=
"120"
align=
"left"
/>
<EF:EFColumn
ename=
"groupCname"
cname=
"角色中文名"
enable=
"false"
width=
"120"
align=
"left"
/>
<EF:EFColumn
ename=
"recCreateTime"
cname=
"创建时间"
enable=
"false"
width=
"150"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
displayType=
"datetime"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
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