Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
b0b39c37
Commit
b0b39c37
authored
Apr 09, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加销售单变更交货时间同步
parent
6200e479
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
ServiceHPSC002.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
+7
-0
HPSC001.jsp
src/main/webapp/HP/SC/HPSC001.jsp
+6
-6
HPSC003B.jsp
src/main/webapp/HP/SC/HPSC003B.jsp
+1
-0
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
View file @
b0b39c37
...
...
@@ -157,6 +157,7 @@ public class ServiceHPSC002 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPSC002
hpsc002
=
new
HPSC002
();
hpsc002
.
fromMap
(
resultRows
.
get
(
i
));
hpsc002
.
setDeliveryDate
(
DateUtils
.
formatShort
(
hpsc002
.
getDeliveryDate
()));
if
(
hpsc002
.
getId
()
==
null
||
hpsc002
.
getId
()
==
0
)
{
hpsc002
.
setDeliveryDate
(
DateUtils
.
formatShort
(
hpsc002
.
getDeliveryDate
()));
this
.
add
(
hpsc002
);
...
...
@@ -178,6 +179,9 @@ public class ServiceHPSC002 extends ServiceBase {
public
EiInfo
add
(
HPSC002
hpsc002
)
{
EiInfo
inInfo
=
new
EiInfo
();
try
{
//单独新增需要拿到销售单的交货日期
HPSC001
hpsc001
=
HPSCTools
.
HpSc001
.
get
(
hpsc002
.
getProjCode
());
hpsc002
.
setDeliveryDate
(
hpsc001
.
getDeliveryDate
());
hpsc002
.
setLeaf
(
"1"
);
// 计算总重
BigDecimal
num
=
hpsc002
.
getNum
();
...
...
@@ -499,6 +503,8 @@ public class ServiceHPSC002 extends ServiceBase {
HPSC003
.
setWidth
(
hppz002
.
getWidth
());
HPSC003
.
setThick
(
hppz002
.
getThick
());
HPSC003
.
setSpec
(
HPPZTools
.
HpPz006
.
jointSpec
(
HPSC003
.
getLength
(),
HPSC003
.
getWidth
(),
HPSC003
.
getThick
()));
HPSC003
.
setDeliveryDate
(
hppz002
.
getDeliveryDate
());
HPSC003
.
setPlanCompletionDate
(
hppz002
.
getDeliveryDate
());
DaoUtils
.
update
(
"HPSC003.update"
,
HPSC003
.
toMap
());
}
...
...
@@ -510,6 +516,7 @@ public class ServiceHPSC002 extends ServiceBase {
HPSC004
.
setUnitWt
(
hppz002
.
getUnitWt
());
HPSC004
.
setTotalWt
(
hppz002
.
getTotalWt
());
HPSC004
.
setSpec
(
HPPZTools
.
HpPz006
.
jointSpec
(
HPSC004
.
getLength
(),
HPSC004
.
getWidth
(),
HPSC004
.
getThick
()));
// HPSC004.setDeliveryDate(hppz002.getDeliveryDate());
DaoUtils
.
update
(
"HPSC004.update"
,
HPSC004
.
toMap
());
}
...
...
src/main/webapp/HP/SC/HPSC001.jsp
View file @
b0b39c37
...
...
@@ -84,15 +84,15 @@
</EF:EFComboColumn>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
hidden=
'true'
/>
<EF:EFColumn
ename=
"prdtName"
cname=
"部件名称"
width=
"140"
align=
"center"
maxLength=
"50"
required=
"true"
/>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
width=
"80"
format=
"{0:N
3
}"
maxLength=
"12"
displayType=
"0.000"
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
width=
"80"
format=
"{0:N
0
}"
maxLength=
"12"
displayType=
"0.000"
data-regex=
"/^-?[0-9]{1,9}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置9位整数
和3位小数
!"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
width=
"80"
format=
"{0:N
3
}"
maxLength=
"12"
displayType=
"0.000"
data-errorprompt=
"请输入数字,该值最大可设置9位整数!"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
width=
"80"
format=
"{0:N
0
}"
maxLength=
"12"
displayType=
"0.000"
data-regex=
"/^-?[0-9]{1,9}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置9位整数
和3位小数
!"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
width=
"80"
format=
"{0:N
3
}"
maxLength=
"12"
displayType=
"0.000"
data-errorprompt=
"请输入数字,该值最大可设置9位整数!"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
width=
"80"
format=
"{0:N
0
}"
maxLength=
"12"
displayType=
"0.000"
data-regex=
"/^-?[0-9]{1,9}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置9位整数
和3位小数
!"
/>
data-errorprompt=
"请输入数字,该值最大可设置9位整数!"
/>
<EF:EFColumn
ename=
"deliveryDate"
cname=
"交货日期"
width=
"100"
editType=
"date"
required=
'true'
align=
"center"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
<EF:EFColumn
ename=
"num"
cname=
"数量"
maxLength=
"15"
displayType=
"0.000"
format=
"{0:N0}"
required=
"true"
...
...
src/main/webapp/HP/SC/HPSC003B.jsp
View file @
b0b39c37
...
...
@@ -36,3 +36,4 @@
<EF:EFButton
ename=
"confirm"
cname=
"确认"
type=
"button"
class=
"btn-align-right"
/>
</div>
</EF:EFPage>
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