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
372b5a2c
Commit
372b5a2c
authored
Jun 28, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序质检单生成的生产入库单单重、总重取报工单的
parent
9dfd7be3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+8
-4
HGKC007.jsp
src/main/webapp/HG/KC/HGKC007.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
372b5a2c
...
@@ -13,6 +13,8 @@ import com.baosight.hggp.hg.constant.HGSqlConstant;
...
@@ -13,6 +13,8 @@ import com.baosight.hggp.hg.constant.HGSqlConstant;
import
com.baosight.hggp.hg.kc.domain.*
;
import
com.baosight.hggp.hg.kc.domain.*
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.sc.domain.HGSC008
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.zl.domain.HGZL002
;
import
com.baosight.hggp.hg.zl.domain.HGZL002
;
import
com.baosight.hggp.hg.zl.domain.HGZL004
;
import
com.baosight.hggp.hg.zl.domain.HGZL004
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
...
@@ -278,8 +280,10 @@ public class HGKCTools {
...
@@ -278,8 +280,10 @@ public class HGKCTools {
private
static
void
setHgkc003Data
(
List
<
HGZL002
>
hgzl002List
,
List
<
HGKC003
>
hgkc003List
,
Integer
code
,
List
<
HGZL004
>
hgzl004List
)
{
private
static
void
setHgkc003Data
(
List
<
HGZL002
>
hgzl002List
,
List
<
HGKC003
>
hgkc003List
,
Integer
code
,
List
<
HGZL004
>
hgzl004List
)
{
List
<
String
>
inventCodes
=
hgzl002List
.
stream
().
map
(
HGZL002:
:
getProductCode
).
collect
(
Collectors
.
toList
());
List
<
String
>
inventCodes
=
hgzl002List
.
stream
().
map
(
HGZL002:
:
getProductCode
).
collect
(
Collectors
.
toList
());
List
<
HGPZ005
>
hgpz005List
=
HGPZTools
.
HgPz005
.
listByInventCodes
(
inventCodes
);
List
<
HGPZ005
>
hgpz005List
=
HGPZTools
.
HgPz005
.
listByInventCodes
(
inventCodes
);
hgzl002List
.
forEach
(
o
->{
hgzl002List
.
forEach
(
o
->{
HGPZ005
hgpz005
=
hgpz005List
.
stream
().
filter
(
h
->
h
.
getInventCode
().
equals
(
o
.
getProductCode
())).
findAny
().
orElse
(
null
);
HGPZ005
hgpz005
=
hgpz005List
.
stream
().
filter
(
h
->
h
.
getInventCode
().
equals
(
o
.
getProductCode
())).
findAny
().
orElse
(
null
);
HGSC008
hgsc008
=
HGSCTools
.
THGSC008
.
getById
(
o
.
getWorkId
());
if
(
Objects
.
nonNull
(
hgpz005
)){
if
(
Objects
.
nonNull
(
hgpz005
)){
HGKC003
hgkc003
=
new
HGKC003
();
HGKC003
hgkc003
=
new
HGKC003
();
hgkc003
.
setDepositNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PROD_DEPOSIT_NO
));
hgkc003
.
setDepositNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PROD_DEPOSIT_NO
));
...
@@ -302,11 +306,11 @@ public class HGKCTools {
...
@@ -302,11 +306,11 @@ public class HGKCTools {
return
;
return
;
}
}
//单重
//单重
BigDecimal
invUnitWeight
=
HGPZTools
.
HgPz005
.
calcUnitWeight
(
hgpz005
);
//
BigDecimal invUnitWeight = HGPZTools.HgPz005.calcUnitWeight(hgpz005);
hgkc003
.
setInvUnitWeight
(
invUnitWeight
);
hgkc003
.
setInvUnitWeight
(
hgsc008
.
getSingleWeight
()
);
//总重
//总重
BigDecimal
invWeight
=
invUnitWeight
.
multiply
(
hgkc003
.
getInvQty
());
//
BigDecimal invWeight = invUnitWeight.multiply(hgkc003.getInvQty());
hgkc003
.
setInvWeight
(
invWeight
);
hgkc003
.
setInvWeight
(
hgsc008
.
getTotalWeight
()
);
hgkc003
.
setProjCode
(
o
.
getProjCode
());
hgkc003
.
setProjCode
(
o
.
getProjCode
());
hgkc003
.
setProjName
(
o
.
getProjName
());
hgkc003
.
setProjName
(
o
.
getProjName
());
hgkc003
.
setPartCode
(
o
.
getProductCode
());
hgkc003
.
setPartCode
(
o
.
getProductCode
());
...
...
src/main/webapp/HG/KC/HGKC007.jsp
View file @
372b5a2c
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"otherOutDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"otherOutDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFColumn
ename=
"otherOutNo"
cname=
"其他
入
库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"otherOutNo"
cname=
"其他
出
库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
enable=
"false"
>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
enable=
"false"
>
...
...
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