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
d3c18fc6
Commit
d3c18fc6
authored
Jan 17, 2024
by
wanghang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
77dd1fb4
c67bae47
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
2248 additions
and
0 deletions
+2248
-0
sapWorkCenter.js
...rc/main/webapp/biz/topsun/sap/workCenter/sapWorkCenter.js
+51
-0
sapWorkCenter.jsp
...c/main/webapp/biz/topsun/sap/workCenter/sapWorkCenter.jsp
+26
-0
SapWorkCenterApplication.java
.../sap/workcenter/application/SapWorkCenterApplication.java
+11
-0
SapWorkCenterLogApplication.java
...p/workcenter/application/SapWorkCenterLogApplication.java
+11
-0
SysChangeRecordApplication.java
...ap/workcenter/application/SysChangeRecordApplication.java
+11
-0
SapWorkCenterApplicationImpl.java
...center/application/impl/SapWorkCenterApplicationImpl.java
+20
-0
SapWorkCenterLogApplicationImpl.java
...ter/application/impl/SapWorkCenterLogApplicationImpl.java
+20
-0
SysChangeRecordApplicationImpl.java
...nter/application/impl/SysChangeRecordApplicationImpl.java
+20
-0
SapWorkCenterLogController.java
...sap/workcenter/controller/SapWorkCenterLogController.java
+32
-0
SapWorkCenter.java
...om/huigou/topsun/sap/workcenter/domain/SapWorkCenter.java
+877
-0
SapWorkCenterLog.java
...huigou/topsun/sap/workcenter/domain/SapWorkCenterLog.java
+939
-0
SysChangeRecord.java
.../huigou/topsun/sap/workcenter/domain/SysChangeRecord.java
+195
-0
SapWorkCenterLogRepository.java
...sap/workcenter/repository/SapWorkCenterLogRepository.java
+12
-0
SapWorkCenterRepository.java
...un/sap/workcenter/repository/SapWorkCenterRepository.java
+11
-0
SysChangeRecordRepository.java
.../sap/workcenter/repository/SysChangeRecordRepository.java
+12
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/workCenter/sapWorkCenter.js
0 → 100644
View file @
d3c18fc6
$
(
document
).
ready
(
function
()
{
loadSapWorkCenterGrid
();
});
function
loadSapWorkCenterGrid
()
{
let
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
(){
addHandler
();
},
updateHandler
:
function
(){
updateHandler
();
}
});
gridManager
=
UICtrl
.
grid
(
"#productListGrid"
,
{
columns
:
[
{
display
:
"填写说明"
,
name
:
"productName"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"维护标识"
,
name
:
"productCategoryId"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工厂"
,
name
:
"werks"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工作中心"
,
name
:
"apbpl"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工作中心描述"
,
name
:
"stext"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工作中心类别"
,
name
:
"verwe"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"工作中心负责人"
,
name
:
"veran"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"用途a"
,
name
:
"a"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"反冲"
,
name
:
"rgekz"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"标准值码"
,
name
:
"vorgschl"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"控制码"
,
name
:
"steus"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"成本控制范围b"
,
name
:
"b"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"成本中心"
,
name
:
"kostl"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"成本中心描述c"
,
name
:
"c"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"定员d"
,
name
:
"d"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"生产速度e"
,
name
:
"e"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"速度单位f"
,
name
:
"f"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
],
dataType
:
"server"
,
url
:
web_app
.
name
+
'/sapWorkCenter/findWorkCenter.ajax'
,
pageSize
:
20
,
usePager
:
true
,
toolbar
:
toolbarOptions
,
enabledEdit
:
true
,
width
:
"80%"
,
height
:
"100%"
,
heightDiff
:
-
8
,
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
updateHandler
(
data
);
}
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
}
\ No newline at end of file
topsun-xt/src/main/webapp/biz/topsun/sap/workCenter/sapWorkCenter.jsp
0 → 100644
View file @
d3c18fc6
<%--
Created by IntelliJ IDEA.
User: qinzhenguan
Date: 2024/1/16
Time: 14:33
To change this template use File | Settings | File Templates.
--%>
<%@ 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>
<title>
Title
</title>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree"
/>
<x:script
src=
'/system/opm/js/OpmUtil.js'
/>
<x:script
src=
'/biz/topsun/common/purchaseCommon.js'
/>
<x:script
src=
'/biz/topsun/product/product.js'
/>
</head>
<body>
<div
position=
"center"
title=
"工作中心"
>
<div
id=
"sapWorkCenterGrid"
style=
"margin: 2px;"
></div>
</div>
</body>
</html>
topsun/src/main/java/com/huigou/topsun/sap/workcenter/application/SapWorkCenterApplication.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
application
;
import
com.huigou.topsun.sap.workcenter.domain.SapWorkCenter
;
/**
@author YourUserName
*/
public
interface
SapWorkCenterApplication
{
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/application/SapWorkCenterLogApplication.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
application
;
import
com.huigou.topsun.sap.workcenter.domain.SapWorkCenterLog
;
/**
@author YourUserName
*/
public
interface
SapWorkCenterLogApplication
{
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/application/SysChangeRecordApplication.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
application
;
import
com.huigou.topsun.sap.workcenter.domain.SysChangeRecord
;
/**
@author YourUserName
*/
public
interface
SysChangeRecordApplication
{
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/application/impl/SapWorkCenterApplicationImpl.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
application
.
impl
;
import
com.huigou.topsun.sap.workcenter.repository.SapWorkCenterRepository
;
import
com.huigou.topsun.sap.workcenter.application.SapWorkCenterApplication
;
import
com.huigou.topsun.sap.workcenter.domain.SapWorkCenter
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
@author YourUserName
*/
@Service
public
class
SapWorkCenterApplicationImpl
implements
SapWorkCenterApplication
{
@Resource
private
SapWorkCenterRepository
rep
;
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/application/impl/SapWorkCenterLogApplicationImpl.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
application
.
impl
;
import
com.huigou.topsun.sap.workcenter.repository.SapWorkCenterLogRepository
;
import
com.huigou.topsun.sap.workcenter.application.SapWorkCenterLogApplication
;
import
com.huigou.topsun.sap.workcenter.domain.SapWorkCenterLog
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
@author YourUserName
*/
@Service
public
class
SapWorkCenterLogApplicationImpl
implements
SapWorkCenterLogApplication
{
@Resource
private
SapWorkCenterLogRepository
rep
;
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/application/impl/SysChangeRecordApplicationImpl.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
application
.
impl
;
import
com.huigou.topsun.sap.workcenter.repository.SysChangeRecordRepository
;
import
com.huigou.topsun.sap.workcenter.application.SysChangeRecordApplication
;
import
com.huigou.topsun.sap.workcenter.domain.SysChangeRecord
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
@author YourUserName
*/
@Service
public
class
SysChangeRecordApplicationImpl
implements
SysChangeRecordApplication
{
@Resource
private
SysChangeRecordRepository
rep
;
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/controller/SapWorkCenterLogController.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
controller
;
import
com.huigou.topsun.sap.workcenter.application.SapWorkCenterApplication
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.client.CommonController
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Controller
;
/**
* SapWorkCenterLogController SAP工作中心控制类
*
* @author qinzhenguan
* @createDate 2024/01/16 14:27
**/
@RequiredArgsConstructor
@Controller
@ControllerMapping
(
"/sapWorkCenter"
)
public
class
SapWorkCenterLogController
extends
CommonController
{
private
final
SapWorkCenterApplication
centerServer
;
@Override
protected
String
getPagePath
()
{
return
"/biz/topsun/sap/workCenter"
;
}
public
String
findWorkCenter
()
{
return
null
;
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/workcenter/domain/SapWorkCenter.java
0 → 100644
View file @
d3c18fc6
This diff is collapsed.
Click to expand it.
topsun/src/main/java/com/huigou/topsun/sap/workcenter/domain/SapWorkCenterLog.java
0 → 100644
View file @
d3c18fc6
This diff is collapsed.
Click to expand it.
topsun/src/main/java/com/huigou/topsun/sap/workcenter/domain/SysChangeRecord.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.EqualsBuilder
;
import
org.apache.commons.lang3.builder.HashCodeBuilder
;
/**
* @author qinzhenguan
* null
*/
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"sys_change_record"
)
public
class
SysChangeRecord
implements
Serializable
{
/**
* null
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"id"
,
nullable
=
false
)
private
BigDecimal
id
;
/**
* 关联数据ID
*/
@Column
(
name
=
"correlation_id"
,
nullable
=
true
,
length
=
32
)
private
String
correlationId
;
/**
* 关联系统
*/
@Column
(
name
=
"correlation_system"
,
nullable
=
true
,
length
=
32
)
private
String
correlationSystem
;
/**
* 业务ID
*/
@Column
(
name
=
"business_id"
,
nullable
=
true
,
length
=
32
)
private
String
businessId
;
/**
* 业务名称
*/
@Column
(
name
=
"business_name"
,
nullable
=
true
,
length
=
100
)
private
String
businessName
;
/**
* 归属部门
*/
@Column
(
name
=
"depart"
,
nullable
=
true
,
length
=
64
)
private
String
depart
;
/**
* 录入人
*/
@Column
(
name
=
"enter_user"
,
nullable
=
true
,
length
=
120
)
private
String
enterUser
;
/**
* 录入时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Column
(
name
=
"enter_time"
,
nullable
=
true
)
private
java
.
util
.
Date
enterTime
;
/**
* 最后修改人
*/
@Column
(
name
=
"last_reviser"
,
nullable
=
true
,
length
=
120
)
private
String
lastReviser
;
/**
* 最后修改时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Column
(
name
=
"last_reviser_time"
,
nullable
=
true
)
private
java
.
util
.
Date
lastReviserTime
;
/**
* 有效标志: 0:false;1:true
*/
@Column
(
name
=
"yxbz"
,
nullable
=
true
)
private
Integer
yxbz
;
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
SysChangeRecord
that
=
(
SysChangeRecord
)
o
;
return
new
EqualsBuilder
().
append
(
id
,
that
.
id
).
append
(
correlationId
,
that
.
correlationId
).
append
(
correlationSystem
,
that
.
correlationSystem
).
append
(
businessId
,
that
.
businessId
).
append
(
businessName
,
that
.
businessName
).
append
(
depart
,
that
.
depart
).
append
(
enterUser
,
that
.
enterUser
).
append
(
enterTime
,
that
.
enterTime
).
append
(
lastReviser
,
that
.
lastReviser
).
append
(
lastReviserTime
,
that
.
lastReviserTime
).
append
(
yxbz
,
that
.
yxbz
).
isEquals
();
}
@Override
public
int
hashCode
()
{
return
new
HashCodeBuilder
(
17
,
37
).
append
(
id
).
append
(
correlationId
).
append
(
correlationSystem
).
append
(
businessId
).
append
(
businessName
).
append
(
depart
).
append
(
enterUser
).
append
(
enterTime
).
append
(
lastReviser
).
append
(
lastReviserTime
).
append
(
yxbz
).
toHashCode
();
}
public
BigDecimal
getId
()
{
return
this
.
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
(
id
==
null
)
||
id
.
isEmpty
()
?
null
:
new
BigDecimal
(
id
);
}
public
String
getCorrelationId
()
{
return
this
.
correlationId
;
}
public
void
setCorrelationId
(
String
correlationId
)
{
this
.
correlationId
=
correlationId
;
}
public
String
getCorrelationSystem
()
{
return
this
.
correlationSystem
;
}
public
void
setCorrelationSystem
(
String
correlationSystem
)
{
this
.
correlationSystem
=
correlationSystem
;
}
public
String
getBusinessId
()
{
return
this
.
businessId
;
}
public
void
setBusinessId
(
String
businessId
)
{
this
.
businessId
=
businessId
;
}
public
String
getBusinessName
()
{
return
this
.
businessName
;
}
public
void
setBusinessName
(
String
businessName
)
{
this
.
businessName
=
businessName
;
}
public
String
getDepart
()
{
return
this
.
depart
;
}
public
void
setDepart
(
String
depart
)
{
this
.
depart
=
depart
;
}
public
String
getEnterUser
()
{
return
this
.
enterUser
;
}
public
void
setEnterUser
(
String
enterUser
)
{
this
.
enterUser
=
enterUser
;
}
public
java
.
util
.
Date
getEnterTime
()
{
return
this
.
enterTime
;
}
public
void
setEnterTime
(
java
.
util
.
Date
enterTime
)
{
this
.
enterTime
=
enterTime
;
}
public
String
getLastReviser
()
{
return
this
.
lastReviser
;
}
public
void
setLastReviser
(
String
lastReviser
)
{
this
.
lastReviser
=
lastReviser
;
}
public
java
.
util
.
Date
getLastReviserTime
()
{
return
this
.
lastReviserTime
;
}
public
void
setLastReviserTime
(
java
.
util
.
Date
lastReviserTime
)
{
this
.
lastReviserTime
=
lastReviserTime
;
}
public
Integer
getYxbz
()
{
return
this
.
yxbz
;
}
public
void
setYxbz
(
Integer
yxbz
)
{
this
.
yxbz
=
yxbz
;
}
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/repository/SapWorkCenterLogRepository.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
repository
;
import
java.math.BigDecimal
;
import
com.huigou.topsun.sap.workcenter.domain.SapWorkCenterLog
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
@author YourUserName
*/
public
interface
SapWorkCenterLogRepository
extends
JpaRepository
<
SapWorkCenterLog
,
BigDecimal
>
{
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/repository/SapWorkCenterRepository.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
repository
;
import
com.huigou.topsun.sap.workcenter.domain.SapWorkCenter
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
@author YourUserName
*/
public
interface
SapWorkCenterRepository
extends
JpaRepository
<
SapWorkCenter
,
String
>
{
}
topsun/src/main/java/com/huigou/topsun/sap/workcenter/repository/SysChangeRecordRepository.java
0 → 100644
View file @
d3c18fc6
package
com
.
huigou
.
topsun
.
sap
.
workcenter
.
repository
;
import
java.math.BigDecimal
;
import
com.huigou.topsun.sap.workcenter.domain.SysChangeRecord
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
@author YourUserName
*/
public
interface
SysChangeRecordRepository
extends
JpaRepository
<
SysChangeRecord
,
BigDecimal
>
{
}
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