Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 21f2250f
由
LN
编写于
2023-01-11 17:00:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
20031锡膏料仓修改
1 个父辈
c7932a32
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
30 行增加
和
10 行删除
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Menu.java
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
查看文件 @
21f2250
package
com
.
neotel
.
smfcore
.
custom
.
micron20031
;
package
com
.
neotel
.
smfcore
.
custom
.
micron20031
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.neotel.smfcore.common.exception.ApiException
;
import
com.neotel.smfcore.common.exception.ApiException
;
import
com.neotel.smfcore.common.utils.DateUtil
;
import
com.neotel.smfcore.common.utils.DateUtil
;
import
com.neotel.smfcore.common.utils.HttpHelper
;
import
com.neotel.smfcore.common.utils.HttpHelper
;
...
@@ -22,6 +23,13 @@ public class Micron20031Api {
...
@@ -22,6 +23,13 @@ public class Micron20031Api {
public
static
String
MODE_DISABLE_MAM_AND_SAP
=
"DISABLE_MAM_AND_SAP"
;
public
static
String
MODE_DISABLE_MAM_AND_SAP
=
"DISABLE_MAM_AND_SAP"
;
public
static
String
MODE_ENABLE_MAM_SAP
=
"ENABLE_MAM_SAP"
;
public
static
String
MODE_ENABLE_MAM_SAP
=
"ENABLE_MAM_SAP"
;
public
static
String
NORMAL_RETURN
=
"NORMAL_RETURN"
;
//Return
public
static
String
EXPIRED_DISPOSAL
=
"EXPIRED_DISPOSAL"
;
//Removal
public
static
String
Email_TO
=
""
;
public
static
String
Email_CC
=
""
;
private
static
String
AUTH_TOKEN
=
""
;
private
static
String
AUTH_TOKEN
=
""
;
private
static
String
MATERIAL_TYPE
=
"SOLDER_PASTE"
;
private
static
String
MATERIAL_TYPE
=
"SOLDER_PASTE"
;
...
@@ -215,6 +223,7 @@ public class Micron20031Api {
...
@@ -215,6 +223,7 @@ public class Micron20031Api {
Date
stabilizationEndDate
=
DateUtil
.
toDate
(
stabilizationEndDateObj
.
toString
(),
"MM-dd-yyyy"
);
Date
stabilizationEndDate
=
DateUtil
.
toDate
(
stabilizationEndDateObj
.
toString
(),
"MM-dd-yyyy"
);
barcode
.
updateAppendData
(
"stabilizationEndDate"
,
stabilizationEndDate
);
barcode
.
updateAppendData
(
"stabilizationEndDate"
,
stabilizationEndDate
);
barcode
.
updateAppendData
(
"opUsername"
,
username
);
barcode
.
updateAppendData
(
"opUsername"
,
username
);
barcode
.
updateAppendData
(
"maTrackOut"
,
false
);
Object
exposureStartDateObj
=
resultMap
.
get
(
"ExposureStartDate"
);
Object
exposureStartDateObj
=
resultMap
.
get
(
"ExposureStartDate"
);
Date
exposureStartDate
=
DateUtil
.
toDate
(
exposureStartDateObj
.
toString
(),
"MM-dd-yyyy"
);
Date
exposureStartDate
=
DateUtil
.
toDate
(
exposureStartDateObj
.
toString
(),
"MM-dd-yyyy"
);
barcode
.
setOpenTime
(
exposureStartDate
);
barcode
.
setOpenTime
(
exposureStartDate
);
...
@@ -342,6 +351,11 @@ public class Micron20031Api {
...
@@ -342,6 +351,11 @@ public class Micron20031Api {
public
static
List
<
String
>
getEquipIDList
()
throws
ApiException
{
public
static
List
<
String
>
getEquipIDList
()
throws
ApiException
{
List
<
String
>
equipIdList
=
new
ArrayList
<>();
List
<
String
>
equipIdList
=
new
ArrayList
<>();
String
checkStockAvailableUrl
=
""
;
String
checkStockAvailableUrl
=
""
;
if
(
ObjectUtil
.
isEmpty
(
checkStockAvailableUrl
))
{
List
<
String
>
result
=
new
ArrayList
<
String
>();
result
.
add
(
"test1"
);
result
.
add
(
"test2"
);
}
String
auth
=
getAuthToken
();
String
auth
=
getAuthToken
();
Map
<
String
,
String
>
dataMap
=
new
HashMap
<>();
Map
<
String
,
String
>
dataMap
=
new
HashMap
<>();
dataMap
.
put
(
"Facility"
,
"MODULE SINGAPORE"
);
dataMap
.
put
(
"Facility"
,
"MODULE SINGAPORE"
);
...
@@ -402,6 +416,9 @@ public class Micron20031Api {
...
@@ -402,6 +416,9 @@ public class Micron20031Api {
*/
*/
public
static
void
chkAuthoriseToDispatch
(
Barcode
barcode
,
String
mode
,
String
username
)
throws
ApiException
{
public
static
void
chkAuthoriseToDispatch
(
Barcode
barcode
,
String
mode
,
String
username
)
throws
ApiException
{
String
checkStockAvailableUrl
=
""
;
String
checkStockAvailableUrl
=
""
;
if
(
ObjectUtil
.
isEmpty
(
checkStockAvailableUrl
)){
return
;
}
String
auth
=
getAuthToken
();
String
auth
=
getAuthToken
();
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<>();
dataMap
.
put
(
"MicronPN"
,
barcode
.
getPartNumber
());
dataMap
.
put
(
"MicronPN"
,
barcode
.
getPartNumber
());
...
@@ -454,11 +471,14 @@ public class Micron20031Api {
...
@@ -454,11 +471,14 @@ public class Micron20031Api {
* //Input: TypeofReturn, MicronPN, LotNo, BatchNo, Location, RemainingQuantity, Mode, Username, SystemId, MaterialType
* //Input: TypeofReturn, MicronPN, LotNo, BatchNo, Location, RemainingQuantity, Mode, Username, SystemId, MaterialType
* //Output: TypeofReturn, MicronPN, LotNo, BatchNo, Location, RemainingQuantity, Mode, Username, SystemId, MaterialType, Message, Status, ExpiredDate
* //Output: TypeofReturn, MicronPN, LotNo, BatchNo, Location, RemainingQuantity, Mode, Username, SystemId, MaterialType, Message, Status, ExpiredDate
*/
*/
public
static
Barcode
returnMaterial
(
Barcode
barcode
,
String
mode
,
String
username
)
throws
ApiException
{
public
static
Barcode
returnMaterial
(
Barcode
barcode
,
String
typeOfReturn
,
String
username
)
throws
ApiException
{
String
checkStockAvailableUrl
=
""
;
String
checkStockAvailableUrl
=
""
;
if
(
ObjectUtil
.
isEmpty
(
checkStockAvailableUrl
)){
return
barcode
;
}
String
auth
=
getAuthToken
();
String
auth
=
getAuthToken
();
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<>();
dataMap
.
put
(
"TypeofReturn"
,
"NORMAL_RETURN"
);
dataMap
.
put
(
"TypeofReturn"
,
typeOfReturn
);
dataMap
.
put
(
"MicronPN"
,
barcode
.
getPartNumber
());
dataMap
.
put
(
"MicronPN"
,
barcode
.
getPartNumber
());
dataMap
.
put
(
"LotNo"
,
barcode
.
getBarcode
());
dataMap
.
put
(
"LotNo"
,
barcode
.
getBarcode
());
dataMap
.
put
(
"BatchNo"
,
barcode
.
getBatch
());
dataMap
.
put
(
"BatchNo"
,
barcode
.
getBatch
());
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Menu.java
查看文件 @
21f2250
...
@@ -28,9 +28,9 @@ public class Micron20031Menu {
...
@@ -28,9 +28,9 @@ public class Micron20031Menu {
String
menuLabel
=
"20031"
;
String
menuLabel
=
"20031"
;
//20031锡膏料仓菜单
//20031锡膏料仓菜单
MenuInit
.
addMenu
(
menuLabel
,
null
,
1
,
"设备概览"
,
"spKanban"
,
"neolight/spKanban/index"
,
"sKanban"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
-
100
,
"设备概览"
,
"spKanban"
,
"neolight/spKanban/index"
,
"sKanban"
);
Menu
report
=
Menu
.
CreatePMenu
(
"报表"
,
7
,
"report"
,
"inOutData"
,
null
);
Menu
report
=
Menu
.
CreatePMenu
(
"报表"
,
1
,
"report"
,
"inOutData"
,
null
);
//Report菜单
//Report菜单
MenuInit
.
addMenu
(
menuLabel
,
report
,
121
,
"Material Movement"
,
"movementReport"
,
"system/movementReport/index"
,
"movementReport"
);
MenuInit
.
addMenu
(
menuLabel
,
report
,
121
,
"Material Movement"
,
"movementReport"
,
"system/movementReport/index"
,
"movementReport"
);
MenuInit
.
addMenu
(
menuLabel
,
report
,
122
,
"Inventory"
,
"inventoryReport"
,
"system/inventoryReport/index"
,
"inventoryReport"
);
MenuInit
.
addMenu
(
menuLabel
,
report
,
122
,
"Inventory"
,
"inventoryReport"
,
"system/inventoryReport/index"
,
"inventoryReport"
);
...
@@ -44,12 +44,12 @@ public class Micron20031Menu {
...
@@ -44,12 +44,12 @@ public class Micron20031Menu {
// MenuInit.addMenu(menuLabel,null, 4, "Performance Report", "performanceReport", "system/performanceReport/index","performanceReport");
// MenuInit.addMenu(menuLabel,null, 4, "Performance Report", "performanceReport", "system/performanceReport/index","performanceReport");
// MenuInit.addMenu(menuLabel,null, 5, "Abnormality Report", "abnormReport", "system/abnormReport/index","abnormReport");
// MenuInit.addMenu(menuLabel,null, 5, "Abnormality Report", "abnormReport", "system/abnormReport/index","abnormReport");
MenuInit
.
addMenu
(
menuLabel
,
null
,
6
,
"Order"
,
"order"
,
"system/order/index"
,
"order"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
-
11
,
"Order"
,
"order"
,
"system/order/index"
,
"order"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
7
,
"Deposit"
,
"deposit"
,
"system/deposit/index"
,
"deposit"
);
// MenuInit.addMenu(menuLabel,null, -10
, "Deposit", "deposit", "system/deposit/index","deposit");
MenuInit
.
addMenu
(
menuLabel
,
null
,
8
,
"Stabilization"
,
"stabilization"
,
"system/stabilization/index"
,
"stabilization"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
-
9
,
"Stabilization"
,
"stabilization"
,
"system/stabilization/index"
,
"stabilization"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
9
,
"Withdraw"
,
"withdraw"
,
"system/withdraw/index"
,
"withdraw"
);
// MenuInit.addMenu(menuLabel,null, -8
, "Withdraw", "withdraw", "system/withdraw/index","withdraw");
MenuInit
.
addMenu
(
menuLabel
,
null
,
10
,
"Return"
,
"returnPage"
,
"system/returnPage/index"
,
"returnPage"
);
// MenuInit.addMenu(menuLabel,null, -7
, "Return", "returnPage", "system/returnPage/index","returnPage");
MenuInit
.
addMenu
(
menuLabel
,
null
,
11
,
"Removal"
,
"removal"
,
"system/removal/index"
,
"removal"
);
// MenuInit.addMenu(menuLabel,null, -6
, "Removal", "removal", "system/removal/index","removal");
String
apiName
=
smfApi
.
getApiName
();
String
apiName
=
smfApi
.
getApiName
();
if
(
Strings
.
isNotBlank
(
apiName
)
&&
apiName
.
equals
(
menuLabel
)){
if
(
Strings
.
isNotBlank
(
apiName
)
&&
apiName
.
equals
(
menuLabel
)){
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论