Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO908-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 502c2435
由
张东亮
编写于
2023-09-20 09:13:43 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
调试逻辑修改
1 个父辈
367d54f3
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
28 行增加
和
7 行删除
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
查看文件 @
502c243
...
@@ -48,6 +48,7 @@ namespace OnlineStore.XLRStore
...
@@ -48,6 +48,7 @@ namespace OnlineStore.XLRStore
FrmPosDebug
frmPosDebug
=
new
FrmPosDebug
();
FrmPosDebug
frmPosDebug
=
new
FrmPosDebug
();
AddForm
(
tabControl1
,
" 库位调试 "
,
frmPosDebug
);
AddForm
(
tabControl1
,
" 库位调试 "
,
frmPosDebug
);
boxBean
.
camera_event
+=
BoxBean_camera_event
;
boxBean
.
camera_event
+=
BoxBean_camera_event
;
btnDebugAxis
.
Enabled
=
!
boxBean
.
IsDebug
;
IsLoad
=
true
;
IsLoad
=
true
;
}
}
/// <summary>
/// <summary>
...
@@ -398,6 +399,11 @@ namespace OnlineStore.XLRStore
...
@@ -398,6 +399,11 @@ namespace OnlineStore.XLRStore
}
}
private
void
btnStart_Click
(
object
sender
,
EventArgs
e
)
private
void
btnStart_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
boxBean
.
IsDebug
)
{
MessageBox
.
Show
(
"调试模式不允许启动!"
);
return
;
}
if
(
boxBean
.
runStatus
.
Equals
(
RunStatus
.
Wait
))
if
(
boxBean
.
runStatus
.
Equals
(
RunStatus
.
Wait
))
{
{
LogUtil
.
info
(
boxBean
.
Name
+
"点击:启用调试"
);
LogUtil
.
info
(
boxBean
.
Name
+
"点击:启用调试"
);
...
@@ -448,8 +454,12 @@ namespace OnlineStore.XLRStore
...
@@ -448,8 +454,12 @@ namespace OnlineStore.XLRStore
{
{
if
(!
boxBean
.
IsDebug
)
if
(!
boxBean
.
IsDebug
)
{
{
DialogResult
result
=
MessageBox
.
Show
(
"是否切换到调试状态?"
,
"是否确认切换"
,
MessageBoxButtons
.
YesNo
,
MessageBoxIcon
.
Question
,
MessageBoxDefaultButton
.
Button1
);
if
(!
boxBean
.
runStatus
.
Equals
(
RunStatus
.
Wait
))
if
(
result
.
Equals
(
DialogResult
.
Yes
))
{
MessageBox
.
Show
(
"请先停止设备再切换为调试模式!"
);
chbDebug
.
Checked
=
false
;
}
else
{
{
boxBean
.
IsDebug
=
true
;
boxBean
.
IsDebug
=
true
;
boxBean
.
Config
.
IsDebug
=
1
;
boxBean
.
Config
.
IsDebug
=
1
;
...
@@ -457,10 +467,19 @@ namespace OnlineStore.XLRStore
...
@@ -457,10 +467,19 @@ namespace OnlineStore.XLRStore
boxBean
.
ChangeDebug
(
true
);
boxBean
.
ChangeDebug
(
true
);
LogUtil
.
info
(
boxBean
.
Name
+
"用户切换到调试状态 "
);
LogUtil
.
info
(
boxBean
.
Name
+
"用户切换到调试状态 "
);
}
}
else
//DialogResult result = MessageBox.Show("是否切换到调试状态?", "是否确认切换", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
{
//if (result.Equals(DialogResult.Yes))
chbDebug
.
Checked
=
false
;
//{
}
// boxBean.IsDebug = true;
// boxBean.Config.IsDebug = 1;
// StoreManager.SaveBoxConfig(boxBean.Config);
// boxBean.ChangeDebug(true);
// LogUtil.info(boxBean.Name + "用户切换到调试状态 ");
//}
//else
//{
// chbDebug.Checked=false;
//}
}
}
}
}
else
else
...
@@ -482,6 +501,7 @@ namespace OnlineStore.XLRStore
...
@@ -482,6 +501,7 @@ namespace OnlineStore.XLRStore
}
}
}
}
}
}
btnDebugAxis
.
Enabled
=
!
boxBean
.
IsDebug
;
}
}
protected
void
AddForm
(
TabControl
tabcon
,
string
text
,
Form
form
)
protected
void
AddForm
(
TabControl
tabcon
,
string
text
,
Form
form
)
...
@@ -518,7 +538,8 @@ namespace OnlineStore.XLRStore
...
@@ -518,7 +538,8 @@ namespace OnlineStore.XLRStore
private
void
btnDebugAxis_Click
(
object
sender
,
EventArgs
e
)
private
void
btnDebugAxis_Click
(
object
sender
,
EventArgs
e
)
{
{
//boxBean.IsDebug
if
(
boxBean
.
IsDebug
)
return
;
FrmPwd
fw
=
new
FrmPwd
(
10
);
FrmPwd
fw
=
new
FrmPwd
(
10
);
DialogResult
result
=
fw
.
ShowDialog
();
DialogResult
result
=
fw
.
ShowDialog
();
if
(!
result
.
Equals
(
DialogResult
.
OK
))
if
(!
result
.
Equals
(
DialogResult
.
OK
))
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论