Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9cf6fb80
由
LN
编写于
2020-03-05 15:34:35 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
扫码时报错可以继续扫码
1 个父辈
e299a231
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
24 行增加
和
21 行删除
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/ResourceCulture.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
9cf6fb8
...
...
@@ -96,7 +96,7 @@
this
.
lblWarnMsg
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblThisSta
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
groupInout
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblTemp
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTemp
Str
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblMsg
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnSavePosition
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStartAuTo
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -1011,7 +1011,7 @@
//
// groupInout
//
this
.
groupInout
.
Controls
.
Add
(
this
.
lblTemp
);
this
.
groupInout
.
Controls
.
Add
(
this
.
lblTemp
Str
);
this
.
groupInout
.
Controls
.
Add
(
this
.
lblMsg
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnSavePosition
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnStartAuTo
);
...
...
@@ -1060,16 +1060,16 @@
this
.
groupInout
.
TabStop
=
false
;
this
.
groupInout
.
Text
=
"料仓操作"
;
//
// lblTemp
// lblTemp
Str
//
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
(
11
,
475
);
this
.
lblTemp
.
Name
=
"lblTemp
"
;
this
.
lblTemp
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
20
);
this
.
lblTemp
.
TabIndex
=
270
;
this
.
lblTemp
.
Text
=
"当前温度--,当前湿度--
"
;
this
.
lblTemp
Str
.
AutoSize
=
true
;
this
.
lblTemp
Str
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblTemp
Str
.
ForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
lblTemp
Str
.
Location
=
new
System
.
Drawing
.
Point
(
11
,
475
);
this
.
lblTemp
Str
.
Name
=
"lblTempStr
"
;
this
.
lblTemp
Str
.
Size
=
new
System
.
Drawing
.
Size
(
81
,
20
);
this
.
lblTemp
Str
.
TabIndex
=
270
;
this
.
lblTemp
Str
.
Text
=
"10%,23℃
"
;
//
// lblMsg
//
...
...
@@ -2064,7 +2064,7 @@
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
关闭仓门
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
回待机点
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox3
;
private
System
.
Windows
.
Forms
.
Label
lblTemp
;
private
System
.
Windows
.
Forms
.
Label
lblTemp
Str
;
private
System
.
Windows
.
Forms
.
CheckBox
chbAuto
;
private
System
.
Windows
.
Forms
.
ContextMenuStrip
contextMenuStrip1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
显示
ToolStripMenuItem
;
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
9cf6fb8
...
...
@@ -183,7 +183,7 @@ namespace OnlineStore.ACSingleStore
{
return
;
}
lblTemp
.
Text
=
store
.
currTempStr
;
lblTemp
Str
.
Text
=
store
.
currTempStr
;
//ReadPosistion();
if
(
store
.
storeRunStatus
>
StoreRunStatus
.
Wait
)
...
...
source/ACSingleStore/ResourceCulture.cs
查看文件 @
9cf6fb8
...
...
@@ -47,6 +47,7 @@ namespace OnlineStore
{
ResourceControl
.
GetChinaStringEvent
+=
GetChinaString
;
ResourceControl
.
GetEnglishStringEvent
+=
GetEnglishString
;
ResourceControl
.
GetStrEvent
+=
GetString
;
ResourceControl
.
GetStringEvent
+=
GetString
;
CSVResourceControl
.
GetStrEvent
+=
GetString
;
CSVResourceControl
.
GetStringEvent
+=
GetString
;
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
9cf6fb8
...
...
@@ -1053,7 +1053,7 @@ namespace OnlineStore.DeviceLibrary
//判断料门口是否有料
if
((
checkIO
.
Equals
(
IO_VALUE
.
HIGH
))
&&
height
>
0
&&
IOManager
.
IOValue
(
IO_Type
.
TrayCheck_Fixture
).
Equals
(
IO_VALUE
.
LOW
)&&
IsDebug
.
Equals
(
false
))
{
if
(
IsScanCode
)
if
(
!
CanStartCode
()
)
{
return
;
}
...
...
@@ -1469,20 +1469,21 @@ namespace OnlineStore.DeviceLibrary
public
void
GetCameraCode
()
{
TimeSpan
span
=
DateTime
.
Now
-
LastScanTime
;
if
(
IsScanCode
&&
(
span
.
TotalSeconds
<
12
))
if
(
CanStartCode
())
{
LogUtil
.
info
(
"上次扫码还未执行完毕,请稍后!"
);
return
;
}
IOManager
.
IOMove
(
IO_Type
.
Camera_Led
,
IO_VALUE
.
HIGH
);
LastScanTime
=
DateTime
.
Now
;
dlScanSocket
.
BeginScan
();
}
else
{
LogUtil
.
info
(
"GetCameraCode()开始扫码失败,请等待上次扫码结束"
);
}
}
private
bool
CanStartCode
()
{
TimeSpan
span
=
DateTime
.
Now
-
LastScanTime
;
if
(
IsScanCode
&&
span
.
TotalSeconds
<
1
2
)
if
(
IsScanCode
&&
span
.
TotalSeconds
<
1
0
)
{
return
false
;
}
...
...
@@ -1660,7 +1661,8 @@ namespace OnlineStore.DeviceLibrary
{
humidity
=
param
.
Humidity
;
temp
=
param
.
Temperate
;
currTempStr
=
(
"当前湿度:"
+
humidity
.
ToString
()
+
",当前温度:"
+
temp
);
currTempStr
=
humidity
+
" %,"
+
temp
+
"℃"
;
// currTempStr = ("当前湿度:" + humidity.ToString() + ",当前温度:" + temp);
}
//double currMaxHumidity = HumitureServer.GetMaxHumidity(Config.GetTempAddrList());
double
currMaxHumidity
=
param
.
Humidity
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论