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
2b91ecf4
Commit
2b91ecf4
authored
Oct 08, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-08 委外加工添加退货数量
parent
938e2356
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
HGSC010A.java
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC010A.java
+18
-1
HGSC010A.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC010A.xml
+7
-4
HGSC010A.jsp
src/main/webapp/HG/SC/HGSC010A.jsp
+4
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC010A.java
View file @
2b91ecf4
...
@@ -51,6 +51,7 @@ public class HGSC010A extends DaoEPBase {
...
@@ -51,6 +51,7 @@ public class HGSC010A extends DaoEPBase {
public
static
final
String
FIELD_REMAINING_QTY
=
"remainingQty"
;
/* 剩余数量*/
public
static
final
String
FIELD_REMAINING_QTY
=
"remainingQty"
;
/* 剩余数量*/
public
static
final
String
FIELD_REMAINING_UNIT_WEIGHT
=
"remainingUnitWeight"
;
/* 剩余单量*/
public
static
final
String
FIELD_REMAINING_UNIT_WEIGHT
=
"remainingUnitWeight"
;
/* 剩余单量*/
public
static
final
String
FIELD_REMAINING_WEIGHT
=
"remainingWeight"
;
/* 剩余重量*/
public
static
final
String
FIELD_REMAINING_WEIGHT
=
"remainingWeight"
;
/* 剩余重量*/
public
static
final
String
FIELD_DELIVER_QTY
=
"deliverQty"
;
/* 退货数量*/
public
static
final
String
COL_ID
=
"ID"
;
/* ID*/
public
static
final
String
COL_ID
=
"ID"
;
/* ID*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 账套*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 账套*/
...
@@ -113,6 +114,7 @@ public class HGSC010A extends DaoEPBase {
...
@@ -113,6 +114,7 @@ public class HGSC010A extends DaoEPBase {
private
BigDecimal
remainingQty
=
new
BigDecimal
(
"0"
);
/* 剩余数量*/
private
BigDecimal
remainingQty
=
new
BigDecimal
(
"0"
);
/* 剩余数量*/
private
BigDecimal
remainingUnitWeight
=
new
BigDecimal
(
"0"
);
/* 剩余单量*/
private
BigDecimal
remainingUnitWeight
=
new
BigDecimal
(
"0"
);
/* 剩余单量*/
private
BigDecimal
remainingWeight
=
new
BigDecimal
(
"0"
);
/* 剩余重量*/
private
BigDecimal
remainingWeight
=
new
BigDecimal
(
"0"
);
/* 剩余重量*/
private
BigDecimal
deliverQty
=
new
BigDecimal
(
"0"
);
/* 退货数量*/
/**
/**
* initialize the metadata.
* initialize the metadata.
...
@@ -264,7 +266,12 @@ public class HGSC010A extends DaoEPBase {
...
@@ -264,7 +266,12 @@ public class HGSC010A extends DaoEPBase {
eiColumn
.
setDescName
(
"剩余重量"
);
eiColumn
.
setDescName
(
"剩余重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELIVER_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"退货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
/**
...
@@ -707,6 +714,14 @@ public class HGSC010A extends DaoEPBase {
...
@@ -707,6 +714,14 @@ public class HGSC010A extends DaoEPBase {
this
.
remainingUnitWeight
=
remainingUnitWeight
;
this
.
remainingUnitWeight
=
remainingUnitWeight
;
}
}
public
BigDecimal
getDeliverQty
()
{
return
deliverQty
;
}
public
void
setDeliverQty
(
BigDecimal
deliverQty
)
{
this
.
deliverQty
=
deliverQty
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -744,6 +759,7 @@ public class HGSC010A extends DaoEPBase {
...
@@ -744,6 +759,7 @@ public class HGSC010A extends DaoEPBase {
setRemainingQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMAINING_QTY
)),
remainingQty
));
setRemainingQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMAINING_QTY
)),
remainingQty
));
setRemainingUnitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMAINING_UNIT_WEIGHT
)),
remainingUnitWeight
));
setRemainingUnitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMAINING_UNIT_WEIGHT
)),
remainingUnitWeight
));
setRemainingWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMAINING_WEIGHT
)),
remainingWeight
));
setRemainingWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMAINING_WEIGHT
)),
remainingWeight
));
setDeliverQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELIVER_QTY
)),
deliverQty
));
}
}
/**
/**
...
@@ -782,6 +798,7 @@ public class HGSC010A extends DaoEPBase {
...
@@ -782,6 +798,7 @@ public class HGSC010A extends DaoEPBase {
map
.
put
(
FIELD_REMAINING_QTY
,
StringUtils
.
toString
(
remainingQty
,
eiMetadata
.
getMeta
(
FIELD_REMAINING_QTY
)));
map
.
put
(
FIELD_REMAINING_QTY
,
StringUtils
.
toString
(
remainingQty
,
eiMetadata
.
getMeta
(
FIELD_REMAINING_QTY
)));
map
.
put
(
FIELD_REMAINING_UNIT_WEIGHT
,
StringUtils
.
toString
(
remainingUnitWeight
,
eiMetadata
.
getMeta
(
FIELD_REMAINING_UNIT_WEIGHT
)));
map
.
put
(
FIELD_REMAINING_UNIT_WEIGHT
,
StringUtils
.
toString
(
remainingUnitWeight
,
eiMetadata
.
getMeta
(
FIELD_REMAINING_UNIT_WEIGHT
)));
map
.
put
(
FIELD_REMAINING_WEIGHT
,
StringUtils
.
toString
(
remainingWeight
,
eiMetadata
.
getMeta
(
FIELD_REMAINING_WEIGHT
)));
map
.
put
(
FIELD_REMAINING_WEIGHT
,
StringUtils
.
toString
(
remainingWeight
,
eiMetadata
.
getMeta
(
FIELD_REMAINING_WEIGHT
)));
map
.
put
(
FIELD_DELIVER_QTY
,
StringUtils
.
toString
(
deliverQty
,
eiMetadata
.
getMeta
(
FIELD_DELIVER_QTY
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC010A.xml
View file @
2b91ecf4
...
@@ -159,7 +159,8 @@
...
@@ -159,7 +159,8 @@
DEPOSIT_WEIGHT as "depositWeight",
<!-- 入库重量 -->
DEPOSIT_WEIGHT as "depositWeight",
<!-- 入库重量 -->
REMAINING_QTY as "remainingQty",
<!-- 剩余数量 -->
REMAINING_QTY as "remainingQty",
<!-- 剩余数量 -->
REMAINING_UNIT_WEIGHT as "remainingUnitWeight",
<!-- 剩余单量 -->
REMAINING_UNIT_WEIGHT as "remainingUnitWeight",
<!-- 剩余单量 -->
REMAINING_WEIGHT as "remainingWeight"
<!-- 剩余重量 -->
REMAINING_WEIGHT as "remainingWeight",
<!-- 剩余重量 -->
DELIVER_QTY as "deliverQty"
FROM ${hggpSchema}.HGSC010A WHERE 1=1
FROM ${hggpSchema}.HGSC010A WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
...
@@ -282,12 +283,13 @@
...
@@ -282,12 +283,13 @@
DEPOSIT_WEIGHT,
<!-- 入库重量 -->
DEPOSIT_WEIGHT,
<!-- 入库重量 -->
REMAINING_QTY,
<!-- 剩余数量 -->
REMAINING_QTY,
<!-- 剩余数量 -->
REMAINING_UNIT_WEIGHT,
REMAINING_UNIT_WEIGHT,
REMAINING_WEIGHT
<!-- 剩余重量 -->
REMAINING_WEIGHT,
<!-- 剩余重量 -->
DELIVER_QTY
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #deleteFlag#,
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #deleteFlag#,
#companyCode#, #companyName#, #parentId#, #contractCode#, #inventType#,
#companyCode#, #companyName#, #parentId#, #contractCode#, #inventType#,
#productCode#, #productName#, #specId#, #spec#, #unit#, #pcsQty#, #pcsUnitWeight#, #pcsWeight#, #depositQty#, #depositUnitWeight#, #depositWeight#,
#productCode#, #productName#, #specId#, #spec#, #unit#, #pcsQty#, #pcsUnitWeight#, #pcsWeight#, #depositQty#, #depositUnitWeight#, #depositWeight#,
#remainingQty#, #remainingUnitWeight#, #remainingWeight#)
#remainingQty#, #remainingUnitWeight#, #remainingWeight#
, #deliverQty#
)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -323,7 +325,8 @@
...
@@ -323,7 +325,8 @@
DEPOSIT_WEIGHT = #depositWeight#,
<!-- 入库重量 -->
DEPOSIT_WEIGHT = #depositWeight#,
<!-- 入库重量 -->
REMAINING_QTY = #remainingQty#,
<!-- 剩余数量 -->
REMAINING_QTY = #remainingQty#,
<!-- 剩余数量 -->
REMAINING_UNIT_WEIGHT = #remainingUnitWeight#,
REMAINING_UNIT_WEIGHT = #remainingUnitWeight#,
REMAINING_WEIGHT = #remainingWeight#
<!-- 剩余重量 -->
REMAINING_WEIGHT = #remainingWeight#,
<!-- 剩余重量 -->
DELIVER_QTY = #deliverQty#
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
...
...
src/main/webapp/HG/SC/HGSC010A.jsp
View file @
2b91ecf4
...
@@ -74,6 +74,10 @@
...
@@ -74,6 +74,10 @@
displayType="0.000" sort="true" align="right" maxLength="17" required="false" defaultValue="0"
displayType="0.000" sort="true" align="right" maxLength="17" required="false" defaultValue="0"
data-regex="/^-?[0-9]{1,17}([.][0-9]{1,3})?$/" readonly="false"
data-regex="/^-?[0-9]{1,17}([.][0-9]{1,3})?$/" readonly="false"
data-errorprompt="请输入数字,该值最大可设置17位整数和3位小数!"/>
data-errorprompt="请输入数字,该值最大可设置17位整数和3位小数!"/>
<EF:EFColumn ename="deliverQty" cname="退货入库数量" width="100" enable="false" format="{0:N0}" editType="text"
displayType="0" sort="true" align="right" maxLength="17" required="false" defaultValue="0"
data-regex="/^-?[0-9]{1,17}$/" readonly="false"
data-errorprompt="请输入数字,该值最大可设置17位整数!"/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion id="detail" title="原料信息">
<EF:EFRegion id="detail" title="原料信息">
...
...
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