Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-OutletEquip
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ce605b78
由
LN
编写于
2021-04-28 17:22:56 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
紧急料放到NG箱
1 个父辈
c3202696
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
27 行增加
和
5 行删除
source/DeviceLibrary/bean/EquipBean.cs
source/DeviceLibrary/bean/EquipBean_Partial.cs
source/DeviceLibrary/lineConnect/LineConnect.cs
source/DeviceLibrary/model/InOutParam.cs
source/DeviceLibrary/bean/EquipBean.cs
查看文件 @
ce605b7
...
...
@@ -812,6 +812,12 @@ namespace OnlineStore.DeviceLibrary
StartMove
();
return
;
}
else
if
(
LineConnect
.
DoorPosInfo
.
urgentReel
)
{
LineConnect
.
DoorPosInfo
.
urgentReel
=
true
;
StartMove
();
return
;
}
string
shelfRfid
=
ReadyShelf
();
if
(
String
.
IsNullOrEmpty
(
shelfRfid
))
{
...
...
source/DeviceLibrary/bean/EquipBean_Partial.cs
查看文件 @
ce605b7
...
...
@@ -36,7 +36,7 @@ namespace OnlineStore.DeviceLibrary
{
LineMoveP
p
=
new
LineMoveP
();
if
(
param
.
PosInfo
.
IsNg
&&
param
.
PosInfo
.
ShelfPosId
.
Equals
(
""
))
if
(
(
param
.
PosInfo
.
IsNg
||
param
.
PosInfo
.
urgentReel
)
&&
param
.
PosInfo
.
ShelfPosId
.
Equals
(
""
))
{
//判断料盘尺寸
if
(
param
.
PosInfo
.
PlateW
.
Equals
(
7
))
...
...
@@ -375,7 +375,7 @@ namespace OnlineStore.DeviceLibrary
}
private
void
MoveToPosition
(
LineMoveP
moveP
)
{
if
(
MoveInfo
.
MoveParam
.
PosInfo
.
IsNg
)
if
(
MoveInfo
.
MoveParam
.
PosInfo
.
IsNg
||
MoveInfo
.
MoveParam
.
PosInfo
.
urgentReel
)
{
storeStatus
=
StoreStatus
.
OutStoreBoxEnd
;
MoveInfo
.
NextMoveStep
(
MoveStep
.
SO_31_MoveToNG
);
...
...
@@ -668,6 +668,10 @@ namespace OnlineStore.DeviceLibrary
{
moveStr
=
"->NG箱 "
;
LogUtil
.
info
(
Name
+
"["
+
barcode
+
"]"
+
moveStr
+
" : "
+
MoveInfo
.
MoveStep
+
" "
+
msg
);
}
else
if
(
MoveInfo
.
MoveParam
!=
null
&&
MoveInfo
.
MoveParam
.
PosInfo
!=
null
&&
MoveInfo
.
MoveParam
.
PosInfo
.
urgentReel
)
{
moveStr
=
" ->紧急料 "
;
LogUtil
.
info
(
Name
+
"["
+
BoxPosId
+
"]"
+
moveStr
+
" : "
+
MoveInfo
.
MoveStep
+
" "
+
msg
);
}
else
{
...
...
source/DeviceLibrary/lineConnect/LineConnect.cs
查看文件 @
ce605b7
...
...
@@ -131,7 +131,7 @@ namespace OnlineStore.DeviceLibrary
if
(
cmd
.
Equals
(
cmd_startIn
))
{
LogUtil
.
info
(
"["
+
CID
+
"]收到流水线消息:"
+
message
);
InOutPosInfo
inout
=
new
InOutPosInfo
(
reviceInfo
.
WareCode
,
""
,
reviceInfo
.
PlateW
,
reviceInfo
.
PlateH
,
reviceInfo
.
IsNg
,
reviceInfo
.
PosId
,
reviceInfo
.
rfid
);
InOutPosInfo
inout
=
new
InOutPosInfo
(
reviceInfo
.
WareCode
,
""
,
reviceInfo
.
PlateW
,
reviceInfo
.
PlateH
,
reviceInfo
.
IsNg
,
reviceInfo
.
PosId
,
reviceInfo
.
rfid
,
reviceInfo
.
urgentReel
);
string
logName
=
"收到流水线命令【 "
+
inout
.
ToStr
()
+
"】:"
;
bool
needUpdate
=
true
;
...
...
@@ -255,6 +255,7 @@ namespace OnlineStore.DeviceLibrary
public
int
IsDebug
=
0
;
public
string
rfid
=
""
;
public
bool
IsNg
=
false
;
public
bool
urgentReel
=
false
;
}
public
class
StoreSendBean
{
...
...
source/DeviceLibrary/model/InOutParam.cs
查看文件 @
ce605b7
...
...
@@ -74,7 +74,7 @@ namespace OnlineStore.DeviceLibrary
}
public
class
InOutPosInfo
{
public
InOutPosInfo
(
string
barcode
,
string
shelfPosId
,
int
platew
=
0
,
int
plateh
=
0
,
bool
IsNg
=
false
,
string
boxPosId
=
""
,
string
rfid
=
""
)
public
InOutPosInfo
(
string
barcode
,
string
shelfPosId
,
int
platew
=
0
,
int
plateh
=
0
,
bool
IsNg
=
false
,
string
boxPosId
=
""
,
string
rfid
=
""
,
bool
urgentReel
=
false
)
{
this
.
barcode
=
barcode
;
this
.
ShelfPosId
=
shelfPosId
;
...
...
@@ -83,6 +83,7 @@ namespace OnlineStore.DeviceLibrary
this
.
rfid
=
rfid
;
this
.
IsNg
=
IsNg
;
this
.
BoxPosId
=
boxPosId
;
this
.
urgentReel
=
urgentReel
;
}
/// <summary>
...
...
@@ -114,12 +115,22 @@ namespace OnlineStore.DeviceLibrary
/// 是否是去NG箱的料
/// </summary>
public
bool
IsNg
{
get
;
set
;
}
/// <summary>
/// 是否是去NG箱的料
/// </summary>
public
bool
urgentReel
{
get
;
set
;
}
public
string
ToStr
()
{
if
(
IsNg
)
{
return
$
" 门口NG料 [{ barcode }] [{ ShelfPosId }] [{PlateW }x{ PlateH }],boxPos[{ BoxPosId }],rfid [{ rfid}]"
;
}
else
if
(
urgentReel
)
{
return
$
" 门口紧急料 [{ barcode }] [{ ShelfPosId }] [{PlateW }x{ PlateH }],boxPos[{ BoxPosId }],rfid [{ rfid}]"
;
}
else
{
return
$
" 门口物料 [{ barcode }] [{ ShelfPosId }] [{PlateW }x{ PlateH }],boxPos[{ BoxPosId }],rfid [{ rfid}]"
;
...
...
@@ -128,7 +139,7 @@ namespace OnlineStore.DeviceLibrary
internal
bool
IsSameWare
(
InOutPosInfo
posInfo
)
{
if
(
BoxPosId
.
Equals
(
posInfo
.
BoxPosId
)
&&
barcode
.
Equals
(
posInfo
.
barcode
)
&&
rfid
.
Equals
(
posInfo
.
rfid
)
&&
IsNg
.
Equals
(
posInfo
.
IsNg
))
if
(
BoxPosId
.
Equals
(
posInfo
.
BoxPosId
)
&&
barcode
.
Equals
(
posInfo
.
barcode
)
&&
rfid
.
Equals
(
posInfo
.
rfid
)
&&
IsNg
.
Equals
(
posInfo
.
IsNg
)
&&
urgentReel
.
Equals
(
posInfo
.
urgentReel
)
)
{
return
true
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论