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
e9c018a3
Commit
e9c018a3
authored
Jul 12, 2018
by
罗绍泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增我的任务
parent
b3b4931b
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
723 additions
and
6 deletions
+723
-6
business-process.xml
WebContent/WEB-INF/conf/gaowj/bl/business-process.xml
+4
-0
icon.css
...tent/gaowj/ria/jquery/jquery-easyui-1.4.1/themes/icon.css
+4
-0
procinstanceTab.js
WebContent/process/pages/procinstance/js/procinstanceTab.js
+10
-4
proctaskModule.js
WebContent/process/pages/proctask/js/proctaskModule.js
+25
-0
proctaskTab.js
WebContent/process/pages/proctask/js/proctaskTab.js
+463
-0
proctaskTab.jsp
WebContent/process/pages/proctask/proctaskTab.jsp
+23
-0
struts-ext.xml
src/struts-ext.xml
+17
-0
AssignmentTaskListener.java
...s/com/gaowj/activiti/listener/AssignmentTaskListener.java
+2
-2
ProctaskBusiness.java
src_process/com/gaowj/business/ProctaskBusiness.java
+19
-0
ProctaskBusinessImpl.java
...ess/com/gaowj/business/proctask/ProctaskBusinessImpl.java
+50
-0
actAction.java
src_process/com/gaowj/proctask/action/actAction.java
+12
-0
dataAction.java
src_process/com/gaowj/proctask/action/dataAction.java
+78
-0
viewAction.java
src_process/com/gaowj/proctask/action/viewAction.java
+16
-0
No files found.
WebContent/WEB-INF/conf/gaowj/bl/business-process.xml
View file @
e9c018a3
...
...
@@ -114,4 +114,8 @@
<bean
id=
"ProcdefiChooseDeptBusiness"
class=
"com.gaowj.business.procdefiChooseDept.ProcdefiChooseDeptBusinessImpl"
>
<property
name=
"procdefiChooseDeptDAO"
ref=
"procdefiChooseDeptDAO"
></property>
</bean>
<bean
id=
"ProctaskBusiness"
class=
"com.gaowj.business.proctask.ProctaskBusinessImpl"
>
<property
name=
"taskService"
ref=
"taskService"
></property>
</bean>
</beans>
WebContent/gaowj/ria/jquery/jquery-easyui-1.4.1/themes/icon.css
View file @
e9c018a3
...
...
@@ -310,3 +310,6 @@
.icon-ext-02_22{
background:url('
../../../../
images
/
icons
/(
02
,
22
).
png
') no-repeat left center;
}
.icon-ext-07_35{
background:url('
../../../../
images
/
icons
/(
07
,
35
).
png
'
)
no-repeat
left
center
;
}
\ No newline at end of file
WebContent/process/pages/procinstance/js/procinstanceTab.js
View file @
e9c018a3
...
...
@@ -122,11 +122,17 @@ function formatMenu(value, data,index) {
//上浮横向菜单集里的具体菜单项(需更改)
function
getOptionMenu
(
data
,
index
){
var
returnData
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
showProcinstanceImg('"
+
index
+
"')
\"
>流程图</a> | <span class=
\"
icon-ext-file
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
deploy('"
+
index
+
"')
\"
>部署</a> | <span class=
\"
icon-clear
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
deleteRow('"
var
returnData
=
[];
var
editBtn
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
showProcinstanceImg('"
+
index
+
"')
\"
>处理</a>"
;
var
delBtn
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
showProcinstanceImg('"
+
index
+
"')
\"
>删除</a>"
;
return
returnData
;
var
procinstanceImgBtn
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
showProcinstanceImg('"
+
index
+
"')
\"
>进度</a>"
;
returnData
.
push
(
editBtn
);
returnData
.
push
(
delBtn
);
returnData
.
push
(
procinstanceImgBtn
);
return
returnData
.
join
(
" | "
);
}
//返回菜单集的菜单个数(需更改)
...
...
WebContent/process/pages/proctask/js/proctaskModule.js
0 → 100644
View file @
e9c018a3
//此乃本模块与后台交互的方法接口部分
var
proctaskModule
=
function
(
format
)
{
this
.
module
=
""
;
this
.
action
=
""
;
this
.
format
=
format
;
};
//定义数据交互
proctaskModule
.
prototype
=
BusinessObject
;
//插入流程实例
proctaskModule
.
prototype
.
insertInfo
=
function
(){};
//修改流程实例
proctaskModule
.
prototype
.
updateInfo
=
function
(){};
//删除流程实例
proctaskModule
.
prototype
.
deleteInfo
=
function
(){};
//创建一个数据操作对象,然后再后续使用
proctaskModule
.
act
=
new
proctaskModule
(
"json"
).
delegate
(
"proctaskAct"
);
//创建一个数据获取对象,然后再后续使用
proctaskModule
.
data
=
new
proctaskModule
(
"json"
).
delegate
(
"proctaskData"
);
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
WebContent/process/pages/proctask/js/proctaskTab.js
0 → 100644
View file @
e9c018a3
/**
* 序号: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'
;
/****/
/**
* 序号:2
* 功能:构建下拉框内容
* 参数:
* 说明:方便新增、修改页面里的下拉选项加载数据
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
/****/
/**
* 序号:3
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//定义grid列表
var
ls_title
=
null
;
var
is_column
=
[[
{
field
:
'PROC_NAME'
,
title
:
'流程'
,
width
:
100
},
{
field
:
'INSTANCE_ID'
,
title
:
'实例id'
,
width
:
80
},
{
field
:
'CREATE_TIME'
,
title
:
'新建时间'
,
width
:
130
,
formatter
:
function
(
value
,
row
,
index
){
return
value
;
}},
{
field
:
'COMPLETE'
,
title
:
'进度'
,
width
:
80
,
formatter
:
function
(
value
,
row
,
index
){
if
(
value
==
0
){
return
"进行中"
;
}
else
{
return
"完成"
;
}
}}
]];
//列表加载完成回调
function
dataOnLoadSuccess
(){
}
//设置颜色和每行高度
function
rowstyler
(
index
,
row
){
if
(
row
.
STATUS
==
'1'
){
return
'color:green;height:30px;'
;
}
else
{
return
'color:blue;height:30px;'
;
}
}
//展示列表
datagrid
(
"list"
,
ls_title
,
gaowj
.
WEB_APP_NAME
+
"/proctaskData_list"
,
Object
.
assign
({},
$
(
"#procinstanceTab_searchForm"
).
getFormVal
(),
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
=
[];
var
editBtn
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
showProcinstanceImg('"
+
index
+
"')
\"
>处理</a>"
;
var
delBtn
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
showProcinstanceImg('"
+
index
+
"')
\"
>删除</a>"
;
var
procinstanceImgBtn
=
"<span class=
\"
icon-edit
\"
style=
\"
padding-left:20px;*width:20px;
\"
></span><a href=
\"
javascript:void(0);
\"
onclick=
\"
showProcinstanceImg('"
+
index
+
"')
\"
>进度</a>"
;
returnData
.
push
(
editBtn
);
returnData
.
push
(
delBtn
);
returnData
.
push
(
procinstanceImgBtn
);
return
returnData
.
join
(
" | "
);
}
//返回菜单集的菜单个数(需更改)
function
getOptionMenuCount
(){
var
is_menu_count
=
3
;
return
is_menu_count
;
}
/****/
/**
* 序号:5
* 功能:新增修改弹出
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//加载增加子页面
function
addRow
(){
var
procdefinitionUuid
=
$
(
"#FIELD_PROCDEFINITION_UUID"
).
combobox
(
'getValue'
);
if
(
procdefinitionUuid
==
'-- 全部 --'
||
procdefinitionUuid
==
'all'
){
procdefinitionUuid
=
''
;
}
var
is_row
=
{
OPETYPE
:
'insert'
,
PROCDEFINITION_UUID
:
procdefinitionUuid
};
openProcEditRow
(
"procinstanceView_procinstanceTabDetail"
,
is_row
,
"新增"
,
true
,
0.95
,
0.95
,
0
,
0
);
}
//加载增加子页面成功后的回调
function
addUrlOnloadCallback
(
is_row
){
$
(
'#detail #FIELD_PROCDEFINITION_UUID'
).
combobox
({
data
:
v_data_procdefinition2
,
valueField
:
'UUID'
,
textField
:
'PROC_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
,
onSelect
:
function
(){
fillTable
();
}
});
fillTable
();
}
//保存
function
insertData
(
is_entity
){
is_entity
.
FIELD_PROCID
=
$
(
'#detail #FIELD_PROCDEFINITION_UUID'
).
combobox
(
"getValue"
);
var
v_result
=
procinstanceModule
.
act
.
insertInfo
(
is_entity
);
$
(
'#list'
).
datagrid
(
'reload'
);
return
v_result
;
}
//加载修改子页面
function
editRow
(
index
)
{
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
is_row
[
0
].
OPETYPE
=
'update'
;
openEditRow
(
"procdefinitionView_procdefinitionTabDetail"
,
is_row
[
0
],
"编辑"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
//加载修改子页面成功后的回调
function
updateUrlOnloadCallback
(
is_row
){
$
(
"#inputForm"
).
form
(
'load'
,
commonutil
.
keyAddStr
(
is_row
));
}
//保存
function
updateData
(
is_entity
){
v_result
=
procdefinitionModule
.
act
.
updateProcdefinition
(
is_entity
);
$
(
'#list'
).
datagrid
(
'reload'
);
return
v_result
;
}
/****/
/**
* 序号:6
* 功能:单个删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function
deleteRow
(
index
){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
var
code
=
is_row
[
0
].
UUID
;
$
.
messager
.
confirm
(
'提示'
,
'确定删除?'
,
function
(
r
)
{
if
(
r
)
{
var
v_query
=
{};
v_query
.
FIELD_CODE
=
code
;
var
v_result
=
procdefinitionmodelsModule
.
act
.
deleteProcdefinitionmodels
(
v_query
);
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
$
(
'#list'
).
datagrid
(
'reload'
);
}
});
}
/****/
/**
* 序号:7
* 功能:批量删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function
deleteBatchRow
(){
var
code
=
""
;
var
rows
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
){
code
=
code
+
rows
[
i
].
UUID
+
","
;
}
if
(
rows
==
null
||
rows
==
""
){
$
.
messager
.
alert
(
'提示'
,
"请选择需删除的记录!"
,
'info'
);
return
;
}
if
(
code
.
length
>
0
){
code
=
code
.
substring
(
0
,
code
.
length
-
1
);
}
$
.
messager
.
confirm
(
'提示'
,
'确定删除?'
,
function
(
r
)
{
if
(
r
)
{
var
v_query
=
{};
v_query
.
FIELD_CODE
=
code
;
var
v_result
=
procdefinitionmodelsModule
.
act
.
deleteProcdefinitionmodels
(
v_query
);
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
$
(
'#list'
).
datagrid
(
'reload'
);
}
});
}
/****/
/**
* 序号:8
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function
refreshRow
(){
$
(
'#list'
).
datagrid
(
'load'
,{});
$
(
"#studentTab_searchForm"
)[
0
].
reset
();
}
/****/
/**
* 序号:9
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function
searchRow
(){
var
v_query
=
$
(
"#procinstanceTab_searchForm"
).
getFormVal
();
var
FIELD_PROCDEFINITION_UUID
=
$
(
'#FIELD_PROCDEFINITION_UUID'
).
combobox
(
'getValue'
);
if
(
FIELD_PROCDEFINITION_UUID
==
'-- 全部 --'
||
FIELD_PROCDEFINITION_UUID
==
''
){
delete
v_query
.
FIELD_PROCDEFINITION_UUID
;
$
(
'#list'
).
datagrid
({
columns
:
is_column
,
queryParams
:
v_query
});
}
else
{
$
(
'#list'
).
datagrid
({
columns
:
[
[
{
field
:
'PEOPLE'
,
title
:
'请假人'
,
width
:
80
},
{
field
:
'REASON'
,
title
:
'原因'
,
width
:
80
},
{
field
:
'INSTANCE_ID'
,
title
:
'环节'
,
width
:
80
},
{
field
:
'CREATE_TIME'
,
title
:
'新建时间'
,
width
:
130
,
formatter
:
function
(
value
,
row
,
index
)
{
return
value
;
}
},
{
field
:
'COMPLETE'
,
title
:
'进度'
,
width
:
80
,
formatter
:
function
(
value
,
row
,
index
)
{
if
(
value
==
0
)
{
return
"进行中"
;
}
else
{
return
"完成"
;
}
}
}
]
],
queryParams
:
v_query
});
}
//$('#list').datagrid('load',v_query);
}
/****/
/**
* 序号:10
* 功能:高级查询弹出
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//加载高级查询子页面
function
advsearchRow
(){
var
is_row
=
{
OPETYPE
:
'ww'
};
openAdvsearchRow
(
"studentView_studentAdvsearch"
,
is_row
,
"高级查询"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
//加载高级查询子页面成功后的回调
function
addAdvsearchCallback
(
is_row
){
$
(
'#adv_STATUS'
).
combobox
({
data
:
v_statusquery_data
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
});
$
(
'#adv_SEX'
).
combobox
({
data
:
v_sexquery_data
.
rowSet
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
});
$
(
'#adv_NATION'
).
combobox
({
data
:
v_nationquery_data
.
rowSet
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'200'
});
}
//高级查询
function
advsearchData
(
is_entity
){
is_entity
.
FIELD_START_TIME
=
strToDateObj
(
is_entity
.
FIELD_START_TIME
);
is_entity
.
FIELD_END_TIME
=
strToDateObj
(
is_entity
.
FIELD_END_TIME
);
$
(
'#list'
).
datagrid
(
'load'
,
is_entity
);
}
/****/
/**
* 序号:11
* 功能:处理接口附件
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function
uploadcommonRow
(
index
){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
var
code
=
is_row
[
0
].
UUID
;
var
is_row
=
{
MAINDATA_ID
:
code
,
MODULE_ID
:
ls_module_id
};
var
editUrl
=
"uploadFileCommonView_uploadfileCommonTab?FIELD_MODULE_ID="
+
ls_module_id
+
"&FIELD_MAINDATA_ID="
+
code
;
openViewIframRow
(
"uploadcommon"
,
editUrl
,
is_row
,
"毕业证附件"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
/****/
/**
* 序号:12
* 功能:批量处理接口附件
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function
uploadcommonBatchRow
(){
var
code
=
""
;
var
rows
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
){
code
=
code
+
rows
[
i
].
UUID
+
","
;
}
if
(
rows
==
null
||
rows
==
""
){
$
.
messager
.
alert
(
'提示'
,
"请选择记录!"
,
'info'
);
return
;
}
if
(
code
.
length
>
0
){
code
=
code
.
substring
(
0
,
code
.
length
-
1
);
}
var
is_row
=
{
MAINDATA_ID
:
code
,
MODULE_ID
:
ls_module_id
};
var
editUrl
=
"uploadFileCommonView_uploadfileCommonTab?FIELD_MODULE_ID="
+
ls_module_id
+
"&FIELD_MAINDATA_ID="
+
code
;
openViewIframRow
(
"uploadcommon"
,
editUrl
,
is_row
,
"批量毕业证附件"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
/****/
function
fillTable
(){
var
table_content
=
procdefinitionModule
.
data
.
findFormModel
({
FIELD_PROCDEFINITION_UUID
:
$
(
'#detail #FIELD_PROCDEFINITION_UUID'
).
combobox
(
"getValue"
)
});
$
(
"#table_content"
).
html
(
''
);
if
(
$
(
'#detail #FIELD_PROCDEFINITION_UUID'
).
combobox
(
"getValue"
)
==
''
){
//什么都不做
}
else
if
(
table_content
.
MODEL_CONTENT
==
'-1'
){
$
.
messager
.
alert
(
'提示'
,
'该流程对应的表没有设置有效的模板信息!'
);
}
else
{
$
(
"#table_content"
).
html
(
table_content
.
MODEL_CONTENT
);
}
}
function
showProcinstanceImg
(
index
)
{
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
easyui
.
dialog
({
width
:
1000
,
height
:
500
,
title
:
'流程图'
,
content
:
'<img src="procinstanceData_showProcinstanceImg?instanceId='
+
is_row
[
0
].
INSTANCE_ID
+
'" />'
});
}
\ No newline at end of file
WebContent/process/pages/proctask/proctaskTab.jsp
0 → 100644
View file @
e9c018a3
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="procinstanceTab">
<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">
<form id="procinstanceTab_searchForm" style="float:left">
流程: <input class="easyui-textbox" id="FIELD_PROCDEFINITION_UUID" name="FIELD_PROCDEFINITION_UUID" style="width:200px"/>
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ext-advsearch',plain:true" onclick="javascript:advsearchRow()">高级查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">新增</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ext-file',plain:true" onclick="javascript:uploadcommonBatchRow()">附件</a>
</div>
<div id="detail" 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/proctask/js/proctaskModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/process/pages/proctask/js/proctaskTab.js" charset="utf-8"></script>
src/struts-ext.xml
View file @
e9c018a3
...
...
@@ -104,5 +104,22 @@
<param
name=
"bufferSize"
>
1024
</param>
</result>
</action>
<action
name=
"proctaskView_*"
class=
"com.gaowj.proctask.action.viewAction"
method=
"{1}"
>
<result
name=
"{1}"
>
/process/pages/proctask/{1}.jsp
</result>
</action>
<action
name=
"proctaskAct_*"
class=
"com.gaowj.proctask.action.actAction"
method=
"{1}"
>
<result
name=
"json"
type=
"json"
>
<param
name=
"root"
>
jsonObject
</param>
</result>
</action>
<action
name=
"proctaskData_*"
class=
"com.gaowj.proctask.action.dataAction"
method=
"{1}"
>
<result
name=
"json"
type=
"json"
>
<param
name=
"root"
>
jsonObject
</param>
</result>
</action>
</package>
</struts>
src_process/com/gaowj/activiti/listener/AssignmentTaskListener.java
View file @
e9c018a3
...
...
@@ -14,7 +14,7 @@ public class AssignmentTaskListener implements TaskListener {
@Override
public
void
notify
(
DelegateTask
task
)
{
/*
System.out.println(task.getAssignee());
System
.
out
.
println
(
task
.
getAssignee
());
System
.
out
.
println
(
task
.
getCategory
());
System
.
out
.
println
(
task
.
getDescription
());
System
.
out
.
println
(
task
.
getEventName
());
...
...
@@ -29,7 +29,7 @@ public class AssignmentTaskListener implements TaskListener {
System
.
out
.
println
(
task
.
getProcessInstanceId
());
System
.
out
.
println
(
task
.
getTaskDefinitionKey
());
System
.
out
.
println
(
task
.
getTenantId
());
System.out.println(task.getVariables().toString());
*/
System
.
out
.
println
(
task
.
getVariables
().
toString
());
task
.
setAssignee
(
SessionUtil
.
getCode
());
//
...
...
src_process/com/gaowj/business/ProctaskBusiness.java
0 → 100644
View file @
e9c018a3
package
com
.
gaowj
.
business
;
import
java.util.Map
;
import
org.springframework.stereotype.Service
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
@Service
public
interface
ProctaskBusiness
{
/**
* 分页获取记录
*
* @param entity
* @throws BusinessException
*/
Page
<
Map
<
String
,
Object
>>
list_proc_task
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
src_process/com/gaowj/business/proctask/ProctaskBusinessImpl.java
0 → 100644
View file @
e9c018a3
package
com
.
gaowj
.
business
.
proctask
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
org.activiti.engine.TaskService
;
import
org.activiti.engine.task.Task
;
import
org.activiti.engine.task.TaskQuery
;
import
com.gaowj.business.ProctaskBusiness
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.SessionUtil
;
public
class
ProctaskBusinessImpl
implements
ProctaskBusiness
{
private
TaskService
taskService
;
public
TaskService
getTaskService
()
{
return
taskService
;
}
public
void
setTaskService
(
TaskService
taskService
)
{
this
.
taskService
=
taskService
;
}
@Override
public
Page
<
Map
<
String
,
Object
>>
list_proc_task
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
// 计算起始记录
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
TaskQuery
taskQuery
=
taskService
.
createTaskQuery
().
taskAssignee
(
SessionUtil
.
getCode
());
page
.
setStart
(
pageStart
);
page
.
setLimit
(
pageSize
);
page
.
setCount
((
int
)
taskQuery
.
count
());
List
<
Task
>
list
=
taskQuery
.
orderByTaskCreateTime
().
asc
().
listPage
(
pageStart
,
pageSize
);
List
<
Map
<
String
,
Object
>>
items
=
new
ArrayList
<
Map
<
String
,
Object
>>();
for
(
Task
task:
list
){
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
items
.
add
(
map
);
map
.
put
(
"createTime"
,
task
.
getCreateTime
());
map
.
put
(
"executionId"
,
task
.
getExecutionId
());
}
page
.
setItems
(
items
);
return
page
;
}
}
src_process/com/gaowj/proctask/action/actAction.java
0 → 100644
View file @
e9c018a3
package
com
.
gaowj
.
proctask
.
action
;
import
com.gaowj.business.action.BasicAction
;
public
class
actAction
extends
BasicAction
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
4062030374955033260L
;
}
src_process/com/gaowj/proctask/action/dataAction.java
0 → 100644
View file @
e9c018a3
package
com
.
gaowj
.
proctask
.
action
;
import
java.sql.SQLException
;
import
java.text.ParseException
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.gaowj.business.ProcinstanceBusiness
;
import
com.gaowj.business.ProctaskBusiness
;
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
net.sf.json.JSONObject
;
public
class
dataAction
extends
BasicAction
{
/**
*
*/
private
static
final
long
serialVersionUID
=
7116947652619171108L
;
private
JSONObject
jsonObject
=
new
JSONObject
();
private
int
rows
=
20
;
// 每页显示的记录数
private
int
page
=
1
;
// 当前第几页
public
JSONObject
getJsonObject
()
{
return
jsonObject
;
}
public
void
setJsonObject
(
JSONObject
jsonObject
)
{
this
.
jsonObject
=
jsonObject
;
}
public
int
getRows
()
{
return
rows
;
}
public
void
setRows
(
int
rows
)
{
this
.
rows
=
rows
;
}
public
int
getPage
()
{
return
page
;
}
public
void
setPage
(
int
page
)
{
this
.
page
=
page
;
}
/**
* 分页获取记录
* @param entity
* @throws BusinessException
*/
public
String
list
()
throws
BusinessException
{
ProctaskBusiness
business
=
BusinessManager
.
getBusiness
(
ProctaskBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_proc_task
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
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
);
}
catch
(
SQLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
catch
(
ParseException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
return
"json"
;
}
}
src_process/com/gaowj/proctask/action/viewAction.java
0 → 100644
View file @
e9c018a3
package
com
.
gaowj
.
proctask
.
action
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.exception.BusinessException
;
public
class
viewAction
extends
BasicAction
{
/**
*
*/
private
static
final
long
serialVersionUID
=
388673018812505782L
;
public
String
proctaskTab
()
throws
BusinessException
{
return
"proctaskTab"
;
}
}
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