Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 65c2fbdc
由
LN
编写于
2020-06-17 11:14:18 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
设备照明功能需要增加验证
1 个父辈
f4870629
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
47 行增加
和
31 行删除
source/ACSingleStore/FrmIOStatus.Designer.cs
source/ACSingleStore/FrmIOStatus.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/ACSingleStore/FrmIOStatus.Designer.cs
查看文件 @
65c2fbd
...
...
@@ -18,6 +18,8 @@
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnCloseDeviceLed
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenDeviceLed
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
radioButton2
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
radioButton1
=
new
System
.
Windows
.
Forms
.
RadioButton
();
this
.
btnDisDoorClose
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -58,8 +60,6 @@
this
.
tableLayoutPanel2
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
tableLayoutPanel1
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
btnCloseDeviceLed
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOpenDeviceLed
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox1
.
SuspendLayout
();
this
.
groupBox4
.
SuspendLayout
();
this
.
groupBox3
.
SuspendLayout
();
...
...
@@ -119,6 +119,28 @@
this
.
groupBox1
.
TabStop
=
false
;
this
.
groupBox1
.
Text
=
"DO写入"
;
//
// btnCloseDeviceLed
//
this
.
btnCloseDeviceLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseDeviceLed
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
586
);
this
.
btnCloseDeviceLed
.
Name
=
"btnCloseDeviceLed"
;
this
.
btnCloseDeviceLed
.
Size
=
new
System
.
Drawing
.
Size
(
214
,
34
);
this
.
btnCloseDeviceLed
.
TabIndex
=
272
;
this
.
btnCloseDeviceLed
.
Text
=
"关闭设备照明"
;
this
.
btnCloseDeviceLed
.
UseVisualStyleBackColor
=
true
;
this
.
btnCloseDeviceLed
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCloseDeviceLed_Click
);
//
// btnOpenDeviceLed
//
this
.
btnOpenDeviceLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDeviceLed
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
549
);
this
.
btnOpenDeviceLed
.
Name
=
"btnOpenDeviceLed"
;
this
.
btnOpenDeviceLed
.
Size
=
new
System
.
Drawing
.
Size
(
214
,
34
);
this
.
btnOpenDeviceLed
.
TabIndex
=
271
;
this
.
btnOpenDeviceLed
.
Text
=
"打开设备照明"
;
this
.
btnOpenDeviceLed
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenDeviceLed
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenDeviceLed_Click
);
//
// radioButton2
//
this
.
radioButton2
.
AutoSize
=
true
;
...
...
@@ -573,26 +595,6 @@
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
252
,
758
);
this
.
tableLayoutPanel1
.
TabIndex
=
102
;
//
// btnCloseDeviceLed
//
this
.
btnCloseDeviceLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnCloseDeviceLed
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
586
);
this
.
btnCloseDeviceLed
.
Name
=
"btnCloseDeviceLed"
;
this
.
btnCloseDeviceLed
.
Size
=
new
System
.
Drawing
.
Size
(
214
,
34
);
this
.
btnCloseDeviceLed
.
TabIndex
=
272
;
this
.
btnCloseDeviceLed
.
Text
=
"关闭设备照明"
;
this
.
btnCloseDeviceLed
.
UseVisualStyleBackColor
=
true
;
//
// btnOpenDeviceLed
//
this
.
btnOpenDeviceLed
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenDeviceLed
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
549
);
this
.
btnOpenDeviceLed
.
Name
=
"btnOpenDeviceLed"
;
this
.
btnOpenDeviceLed
.
Size
=
new
System
.
Drawing
.
Size
(
214
,
34
);
this
.
btnOpenDeviceLed
.
TabIndex
=
271
;
this
.
btnOpenDeviceLed
.
Text
=
"打开设备照明"
;
this
.
btnOpenDeviceLed
.
UseVisualStyleBackColor
=
true
;
//
// FrmIOStatus
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
...
...
source/ACSingleStore/FrmIOStatus.cs
查看文件 @
65c2fbd
...
...
@@ -344,5 +344,17 @@ namespace OnlineStore.AutoInOutStore
{
IOManager
.
IOMove
(
IO_Type
.
DisableDoorControl
,
IO_VALUE
.
LOW
);
}
private
void
btnOpenDeviceLed_Click
(
object
sender
,
EventArgs
e
)
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
HIGH
);
}
private
void
btnCloseDeviceLed_Click
(
object
sender
,
EventArgs
e
)
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
LOW
);
}
}
}
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
65c2fbd
...
...
@@ -1054,19 +1054,21 @@ namespace OnlineStore.DeviceLibrary
{
doorIsOpen
=
true
;
}
if
(
doorIsOpen
&&
Config
.
DOList
.
ContainsKey
(
IO_Type
.
Device_Led
))
if
(
Config
.
DOList
.
ContainsKey
(
IO_Type
.
Device_Led
))
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
LOW
)
)
if
(
doorIsOpen
)
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
HIGH
);
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
LOW
))
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
HIGH
);
}
}
}
else
{
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
HIGH
))
else
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
LOW
);
if
(
IOManager
.
IOValue
(
IO_Type
.
Device_Led
).
Equals
(
IO_VALUE
.
HIGH
))
{
IOManager
.
IOMove
(
IO_Type
.
Device_Led
,
IO_VALUE
.
LOW
);
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论