Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-HCSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e867fe81
由
LN
编写于
2021-05-25 13:40:31 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加暂停运动选项
1 个父辈
a0f57fba
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
11 行删除
dll/camera/Asa.Camera.VisionLib.dll
source/DeviceLibrary/acSingleStore/BoxBean.cs
source/HCSingleStore/FrmBox.Designer.cs
source/HCSingleStore/FrmBox.cs
dll/camera/Asa.Camera.VisionLib.dll
查看文件 @
e867fe8
此文件类型无法预览
source/DeviceLibrary/acSingleStore/BoxBean.cs
查看文件 @
e867fe8
...
...
@@ -31,7 +31,7 @@ namespace OnlineStore.DeviceLibrary
private
System
.
Timers
.
Timer
serverConnectTimer
=
new
System
.
Timers
.
Timer
();
private
System
.
Timers
.
Timer
IoCheckTimer
=
new
System
.
Timers
.
Timer
();
private
System
.
Timers
.
Timer
readDITimer
=
new
System
.
Timers
.
Timer
();
public
bool
MoveStop
=
false
;
public
BoxBean
(
BoxConfig
config
)
{
...
...
@@ -748,8 +748,11 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveInfo
.
MoveType
!=
StoreMoveType
.
None
)
{
BusyMoveProcess
();
ShowTimeLog
(
"BusyMoveProcess"
);
if
(!
MoveStop
)
{
BusyMoveProcess
();
ShowTimeLog
(
"BusyMoveProcess"
);
}
}
else
if
(
storeRunStatus
.
Equals
(
StoreRunStatus
.
Runing
))
{
...
...
source/HCSingleStore/FrmBox.Designer.cs
查看文件 @
e867fe8
...
...
@@ -142,6 +142,7 @@
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox5
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
chbStop
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage2
.
SuspendLayout
();
this
.
groupBox1
.
SuspendLayout
();
...
...
@@ -267,6 +268,7 @@
//
// tabPage2
//
this
.
tabPage2
.
Controls
.
Add
(
this
.
chbStop
);
this
.
tabPage2
.
Controls
.
Add
(
this
.
btnImgSave
);
this
.
tabPage2
.
Controls
.
Add
(
this
.
btnFcomp
);
this
.
tabPage2
.
Controls
.
Add
(
this
.
btnForig
);
...
...
@@ -295,7 +297,7 @@
this
.
btnImgSave
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnImgSave
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnImgSave
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnImgSave
.
Location
=
new
System
.
Drawing
.
Point
(
278
,
55
0
);
this
.
btnImgSave
.
Location
=
new
System
.
Drawing
.
Point
(
278
,
55
4
);
this
.
btnImgSave
.
Name
=
"btnImgSave"
;
this
.
btnImgSave
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnImgSave
.
TabIndex
=
284
;
...
...
@@ -308,7 +310,7 @@
this
.
btnFcomp
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnFcomp
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnFcomp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnFcomp
.
Location
=
new
System
.
Drawing
.
Point
(
132
,
55
0
);
this
.
btnFcomp
.
Location
=
new
System
.
Drawing
.
Point
(
132
,
55
4
);
this
.
btnFcomp
.
Name
=
"btnFcomp"
;
this
.
btnFcomp
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnFcomp
.
TabIndex
=
283
;
...
...
@@ -321,7 +323,7 @@
this
.
btnForig
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnForig
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnForig
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnForig
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
55
0
);
this
.
btnForig
.
Location
=
new
System
.
Drawing
.
Point
(
20
,
55
4
);
this
.
btnForig
.
Name
=
"btnForig"
;
this
.
btnForig
.
Size
=
new
System
.
Drawing
.
Size
(
105
,
38
);
this
.
btnForig
.
TabIndex
=
282
;
...
...
@@ -335,7 +337,7 @@
this
.
lblLSend
.
AutoSize
=
true
;
this
.
lblLSend
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblLSend
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblLSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
49
3
);
this
.
lblLSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
49
7
);
this
.
lblLSend
.
Name
=
"lblLSend"
;
this
.
lblLSend
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lblLSend
.
TabIndex
=
280
;
...
...
@@ -346,7 +348,7 @@
this
.
lblSend
.
AutoSize
=
true
;
this
.
lblSend
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblSend
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
5
17
);
this
.
lblSend
.
Location
=
new
System
.
Drawing
.
Point
(
13
,
5
21
);
this
.
lblSend
.
Name
=
"lblSend"
;
this
.
lblSend
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lblSend
.
TabIndex
=
278
;
...
...
@@ -386,7 +388,7 @@
this
.
groupBox1
.
Controls
.
Add
(
this
.
label43
);
this
.
groupBox1
.
Controls
.
Add
(
this
.
label42
);
this
.
groupBox1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
505
,
34
0
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
505
,
34
4
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
476
,
136
);
this
.
groupBox1
.
TabIndex
=
217
;
...
...
@@ -566,7 +568,7 @@
this
.
groupBox2
.
Controls
.
Add
(
this
.
button6
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button3
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button5
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
398
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
402
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
476
,
78
);
this
.
groupBox2
.
TabIndex
=
276
;
...
...
@@ -612,7 +614,7 @@
this
.
lblTemp
.
AutoSize
=
true
;
this
.
lblTemp
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblTemp
.
ForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
lblTemp
.
Location
=
new
System
.
Drawing
.
Point
(
420
,
22
);
this
.
lblTemp
.
Location
=
new
System
.
Drawing
.
Point
(
535
,
22
);
this
.
lblTemp
.
Name
=
"lblTemp"
;
this
.
lblTemp
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
20
);
this
.
lblTemp
.
TabIndex
=
275
;
...
...
@@ -1736,6 +1738,18 @@
this
.
tableLayoutPanel2
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
297
);
this
.
tableLayoutPanel2
.
TabIndex
=
103
;
//
// chbStop
//
this
.
chbStop
.
AutoSize
=
true
;
this
.
chbStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbStop
.
Location
=
new
System
.
Drawing
.
Point
(
415
,
20
);
this
.
chbStop
.
Name
=
"chbStop"
;
this
.
chbStop
.
Size
=
new
System
.
Drawing
.
Size
(
93
,
25
);
this
.
chbStop
.
TabIndex
=
285
;
this
.
chbStop
.
Text
=
"暂停运动"
;
this
.
chbStop
.
UseVisualStyleBackColor
=
true
;
this
.
chbStop
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
chbStop_CheckedChanged
);
//
// FrmBox
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -1894,6 +1908,7 @@
private
System
.
Windows
.
Forms
.
Button
btnFcomp
;
private
System
.
Windows
.
Forms
.
Button
btnForig
;
private
System
.
Windows
.
Forms
.
Button
btnImgSave
;
private
System
.
Windows
.
Forms
.
CheckBox
chbStop
;
}
}
source/HCSingleStore/FrmBox.cs
查看文件 @
e867fe8
...
...
@@ -39,6 +39,7 @@ namespace OnlineStore.ACSingleStore
LoadStore
();
chbDebug
.
Checked
=
boxBean
.
IsDebug
;
chbStop
.
Checked
=
boxBean
.
MoveStop
;
this
.
ShowInTaskbar
=
true
;
tabPage2
.
Text
=
" 设备["
+
boxBean
.
CID
+
"]状态 "
;
this
.
Opacity
=
1
;
...
...
@@ -1176,5 +1177,16 @@ namespace OnlineStore.ACSingleStore
string
msg
=
boxBean
.
CamerSaveImg
();
MessageBox
.
Show
(
msg
);
}
private
void
chbStop_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
LoadOk
)
{
return
;
}
boxBean
.
MoveStop
=
chbStop
.
Checked
;
LogUtil
.
info
(
boxBean
.
Name
+
"用户切换是否暂停: "
+
boxBean
.
MoveStop
);
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论