Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-VMILineClient
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b52de064
由
LN
编写于
2020-02-13 15:55:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增机暂停按钮
1 个父辈
0ca7cebf
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
27 行增加
和
0 行删除
source/DeviceLibrary/acVmiLine/VMILineBean.cs
source/VMILineClient/FrmVMIClient.Designer.cs
source/VMILineClient/FrmVMIClient.cs
source/DeviceLibrary/acVmiLine/VMILineBean.cs
查看文件 @
b52de06
...
...
@@ -202,8 +202,13 @@ namespace OnlineStore.DeviceLibrary
private
bool
InProcess
=
false
;
private
Stopwatch
stopwatch
=
new
Stopwatch
();
public
bool
MoveStop
=
false
;
protected
void
timersTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
{
if
(
MoveStop
)
{
return
;
}
if
(
InProcess
&&
stopwatch
.
Elapsed
.
TotalSeconds
<
5
)
{
return
;
...
...
source/VMILineClient/FrmVMIClient.Designer.cs
查看文件 @
b52de06
...
...
@@ -67,6 +67,7 @@
this
.
btnDis
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnInit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
chbMoveStop
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
groupBox3
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
contextMenuStrip1
.
SuspendLayout
();
...
...
@@ -134,6 +135,7 @@
//
this
.
panel1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
panel1
.
Controls
.
Add
(
this
.
chbMoveStop
);
this
.
panel1
.
Controls
.
Add
(
this
.
lblInfo
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnVmiExit
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnVmiStart
);
...
...
@@ -578,6 +580,19 @@
this
.
button1
.
Text
=
"NeedEntry"
;
this
.
button1
.
UseVisualStyleBackColor
=
true
;
//
// chbMoveStop
//
this
.
chbMoveStop
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chbMoveStop
.
AutoSize
=
true
;
this
.
chbMoveStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbMoveStop
.
Location
=
new
System
.
Drawing
.
Point
(
665
,
10
);
this
.
chbMoveStop
.
Name
=
"chbMoveStop"
;
this
.
chbMoveStop
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
24
);
this
.
chbMoveStop
.
TabIndex
=
274
;
this
.
chbMoveStop
.
Text
=
"暂停运动"
;
this
.
chbMoveStop
.
UseVisualStyleBackColor
=
true
;
this
.
chbMoveStop
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
chbMoveStop_CheckedChanged
);
//
// FrmVMIClient
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
96F
,
96F
);
...
...
@@ -657,6 +672,7 @@
private
System
.
Windows
.
Forms
.
TextBox
txtname
;
private
System
.
Windows
.
Forms
.
TextBox
txtShelfId
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
CheckBox
chbMoveStop
;
}
}
source/VMILineClient/FrmVMIClient.cs
查看文件 @
b52de06
...
...
@@ -406,5 +406,11 @@ namespace OnlineStore.VMILineClient
}
vmiLine
.
StopIOMove
(
iotype
,
value
);
}
private
void
chbMoveStop_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
vmiLine
.
MoveStop
=
chbMoveStop
.
Checked
;
LogUtil
.
info
(
vmiLine
.
Name
+
"用户切换是否暂停: "
+
vmiLine
.
MoveStop
);
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论