Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3a1b910f
由
LN
编写于
2022-04-13 11:47:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
条形码的数量必须大于0
1 个父辈
7faab391
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
18 行增加
和
2 行删除
src/main/java/com/neotel/smfcore/core/barcode/service/manager/impl/BarcodeManagerImpl.java
src/main/resources/messages.properties
src/main/resources/messages_en_US.properties
src/main/resources/messages_ja_JP.properties
src/main/resources/messages_zh_CN.properties
src/main/resources/messages_zh_TW.properties
src/main/java/com/neotel/smfcore/core/barcode/service/manager/impl/BarcodeManagerImpl.java
查看文件 @
3a1b910
...
...
@@ -188,8 +188,9 @@ public class BarcodeManagerImpl implements IBarcodeManager {
// throw new ValidateException("smfcore.valueCanotNull","{0}不能为空",new String[]{"batch"} );
// throw new ValidateException("批次不能为空");
}
if
(
barcode
.
getAmount
()
<
0
)
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"amout"
}
);
if
(
barcode
.
getAmount
()
<=
0
)
{
throw
new
ValidateException
(
"smfcore.greaterThanZero"
,
"数量必须大于0"
,
new
String
[]{
"amout"
}
);
// throw new ValidateException("smfcore.valueCanotNull","{0}不能为空",new String[]{"amout"} );
// throw new ValidateException("["+barcode.getBarcode()+"]barcode.error.amount.negative" );
}
if
(!
validateUnique
(
barcode
))
{
...
...
src/main/resources/messages.properties
查看文件 @
3a1b910
...
...
@@ -252,6 +252,9 @@ smfcore.safetyInventory.supplementReel=\u8865\u5145\u76D8\u6570
smfcore.safetyInventory.amount
=
\u6700\u
5C0F
\u5305\u
88C5
smfcore.component.storeError
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u
5E93
\u
5B58
\u
FF0C
\u6700\u
5C0F
\u
5E93
\u
5B58<=
\u
5B89
\u5168\u
5E93
\u
5B58<=
\u6700\u5927\u
5E93
\u
5B58
smfcore.equipmentView
=
\u
8BBE
\u5907\u
4E92
\u8054
smfcore.greaterThanZero
=
\u6570\u
91CF
\u
5FC5
\u
987B
\u5927\u
4E8E0
smfcore.error.virtualOut.num
=
\u6570\u
91CF
\u
4E0D
\u
80FD
\u
8D85
\u
8FC7{0}
smfcore.error.virtualOut.noItem
=
\u
5DE5
\u5355
{0}
\u
4E2D
\u
672A
\u
627E
\u5230\u
5BF9
\u
5E94
\u7684
PN
\u6216\u7269\u6599\u
7F16
\u
53F7
#smfclient.nlp.onlyOneTray=\u4E0D\u53EF\u540C\u65F6\u653E\u5165\u591A\u76D8\u7269\u6599:{0}
#smfclient.nlp.cannotFindPos={0}\u672A\u627E\u5230\u5E93\u4F4D:{1}
...
...
src/main/resources/messages_en_US.properties
查看文件 @
3a1b910
...
...
@@ -253,4 +253,7 @@ smfcore.safetyInventory.supplementReel=Number of additional plates
smfcore.safetyInventory.amount
=
Amount
smfcore.component.storeError
=
Please enter the correct stock, minimum stock <= safety stock <= maximum stock
smfcore.equipmentView
=
Equipment connected
smfcore.greaterThanZero
=
Amount Must be greater than 0
smfcore.error.virtualOut.num
=
The number cannot exceed {0}
smfcore.error.virtualOut.noItem
=
The corresponding material is not found in work order {0}
src/main/resources/messages_ja_JP.properties
查看文件 @
3a1b910
...
...
@@ -252,4 +252,7 @@ smfcore.safetyInventory.supplementReel=\u8FFD\u52A0\u30D7\u30EC\u30FC\u30C8\u679
smfcore.safetyInventory.amount
=
\u6578\u
91CF
smfcore.component.storeError
=
\u
6B63
\u3057\u3044\u5728\u
5EAB
\u3092\u5165\u
529B
\u3057\u3066\u
304F
\u3060\u3055\u3044\u3001\u6700\u
5C0F
\u5728\u
5EAB
\u2266\u
5B89
\u5168\u5728\u
5EAB
\u2266\u6700\u5927\u5728\u
5EAB
smfcore.equipmentView
=
\u
8BBE
\u5907\u
4E92
\u8054
smfcore.greaterThanZero
=
\u6570\u
91CF
\u
5FC5
\u
987B
\u5927\u
4E8E0
smfcore.error.virtualOut.num
=
\u6570\u
91CF
\u
4E0D
\u
80FD
\u
8D85
\u
8FC7{0}
smfcore.error.virtualOut.noItem
=
\u
5DE5
\u5355
{0}
\u
4E2D
\u
672A
\u
627E
\u5230\u
5BF9
\u
5E94
\u7684
PN
\u6216\u7269\u6599\u
7F16
\u
53F7
src/main/resources/messages_zh_CN.properties
查看文件 @
3a1b910
...
...
@@ -252,3 +252,6 @@ smfcore.safetyInventory.supplementReel=\u8865\u5145\u76D8\u6570
smfcore.safetyInventory.amount
=
\u6700\u
5C0F
\u5305\u
88C5
smfcore.component.storeError
=
\u
8BF7
\u
8F93
\u5165\u
6B63
\u
786E
\u7684\u
5E93
\u
5B58
\u
FF0C
\u6700\u
5C0F
\u
5E93
\u
5B58<=
\u
5B89
\u5168\u
5E93
\u
5B58<=
\u6700\u5927\u
5E93
\u
5B58
smfcore.equipmentView
=
\u
8BBE
\u5907\u
4E92
\u8054
smfcore.greaterThanZero
=
\u6570\u
91CF
\u
5FC5
\u
987B
\u5927\u
4E8E0
smfcore.error.virtualOut.num
=
\u6570\u
91CF
\u
4E0D
\u
80FD
\u
8D85
\u
8FC7{0}
smfcore.error.virtualOut.noItem
=
\u
5DE5
\u5355
{0}
\u
4E2D
\u
672A
\u
627E
\u5230\u
5BF9
\u
5E94
\u7684
PN
\u6216\u7269\u6599\u
7F16
\u
53F7
src/main/resources/messages_zh_TW.properties
查看文件 @
3a1b910
...
...
@@ -252,3 +252,6 @@ smfcore.safetyInventory.supplementReel=\u88DC\u5145\u76E4\u6578
smfcore.safetyInventory.amount
=
\u6700\u
5C0F
\u5305\u
88DD
smfcore.component.storeError
=
\u
8ACB
\u
8F38
\u5165\u
6B63
\u
78BA
\u7684\u
5EAB
\u
5B58
\u
FF0C
\u6700\u
5C0F
\u
5EAB
\u
5B58<=
\u
5B89
\u5168\u
5EAB
\u
5B58<=
\u6700\u5927\u
5EAB
\u
5B58
smfcore.equipmentView
=
\u
8A2D
\u5099\u
4E92
\u
806F
smfcore.greaterThanZero
=
\u6578\u
91CF
\u
5FC5
\u9808\u5927\u
65BC0
smfcore.error.virtualOut.num
=
\u6578\u
91CF
\u
4E0D
\u
80FD
\u
8D85
\u
904E{0}
smfcore.error.virtualOut.noItem
=
\u
5DE5
\u
55AE{0}
\u
4E2D
\u
672A
\u
627E
\u5230\u
5C0D
\u
61C9
\u7684
PN
\u7269\u6599\u
7DE8
\u
865F
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论