Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO1057_XLC_Store
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9b7d6fbc
由
张东亮
编写于
2025-04-24 13:48:25 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加立即处理状态
1 个父辈
85f89f2e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
23 行增加
和
7 行删除
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
DeviceLibrary/theMachine/Common.cs
DeviceLibrary/theMachine/RobotManage.cs
TheMachine/Form1.cs
DeviceLibrary/DeviceLibrary/ServerCommunication.cs
查看文件 @
9b7d6fb
...
...
@@ -93,6 +93,8 @@ namespace DeviceLibrary
return
"W="
;
case
MsgLevel
.
alarm
:
return
"A="
;
case
MsgLevel
.
critical
:
return
"C="
;
}
return
""
;
...
...
DeviceLibrary/theMachine/Common.cs
查看文件 @
9b7d6fb
...
...
@@ -347,7 +347,8 @@ namespace DeviceLibrary
warning
,
info
,
alarm
alarm
,
critical
,
}
public
enum
ErrInfo
{
...
...
DeviceLibrary/theMachine/RobotManage.cs
查看文件 @
9b7d6fb
...
...
@@ -153,20 +153,33 @@ namespace DeviceLibrary
}
public
static
void
UserPause
(
bool
userpause
)
{
UserPause
(
""
,
userpause
);
UserPause
(
""
,
userpause
,
false
);
}
public
static
void
UserPause
(
string
msg
=
""
,
bool
userpause
=
true
)
{
UserPauseSet
?.
Invoke
(
null
,
userpause
);
mainMachine
.
UserPause
=
userpause
;
public
static
void
UserPause
(
string
msg
=
""
,
bool
userpause
=
true
,
bool
upload
=
true
)
{
if
(
userpause
)
{
if
(
string
.
IsNullOrEmpty
(
msg
))
{
if
(
upload
)
{
Msg
.
add
(
"用户暂停"
,
MsgLevel
.
critical
);
}
LogUtil
.
info
(
"用户暂停"
);
}
else
LogUtil
.
info
(
"系统暂停: "
+
msg
);
{
if
(
upload
)
{
Msg
.
add
(
"系统暂停: "
+
msg
,
MsgLevel
.
critical
);
}
LogUtil
.
info
(
"系统暂停: "
+
msg
);
}
}
else
LogUtil
.
info
(
"用户取消暂停"
);
UserPauseSet
?.
Invoke
(
null
,
userpause
);
mainMachine
.
UserPause
=
userpause
;
}
public
static
void
IgnoreSafecheck
(
bool
s
)
{
...
...
TheMachine/Form1.cs
查看文件 @
9b7d6fb
...
...
@@ -468,7 +468,7 @@ namespace TheMachine
private
void
btn_opendoor_Click
(
object
sender
,
EventArgs
e
)
{
LogUtil
.
info
(
"用户点击打开舱门"
);
RobotManage
.
UserPause
(
true
);
RobotManage
.
UserPause
(
"打开舱门"
,
true
);
FrmReleaseDoor
frmReleaseDoor
=
new
FrmReleaseDoor
();
frmReleaseDoor
.
ShowDialog
();
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论