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
6e5c4943
Commit
6e5c4943
authored
Jun 19, 2018
by
陈玉兰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交选人页面
parent
0ef3a16e
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
275 additions
and
3 deletions
+275
-3
peopleTab.js
WebContent/process/pages/procdefinition/js/peopleTab.js
+50
-0
procdefiChoosePeopleTab.js
...rocess/pages/procdefinition/js/procdefiChoosePeopleTab.js
+93
-0
procdefinitionTab.js
...tent/process/pages/procdefinition/js/procdefinitionTab.js
+2
-1
peopleTab.jsp
WebContent/process/pages/procdefinition/peopleTab.jsp
+12
-0
procdefiChoosePeopleTab.jsp
.../process/pages/procdefinition/procdefiChoosePeopleTab.jsp
+13
-0
procdefinitionTab.jsp
...ontent/process/pages/procdefinition/procdefinitionTab.jsp
+1
-0
ProcdefinitionInitLinkBusiness.java
...ss/com/gaowj/business/ProcdefinitionInitLinkBusiness.java
+3
-0
ProcdefinitionInitLinkBusinessImpl.java
...efinitionInitlink/ProcdefinitionInitLinkBusinessImpl.java
+22
-0
procdefinitionInitlinkDAO.java
...ess/procdefinitionInitlink/procdefinitionInitlinkDAO.java
+6
-0
procdefinitionInitlinkDAO.xml
...ness/procdefinitionInitlink/procdefinitionInitlinkDAO.xml
+7
-0
actAction.java
src_process/com/gaowj/procdefinition/action/actAction.java
+31
-1
dataAction.java
src_process/com/gaowj/procdefinition/action/dataAction.java
+28
-0
viewAction.java
src_process/com/gaowj/procdefinition/action/viewAction.java
+7
-1
No files found.
WebContent/process/pages/procdefinition/js/peopleTab.js
0 → 100644
View file @
6e5c4943
/**
* 序号:1
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var
ls_width
=
$
(
window
).
width
();
var
ls_height
=
$
(
window
).
height
();
var
local_page
=
1
;
var
rows
=
20
;
var
listPageSize
=
[
10
,
20
,
50
,
100
,
500
,
1000
];
var
queryData
=
eval
(
"({'page':'"
+
local_page
+
"','rows':'"
+
rows
+
"'})"
);
var
tab_n
=
0
;
//重置分页参数
function
resetQueryData
(){
queryData
=
""
;
queryData
=
eval
(
"({'page':'"
+
local_page
+
"','rows':'"
+
rows
+
"'})"
);
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var
ls_module_id
=
'2'
;
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var
ls_ywlx
=
'YBYW'
;
//定义grid列表
var
ls_title
=
"选择人员"
;
var
is_column
=
[
[
{
field
:
'LINK_NAME'
,
title
:
'环节名'
,
width
:
300
,
align
:
'center'
},
{
field
:
'PROC_DEFIN_KEY'
,
title
:
'PROC_DEFIN_KEY'
,
width
:
300
,
align
:
'center'
}
]
];
//列表加载完成回调
function
dataOnLoadSuccess
(){
}
//设置颜色和每行高度
function
rowstyler
(
index
,
row
){
}
$
(
function
(){
//展示列表
datagridLog
(
"list"
,
ls_title
,
gaowj
.
WEB_APP_NAME
+
"/systemdata_listSysUser"
,
queryData
,
is_column
,
60
,
80
);
})
WebContent/process/pages/procdefinition/js/procdefiChoosePeopleTab.js
0 → 100644
View file @
6e5c4943
/**
* 序号:1
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var
ls_width
=
$
(
window
).
width
();
var
ls_height
=
$
(
window
).
height
();
var
local_page
=
1
;
var
rows
=
20
;
var
listPageSize
=
[
10
,
20
,
50
,
100
,
500
,
1000
];
var
queryData
=
eval
(
"({'page':'"
+
local_page
+
"','rows':'"
+
rows
+
"'})"
);
var
tab_n
=
0
;
//重置分页参数
function
resetQueryData
(){
queryData
=
""
;
queryData
=
eval
(
"({'page':'"
+
local_page
+
"','rows':'"
+
rows
+
"'})"
);
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var
ls_module_id
=
'2'
;
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var
ls_ywlx
=
'YBYW'
;
//定义grid列表
var
ls_title
=
"选择人员"
;
var
is_column
=
[
[
{
field
:
'LINK_NAME'
,
title
:
'环节名'
,
width
:
300
,
align
:
'center'
},
{
field
:
'PROC_DEFIN_KEY'
,
title
:
'PROC_DEFIN_KEY'
,
width
:
300
,
align
:
'center'
}
]
];
//列表加载完成回调
function
dataOnLoadSuccess
(){
}
//设置颜色和每行高度
function
rowstyler
(
index
,
row
){
}
$
(
function
(){
var
DEPLOYMENT_ID
=
$
.
getUrlParam
(
"DEPLOYMENT_ID"
);
//展示列表
datagrid
(
"list"
,
ls_title
,
gaowj
.
WEB_APP_NAME
+
"/procdefinitionData_getLinksList?DEPLOYMENT_ID="
+
DEPLOYMENT_ID
,
queryData
,
is_column
,
60
,
80
);
})
/****/
/**
* 序号:4
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function
formatMenu
(
value
,
data
,
index
)
{
var
returnData
=
""
;
return
returnData
+
"<span class=
\"
icon-ext-moremenu
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span>"
+
"<span data-p1="
+
index
+
" class=
\"
easyui-tooltip
\"
style=
\"
color:blue;cursor:pointer;
\"
>更多</span>"
;
}
//上浮横向菜单集里的具体菜单项(需更改)
function
getOptionMenu
(
data
,
index
){
var
returnData
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
memberRow('"
+
index
+
"')
\"
>人员</a> "
;
return
returnData
;
}
//返回菜单集的菜单个数(需更改)
function
getOptionMenuCount
(){
var
is_menu_count
=
1
;
return
is_menu_count
;
}
function
memberRow
(
index
){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
is_row
[
0
].
OPETYPE
=
'insert'
;
openEditRow
(
"procdefinitionView_peopleTab"
,
is_row
[
0
],
"选择"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
\ No newline at end of file
WebContent/process/pages/procdefinition/js/procdefinitionTab.js
View file @
6e5c4943
...
...
@@ -431,5 +431,6 @@ function choosePeopleRow(index){
success
:
function
(
data
){
console
.
log
(
data
);
}
})
});
openViewIframRow
(
"choosePeople"
,
"procdefinitionView_procdefiChoosePeopleTab?DEPLOYMENT_ID="
+
is_row
[
0
].
DEPLOYMENT_ID
,
is_row
[
0
],
"选人列表"
,
true
,
0.65
,
0.65
,
0
,
0
);
}
WebContent/process/pages/procdefinition/peopleTab.jsp
0 → 100644
View file @
6e5c4943
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="PeopleTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
</div>
<script type="text/javascript" src="${ctx}/process/pages/procdefinition/js/peopleTab.js" charset="utf-8"></script>
\ No newline at end of file
WebContent/process/pages/procdefinition/procdefiChoosePeopleTab.jsp
0 → 100644
View file @
6e5c4943
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="procdefiChoosePeopleTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
</div>
<div id="detail"></div>
<script type="text/javascript" src="${ctx}/process/pages/procdefinition/js/procdefiChoosePeopleTab.js" charset="utf-8"></script>
\ No newline at end of file
WebContent/process/pages/procdefinition/procdefinitionTab.jsp
View file @
6e5c4943
...
...
@@ -17,6 +17,7 @@
</div>
<div id="detail" style="overflow:auto;"></div>
<div id="iframedetail" style="overflow:auto;"></div>
<div id="choosePeople" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/process/pages/procdefinition/js/procdefinitionModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/process/pages/formtable/js/formtableModule.js" charset="utf-8"></script>
...
...
src_process/com/gaowj/business/ProcdefinitionInitLinkBusiness.java
View file @
6e5c4943
...
...
@@ -6,6 +6,7 @@ import java.util.Map;
import
org.springframework.stereotype.Service
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
@Service
public
interface
ProcdefinitionInitLinkBusiness
{
...
...
@@ -15,4 +16,6 @@ public interface ProcdefinitionInitLinkBusiness {
void
insert_procde_finition_init_link
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_procde_finition_init_link
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_procde_finition
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
src_process/com/gaowj/business/procdefinitionInitlink/ProcdefinitionInitLinkBusinessImpl.java
View file @
6e5c4943
...
...
@@ -8,9 +8,11 @@ import java.util.Map;
import
java.util.Set
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.ibatis.session.RowBounds
;
import
com.gaowj.business.ProcdefinitionInitLinkBusiness
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.SessionUtil
;
public
class
ProcdefinitionInitLinkBusinessImpl
implements
ProcdefinitionInitLinkBusiness
{
...
...
@@ -103,4 +105,24 @@ public class ProcdefinitionInitLinkBusinessImpl implements ProcdefinitionInitLin
}
}
@Override
public
Page
<
Map
<
String
,
Object
>>
list_procde_finition
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
// TODO Auto-generated method stub
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
// 获取列表
List
<
Map
<
String
,
Object
>>
items
=
procdefinitionInitlinkDAO
.
list_procde_finition_init_link
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
// 获取列表个数
int
count
=
procdefinitionInitlinkDAO
.
listCount_procde_finition_init_link
(
query
);
// 创建分页对象
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
page
.
setStart
(
pageStart
);
page
.
setLimit
(
pageSize
);
page
.
setCount
(
count
);
page
.
setItems
(
items
);
return
page
;
}
}
src_process/com/gaowj/business/procdefinitionInitlink/procdefinitionInitlinkDAO.java
View file @
6e5c4943
...
...
@@ -3,12 +3,18 @@ package com.gaowj.business.procdefinitionInitlink;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.ibatis.session.RowBounds
;
import
com.gaowj.business.exception.BusinessException
;
public
interface
procdefinitionInitlinkDAO
{
List
<
Map
<
String
,
Object
>>
list_procde_finition_init_link
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_procde_finition_init_link
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_procde_finition_init_link
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_procde_finition_init_link
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_procde_finition_init_link
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
...
...
src_process/com/gaowj/business/procdefinitionInitlink/procdefinitionInitlinkDAO.xml
View file @
6e5c4943
...
...
@@ -51,4 +51,10 @@
<include
refid=
"Where_Clause"
/>
order by f.CREATE_TIME DESC
</select>
<select
id=
"listCount_procde_finition_init_link"
parameterType=
"map"
resultType=
"int"
>
<![CDATA[
select count(*) c from C_T_PROC_DEFINITION_INIT_LINK f
]]>
<include
refid=
"Where_Clause"
/>
</select>
</mapper>
\ No newline at end of file
src_process/com/gaowj/procdefinition/action/actAction.java
View file @
6e5c4943
package
com
.
gaowj
.
procdefinition
.
action
;
import
java.sql.SQLException
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
com.gaowj.business.ProcdefinitionBusiness
;
import
com.gaowj.business.ProcdefinitionInitLinkBusiness
;
import
com.gaowj.business.StudentBusiness
;
import
com.gaowj.business.SystemOpeBusiness
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.comp.BusinessManager
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.QueryParamUtil
;
import
com.gaowj.business.util.RequestUtils
;
import
com.gaowj.business.util.Status
;
...
...
@@ -113,10 +117,36 @@ public class actAction extends BasicAction {
}
public
String
procdefinitionInitLink
()
throws
BusinessException
{
/**
* 做环节读取并插入到数据库表中
*/
String
proce_defin_id
=
RequestUtils
.
getString
(
request
,
"DEPLOYMENT_ID"
);
ProcdefinitionBusiness
business
=
BusinessManager
.
getBusiness
(
ProcdefinitionBusiness
.
class
);
ProcdefinitionInitLinkBusiness
linkBusiness
=
BusinessManager
.
getBusiness
(
ProcdefinitionInitLinkBusiness
.
class
);
int
code
=
business
.
init_procde_finition_people_approval
(
proce_defin_id
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"成功"
));
/**
* 读取数据
*/
Map
<
String
,
Object
>
query
=
new
HashMap
<
String
,
Object
>();
Page
<
Map
<
String
,
Object
>>
pageRows
=
linkBusiness
.
list_procde_finition
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
try
{
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
pageRows
.
getItems
()));
data
.
put
(
"pageNo"
,
pageNo
);
data
.
put
(
"pageSize"
,
pageSize
);
data
.
put
(
"pageCount"
,
pageCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
pageRows
.
getCount
());
jsonObject
=
new
JSONObject
();
jsonObject
.
putAll
(
data
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"成功"
));
}
catch
(
SQLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"失败"
));
}
return
"json"
;
}
}
src_process/com/gaowj/procdefinition/action/dataAction.java
View file @
6e5c4943
...
...
@@ -10,12 +10,14 @@ import java.util.List;
import
java.util.Map
;
import
com.gaowj.business.ProcdefinitionBusiness
;
import
com.gaowj.business.ProcdefinitionInitLinkBusiness
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.comp.BusinessManager
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.QueryParamUtil
;
import
com.gaowj.business.util.RequestUtils
;
import
com.gaowj.business.util.Status
;
import
net.sf.json.JSONObject
;
...
...
@@ -153,4 +155,30 @@ public class dataAction extends BasicAction{
return
name
;
}
public
String
getLinksList
()
throws
BusinessException
{
String
DEPLOYMENT_ID
=
RequestUtils
.
getString
(
request
,
"DEPLOYMENT_ID"
);
ProcdefinitionInitLinkBusiness
linkBusiness
=
BusinessManager
.
getBusiness
(
ProcdefinitionInitLinkBusiness
.
class
);
Map
<
String
,
Object
>
query
=
new
HashMap
<
String
,
Object
>();
query
.
put
(
"DEPLOYMENT_ID"
,
DEPLOYMENT_ID
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
linkBusiness
.
list_procde_finition
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
try
{
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
pageRows
.
getItems
()));
data
.
put
(
"pageNo"
,
pageNo
);
data
.
put
(
"pageSize"
,
pageSize
);
data
.
put
(
"pageCount"
,
pageCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
pageRows
.
getCount
());
jsonObject
=
new
JSONObject
();
jsonObject
.
putAll
(
data
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"成功"
));
}
catch
(
SQLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"失败"
));
}
return
"json"
;
}
}
src_process/com/gaowj/procdefinition/action/viewAction.java
View file @
6e5c4943
...
...
@@ -17,5 +17,11 @@ public class viewAction extends BasicAction {
public
String
procdefinitionTabDetail
()
throws
BusinessException
{
return
"procdefinitionTabDetail"
;
}
public
String
procdefiChoosePeopleTab
()
throws
BusinessException
{
return
"procdefiChoosePeopleTab"
;
}
public
String
peopleTab
()
throws
BusinessException
{
return
"peopleTab"
;
}
}
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