Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
9acf4fc4
Commit
9acf4fc4
authored
Mar 11, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#增加反馈业务模块
parent
00928b60
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
164 additions
and
26 deletions
+164
-26
GpfkDao.java
gavel/src/main/java/com/gavel/kwell/dao/GpfkDao.java
+7
-0
GpfkDaoImpl.java
...l/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
+60
-0
GphyDaoImpl.java
...l/src/main/java/com/gavel/kwell/dao/impl/GphyDaoImpl.java
+4
-0
GpfkService.java
gavel/src/main/java/com/gavel/kwell/service/GpfkService.java
+2
-0
GpfkServiceImpl.java
...in/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
+67
-13
GphyServiceImpl.java
...in/java/com/gavel/kwell/service/impl/GphyServiceImpl.java
+3
-0
YymkFKEnum.java
gavel/src/main/java/com/gavel/kwell/utils/YymkFKEnum.java
+3
-3
module.xml
gavel/src/main/resources/module.xml
+9
-1
zpindex.html
...src/main/resources/templates/views/kmes/gphy/zpindex.html
+9
-9
No files found.
gavel/src/main/java/com/gavel/kwell/dao/GpfkDao.java
View file @
9acf4fc4
...
@@ -10,6 +10,7 @@ import com.gavel.gygl.vo.BzgxVO;
...
@@ -10,6 +10,7 @@ import com.gavel.gygl.vo.BzgxVO;
import
com.gavel.gygl.vo.GylxVO
;
import
com.gavel.gygl.vo.GylxVO
;
import
com.gavel.kwell.persistent.Gpbhgmx
;
import
com.gavel.kwell.persistent.Gpbhgmx
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gphy
;
import
com.gavel.kwell.persistent.Gpwxmx
;
import
com.gavel.kwell.persistent.Gpwxmx
;
import
com.gavel.kwell.vo.GpWoCondition
;
import
com.gavel.kwell.vo.GpWoCondition
;
import
com.gavel.kwell.vo.GpbhgmxVO
;
import
com.gavel.kwell.vo.GpbhgmxVO
;
...
@@ -123,4 +124,10 @@ public interface GpfkDao extends BaseDao {
...
@@ -123,4 +124,10 @@ public interface GpfkDao extends BaseDao {
public
double
queryWobomZpslByDjidAndWlid
(
String
djid
,
String
wlid
);
public
double
queryWobomZpslByDjidAndWlid
(
String
djid
,
String
wlid
);
public
List
<
Gphy
>
queryGphyByGpfkid
(
String
mid
);
public
Wogylx
getLastGx
(
Wogylx
wogylx
);
public
Double
getNowGyFksl
(
Wogylx
wogylx
);
}
}
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
View file @
9acf4fc4
...
@@ -18,6 +18,7 @@ import com.gavel.gygl.vo.GylxVO;
...
@@ -18,6 +18,7 @@ import com.gavel.gygl.vo.GylxVO;
import
com.gavel.kwell.dao.GpfkDao
;
import
com.gavel.kwell.dao.GpfkDao
;
import
com.gavel.kwell.persistent.Gpbhgmx
;
import
com.gavel.kwell.persistent.Gpbhgmx
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gphy
;
import
com.gavel.kwell.persistent.Gpwxmx
;
import
com.gavel.kwell.persistent.Gpwxmx
;
import
com.gavel.kwell.utils.GpfkFklxEnum
;
import
com.gavel.kwell.utils.GpfkFklxEnum
;
import
com.gavel.kwell.vo.GpWoCondition
;
import
com.gavel.kwell.vo.GpWoCondition
;
...
@@ -684,6 +685,8 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -684,6 +685,8 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
append
(
" WOGYLX_CJR, WOGYLX_CJSJ, WOGYLX_WHRID, WOGYLX_WHR, WOGYLX_WHSJ, "
);
sqlMap
.
append
(
" WOGYLX_CJR, WOGYLX_CJSJ, WOGYLX_WHRID, WOGYLX_WHR, WOGYLX_WHSJ, "
);
sqlMap
.
append
(
" WOGYLX_SYSVERSION, GZZX_NAME, WOGYLX_GXBZ "
);
sqlMap
.
append
(
" WOGYLX_SYSVERSION, GZZX_NAME, WOGYLX_GXBZ "
);
sqlMap
.
append
(
"from WOGYLX "
);
sqlMap
.
append
(
"from WOGYLX "
);
sqlMap
.
append
(
" left join BZGX on BZGX_ID = WOGYLX_BZGXID "
);
sqlMap
.
append
(
" left join GZZX on GZZX_ID = BZGX_GZZXID "
);
sqlMap
.
append
(
"where 1 = 1 "
);
sqlMap
.
append
(
"where 1 = 1 "
);
sqlMap
.
append
(
" and isnull(WOGYLX_XH,0) <> 0 "
);
sqlMap
.
append
(
" and isnull(WOGYLX_XH,0) <> 0 "
);
if
(
StringUtils
.
isNotEmpty
(
wogylx
.
getGzzxid
())){
if
(
StringUtils
.
isNotEmpty
(
wogylx
.
getGzzxid
())){
...
@@ -1239,5 +1242,62 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1239,5 +1242,62 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
}
}
@Override
public
List
<
Gphy
>
queryGphyByGpfkid
(
String
mid
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select GPHY_ID, GPHY_MID, GPHY_WLSNID, GPHY_FKSJ, GPHY_ZPSL, "
);
sqlMap
.
append
(
" GPHY_CXSL, GPHY_FKR, GPHY_FKGX, GPHY_BZ, GPHY_WHRID, "
);
sqlMap
.
append
(
" GPHY_WHR, GPHY_WHSJ, GPHY_CJRID, GPHY_CJR, GPHY_CJSJ, "
);
sqlMap
.
append
(
" GPHY_SYSVERSION, GPHY_WLID, GPHY_HYLX, GPHY_FKRID "
);
sqlMap
.
append
(
"from GPHY "
);
sqlMap
.
append
(
"where 1 = 1 "
);
if
(
StringUtils
.
isNotEmpty
(
mid
)){
sqlMap
.
append
(
" and "
+
SqlUtil
.
getWhereSql
(
"GPHY_MID"
,
mid
));
sqlMap
.
setParamValue
(
"GPHY_MID"
,
mid
);
}
return
sqlMap
.
query
(
Gphy
.
class
);
}
@Override
public
Wogylx
getLastGx
(
Wogylx
wogylx
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select top 1 WOGYLX_ID, WOGYLX_WOID, WOGYLX_XH, WOGYLX_BZGXID, WOGYLX_GYLXID, "
);
sqlMap
.
append
(
" WOGYLX_NAME, WOGYLX_GXLX, WOGYLX_GZZXID, WOGYLX_SBSL, WOGYLX_ZYRSL, "
);
sqlMap
.
append
(
" WOGYLX_PDHS, WOGYLX_ZBHS, WOGYLX_JGHS, WOGYLX_ZYHS, WOGYLX_GJGX, "
);
sqlMap
.
append
(
" WOGYLX_DWSJCL, WOGYLX_PCBS, WOGYLX_XQSL, WOGYLX_BZ, WOGYLX_CJRID, "
);
sqlMap
.
append
(
" WOGYLX_CJR, WOGYLX_CJSJ, WOGYLX_WHRID, WOGYLX_WHR, WOGYLX_WHSJ, "
);
sqlMap
.
append
(
" WOGYLX_SYSVERSION, GZZX_NAME, WOGYLX_GXBZ "
);
sqlMap
.
append
(
"from WOGYLX "
);
sqlMap
.
append
(
" left join BZGX on BZGX_ID = WOGYLX_BZGXID "
);
sqlMap
.
append
(
" left join GZZX on GZZX_ID = BZGX_GZZXID "
);
sqlMap
.
append
(
"where 1 = 1 "
);
sqlMap
.
append
(
" and isnull(WOGYLX_XH,0) <> 0 "
);
if
(
StringUtils
.
isNotEmpty
(
wogylx
.
getGzzxid
())){
sqlMap
.
append
(
" and BZGX_GZZXID = :pGZZXID "
);
sqlMap
.
setParamValue
(
"pGZZXID"
,
wogylx
.
getGzzxid
());
}
sqlMap
.
append
(
" and BZGX_XH < :pXH "
);
sqlMap
.
append
(
"order by BZGX_XH desc"
);
sqlMap
.
setParamValue
(
"pXH"
,
wogylx
.
getXh
());
return
sqlMap
.
queryEntity
(
Wogylx
.
class
);
}
@Override
public
Double
getNowGyFksl
(
Wogylx
wogylx
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select count(1) "
);
sqlMap
.
append
(
"from GPFK "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFK_WOGYLX "
);
sqlMap
.
append
(
"where 1 = 1 "
);
if
(
StringUtils
.
isNotEmpty
(
wogylx
.
getId
())){
sqlMap
.
append
(
" and WOGYLX_ID = :pWOGTLXID "
);
sqlMap
.
setParamValue
(
"pWOGTLXID"
,
wogylx
.
getId
());
}
return
sqlMap
.
queryEntity
(
Double
.
class
);
}
}
}
gavel/src/main/java/com/gavel/kwell/dao/impl/GphyDaoImpl.java
View file @
9acf4fc4
...
@@ -33,6 +33,10 @@ public class GphyDaoImpl extends BaseDaoImpl implements GphyDao {
...
@@ -33,6 +33,10 @@ public class GphyDaoImpl extends BaseDaoImpl implements GphyDao {
sqlMap
.
append
(
" and "
+
SqlUtil
.
getWhereSql
(
"GPHY_ID"
,
condition
.
getId
()));
sqlMap
.
append
(
" and "
+
SqlUtil
.
getWhereSql
(
"GPHY_ID"
,
condition
.
getId
()));
sqlMap
.
setParamValue
(
"GPHY_ID"
,
condition
.
getId
());
sqlMap
.
setParamValue
(
"GPHY_ID"
,
condition
.
getId
());
}
}
if
(
StringUtils
.
isNotEmpty
(
condition
.
getMid
())){
sqlMap
.
append
(
" and "
+
SqlUtil
.
getWhereSql
(
"GPHY_MID"
,
condition
.
getMid
()));
sqlMap
.
setParamValue
(
"GPHY_MID"
,
condition
.
getMid
());
}
sqlMap
.
query
(
GphyVO
.
class
);
sqlMap
.
query
(
GphyVO
.
class
);
return
sqlMap
.
getRecordSet
();
return
sqlMap
.
getRecordSet
();
}
}
...
...
gavel/src/main/java/com/gavel/kwell/service/GpfkService.java
View file @
9acf4fc4
...
@@ -105,6 +105,8 @@ public interface GpfkService extends BaseEditService {
...
@@ -105,6 +105,8 @@ public interface GpfkService extends BaseEditService {
public
Gpfk
wxfk
(
String
fkid
,
String
hgsn
);
public
Gpfk
wxfk
(
String
fkid
,
String
hgsn
);
public
BzgxVO
login
(
String
usersn
,
String
bzgxid
);
public
BzgxVO
login
(
String
usersn
,
String
bzgxid
);
public
boolean
updatePcjh
();
/** 科威尔mes工票反馈重写--end */
/** 科威尔mes工票反馈重写--end */
}
}
gavel/src/main/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
View file @
9acf4fc4
package
com
.
gavel
.
kwell
.
service
.
impl
;
package
com
.
gavel
.
kwell
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashSet
;
import
java.util.LinkedHashSet
;
import
java.util.List
;
import
java.util.Set
;
import
org.apache.shiro.SecurityUtils
;
import
org.apache.shiro.authc.UsernamePasswordToken
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.gavel.common.Constants
;
import
com.gavel.common.Constants
;
import
com.gavel.common.attachment.persistent.Attachment
;
import
com.gavel.common.attachment.persistent.Attachment
;
import
com.gavel.common.attachment.service.AttachmentService
;
import
com.gavel.common.attachment.service.AttachmentService
;
...
@@ -7,7 +21,15 @@ import com.gavel.common.base.entity.BaseEntity;
...
@@ -7,7 +21,15 @@ import com.gavel.common.base.entity.BaseEntity;
import
com.gavel.common.base.service.impl.BaseEditServiceImpl
;
import
com.gavel.common.base.service.impl.BaseEditServiceImpl
;
import
com.gavel.common.business.service.CommonService
;
import
com.gavel.common.business.service.CommonService
;
import
com.gavel.common.sql.GavelSql
;
import
com.gavel.common.sql.GavelSql
;
import
com.gavel.common.utils.*
;
import
com.gavel.common.utils.BooleanEnum
;
import
com.gavel.common.utils.CodeStrategy
;
import
com.gavel.common.utils.CollectionUtils
;
import
com.gavel.common.utils.DateUtils
;
import
com.gavel.common.utils.MapList
;
import
com.gavel.common.utils.NumberUtils
;
import
com.gavel.common.utils.StringUtils
;
import
com.gavel.common.utils.ThreadContext
;
import
com.gavel.common.utils.UserInfoUtil
;
import
com.gavel.framework.utils.JwtUtil
;
import
com.gavel.framework.utils.JwtUtil
;
import
com.gavel.gygl.persistent.Bzgx
;
import
com.gavel.gygl.persistent.Bzgx
;
import
com.gavel.gygl.service.BzgxService
;
import
com.gavel.gygl.service.BzgxService
;
...
@@ -16,12 +38,26 @@ import com.gavel.gygl.vo.BzgxCondition;
...
@@ -16,12 +38,26 @@ import com.gavel.gygl.vo.BzgxCondition;
import
com.gavel.gygl.vo.BzgxVO
;
import
com.gavel.gygl.vo.BzgxVO
;
import
com.gavel.gygl.vo.GylxVO
;
import
com.gavel.gygl.vo.GylxVO
;
import
com.gavel.kwell.dao.GpfkDao
;
import
com.gavel.kwell.dao.GpfkDao
;
import
com.gavel.kwell.dao.GphyDao
;
import
com.gavel.kwell.persistent.Gpbhgmx
;
import
com.gavel.kwell.persistent.Gpbhgmx
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gphy
;
import
com.gavel.kwell.persistent.Gpwxmx
;
import
com.gavel.kwell.persistent.Gpwxmx
;
import
com.gavel.kwell.service.GpfkService
;
import
com.gavel.kwell.service.GpfkService
;
import
com.gavel.kwell.utils.*
;
import
com.gavel.kwell.service.GphyService
;
import
com.gavel.kwell.vo.*
;
import
com.gavel.kwell.utils.GpfkFklxEnum
;
import
com.gavel.kwell.utils.HzGylxEnum
;
import
com.gavel.kwell.utils.SmCodeEnum
;
import
com.gavel.kwell.utils.SmCodeModel
;
import
com.gavel.kwell.utils.YymkFKEnum
;
import
com.gavel.kwell.vo.GpResVO
;
import
com.gavel.kwell.vo.GpWoCondition
;
import
com.gavel.kwell.vo.GpbhgfkCondition
;
import
com.gavel.kwell.vo.GpbhgmxVO
;
import
com.gavel.kwell.vo.GpfkCondition
;
import
com.gavel.kwell.vo.GpfkVO
;
import
com.gavel.kwell.vo.WolinkInfoVO
;
import
com.gavel.kwell.vo.WosngzVO
;
import
com.gavel.kzzx.dao.UserDao
;
import
com.gavel.kzzx.dao.UserDao
;
import
com.gavel.kzzx.persistent.User
;
import
com.gavel.kzzx.persistent.User
;
import
com.gavel.kzzx.service.UserRoleService
;
import
com.gavel.kzzx.service.UserRoleService
;
...
@@ -35,14 +71,6 @@ import com.gavel.persistence.sql.RecordSet;
...
@@ -35,14 +71,6 @@ import com.gavel.persistence.sql.RecordSet;
import
com.gavel.wo.persistent.Wogylx
;
import
com.gavel.wo.persistent.Wogylx
;
import
com.gavel.wo.persistent.Wosn
;
import
com.gavel.wo.persistent.Wosn
;
import
com.gavel.wo.vo.WobomVO
;
import
com.gavel.wo.vo.WobomVO
;
import
org.apache.shiro.SecurityUtils
;
import
org.apache.shiro.authc.UsernamePasswordToken
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.*
;
@Service
(
"gpfkService"
)
@Service
(
"gpfkService"
)
...
@@ -52,6 +80,9 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -52,6 +80,9 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
@Autowired
@Autowired
private
GpfkDao
gpfkDao
;
private
GpfkDao
gpfkDao
;
@Autowired
private
GphyDao
gphydao
;
@Autowired
@Autowired
private
CommonService
commonService
;
private
CommonService
commonService
;
...
@@ -114,9 +145,15 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -114,9 +145,15 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
if
(
entity
!=
null
&&
entity
instanceof
Gpfk
)
{
if
(
entity
!=
null
&&
entity
instanceof
Gpfk
)
{
Gpfk
gpfk
=
(
Gpfk
)
entity
;
Gpfk
gpfk
=
(
Gpfk
)
entity
;
List
<
Gpbhgmx
>
gpbhgmxList
=
gpfkDao
.
queryGpbhgmxByGpid
(
gpfk
.
getId
());
List
<
Gpbhgmx
>
gpbhgmxList
=
gpfkDao
.
queryGpbhgmxByGpid
(
gpfk
.
getId
());
List
<
Gphy
>
gphymxList
=
gpfkDao
.
queryGphyByGpfkid
(
gpfk
.
getId
());
if
(
gpbhgmxList
!=
null
&&
gpbhgmxList
.
size
()
>
0
){
if
(
gpbhgmxList
!=
null
&&
gpbhgmxList
.
size
()
>
0
){
gpfkDao
.
batchDelete
(
gpbhgmxList
);
gpfkDao
.
batchDelete
(
gpbhgmxList
);
}
}
if
(
gphymxList
!=
null
&&
gphymxList
.
size
()
>
0
){
gphydao
.
batchDelete
(
gphymxList
);
}
/** 排产计划删除 末道工序 、单道工序**/
// Wogylx bzgx = (Bzgx) GavelSql.selectEntityByKey(Bzgx.class, gpfk.getFkgx());
}
}
}
}
...
@@ -719,6 +756,16 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -719,6 +756,16 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
if
(
wolinkInfoVO
==
null
)
{
if
(
wolinkInfoVO
==
null
)
{
throwReturnMessage
(
"不存在对应订单序号标准类型信息"
);
throwReturnMessage
(
"不存在对应订单序号标准类型信息"
);
}
}
Wogylx
wogylx
=
gpfkDao
.
queryById
(
Wogylx
.
class
,
wolinkInfoVO
.
getWogylxid
());
if
(!
NumberUtils
.
equals
(
wogylx
.
getXh
(),
0
)){
Wogylx
existLastWogylx
=
gpfkDao
.
getLastGx
(
wogylx
);
if
(
existLastWogylx
!=
null
){
Double
gpfksl
=
gpfkDao
.
getNowGyFksl
(
existLastWogylx
);
if
(
gpfksl
<
existLastWogylx
.
getXqsl
())
{
throwReturnMessage
(
"上道工序未完成不能装配此道工序"
);
}
}
}
if
(!
wolinkInfoVO
.
getWozt
().
equals
(
"R"
))
{
if
(!
wolinkInfoVO
.
getWozt
().
equals
(
"R"
))
{
throwReturnMessage
(
"订单未下达"
);
throwReturnMessage
(
"订单未下达"
);
}
}
...
@@ -745,10 +792,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -745,10 +792,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
Gpfk
gpfk
=
new
Gpfk
();
Gpfk
gpfk
=
new
Gpfk
();
EntityDataFactory
.
copyEntity
(
gpfkVo
,
gpfk
);
EntityDataFactory
.
copyEntity
(
gpfkVo
,
gpfk
);
if
(
SmCodeEnum
.
OKBZ
.
getId
().
equals
(
hgsn
))
{
if
(
SmCodeEnum
.
OKBZ
.
getId
().
equals
(
hgsn
))
{
gpfk
.
setHgsl
(
gpfk
.
getHgsl
()+
1.0
);
gpfk
.
setHgsl
(
1.0
);
}
}
else
if
(
SmCodeEnum
.
NGBZ
.
getId
().
equals
(
hgsn
))
{
else
if
(
SmCodeEnum
.
NGBZ
.
getId
().
equals
(
hgsn
))
{
gpfk
.
setBhgsl
(
gpfk
.
getBhgsl
()+
1.0
);
gpfk
.
setBhgsl
(
1.0
);
}
}
else
{
else
{
throwReturnMessage
(
SmCodeEnum
.
ERROR_CODE
);
throwReturnMessage
(
SmCodeEnum
.
ERROR_CODE
);
...
@@ -845,4 +892,11 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -845,4 +892,11 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
return
bzgxVO
;
return
bzgxVO
;
}
}
@Override
public
boolean
updatePcjh
()
{
// TODO Auto-generated method stub
return
false
;
}
}
}
gavel/src/main/java/com/gavel/kwell/service/impl/GphyServiceImpl.java
View file @
9acf4fc4
...
@@ -25,8 +25,11 @@ import com.gavel.persistence.sql.RecordSet;
...
@@ -25,8 +25,11 @@ import com.gavel.persistence.sql.RecordSet;
@Transactional
@Transactional
public
class
GphyServiceImpl
extends
BaseEditServiceImpl
implements
GphyService
{
public
class
GphyServiceImpl
extends
BaseEditServiceImpl
implements
GphyService
{
/**装配完成**/
private
static
final
Integer
COMPLETE_CODE
=
230
;
private
static
final
Integer
COMPLETE_CODE
=
230
;
/**装配成功**/
private
static
final
Integer
ZP_CODE
=
200
;
private
static
final
Integer
ZP_CODE
=
200
;
/**相同序列号**/
private
static
final
Integer
SAME_CODE
=
100
;
private
static
final
Integer
SAME_CODE
=
100
;
@Autowired
@Autowired
...
...
gavel/src/main/java/com/gavel/kwell/utils/YymkFKEnum.java
View file @
9acf4fc4
...
@@ -10,9 +10,9 @@ import com.gavel.kzzx.model.GavelEnumModel;
...
@@ -10,9 +10,9 @@ import com.gavel.kzzx.model.GavelEnumModel;
public
enum
YymkFKEnum
{
public
enum
YymkFKEnum
{
ZP
(
"ZP"
,
"901000200"
),
ZP
(
"ZP"
,
"
1
901000200"
),
JY
(
"JY"
,
"901000400"
),
JY
(
"JY"
,
"
1
901000400"
),
WX
(
"WX"
,
"901000600"
);
WX
(
"WX"
,
"
1
901000600"
);
private
String
id
;
private
String
id
;
private
String
name
;
private
String
name
;
...
...
gavel/src/main/resources/module.xml
View file @
9acf4fc4
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<name>
合肥科威尔产线MES
</name>
<name>
合肥科威尔产线MES
</name>
<zjm>
KMES
</zjm>
>
<zjm>
KMES
</zjm>
>
<version>
1.0
</version>
<version>
1.0
</version>
<menu
mkid=
"901000000"
mkmc =
"科威尔MES"
>
<menu
mkid=
"901000000"
mkmc =
"科威尔MES"
>
<menu
mkid=
"901000200"
mkmc=
"装配反馈"
url=
"kmes/gphy/zpindex"
>
<menu
mkid=
"901000200"
mkmc=
"装配反馈"
url=
"kmes/gphy/zpindex"
>
...
@@ -36,7 +37,14 @@
...
@@ -36,7 +37,14 @@
</menu>
</menu>
</menu>
</menu>
<menu
mkid=
"1901000000"
mkmc =
"装配大屏"
gnlx=
"M"
>
<menu
mkid=
"1901000200"
mkmc=
"装配反馈"
url=
"kmes/gphy/index"
gnlx=
"M"
>
</menu>
<menu
mkid=
"1901000400"
mkmc=
"检验反馈"
url=
"kmes/gpjy/index"
gnlx=
"M"
>
</menu>
<menu
mkid=
"1901000600"
mkmc=
"维修反馈"
url=
"kmes/gpwx/index"
gnlx=
"M"
>
</menu>
</menu>
<disableMenus>
<disableMenus>
<menu
mkid=
"510050000"
mkmc=
"生产入库"
/>
<menu
mkid=
"510050000"
mkmc=
"生产入库"
/>
<menu
mkid=
"290040100"
mkmc=
"生产入库登记"
/>
<menu
mkid=
"290040100"
mkmc=
"生产入库登记"
/>
...
...
gavel/src/main/resources/templates/views/kmes/gphy/zpindex.html
View file @
9acf4fc4
<div
id=
"kmesGp
hy
index"
class=
"gui-div"
>
<div
id=
"kmesGp
fk
index"
class=
"gui-div"
>
<table
class=
"toolbar-table"
data-options=
"id: 'kmesGp
hy
indexTable',herf:'kzzx/gridset/query'"
></table>
<table
class=
"toolbar-table"
data-options=
"id: 'kmesGp
fk
indexTable',herf:'kzzx/gridset/query'"
></table>
<!-- 表格工具栏开始 -->
<!-- 表格工具栏开始 -->
<div
id=
"kmesGp
hyindexTable-toolbar"
class=
"gui-toolbar"
data-options=
"grid:{type:'datagrid',id:'kmesGphy
indexTable'}"
>
<div
id=
"kmesGp
fkindexTable-toolbar"
class=
"gui-toolbar"
data-options=
"grid:{type:'datagrid',id:'kmesGpfk
indexTable'}"
>
<div
class=
"navbar-toolbar"
>
<div
class=
"navbar-toolbar"
>
<a
class=
"toolbar-print toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-print toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-export toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-export toolbar"
href=
"javascript:void(0)"
></a>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<script>
<script>
$
(
function
()
{
$
(
function
()
{
/*js初始化*/
/*js初始化*/
var
$div
=
$
(
'#kmesGp
hy
index'
);
var
$div
=
$
(
'#kmesGp
fk
index'
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$datStart
=
$div
.
find
(
"input[name='start']"
);
var
$datStart
=
$div
.
find
(
"input[name='start']"
);
var
$datEnd
=
$div
.
find
(
"input[name='end']"
);
var
$datEnd
=
$div
.
find
(
"input[name='end']"
);
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
$txtScgd
.
iTextbox
();
$txtScgd
.
iTextbox
();
$txtWosnid
.
iTextbox
();
$txtWosnid
.
iTextbox
();
var
options
=
{
var
options
=
{
url
:
'kmes/gp
hy
'
,
url
:
'kmes/gp
fk
'
,
noRequest
:
true
,
noRequest
:
true
,
columns
:
[[
columns
:
[[
{
title
:
"产品条码"
,
field
:
"wosnid"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"产品条码"
,
field
:
"wosnid"
,
fieldType
:
"ftString"
,
width
:
160
},
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
]],
]],
dialog
:
{
dialog
:
{
footerIn
:
true
,
footerIn
:
true
,
href
:
'kmes/gp
hy
/edit'
,
href
:
'kmes/gp
fk
/edit'
,
maximized
:
true
,
maximized
:
true
,
width
:
1080
,
width
:
1080
,
height
:
640
,
height
:
640
,
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
};
};
$div
.
Holder
(
options
);
$div
.
Holder
(
options
);
$
(
"#kmesGp
hy
indexTable-toolbar"
).
find
(
".toolbar-cancelzp"
).
iMenubutton
({
$
(
"#kmesGp
fk
indexTable-toolbar"
).
find
(
".toolbar-cancelzp"
).
iMenubutton
({
event
:
'doAjax'
,
event
:
'doAjax'
,
text
:
'取消装配'
,
text
:
'取消装配'
,
onClick
:
function
()
{
onClick
:
function
()
{
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
}
}
});
});
$
(
"#kmesGp
hy
indexTable-toolbar"
).
find
(
".toolbar-search1"
).
iMenubutton
({
$
(
"#kmesGp
fk
indexTable-toolbar"
).
find
(
".toolbar-search1"
).
iMenubutton
({
text
:
'搜索'
,
text
:
'搜索'
,
iconCls
:
"fa fa-search"
,
iconCls
:
"fa fa-search"
,
btnCls
:
""
,
btnCls
:
""
,
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
gxName
=
data
.
gxName
||
""
;
gxName
=
data
.
gxName
||
""
;
gzzxid
=
data
.
gzzxid
||
''
;
gzzxid
=
data
.
gzzxid
||
''
;
gzzxname
=
data
.
gzzxname
||
""
;
gzzxname
=
data
.
gzzxname
||
""
;
$datagrid
.
datagrid
(
"options"
).
url
=
"kmes/gp
hy
/query"
;
$datagrid
.
datagrid
(
"options"
).
url
=
"kmes/gp
fk
/query"
;
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
))
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
))
}
}
})
})
...
...
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