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
1e64e316
Commit
1e64e316
authored
Mar 29, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
呆滞物料管理
parent
afcc4625
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
714 additions
and
0 deletions
+714
-0
sapDullDetail.js
...n-xt/src/main/webapp/biz/topsun/sap/dull/sapDullDetail.js
+74
-0
sapDullDetail.jsp
...-xt/src/main/webapp/biz/topsun/sap/dull/sapDullDetail.jsp
+46
-0
sapDullList.js
topsun-xt/src/main/webapp/biz/topsun/sap/dull/sapDullList.js
+103
-0
sapDullList.jsp
...un-xt/src/main/webapp/biz/topsun/sap/dull/sapDullList.jsp
+34
-0
SapDullApplication.java
...uigou/topsun/sap/dull/application/SapDullApplication.java
+28
-0
SapDullApplicationImpl.java
...sun/sap/dull/application/impl/SapDullApplicationImpl.java
+142
-0
SapDullController.java
.../huigou/topsun/sap/dull/controller/SapDullController.java
+83
-0
SapDull.java
.../main/java/com/huigou/topsun/sap/dull/domain/SapDull.java
+60
-0
SapDullQueryRequest.java
...gou/topsun/sap/dull/domain/query/SapDullQueryRequest.java
+20
-0
SapDullRepository.java
.../huigou/topsun/sap/dull/repository/SapDullRepository.java
+13
-0
sapDullProc.bpmn
...ain/resources/config/bpm/topsun/sap/dull/sapDullProc.bpmn
+111
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/dull/sapDullDetail.js
0 → 100644
View file @
1e64e316
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initialize
();
bindEvent
();
});
function
initialize
(){
UICtrl
.
layout
(
"#layout"
,
{
leftWidth
:
3
});
}
function
bindEvent
(){
//工厂
$
(
'#werksName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"werks"
}
},
onChange
:
function
(
value
,
data
)
{
$
(
'#werks'
).
val
(
data
.
WERKS
);
$
(
'#werksName'
).
val
(
data
.
NAME1
);
}
});
$
(
'#matnrName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"sapMaterialSelect"
}
},
onChange
:
function
(
value
,
data
)
{
$
(
'#matnr'
).
val
(
data
.
matnr
);
$
(
'#matnrName'
).
val
(
data
.
MAKTX
);
}
});
/* $("#applyPersonName").orgTree({
filter: "ogn,dpt,pos,psm",
excludePos: 1, param: {orgKindId: "ogn,dpt,pos,psm"},
back: {text: "#applyPersonName",value :'#applyPerson'},
manageType: 'taskQuery,admin',
onChange:function(value,data){ //alert(data.name);
// $("#applyPerson").val(data.fullId);
// $("#applyPersonName").val(data.name);
}
});
*/
}
/**
* 流程引擎回调设置打样的id
* @param value 打样申请的id
*/
function
setId
(
id
)
{
$
(
"#id"
).
val
(
id
);
}
/**
* 流程引擎获取打样申请id的回掉方法。
* @return 打样申请的id
*/
function
getId
()
{
return
$
(
"#id"
).
val
()
||
""
;
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
topsun-xt/src/main/webapp/biz/topsun/sap/dull/sapDullDetail.jsp
0 → 100644
View file @
1e64e316
<%@ 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=
"/system/excelimport/AssignCodeImp.js"
/>
<x:script
src=
'/biz/topsun/sap/dull/sapDullDetail.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"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:hidden
name=
"werks"
/>
<x:inputC
name=
"werksName"
required=
"true"
label=
"工厂"
labelCol=
"2"
wrapper=
"select"
fieldCol=
"4"
/>
<x:hidden
name=
"matnr"
/>
<x:inputC
name=
"matnrName"
required=
"true"
label=
"物料名称"
labelCol=
"2"
fieldCol=
"4"
wrapper=
"select"
/>
</div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"batch"
required=
"false"
label=
"批次"
labelCol=
"2"
fieldCol=
"4"
/>
<x:inputC
name=
"dullDays"
required=
"false"
label=
"呆滞天数"
labelCol=
"2"
fieldCol=
"4"
mask=
"nnnnn"
/>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"remark"
required=
"false"
label=
"说明"
labelCol=
"2"
fieldCol=
"10"
/>
</div>
</div>
</div>
</form>
</body>
</html>
topsun-xt/src/main/webapp/biz/topsun/sap/dull/sapDullList.js
0 → 100644
View file @
1e64e316
var
gridManager
=
null
;
$
(
document
).
ready
(
function
()
{
initUI
();
loadGrid
();
})
function
initUI
()
{
UICtrl
.
initDefaultLayout
();
}
function
loadGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
addHandler
,
deleteHandler
:
deleteHandler
});
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
:
"statusTextView"
,
width
:
60
,
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
:
"werks"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工厂名称"
,
name
:
"werksName"
,
width
:
220
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物料编码"
,
name
:
"matnr"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物料名称"
,
name
:
"matnrName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"批次"
,
name
:
"batch"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"呆滞天数"
,
name
:
"dullDays"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"说明"
,
name
:
"remark"
,
width
:
220
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
}
],
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapDull/slicedSapDullList.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
deleteHandler
()
{
let
result
=
DataUtil
.
getUpdateRow
(
gridManager
);
if
(
result
.
status
!==
0
){
Public
.
tip
(
"请选择申请状态的数据!"
)
return
false
;
}
// var message = "您确认要删除选择的数据?";
// UICtrl.confirm(message, function () {
DataUtil
.
del
({
action
:
'sapDull/deleteSapDull.ajax'
,
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
// });
}
function
addHandler
()
{
UICtrl
.
addTabItem
({
tabid
:
'addSapDull'
,
text
:
"呆滞物料"
,
url
:
web_app
.
name
+
'/sapDull/forwardSapDullDetail.job'
});
}
function
doView
(
id
)
{
UICtrl
.
addTabItem
({
tabid
:
'viewSapDull'
+
id
,
text
:
"呆滞物料"
,
url
:
web_app
.
name
+
'/sapDull/showDull.job?bizId='
+
id
+
"&isReadOnly=true"
});
}
topsun-xt/src/main/webapp/biz/topsun/sap/dull/sapDullList.jsp
0 → 100644
View file @
1e64e316
<%@ 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,attachment"
/>
<x:script
src=
'/biz/topsun/sap/dull/sapDullList.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:hidden
name=
"batchNumber"
value=
""
/>
<x:hidden
name=
"fullId"
/>
<x:inputC
name=
"billCode"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
<x:inputC
name=
"matnrName"
required=
"false"
label=
"物料名称"
labelCol=
"1"
/>
<x:selectC
name=
"status"
label=
"审批状态"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"bizBillStatus"
/>
<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/dull/application/SapDullApplication.java
0 → 100644
View file @
1e64e316
package
com
.
huigou
.
topsun
.
sap
.
dull
.
application
;
import
com.huigou.topsun.sap.dull.domain.SapDull
;
import
com.huigou.topsun.sap.dull.domain.query.SapDullQueryRequest
;
import
com.huigou.topsun.sap.permit.domain.SapPermit
;
import
com.huigou.topsun.sap.permit.domain.query.SapPermitQueryRequest
;
import
java.util.List
;
import
java.util.Map
;
/**
* @Auther:LXH
* @Date: 2024/03/08/16:35
* @Description:
*/
public
interface
SapDullApplication
{
public
static
final
String
QUERY_XML_FILE_PATH
=
"config/topsun/sap/dull/dull.xml"
;
String
PROCESS_DEFINITION_KEY
=
"sapDullProc"
;
Map
<
String
,
Object
>
getDullList
(
SapDullQueryRequest
sapDullVo
);
SapDull
getDullById
(
String
id
);
void
deleteByIds
(
List
<
String
>
ids
);
}
topsun/src/main/java/com/huigou/topsun/sap/dull/application/impl/SapDullApplicationImpl.java
0 → 100644
View file @
1e64e316
package
com
.
huigou
.
topsun
.
sap
.
dull
.
application
.
impl
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.data.query.model.QueryModel
;
import
com.huigou.topsun.base.coderule.application.CodeRuleApplication
;
import
com.huigou.topsun.sap.dull.application.SapDullApplication
;
import
com.huigou.topsun.sap.dull.domain.SapDull
;
import
com.huigou.topsun.sap.dull.domain.query.SapDullQueryRequest
;
import
com.huigou.topsun.sap.dull.repository.SapDullRepository
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bmp.doc.attachment.application.AttachmentApplication
;
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
java.util.List
;
import
java.util.Map
;
/**
* @Auther: Lxh
* @Date: 2024/03/28/19:55
* @Description:
*/
@Service
(
"sapDullApplication"
)
public
class
SapDullApplicationImpl
extends
FlowBroker
implements
SapDullApplication
{
@Autowired
private
SapDullRepository
sapDullRepository
;
// @Autowired
// private SapDullItemRepository sapDullItemRepository;
@Autowired
private
AttachmentApplication
attachmentApplication
;
@Autowired
private
CodeRuleApplication
codeRuleApplication
;
@Override
public
Map
<
String
,
Object
>
getDullList
(
SapDullQueryRequest
queryRequest
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"sapDull"
);
QueryModel
queryModel
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
queryRequest
);
if
(
queryRequest
.
getStatus
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.status =:status"
);
queryModel
.
putParam
(
"status"
,
queryRequest
.
getStatus
());
}
if
(
queryRequest
.
getBillCode
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.bill_code =:billCode"
);
queryModel
.
putParam
(
"billCode"
,
queryRequest
.
getBillCode
());
}
if
(
queryRequest
.
getMatnr
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.matnr like:matnr"
);
queryModel
.
putLikeParam
(
"matnr"
,
queryRequest
.
getMatnr
());
}
if
(
queryRequest
.
getMatnrName
()
!=
null
)
{
queryModel
.
addCriteria
(
" and t.matnr_name like:matnr"
);
queryModel
.
putLikeParam
(
"matnr"
,
queryRequest
.
getMatnrName
());
}
queryModel
.
putDictionary
(
"status"
,
DictUtil
.
getDictionary
(
"bizBillStatus"
));
queryModel
.
addCriteria
(
" order by bill_code desc "
);
Map
<
String
,
Object
>
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
return
map
;
}
@Override
public
SapDull
getDullById
(
String
id
)
{
return
sapDullRepository
.
findOne
(
id
);
}
@Override
public
void
deleteByIds
(
List
<
String
>
ids
)
{
ids
.
forEach
(
id
->{
sapDullRepository
.
delete
(
id
);
});
}
@Override
protected
void
onBeforeComplete
(
DelegateTask
delegateTask
)
{
super
.
onBeforeComplete
(
delegateTask
);
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
if
(
this
.
isApplyProcUnit
(
delegateTask
)
&&
this
.
getApprovalParameter
().
isAdvanceProcessAction
())
{
SapDull
sapDull
=
sapDullRepository
.
findOne
(
bizId
);
sapDull
.
setStatusId
(
BizBillStatus
.
APPROVING
.
getId
());
sapDullRepository
.
save
(
sapDull
);
}
}
@Override
protected
void
onEnd
(
DelegateExecution
delegateExecution
)
{
super
.
onEnd
(
delegateExecution
);
String
bizId
=
delegateExecution
.
getProcessBusinessKey
();
BizBillStatus
status
=
approvePassed
()
?
BizBillStatus
.
COMPLETED
:
BizBillStatus
.
ABORTED
;
SapDull
Dull
=
sapDullRepository
.
findOne
(
bizId
);
Dull
.
setStatusId
(
status
.
getId
());
sapDullRepository
.
save
(
Dull
);
}
@Override
protected
void
onAbortProcessInstance
(
DelegateExecution
delegateExecution
)
{
super
.
onAbortProcessInstance
(
delegateExecution
);
String
bizId
=
delegateExecution
.
getProcessBusinessKey
();
SapDull
Dull
=
sapDullRepository
.
findOne
(
bizId
);
Dull
.
setStatusId
(
BizBillStatus
.
ABORTED
.
getId
());
sapDullRepository
.
save
(
Dull
);
}
@Override
protected
void
onBack
(
DelegateTask
delegateTask
,
String
destActivityId
)
{
super
.
onBack
(
delegateTask
,
destActivityId
);
if
(
"Apply"
.
equalsIgnoreCase
(
destActivityId
))
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
SapDull
Dull
=
sapDullRepository
.
findOne
(
bizId
);
Dull
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
sapDullRepository
.
save
(
Dull
);
}
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
return
ClassHelper
.
toMap
(
sapDullRepository
.
getOne
(
bizId
));
}
@Override
protected
String
saveBizAndApprovalData
()
{
super
.
saveBizAndApprovalData
();
SapDull
Dull
=
getBizEntity
(
SapDull
.
class
);
if
(
Dull
.
isNew
())
{
Dull
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
}
else
{
Dull
=
(
SapDull
)
commonDomainService
.
loadAndFillinProperties
(
Dull
);
}
Dull
=
sapDullRepository
.
save
(
Dull
);
return
Dull
.
getId
();
}
}
topsun/src/main/java/com/huigou/topsun/sap/dull/controller/SapDullController.java
0 → 100644
View file @
1e64e316
package
com
.
huigou
.
topsun
.
sap
.
dull
.
controller
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.topsun.sap.dull.application.SapDullApplication
;
import
com.huigou.topsun.sap.dull.domain.SapDull
;
import
com.huigou.topsun.sap.dull.domain.query.SapDullQueryRequest
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.tool.dataimport.application.ExcelImportApplication
;
import
com.huigou.util.SDO
;
import
org.springframework.stereotype.Controller
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.Map
;
/**
* @Auther: LXH
* @Date: 2024/03/28 20:10
* @Description:
*/
@Controller
@ControllerMapping
(
"/sapDull"
)
public
class
SapDullController
extends
CommonController
{
@Override
protected
String
getPagePath
()
{
return
"/biz/topsun/sap/dull/"
;
}
@Resource
private
SapDullApplication
sapDullApplication
;
public
String
forwardSapDullList
(){
return
forward
(
"sapDullList"
);
}
public
String
slicedSapDullList
(){
SDO
sdo
=
this
.
getSDO
();
SapDullQueryRequest
queryRequest
=
sdo
.
toQueryRequest
(
SapDullQueryRequest
.
class
);
Map
<
String
,
Object
>
map
=
sapDullApplication
.
getDullList
(
queryRequest
);
return
toResult
(
map
);
}
public
String
forwardSapDullDetail
(){
this
.
putAttribute
(
"processDefinitionKey"
,
SapDullApplication
.
PROCESS_DEFINITION_KEY
);
// 新增的时候procUnitId一定要设置成Apply,不然jsp页面的所有表单元素是readonly状态
this
.
putAttribute
(
"procUnitId"
,
"Apply"
);
SapDull
sapDull
=
new
SapDull
();
sapDull
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
/**
* 设置jsp页面初始化填充数据,如果不设置, 那么在jsp页面上填写完表单之后立即提交申请TaskDescription获取不到时间和相关人员信息
*/
// sapDull.setAttbizId(CommonUtil.createGUID()); // 自动生成附件id
Operator
operator
=
getOperator
();
sapDull
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
// ExcelImportTemplate excelImportTemplate=excelImportApplication.loadExcelImportTemplateByCode("sapDullData");
return
forward
(
"sapDullDetail"
,
sapDull
);
}
public
String
showDull
(){
SDO
sdo
=
this
.
getSDO
();
String
id
=
sdo
.
getBizId
();
// this.putAttribute("attbizId", id); // 设置附件id
SapDull
sapDull
=
sapDullApplication
.
getDullById
(
id
);
// sapRetirement.setAttbizId(id);
return
forward
(
"sapDullDetail"
,
sapDull
);
}
/**
* 删除呆滞物料
*/
public
String
deleteSapDull
()
{
List
<
String
>
ids
=
this
.
getSDO
().
getIds
();
sapDullApplication
.
deleteByIds
(
ids
);
return
success
();
}
}
topsun/src/main/java/com/huigou/topsun/sap/dull/domain/SapDull.java
0 → 100644
View file @
1e64e316
package
com
.
huigou
.
topsun
.
sap
.
dull
.
domain
;
import
com.huigou.data.domain.model.FlowBillAbstractEntity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
* @Auther: LXH
* @Date: 2024/03/28/20:45
* @Description:放行条
*/
@Table
(
name
=
"sap_dull"
)
@Entity
@Data
public
class
SapDull
extends
FlowBillAbstractEntity
{
/**
* 工厂
*/
@Column
(
name
=
"werks"
)
private
String
werks
;
/**
* 工厂
*/
@Column
(
name
=
"werks_name"
)
private
String
werksName
;
/*
* 物料
* */
@Column
(
name
=
"matnr"
)
private
String
matnr
;
@Column
(
name
=
"matnr_name"
)
private
String
matnrName
;
/**
* 批次
*/
@Column
(
name
=
"batch"
)
private
String
batch
;
@Column
(
name
=
"dull_days"
)
private
Integer
dullDays
;
/**
* 说明
*/
@Column
(
name
=
"remark"
)
private
String
remark
;
@Override
protected
String
getCodeRuleId
()
{
return
"sapDull"
;
}
}
topsun/src/main/java/com/huigou/topsun/sap/dull/domain/query/SapDullQueryRequest.java
0 → 100644
View file @
1e64e316
package
com
.
huigou
.
topsun
.
sap
.
dull
.
domain
.
query
;
import
com.huigou.data.domain.query.QueryAbstractRequest
;
import
lombok.Data
;
/**
* @Auther: lxh
* @Date: 2024/03/28/19:38
* @Description:
*/
@Data
public
class
SapDullQueryRequest
extends
QueryAbstractRequest
{
private
String
billCode
;
private
String
matnr
;
private
String
matnrName
;
private
String
werks
;
private
String
werksName
;
private
String
status
;
}
topsun/src/main/java/com/huigou/topsun/sap/dull/repository/SapDullRepository.java
0 → 100644
View file @
1e64e316
package
com
.
huigou
.
topsun
.
sap
.
dull
.
repository
;
import
com.huigou.topsun.sap.dull.domain.SapDull
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: LXH
* @Date: 2024/03/28/19:33
* @Description:
*/
public
interface
SapDullRepository
extends
JpaRepository
<
SapDull
,
String
>
{
}
topsun/src/main/resources/config/bpm/topsun/sap/dull/sapDullProc.bpmn
0 → 100644
View file @
1e64e316
<?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=
"sapDullProc"
name=
"呆滞物料管理"
isExecutable=
"true"
>
<extensionElements>
<activiti:executionListener
event=
"start"
delegateExpression=
"#{sapDullApplication}"
></activiti:executionListener>
<activiti:executionListener
event=
"end"
delegateExpression=
"#{sapDullApplication}"
></activiti:executionListener>
</extensionElements>
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<endEvent
id=
"endevent1"
name=
"End"
></endEvent>
<userTask
id=
"Apply"
name=
"呆滞物料申请"
activiti:formKey=
"sapDull/showDull.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{sapDullApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{sapDullApplication}"
></activiti:taskListener>
</extensionElements>
</userTask>
<userTask
id=
"Approve"
name=
"呆滞物料审批"
activiti:assignee=
"${assignee} "
activiti:formKey=
"sapDull/showDull.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{sapDullApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{sapDullApplication}"
></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_sapDullProc"
>
<bpmndi:BPMNPlane
bpmnElement=
"sapDullProc"
id=
"BPMNPlane_sapDullProc"
>
<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
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