Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
c5a291b6
Commit
c5a291b6
authored
Oct 12, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sx' of
http://git.pseer.com:8800/platform/hg-smart
into dev
parents
027257db
4f823247
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
14 deletions
+21
-14
ServiceHGKC008.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
+1
-1
ServiceHGKC008A.java
...java/com/baosight/hggp/hg/kc/service/ServiceHGKC008A.java
+13
-8
ServiceHGKC008B.java
...java/com/baosight/hggp/hg/kc/service/ServiceHGKC008B.java
+2
-0
HGKC008.js
src/main/webapp/HG/KC/HGKC008.js
+4
-2
HGKC008A.js
src/main/webapp/HG/KC/HGKC008A.js
+0
-3
HGKC008A.jsp
src/main/webapp/HG/KC/HGKC008A.jsp
+1
-0
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
View file @
c5a291b6
...
@@ -193,7 +193,7 @@ public class ServiceHGKC008 extends ServiceBase {
...
@@ -193,7 +193,7 @@ public class ServiceHGKC008 extends ServiceBase {
//查看是否能获取到账期,获取不到就提示
//查看是否能获取到账期,获取不到就提示
HGKC008
getKc008
=
HGKCTools
.
HgKc008
.
getById
(
hgkc008
.
getId
());
HGKC008
getKc008
=
HGKCTools
.
HgKc008
.
getById
(
hgkc008
.
getId
());
HGCWTools
.
HgCw001
.
getAccountPeriod
(
getKc008
.
getCompanyCode
(),
getKc008
.
getReceiptDate
());
HGCWTools
.
HgCw001
.
getAccountPeriod
(
getKc008
.
getCompanyCode
(),
getKc008
.
getReceiptDate
());
DaoUtils
.
update
(
HGKC008
.
UPDATE_STATUS
,
hgkc008
);
DaoUtils
.
update
(
HGKC008
.
UPDATE_STATUS
,
hgkc008
.
toMap
()
);
}
}
List
<
HGKC008A
>
hgkc008AList
=
HGKCTools
.
HgKc008A
.
getHgkc008aList
(
hgkc008
.
getId
());
List
<
HGKC008A
>
hgkc008AList
=
HGKCTools
.
HgKc008A
.
getHgkc008aList
(
hgkc008
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
hgkc008AList
)){
if
(!
CollectionUtils
.
isEmpty
(
hgkc008AList
)){
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC008A.java
View file @
c5a291b6
...
@@ -16,11 +16,13 @@ import com.baosight.hggp.util.CommonMethod;
...
@@ -16,11 +16,13 @@ import com.baosight.hggp.util.CommonMethod;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Arrays
;
import
java.util.Arrays
;
...
@@ -71,7 +73,6 @@ public class ServiceHGKC008A extends ServiceBase {
...
@@ -71,7 +73,6 @@ public class ServiceHGKC008A extends ServiceBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGKC008A
.
QUERY
,
new
HGKC008A
());
inInfo
=
super
.
query
(
inInfo
,
HGKC008A
.
QUERY
,
new
HGKC008A
());
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
@@ -128,9 +129,8 @@ public class ServiceHGKC008A extends ServiceBase {
...
@@ -128,9 +129,8 @@ public class ServiceHGKC008A extends ServiceBase {
*/
*/
public
EiInfo
save
(
EiInfo
inInfo
)
{
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
try
{
// 查询领料单
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
applyCode
=
MapUtils
.
getString
(
queryMap
,
HGKC008A
.
FIELD_
RECEIVE_ID
);
String
applyCode
=
MapUtils
.
getString
(
queryMap
,
HGKC008A
.
FIELD_
APPLY_CODE
);
HGKC008
dbKc008
=
HGKCTools
.
HgKc008
.
getByApplyCode
(
applyCode
);
HGKC008
dbKc008
=
HGKCTools
.
HgKc008
.
getByApplyCode
(
applyCode
);
AssertUtils
.
isNull
(
dbKc008
,
String
.
format
(
"领料单【%s】不存在"
,
applyCode
));
AssertUtils
.
isNull
(
dbKc008
,
String
.
format
(
"领料单【%s】不存在"
,
applyCode
));
AssertUtils
.
isNotEquals
(
HgKcConst
.
HgKc008
.
Status
.
S0
,
dbKc008
.
getStatus
(),
AssertUtils
.
isNotEquals
(
HgKcConst
.
HgKc008
.
Status
.
S0
,
dbKc008
.
getStatus
(),
...
@@ -141,8 +141,8 @@ public class ServiceHGKC008A extends ServiceBase {
...
@@ -141,8 +141,8 @@ public class ServiceHGKC008A extends ServiceBase {
// 数据校验
// 数据校验
this
.
checkSaveData
(
dbKc008
,
fKc008As
,
dbKc008AMap
);
this
.
checkSaveData
(
dbKc008
,
fKc008As
,
dbKc008AMap
);
this
.
setData
(
dbKc008
,
fKc008As
);
this
.
setData
(
dbKc008
,
fKc008As
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setMsg
(
"保存成功!"
);
inInfo
.
setMsg
(
"
操作成功!本次对["
+
fKc008As
.
size
()
+
"]条数据
保存成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
}
...
@@ -166,6 +166,9 @@ public class ServiceHGKC008A extends ServiceBase {
...
@@ -166,6 +166,9 @@ public class ServiceHGKC008A extends ServiceBase {
if
(
Objects
.
nonNull
(
fKc008A
.
getId
())
&&
fKc008A
.
getId
()
!=
0
)
{
if
(
Objects
.
nonNull
(
fKc008A
.
getId
())
&&
fKc008A
.
getId
()
!=
0
)
{
DaoUtils
.
update
(
HGKC008A
.
UPDATE
,
fKc008A
);
DaoUtils
.
update
(
HGKC008A
.
UPDATE
,
fKc008A
);
}
else
{
}
else
{
fKc008A
.
setApplyCode
(
dbKc008
.
getApplyCode
());
fKc008A
.
setApplyLineCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
SC_APPLY_LINE_CODE
,
new
String
[]{
dbKc008
.
getApplyCode
()}));
DaoUtils
.
insert
(
HGKC008A
.
INSERT
,
fKc008A
);
DaoUtils
.
insert
(
HGKC008A
.
INSERT
,
fKc008A
);
}
}
if
(
dbKc008
.
getReceiveType
().
compareTo
(
HGConstant
.
ReceiveType
.
DEFAULT
)
==
0
)
{
if
(
dbKc008
.
getReceiveType
().
compareTo
(
HGConstant
.
ReceiveType
.
DEFAULT
)
==
0
)
{
...
@@ -190,7 +193,7 @@ public class ServiceHGKC008A extends ServiceBase {
...
@@ -190,7 +193,7 @@ public class ServiceHGKC008A extends ServiceBase {
private
void
checkSaveData
(
HGKC008
dbKc008
,
List
<
HGKC008A
>
fKc008As
,
Map
<
String
,
HGKC008A
>
dbKc008AMap
)
{
private
void
checkSaveData
(
HGKC008
dbKc008
,
List
<
HGKC008A
>
fKc008As
,
Map
<
String
,
HGKC008A
>
dbKc008AMap
)
{
for
(
HGKC008A
fKc008A
:
fKc008As
)
{
for
(
HGKC008A
fKc008A
:
fKc008As
)
{
String
applyLineCode
=
fKc008A
.
getApplyLineCode
();
String
applyLineCode
=
fKc008A
.
getApplyLineCode
();
HGKC008A
dbKc008A
=
dbKc008AMap
.
get
(
applyLineCode
);
HGKC008A
dbKc008A
=
StringUtils
.
isBlank
(
applyLineCode
)
?
null
:
dbKc008AMap
.
get
(
applyLineCode
);
this
.
checkData
(
applyLineCode
,
dbKc008A
);
this
.
checkData
(
applyLineCode
,
dbKc008A
);
AssertUtils
.
isGe
(
BigDecimal
.
ZERO
,
fKc008A
.
getInvWeight
(),
"重量必须大于0"
);
AssertUtils
.
isGe
(
BigDecimal
.
ZERO
,
fKc008A
.
getInvWeight
(),
"重量必须大于0"
);
if
(
Objects
.
nonNull
(
fKc008A
.
getId
())
&&
fKc008A
.
getId
()
!=
0
)
{
if
(
Objects
.
nonNull
(
fKc008A
.
getId
())
&&
fKc008A
.
getId
()
!=
0
)
{
...
@@ -212,11 +215,13 @@ public class ServiceHGKC008A extends ServiceBase {
...
@@ -212,11 +215,13 @@ public class ServiceHGKC008A extends ServiceBase {
* @param dbKc008A
* @param dbKc008A
*/
*/
private
void
checkData
(
String
applyLineCode
,
HGKC008A
dbKc008A
)
{
private
void
checkData
(
String
applyLineCode
,
HGKC008A
dbKc008A
)
{
AssertUtils
.
isNull
(
dbKc008A
,
String
.
format
(
"领料单行【%s】不存在"
,
applyLineCode
));
if
(
dbKc008A
==
null
)
{
return
;
}
AssertUtils
.
isNotEquals
(
CommonConstant
.
YesNo
.
NO_0
,
dbKc008A
.
getDeleteFlag
(),
AssertUtils
.
isNotEquals
(
CommonConstant
.
YesNo
.
NO_0
,
dbKc008A
.
getDeleteFlag
(),
String
.
format
(
"领料单行【%s】不是\"未删除\"状态,不允许操作"
,
applyLineCode
));
String
.
format
(
"领料单行【%s】不是\"未删除\"状态,不允许操作"
,
applyLineCode
));
AssertUtils
.
isNotEquals
(
HgKcConst
.
HgKc008
.
Status
.
S0
,
dbKc008A
.
getStatus
(),
AssertUtils
.
isNotEquals
(
HgKcConst
.
HgKc008
.
Status
.
S0
,
dbKc008A
.
getStatus
(),
String
.
format
(
"领料单行【%s】不是\"未提交\"状态,不允许操作"
,
applyLineCode
));
String
.
format
(
"领料单行【%s】不是\"未提交\"状态,不允许操作"
,
applyLineCode
));
}
}
}
}
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC008B.java
View file @
c5a291b6
...
@@ -140,6 +140,8 @@ public class ServiceHGKC008B extends ServiceBase {
...
@@ -140,6 +140,8 @@ public class ServiceHGKC008B extends ServiceBase {
newKc008A
.
setInvSpec
(
dbKc010
.
getSpec
());
newKc008A
.
setInvSpec
(
dbKc010
.
getSpec
());
newKc008A
.
setInvSpecId
(
dbKc010
.
getSpecId
());
newKc008A
.
setInvSpecId
(
dbKc010
.
getSpecId
());
newKc008A
.
setDeleteFlag
(
DeleteFlagEnum
.
UN_REMOVE
.
getCode
());
newKc008A
.
setDeleteFlag
(
DeleteFlagEnum
.
UN_REMOVE
.
getCode
());
newKc008A
.
setAccountCode
(
""
);
newKc008A
.
setDepCode
(
""
);
DaoUtils
.
insert
(
HGKC008A
.
INSERT
,
newKc008A
);
DaoUtils
.
insert
(
HGKC008A
.
INSERT
,
newKc008A
);
}
}
}
}
...
...
src/main/webapp/HG/KC/HGKC008.js
View file @
c5a291b6
...
@@ -31,7 +31,8 @@ $(function (){
...
@@ -31,7 +31,8 @@ $(function (){
if
(
item
.
id
)
{
if
(
item
.
id
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showDetail('
+
item
.
id
+
',
\'
'
+
item
.
whCode
+
'
\'
,
\'
'
+
'onclick="showDetail('
+
item
.
id
+
',
\'
'
+
item
.
whCode
+
'
\'
,
\'
'
+
item
.
companyCode
+
'
\'
,
\'
'
+
item
.
status
+
'
\'
)" >领料详情</a>'
;
+
item
.
companyCode
+
'
\'
,
\'
'
+
item
.
status
+
'
\'
,
\'
'
+
item
.
applyCode
+
'
\'
)" >领料详情</a>'
;
if
(
status
==
0
)
{
if
(
status
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >提交</a>'
;
+
'onclick="updateStatus('
+
item
.
id
+
',1)" >提交</a>'
;
...
@@ -267,9 +268,10 @@ function updateStatus(id,status) {
...
@@ -267,9 +268,10 @@ function updateStatus(id,status) {
/**
/**
* 显示详情
* 显示详情
*/
*/
function
showDetail
(
id
,
whCode
,
companyCode
,
status
)
{
function
showDetail
(
id
,
whCode
,
companyCode
,
status
,
applyCode
)
{
let
params
=
{
let
params
=
{
"inqu_status-0-receiveId"
:
id
,
"inqu_status-0-receiveId"
:
id
,
"inqu_status-0-applyCode"
:
applyCode
,
}
}
JSColorbox
.
open
({
JSColorbox
.
open
({
href
:
"HGKC008A"
,
href
:
"HGKC008A"
,
...
...
src/main/webapp/HG/KC/HGKC008A.js
View file @
c5a291b6
...
@@ -128,9 +128,6 @@ $(function (){
...
@@ -128,9 +128,6 @@ $(function (){
//deleteFunc();
//deleteFunc();
},
},
onSuccess
:
function
(
e
)
{
onSuccess
:
function
(
e
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'save'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
)
{
query
();
}
},
},
onRowClick
:
function
(
e
)
{
onRowClick
:
function
(
e
)
{
//选中
//选中
...
...
src/main/webapp/HG/KC/HGKC008A.jsp
View file @
c5a291b6
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<EF:EFInput
ename=
"main-0-applyCode"
cname=
"领料单号"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"main-0-applyCode"
cname=
"领料单号"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"main-0-status"
cname=
"状态"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"main-0-status"
cname=
"状态"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFInput
ename=
"inqu_status-0-applyCode"
cname=
"申请编码"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-receiveId"
cname=
"领料单id"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-receiveId"
cname=
"领料单id"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-whCode"
cname=
"仓库编码"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-whCode"
cname=
"仓库编码"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-companyCode"
cname=
"公司编码"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-companyCode"
cname=
"公司编码"
colWidth=
"3"
type=
"hidden"
/>
...
...
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