Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 18ded2b3
由
LN
编写于
2021-02-19 10:45:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加报警提示
1 个父辈
c18b51c8
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
26 行增加
和
4 行删除
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/server/LineServer.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
18ded2b
...
@@ -561,7 +561,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -561,7 +561,7 @@ namespace OnlineStore.DeviceLibrary
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
))
{
{
int
storeId
=
moveInfo
.
MoveParam
.
GetStoreId
();
int
storeId
=
moveInfo
.
MoveParam
.
GetStoreId
();
wait
.
IsEnd
=
LineServer
.
BoxCanReviceTray
(
storeId
);
wait
.
IsEnd
=
LineServer
.
BoxCanReviceTray
(
storeId
,
out
NotOkMsg
);
}
}
else
else
{
{
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
18ded2b
...
@@ -151,7 +151,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -151,7 +151,7 @@ namespace OnlineStore.DeviceLibrary
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W009_BoxCanInstore
))
{
{
int
storeId
=
checkWaitInfo
.
MoveParam
.
GetStoreId
();
int
storeId
=
checkWaitInfo
.
MoveParam
.
GetStoreId
();
wait
.
IsEnd
=
LineServer
.
BoxCanReviceTray
(
storeId
);
wait
.
IsEnd
=
LineServer
.
BoxCanReviceTray
(
storeId
,
out
NotOkMsg
);
}
}
//else if (wait.WaitType.Equals(WaitEnum.W010_SWCanTopUp))
//else if (wait.WaitType.Equals(WaitEnum.W010_SWCanTopUp))
//{
//{
...
...
source/DeviceLibrary/server/LineServer.cs
查看文件 @
18ded2b
...
@@ -120,12 +120,29 @@ namespace OnlineStore.DeviceLibrary
...
@@ -120,12 +120,29 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
/// <param name="id"></param>
/// <param name="id"></param>
/// <returns></returns>
/// <returns></returns>
public
static
bool
BoxCanReviceTray
(
int
id
)
public
static
bool
BoxCanReviceTray
(
int
id
,
out
string
NotOkMsg
)
{
{
NotOkMsg
=
" [料仓"
+
id
+
"可以入库:离线] "
;
BoxInfo
box
=
GetBoxInfo
(
id
);
BoxInfo
box
=
GetBoxInfo
(
id
);
if
(
box
!=
null
)
if
(
box
!=
null
)
{
{
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
if
(
span
.
TotalSeconds
>
ClientKeepSecond
)
{
NotOkMsg
=
" [料仓"
+
id
+
"可以入库:离线] "
;
return
false
;
}
else
if
(!
box
.
HasTray
.
Equals
(
0
))
{
NotOkMsg
=
" [料仓"
+
id
+
"可以入库:仓门口有料] "
;
return
false
;
}
else
if
(!
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
{
NotOkMsg
=
" [料仓"
+
id
+
"可以入库:报警中] "
;
return
false
;
}
if
(
span
.
TotalSeconds
<
ClientKeepSecond
&&
box
.
HasTray
.
Equals
(
0
)
&&
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
span
.
TotalSeconds
<
ClientKeepSecond
&&
box
.
HasTray
.
Equals
(
0
)
&&
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
{
{
LineRunStatus
runs
=
(
LineRunStatus
)
box
.
SRunStatus
;
LineRunStatus
runs
=
(
LineRunStatus
)
box
.
SRunStatus
;
...
@@ -134,7 +151,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -134,7 +151,12 @@ namespace OnlineStore.DeviceLibrary
{
{
return
true
;
return
true
;
}
}
else
{
NotOkMsg
=
" [料仓"
+
id
+
"可以入库:忙碌中] "
;
}
}
}
}
}
return
false
;
return
false
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论