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
0aef8bee
Commit
0aef8bee
authored
May 29, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序质检单生成
parent
de3253e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
ServiceHGSC007A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC007A.java
+2
-1
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+3
-1
HGSC007A.js
src/main/webapp/HG/SC/HGSC007A.js
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007A.java
View file @
0aef8bee
...
...
@@ -41,7 +41,7 @@ public class ServiceHGSC007A extends ServiceEPBase {
List
<
HGSC008
>
old008List
=
HGSCTools
.
THGSC008
.
getByTaskId
(
Long
.
valueOf
(
taskId
));
hgsc008
.
setTaskId
(
hgsc007
.
getId
());
hgsc008
.
setTaskQuantity
(
hgsc007
.
getQuantity
());
hgsc008
.
setTaskWeight
(
hgsc007
.
getTotalWeight
());
hgsc008
.
setRegisteredQuantity
(
Optional
.
ofNullable
(
old008List
).
orElse
(
new
ArrayList
<>()).
stream
().
mapToInt
(
HGSC008:
:
getQuantity
).
sum
());
...
...
@@ -51,6 +51,7 @@ public class ServiceHGSC007A extends ServiceEPBase {
hgsc008
.
setRegisterDate
(
DateUtil
.
toDateStr
(
new
Date
(),
DateUtil
.
DATE10_PATTERN
));
hgsc008
.
setQuantity
(
null
);
hgsc008
.
setTotalWeight
(
null
);
hgsc008
.
setId
(
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addRow
(
hgsc008
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
0aef8bee
...
...
@@ -768,12 +768,14 @@ public class HGSCTools {
public
static
HGSC008
add
(
EiInfo
info
){
Map
resultMap
=
EiInfoUtils
.
getFirstRow
(
info
,
EiConstant
.
resultBlock
);
String
taskId
=
com
.
baosight
.
hggp
.
util
.
MapUtils
.
getString
(
resultMap
,
HGSC008
.
FIELD_task_id
);
String
taskId
=
MapUtils
.
getString
(
resultMap
,
HGSC008
.
FIELD_task_id
);
HGSC007
hgsc007
=
HGSCTools
.
THGSC007
.
getById
(
Long
.
valueOf
(
taskId
));
HGSC008
hgsc008
=
new
HGSC008
();
BeanUtils
.
copyProperties
(
hgsc007
,
hgsc008
);
cleanBaseInfo
(
hgsc008
);
hgsc008
.
setTaskId
(
hgsc007
.
getId
());
hgsc008
.
setQuantity
(
NumberUtils
.
toInteger
(
resultMap
.
get
(
HGSC008
.
FIELD_quantity
)));
hgsc008
.
setRegisterDate
(
String
.
valueOf
(
resultMap
.
get
(
HGSC008
.
FIELD_register_date
)));
hgsc008
.
setTotalWeight
(
hgsc007
.
getSingleWeight
().
multiply
(
new
BigDecimal
(
hgsc008
.
getQuantity
())));
checkAddDate
(
hgsc008
);
hgsc008
.
setWorkCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
HGSC008_WORK_CODE
));
...
...
src/main/webapp/HG/SC/HGSC007A.js
View file @
0aef8bee
...
...
@@ -37,7 +37,7 @@ $(function () {
}
JSUtils
.
confirm
(
"确定对数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGrid
(
"
result
"
,
"HGSC007A"
,
"save"
,
{
isAlldata
:
true
,
onSuccessCallback
:
parent
.
registerWorkCallback
});
JSUtils
.
submitGrid
(
""
,
"HGSC007A"
,
"save"
,
{
isAlldata
:
true
,
onSuccessCallback
:
parent
.
registerWorkCallback
});
}
});
});
...
...
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