Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO908-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0da9290e
由
张东亮
编写于
2021-09-07 13:18:31 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge branch 'master' of
http://106.15.194.121:8083/lina/SO908-XLRStore
2 个父辈
7794e5e5
ad492ae2
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
25 行增加
和
9 行删除
source/DeviceLibrary/manager/model/DeviceBase.cs
source/DeviceLibrary/storeBean/EquipBase.cs
source/DeviceLibrary/storeBean/XLRStoreBean.cs
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
source/XLRStoreClient/FrmXLRStore.cs
source/DeviceLibrary/manager/model/DeviceBase.cs
查看文件 @
0da9290
...
@@ -13,6 +13,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -13,6 +13,7 @@ namespace OnlineStore.DeviceLibrary
{
{
public
abstract
class
DeviceBase
public
abstract
class
DeviceBase
{
{
public
DateTime
LastAlarmTime
=
DateTime
.
Now
;
public
RunStatus
runStatus
=
RunStatus
.
Wait
;
public
RunStatus
runStatus
=
RunStatus
.
Wait
;
public
string
WarnMsg
=
""
;
public
string
WarnMsg
=
""
;
...
...
source/DeviceLibrary/storeBean/EquipBase.cs
查看文件 @
0da9290
...
@@ -42,6 +42,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -42,6 +42,10 @@ namespace OnlineStore.DeviceLibrary
{
{
LastAlarmTime
=
DateTime
.
Now
;
LastAlarmTime
=
DateTime
.
Now
;
}
}
if
(
alarmType
.
Equals
(
AlarmType
.
None
).
Equals
(
false
))
{
LastAlarmTime
=
DateTime
.
Now
;
}
if
(
this
.
alarmType
.
Equals
(
alarmType
))
if
(
this
.
alarmType
.
Equals
(
alarmType
))
{
{
return
;
return
;
...
...
source/DeviceLibrary/storeBean/XLRStoreBean.cs
查看文件 @
0da9290
...
@@ -513,7 +513,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -513,7 +513,6 @@ namespace OnlineStore.DeviceLibrary
#
endregion
#
endregion
public
DateTime
LastAlarmTime
=
DateTime
.
Now
;
public
override
void
Alarm
(
AlarmType
alarmType
)
public
override
void
Alarm
(
AlarmType
alarmType
)
{
{
if
(
alarmType
.
Equals
(
AlarmType
.
None
).
Equals
(
false
))
if
(
alarmType
.
Equals
(
AlarmType
.
None
).
Equals
(
false
))
...
...
source/DeviceLibrary/storeBean/inputBean/BatchMoveBean_Partial.cs
查看文件 @
0da9290
...
@@ -24,10 +24,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -24,10 +24,10 @@ namespace OnlineStore.DeviceLibrary
{
{
return
false
;
return
false
;
}
}
if
(!
Robot
.
CanStartWork
())
//
if (!Robot.CanStartWork())
{
//
{
return
false
;
//
return false;
}
//
}
if
(
AgvClient
.
GetAction
(
Config
.
AgvName
)
==
ClientAction
.
NeedLeave
||
AgvClient
.
GetAction
(
Config
.
AgvName
)
==
ClientAction
.
MayLeave
)
if
(
AgvClient
.
GetAction
(
Config
.
AgvName
)
==
ClientAction
.
NeedLeave
||
AgvClient
.
GetAction
(
Config
.
AgvName
)
==
ClientAction
.
MayLeave
)
{
{
//WorkLog("料串入料 :等待AGV来取空料串1");
//WorkLog("料串入料 :等待AGV来取空料串1");
...
...
source/XLRStoreClient/FrmXLRStore.cs
查看文件 @
0da9290
...
@@ -467,12 +467,24 @@ namespace OnlineStore.XLRStore
...
@@ -467,12 +467,24 @@ namespace OnlineStore.XLRStore
lblStatus
.
Text
=
StoreBean
.
GetRunStr
()
+
canScanCode
;
lblStatus
.
Text
=
StoreBean
.
GetRunStr
()
+
canScanCode
;
string
warnMsg
=
""
;
string
warnMsg
=
""
;
if
(
StoreManager
.
XLRStore
.
runStatus
>
RunStatus
.
Wait
)
List
<
DeviceBase
>
deviceBases
=
new
List
<
DeviceBase
>()
{
StoreManager
.
XLRStore
,
StoreManager
.
XLRStore
.
inputEquip
,
StoreManager
.
XLRStore
.
boxEquip
};
//if (StoreManager.XLRStore.runStatus > RunStatus.Wait)
//{
// string time = StoreManager.XLRStore.alarmType.Equals(AlarmType.None) ? "" : StoreManager.XLRStore.LastAlarmTime.ToLongTimeString();
// warnMsg = StoreManager.XLRStore.WarnMsg.Equals("") ? "" : (time + StoreManager.XLRStore.WarnMsg + "\r\n");
//}
foreach
(
DeviceBase
device
in
deviceBases
)
{
{
string
time
=
StoreManager
.
XLRStore
.
alarmType
.
Equals
(
AlarmType
.
None
)
?
""
:
StoreManager
.
XLRStore
.
LastAlarmTime
.
ToLongTimeString
();
if
(
device
.
runStatus
>
RunStatus
.
Wait
)
warnMsg
=
StoreManager
.
XLRStore
.
WarnMsg
.
Equals
(
""
)
?
""
:
(
time
+
StoreManager
.
XLRStore
.
WarnMsg
+
"\r\n"
);
{
if
(!
device
.
WarnMsg
.
Equals
(
""
))
{
string
time
=
device
.
alarmType
.
Equals
(
AlarmType
.
None
)
?
""
:
device
.
LastAlarmTime
.
ToLongTimeString
();
warnMsg
+=
device
.
WarnMsg
.
Equals
(
""
)
?
""
:
(
time
+
device
.
WarnMsg
+
"\r\n"
);
}
}
}
}
lblWarnMsg
.
Text
=
warnMsg
;
lblWarnMsg
.
Text
=
warnMsg
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论