Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
c7be5752
Commit
c7be5752
authored
May 31, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产类货源开发申请表
parent
99292591
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
598 additions
and
0 deletions
+598
-0
produceMaterialApplyDetail.js
...un/sap/produceMaterialApply/produceMaterialApplyDetail.js
+37
-0
produceMaterialApplyDetail.jsp
...n/sap/produceMaterialApply/produceMaterialApplyDetail.jsp
+41
-0
produceMaterialApplyList.js
...psun/sap/produceMaterialApply/produceMaterialApplyList.js
+69
-0
produceMaterialApplyList.jsp
...sun/sap/produceMaterialApply/produceMaterialApplyList.jsp
+28
-0
ProduceMaterialApplyApplication.java
...ialApply/application/ProduceMaterialApplyApplication.java
+25
-0
ProduceMaterialApplyApplicationImpl.java
...application/impl/ProduceMaterialApplyApplicationImpl.java
+144
-0
ProduceMaterialApplyController.java
...erialApply/controller/ProduceMaterialApplyController.java
+64
-0
ProduceMaterialApply.java
...sap/produceMaterialApply/domain/ProduceMaterialApply.java
+41
-0
ProduceMaterialApplyQueryRequest.java
...lApply/domain/query/ProduceMaterialApplyQueryRequest.java
+14
-0
ProduceMaterialApplyRepository.java
...erialApply/repository/ProduceMaterialApplyRepository.java
+12
-0
produceMaterialApplyProc.bpmn
...un/sap/produceMaterialApply/produceMaterialApplyProc.bpmn
+111
-0
produceMaterialApply.xml
.../topsun/sap/produceMaterialApply/produceMaterialApply.xml
+12
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/produceMaterialApply/produceMaterialApplyDetail.js
0 → 100644
View file @
c7be5752
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initialize
();
bindEvent
();
});
function
initialize
(){
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
$
(
'#produceMaterialApplyList'
).
fileList
({
bizId
:
$
(
"#id"
).
val
()
});
}
function
bindEvent
(){
}
/**
* 流程引擎回调设置打样的id
* @param value 打样申请的id
*/
function
setId
(
id
)
{
$
(
"#id"
).
val
(
id
);
$
(
'#produceMaterialApplyList'
).
fileList
({
bizId
:
id
});
}
/**
* 流程引擎获取打样申请id的回掉方法。
* @return 打样申请的id
*/
function
getId
()
{
return
$
(
"#id"
).
val
()
||
""
;
}
topsun-xt/src/main/webapp/biz/topsun/sap/produceMaterialApply/produceMaterialApplyDetail.jsp
0 → 100644
View file @
c7be5752
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
%>
<%@taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date,attachment"
/>
<x:script
src=
'/biz/topsun/sap/produceMaterialApply/produceMaterialApplyDetail.js'
/>
</head>
<body>
<x:billTitle
title=
"生产类货源开发申请表"
needStatus=
"false"
needPerson=
"true"
/>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"billCode"
/>
<x:hidden
name=
"fillinDate"
type=
"datetime"
/>
<x:hidden
name=
"fullId"
/>
<x:hidden
name=
"organId"
/>
<x:hidden
name=
"organName"
/>
<x:hidden
name=
"deptId"
/>
<x:hidden
name=
"deptName"
/>
<x:hidden
name=
"positionId"
/>
<x:hidden
name=
"positionName"
/>
<x:hidden
name=
"personMemberId"
/>
<x:hidden
name=
"personMemberName"
/>
<x:hidden
name=
"statusId"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:selectC
name=
"purpose"
required=
"true"
label=
"用途"
labelCol=
"2"
fieldCol=
"2"
dictionary=
"purpose"
/>
</div>
<div
class=
"hg-form-row"
>
<x:textareaC
name=
"reason"
required=
"true"
label=
"原由"
labelCol=
"2"
fieldCol=
"10"
rows=
"2"
/>
</div>
<div
class=
"hg-form-row"
>
<x:textareaC
name=
"requireDes"
required=
"true"
label=
"需求描述"
labelCol=
"2"
fieldCol=
"10"
rows=
"3"
/>
</div>
</div>
<div
style=
"padding-top: 15px;"
>
<x:fileList
bizCode=
"produceMaterialApply"
bizId=
"id"
id=
"produceMaterialApplyList"
title=
"附件"
/>
</div>
</form>
</body>
</html>
topsun-xt/src/main/webapp/biz/topsun/sap/produceMaterialApply/produceMaterialApplyList.js
0 → 100644
View file @
c7be5752
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initUI
();
loadGrid
();
})
function
initUI
()
{
UICtrl
.
initDefaultLayout
();
}
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
addHandler
,
});
gridManager
=
UICtrl
.
grid
(
"#maingrid"
,
{
columns
:
[
{
display
:
"单据编号"
,
name
:
"billCode"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"创建日期"
,
name
:
"fillinDate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请人"
,
name
:
"personMemberName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"申请部门"
,
name
:
"deptName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"用途"
,
name
:
"purposeTextView"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"原由"
,
name
:
"reason"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"需求描述"
,
name
:
"requireDes"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/produceMaterialApply/slicedProduceMaterialApplyList.ajax'
,
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
width
:
"100%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
doView
(
data
.
id
);
},
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
function
query
(
obj
)
{
var
param
=
$
(
obj
).
formToJSON
();
UICtrl
.
gridSearch
(
gridManager
,
param
);
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
resetForm
(
obj
)
{
$
(
obj
).
formClean
();
}
function
addHandler
()
{
UICtrl
.
addTabItem
({
tabid
:
'produceMaterialApply'
,
text
:
"新增生产类货源开发申请表"
,
url
:
web_app
.
name
+
'/produceMaterialApply/forwardProduceMaterialApplyDetail.job'
});
}
function
doView
(
id
)
{
UICtrl
.
addTabItem
({
tabid
:
'produceMaterialApply'
+
id
,
text
:
"查看生产类货源开发申请表"
,
url
:
web_app
.
name
+
'/produceMaterialApply/showProduceMaterialApplyDetail.job?bizId='
+
id
+
"&isReadOnly=true"
});
}
topsun-xt/src/main/webapp/biz/topsun/sap/produceMaterialApply/produceMaterialApplyList.jsp
0 → 100644
View file @
c7be5752
<%@ page
contentType=
"text/html; charset=utf-8"
language=
"java"
%>
<%@ taglib
uri=
"/WEB-INF/taglib.tld"
prefix=
"x"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%>
<html>
<head>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree"
/>
<x:script
src=
'/biz/topsun/sap/produceMaterialApply/produceMaterialApplyList.js'
/>
</head>
<body>
<div
class=
"container-fluid"
>
<div
class=
"ui-hide"
>
</div>
<div
id=
"layout"
>
<div
position=
"center"
title=
"生产类货源开发申请表"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"billCode"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:searchButtons/>
</form>
<div
class=
"blank_div clearfix"
></div>
<div
id=
"maingrid"
style=
"margin: 2px;"
></div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/produceMaterialApply/application/ProduceMaterialApplyApplication.java
0 → 100644
View file @
c7be5752
package
com
.
huigou
.
topsun
.
sap
.
produceMaterialApply
.
application
;
import
com.huigou.topsun.sap.produceMaterialApply.domain.ProduceMaterialApply
;
import
com.huigou.topsun.sap.produceMaterialApply.domain.query.ProduceMaterialApplyQueryRequest
;
import
java.util.List
;
import
java.util.Map
;
/**
* @Auther: xin.lu
* @Date: 2024/05/31/15:07
* @Description:
*/
public
interface
ProduceMaterialApplyApplication
{
public
static
final
String
QUERY_XML_FILE_PATH
=
"config/topsun/sap/produceMaterialApply/produceMaterialApply.xml"
;
String
PROCESS_DEFINITION_KEY
=
"produceMaterialProc"
;
Map
<
String
,
Object
>
slicedProduceMaterialApplyList
(
ProduceMaterialApplyQueryRequest
queryRequest
);
void
deleteByIds
(
List
<
String
>
ids
);
ProduceMaterialApply
findProduceMaterialApplyById
(
String
id
);
}
topsun/src/main/java/com/huigou/topsun/sap/produceMaterialApply/application/impl/ProduceMaterialApplyApplicationImpl.java
0 → 100644
View file @
c7be5752
package
com
.
huigou
.
topsun
.
sap
.
produceMaterialApply
.
application
.
impl
;
import
com.huigou.data.domain.model.CommonDomainConstants
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryModel
;
import
com.huigou.topsun.sap.produceMaterialApply.application.ProduceMaterialApplyApplication
;
import
com.huigou.topsun.sap.produceMaterialApply.domain.query.ProduceMaterialApplyQueryRequest
;
import
com.huigou.topsun.sap.produceMaterialApply.repository.ProduceMaterialApplyRepository
;
import
com.huigou.topsun.sap.produceMaterialApply.domain.ProduceMaterialApply
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bpm.FlowBroker
;
import
com.huigou.util.ClassHelper
;
import
org.activiti.engine.delegate.DelegateExecution
;
import
org.activiti.engine.delegate.DelegateTask
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.Assert
;
import
java.util.List
;
import
java.util.Map
;
/**
* @Auther: xin.lu
* @Date: 2024/05/31/15:07
* @Description:
*/
@Service
(
"produceMaterialApplyApplication"
)
public
class
ProduceMaterialApplyApplicationImpl
extends
FlowBroker
implements
ProduceMaterialApplyApplication
{
@Autowired
private
ProduceMaterialApplyRepository
produceMaterialApplyRepository
;
@Override
protected
String
saveBizAndApprovalData
()
{
super
.
saveBizAndApprovalData
();
ProduceMaterialApply
produceMaterialApply
=
getBizEntity
(
ProduceMaterialApply
.
class
);
if
(
produceMaterialApply
.
isNew
())
{
produceMaterialApply
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
}
else
{
produceMaterialApply
=
(
ProduceMaterialApply
)
commonDomainService
.
loadAndFillinProperties
(
produceMaterialApply
);
}
produceMaterialApply
=
produceMaterialApplyRepository
.
save
(
produceMaterialApply
);
return
produceMaterialApply
.
getId
();
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
// 返回业务数据给流程实例,
return
ClassHelper
.
toMap
(
produceMaterialApplyRepository
.
getOne
(
bizId
));
}
/**
* 任务完成前执行
*/
@Override
protected
void
onBeforeComplete
(
DelegateTask
delegateTask
)
{
super
.
onBeforeComplete
(
delegateTask
);
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
if
(
this
.
isApplyProcUnit
(
delegateTask
)
&&
this
.
getApprovalParameter
().
isAdvanceProcessAction
())
{
// 校验及预算
updateStatus
(
bizId
,
BizBillStatus
.
APPROVING
);
}
}
@Transactional
protected
void
updateStatus
(
String
bizId
,
BizBillStatus
status
)
{
Assert
.
hasText
(
bizId
,
CommonDomainConstants
.
ID_NOT_BLANK
);
this
.
commonDomainService
.
updateStatus
(
ProduceMaterialApply
.
class
,
bizId
,
status
.
getId
());
}
/**
* 流程撤销事件
**/
@Override
protected
void
onRecallProcessInstance
(
DelegateExecution
delegateExecution
)
{
String
bizId
=
delegateExecution
.
getProcessBusinessKey
();
// 修改单据状态为申请
updateStatus
(
bizId
,
BizBillStatus
.
APPLYING
);
}
/**
* 回收事件
**/
@Override
protected
void
onWithdraw
(
DelegateTask
delegateTask
,
String
destActivityId
)
{
super
.
onWithdraw
(
delegateTask
,
destActivityId
);
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
if
(
destActivityId
.
equalsIgnoreCase
(
"apply"
))
{
updateStatus
(
bizId
,
BizBillStatus
.
APPLYING
);
}
}
@Override
protected
void
onEnd
(
DelegateExecution
delegateExecution
)
{
super
.
onEnd
(
delegateExecution
);
String
bizId
=
delegateExecution
.
getProcessBusinessKey
();
BizBillStatus
status
=
approvePassed
()
?
BizBillStatus
.
COMPLETED
:
BizBillStatus
.
ABORTED
;
ProduceMaterialApply
produceMaterialApply
=
produceMaterialApplyRepository
.
findOne
(
bizId
);
produceMaterialApply
.
setStatusId
(
status
.
getId
());
produceMaterialApplyRepository
.
save
(
produceMaterialApply
);
}
@Override
protected
void
onAbortProcessInstance
(
DelegateExecution
delegateExecution
)
{
super
.
onAbortProcessInstance
(
delegateExecution
);
String
bizId
=
delegateExecution
.
getProcessBusinessKey
();
ProduceMaterialApply
produceMaterialApply
=
produceMaterialApplyRepository
.
findOne
(
bizId
);
produceMaterialApply
.
setStatusId
(
BizBillStatus
.
ABORTED
.
getId
());
produceMaterialApplyRepository
.
save
(
produceMaterialApply
);
}
/**
* @param delegateTask
* @param destActivityId 回退到的目标节点id
*/
@Override
protected
void
onBack
(
DelegateTask
delegateTask
,
String
destActivityId
)
{
super
.
onBack
(
delegateTask
,
destActivityId
);
if
(
"Apply"
.
equalsIgnoreCase
(
destActivityId
))
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
ProduceMaterialApply
produceMaterialApply
=
produceMaterialApplyRepository
.
findOne
(
bizId
);
produceMaterialApply
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
produceMaterialApplyRepository
.
save
(
produceMaterialApply
);
}
}
@Override
public
Map
<
String
,
Object
>
slicedProduceMaterialApplyList
(
ProduceMaterialApplyQueryRequest
queryRequest
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"produceMaterialApply"
);
QueryModel
queryModel
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
queryRequest
);
Map
<
String
,
Object
>
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
return
map
;
}
@Override
public
void
deleteByIds
(
List
<
String
>
ids
)
{
ids
.
forEach
(
id
->{
produceMaterialApplyRepository
.
delete
(
id
);
});
}
@Override
public
ProduceMaterialApply
findProduceMaterialApplyById
(
String
id
)
{
return
produceMaterialApplyRepository
.
findOne
(
id
);
}
}
topsun/src/main/java/com/huigou/topsun/sap/produceMaterialApply/controller/ProduceMaterialApplyController.java
0 → 100644
View file @
c7be5752
package
com
.
huigou
.
topsun
.
sap
.
produceMaterialApply
.
controller
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.topsun.sap.produceMaterialApply.application.ProduceMaterialApplyApplication
;
import
com.huigou.topsun.sap.produceMaterialApply.domain.ProduceMaterialApply
;
import
com.huigou.topsun.sap.produceMaterialApply.domain.query.ProduceMaterialApplyQueryRequest
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.SDO
;
import
org.springframework.stereotype.Controller
;
import
javax.annotation.Resource
;
import
java.util.Map
;
/**
* @Auther: xin.lu
* @Date: 2024/05/31/15:07
* @Description:
*/
@Controller
@ControllerMapping
(
"/produceMaterialApply"
)
public
class
ProduceMaterialApplyController
extends
CommonController
{
@Override
protected
String
getPagePath
()
{
return
"/biz/topsun/sap/produceMaterialApply/"
;
}
@Resource
private
ProduceMaterialApplyApplication
produceMaterialApplyApplication
;
public
String
forwardProduceMaterialApplyList
(){
return
forward
(
"produceMaterialApplyList"
);
}
public
String
slicedProduceMaterialApplyList
(){
SDO
sdo
=
this
.
getSDO
();
ProduceMaterialApplyQueryRequest
queryRequest
=
sdo
.
toQueryRequest
(
ProduceMaterialApplyQueryRequest
.
class
);
Map
<
String
,
Object
>
map
=
produceMaterialApplyApplication
.
slicedProduceMaterialApplyList
(
queryRequest
);
return
toResult
(
map
);
}
public
String
forwardProduceMaterialApplyDetail
(){
this
.
putAttribute
(
"processDefinitionKey"
,
ProduceMaterialApplyApplication
.
PROCESS_DEFINITION_KEY
);
// 新增的时候procUnitId一定要设置成Apply,不然jsp页面的所有表单元素是readonly状态
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
ProduceMaterialApply
produceMaterialApply
=
new
ProduceMaterialApply
();
produceMaterialApply
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
/**
* 设置jsp页面初始化填充数据,如果不设置, 那么在jsp页面上填写完表单之后立即提交申请TaskDescription获取不到时间和相关人员信息
*/
Operator
operator
=
getOperator
();
produceMaterialApply
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
return
forward
(
"produceMaterialApplyDetail"
,
produceMaterialApply
);
}
public
String
showProduceMaterialApplyDetail
(){
SDO
sdo
=
this
.
getSDO
();
String
id
=
sdo
.
getBizId
();
ProduceMaterialApply
produceMaterialApply
=
produceMaterialApplyApplication
.
findProduceMaterialApplyById
(
id
);
return
forward
(
"produceMaterialApplyDetail"
,
produceMaterialApply
);
}
}
topsun/src/main/java/com/huigou/topsun/sap/produceMaterialApply/domain/ProduceMaterialApply.java
0 → 100644
View file @
c7be5752
package
com
.
huigou
.
topsun
.
sap
.
produceMaterialApply
.
domain
;
import
com.huigou.data.domain.model.FlowBillAbstractEntity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
/**
* @Auther: xin.lu
* @Date: 2024/05/31/15:02
* @Description: 《生产类货源开发申请表》
*/
@Entity
@Data
@Table
(
name
=
"sap_produce_material_apply"
)
public
class
ProduceMaterialApply
extends
FlowBillAbstractEntity
{
/**
* 用途
*/
@Column
(
name
=
"purpose"
)
private
String
purpose
;
/**
* 原由
*/
@Column
(
name
=
"reason"
)
private
String
reason
;
/**
* 需求描述
*/
@Column
(
name
=
"require_des"
)
private
String
requireDes
;
@Override
protected
String
getCodeRuleId
()
{
return
"produceMaterialApply"
;
}
}
topsun/src/main/java/com/huigou/topsun/sap/produceMaterialApply/domain/query/ProduceMaterialApplyQueryRequest.java
0 → 100644
View file @
c7be5752
package
com
.
huigou
.
topsun
.
sap
.
produceMaterialApply
.
domain
.
query
;
import
com.huigou.data.domain.query.QueryAbstractRequest
;
import
lombok.Data
;
/**
* @Auther: xin.lu
* @Date: 2024/05/31/15:09
* @Description:
*/
@Data
public
class
ProduceMaterialApplyQueryRequest
extends
QueryAbstractRequest
{
private
String
billCode
;
}
topsun/src/main/java/com/huigou/topsun/sap/produceMaterialApply/repository/ProduceMaterialApplyRepository.java
0 → 100644
View file @
c7be5752
package
com
.
huigou
.
topsun
.
sap
.
produceMaterialApply
.
repository
;
import
com.huigou.topsun.sap.produceMaterialApply.domain.ProduceMaterialApply
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: xin.lu
* @Date: 2024/05/31/15:07
* @Description:
*/
public
interface
ProduceMaterialApplyRepository
extends
JpaRepository
<
ProduceMaterialApply
,
String
>
{
}
topsun/src/main/resources/config/bpm/topsun/sap/produceMaterialApply/produceMaterialApplyProc.bpmn
0 → 100644
View file @
c7be5752
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
typeLanguage=
"http://www.w3.org/2001/XMLSchema"
expressionLanguage=
"http://www.w3.org/1999/XPath"
targetNamespace=
"http://www.activiti.org/test"
>
<process
id=
"produceMaterialProc"
name=
"生产类货源开发申请"
isExecutable=
"true"
>
<extensionElements>
<activiti:executionListener
event=
"start"
delegateExpression=
"#{produceMaterialApplyApplication}"
></activiti:executionListener>
<activiti:executionListener
event=
"end"
delegateExpression=
"#{produceMaterialApplyApplication}"
></activiti:executionListener>
</extensionElements>
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<endEvent
id=
"endevent1"
name=
"End"
></endEvent>
<userTask
id=
"Apply"
name=
"生产类货源开发申请"
activiti:formKey=
"produceMaterialApply/showProduceMaterialApplyDetail.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{produceMaterialApplyApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{produceMaterialApplyApplication}"
></activiti:taskListener>
</extensionElements>
</userTask>
<userTask
id=
"Approve"
name=
"生产类货源开发审批"
activiti:assignee=
"${assignee} "
activiti:formKey=
"produceMaterialApply/showProduceMaterialApplyDetail.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{produceMaterialApplyApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{produceMaterialApplyApplication}"
></activiti:taskListener>
</extensionElements>
<multiInstanceLoopCharacteristics
isSequential=
"false"
activiti:collection=
"handlerList"
activiti:elementVariable=
"assignee"
>
<completionCondition>
${chiefApprovePassed}
</completionCondition>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"Apply"
></sequenceFlow>
<sequenceFlow
id=
"flow2"
sourceRef=
"Apply"
targetRef=
"Approve"
></sequenceFlow>
<exclusiveGateway
id=
"ApproveFinished"
name=
"审批结束"
></exclusiveGateway>
<sequenceFlow
id=
"flow3"
name=
"审批通过"
sourceRef=
"ApprovePassed"
targetRef=
"ApproveFinished"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approvePassed}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow4"
name=
"审批结束"
sourceRef=
"ApproveFinished"
targetRef=
"endevent1"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow5"
name=
"审批未结束"
sourceRef=
"ApproveFinished"
targetRef=
"Approve"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<exclusiveGateway
id=
"ApprovePassed"
name=
"审批通过"
></exclusiveGateway>
<sequenceFlow
id=
"flow6"
sourceRef=
"Approve"
targetRef=
"ApprovePassed"
></sequenceFlow>
<sequenceFlow
id=
"flow9"
name=
"审批未通过"
sourceRef=
"ApprovePassed"
targetRef=
"Apply"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approvePassed}]]>
</conditionExpression>
</sequenceFlow>
</process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_produceMaterialProc"
>
<bpmndi:BPMNPlane
bpmnElement=
"produceMaterialProc"
id=
"BPMNPlane_produceMaterialProc"
>
<bpmndi:BPMNShape
bpmnElement=
"startevent1"
id=
"BPMNShape_startevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"50.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"endevent1"
id=
"BPMNShape_endevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"550.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Apply"
id=
"BPMNShape_Apply"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"140.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Approve"
id=
"BPMNShape_Approve"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"240.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApproveFinished"
id=
"BPMNShape_ApproveFinished"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"440.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApprovePassed"
id=
"BPMNShape_ApprovePassed"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"349.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
bpmnElement=
"flow1"
id=
"BPMNEdge_flow1"
>
<omgdi:waypoint
x=
"372.0"
y=
"85.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"140.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow2"
id=
"BPMNEdge_flow2"
>
<omgdi:waypoint
x=
"372.0"
y=
"195.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"240.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow3"
id=
"BPMNEdge_flow3"
>
<omgdi:waypoint
x=
"372.0"
y=
"389.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"440.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"320.0"
y=
"396.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow4"
id=
"BPMNEdge_flow4"
>
<omgdi:waypoint
x=
"372.0"
y=
"480.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"550.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"382.0"
y=
"489.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow5"
id=
"BPMNEdge_flow5"
>
<omgdi:waypoint
x=
"392.0"
y=
"460.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"459.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"317.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"489.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"453.0"
y=
"267.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"459.0"
y=
"411.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow6"
id=
"BPMNEdge_flow6"
>
<omgdi:waypoint
x=
"372.0"
y=
"295.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"349.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow9"
id=
"BPMNEdge_flow9"
>
<omgdi:waypoint
x=
"352.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"167.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"292.0"
y=
"167.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"257.0"
y=
"376.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
\ No newline at end of file
topsun/src/main/resources/config/topsun/sap/produceMaterialApply/produceMaterialApply.xml
0 → 100644
View file @
c7be5752
<?xml version="1.0" encoding="UTF-8" ?>
<query-mappings>
<query
name=
"produceMaterialApply"
label=
"生产类货源开发申请表"
table=
"sap_produce_material_apply"
>
<sql-query>
select
t.*
from sap_produce_material_apply t where 1=1
</sql-query>
<condition
column=
"bill_code"
name=
"billCode"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
</query>
</query-mappings>
\ No newline at end of file
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