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