Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-OutletEquip
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 056990ed
由
LN
编写于
2021-03-27 14:23:03 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加出库模拟功能
1 个父辈
523d9c9a
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
76 行增加
和
23 行删除
source/DeviceLibrary/bean/EquipBean.cs
source/DeviceLibrary/bean/EquipBean_Partial.cs
source/DeviceLibrary/lineConnect/LineConnect.cs
source/DeviceLibrary/mananger/HttpServer.cs
source/HCSingleStore/FrmEquip.Designer.cs
source/HCSingleStore/FrmEquip.cs
source/DeviceLibrary/bean/EquipBean.cs
查看文件 @
056990e
...
@@ -968,7 +968,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -968,7 +968,7 @@ namespace OnlineStore.DeviceLibrary
return
false
;
return
false
;
}
}
if
(
lineConn
.
CanStartOut
())
if
(
lineConn
.
CanStartOut
()
&&(!
IsDebug
)
)
{
{
return
true
;
return
true
;
}
}
...
...
source/DeviceLibrary/bean/EquipBean_Partial.cs
查看文件 @
056990e
...
@@ -566,6 +566,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -566,6 +566,7 @@ namespace OnlineStore.DeviceLibrary
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosInfo
.
ShelfPosId
:
""
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosInfo
.
ShelfPosId
:
""
;
LogInfo
(
" 【"
+
posId
+
"】 整个流程结束,耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】!"
);
LogInfo
(
" 【"
+
posId
+
"】 整个流程结束,耗时【"
+
FormUtil
.
GetSpanStr
(
span
)
+
"】!"
);
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
storeStatus
=
StoreStatus
.
StoreOnline
;
storeRunStatus
=
StoreRunStatus
.
Runing
;
storeRunStatus
=
StoreRunStatus
.
Runing
;
}
}
#
endregion
#
endregion
...
...
source/DeviceLibrary/lineConnect/LineConnect.cs
查看文件 @
056990e
...
@@ -112,7 +112,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -112,7 +112,7 @@ namespace OnlineStore.DeviceLibrary
return
JsonHelper
.
SerializeObject
(
store
)
+
"\r"
;
return
JsonHelper
.
SerializeObject
(
store
)
+
"\r"
;
}
}
p
rivate
void
HandlerMsg
(
string
message
)
p
ublic
void
HandlerMsg
(
string
message
)
{
{
try
try
{
{
...
@@ -131,19 +131,30 @@ namespace OnlineStore.DeviceLibrary
...
@@ -131,19 +131,30 @@ namespace OnlineStore.DeviceLibrary
if
(
cmd
.
Equals
(
cmd_startIn
))
if
(
cmd
.
Equals
(
cmd_startIn
))
{
{
LogUtil
.
info
(
"["
+
CID
+
"]收到流水线消息:"
+
message
);
LogUtil
.
info
(
"["
+
CID
+
"]收到流水线消息:"
+
message
);
InOutPosInfo
inout
=
new
InOutPosInfo
(
reviceInfo
.
WareCode
,
""
,
reviceInfo
.
PlateH
,
reviceInfo
.
PlateW
,
reviceInfo
.
IsNg
,
reviceInfo
.
PosId
,
reviceInfo
.
rfid
);
InOutPosInfo
inout
=
new
InOutPosInfo
(
reviceInfo
.
WareCode
,
""
,
reviceInfo
.
PlateH
,
reviceInfo
.
PlateW
,
reviceInfo
.
IsNg
,
reviceInfo
.
PosId
,
reviceInfo
.
rfid
);
string
logName
=
"收到流水线命令【 "
+
inout
.
ToStr
()
+
"】:"
;
string
logName
=
"收到流水线命令【 "
+
inout
.
ToStr
()
+
"】:"
;
if
(
DoorPosInfo
!=
null
)
if
(
DoorPosInfo
!=
null
)
{
{
LogUtil
.
error
(
logName
+
",清理DoorPosInfo:"
+
DoorPosInfo
.
ToStr
());
DoorPosInfo
=
null
;
}
//如果信息一直,不需要处理
if
(
inout
.
BoxPosId
.
Equals
(
DoorPosInfo
.
BoxPosId
)
&&
inout
.
barcode
.
Equals
(
DoorPosInfo
.
barcode
)
&&
inout
.
ShelfPosId
.
Equals
(
DoorPosInfo
.
ShelfPosId
)
&&
inout
.
IsNg
.
Equals
(
DoorPosInfo
.
IsNg
))
{
}
else
{
LogUtil
.
error
(
logName
+
",清理DoorPosInfo:"
+
DoorPosInfo
.
ToStr
()
+
",把新数据缓存到DoorPosInfo中"
);
DoorPosInfo
=
inout
;
}
}
else
{
//直接存入缓存
//直接存入缓存
LogUtil
.
error
(
logName
+
"缓存到DoorPosInfo中"
);
LogUtil
.
info
(
logName
+
"缓存到DoorPosInfo中"
);
DoorPosInfo
=
inout
;
DoorPosInfo
=
inout
;
}
}
}
else
if
(
cmd
.
Equals
(
cmd_updateDebug
))
else
if
(
cmd
.
Equals
(
cmd_updateDebug
))
{
{
int
isDebug
=
reviceInfo
.
IsDebug
;
int
isDebug
=
reviceInfo
.
IsDebug
;
...
...
source/DeviceLibrary/mananger/HttpServer.cs
查看文件 @
056990e
...
@@ -187,7 +187,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -187,7 +187,7 @@ namespace OnlineStore.DeviceLibrary
string
logName
=
"http :URL:"
+
url
+
" , "
;
string
logName
=
"http :URL:"
+
url
+
" , "
;
DateTime
startTime
=
DateTime
.
Now
;
DateTime
startTime
=
DateTime
.
Now
;
string
json
=
HttpHelper
.
Post
(
url
,
""
,
10000
);
string
json
=
HttpHelper
.
Post
(
url
,
""
,
10000
);
LogUtil
.
debug
(
logName
+
",Response:"
+
json
+
",耗时【"
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
"】"
);
LogUtil
.
info
(
logName
+
",Response:"
+
json
+
",耗时【"
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
"】"
);
if
(
string
.
IsNullOrWhiteSpace
(
json
))
if
(
string
.
IsNullOrWhiteSpace
(
json
))
{
{
return
tray
;
return
tray
;
...
...
source/HCSingleStore/FrmEquip.Designer.cs
查看文件 @
056990e
...
@@ -132,6 +132,8 @@
...
@@ -132,6 +132,8 @@
this
.
toolStripSeparator15
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripSeparator15
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripSeparator16
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripSeparator16
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripSeparator17
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
toolStripSeparator17
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
txtMoni
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnMoni
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage2
.
SuspendLayout
();
this
.
tabPage2
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
...
@@ -206,7 +208,7 @@
...
@@ -206,7 +208,7 @@
this
.
logBox
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
logBox
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
127
);
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
127
);
this
.
logBox
.
Name
=
"logBox"
;
this
.
logBox
.
Name
=
"logBox"
;
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
970
,
438
);
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
970
,
311
);
this
.
logBox
.
TabIndex
=
278
;
this
.
logBox
.
TabIndex
=
278
;
this
.
logBox
.
Text
=
""
;
this
.
logBox
.
Text
=
""
;
this
.
logBox
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
logBox_VisibleChanged
);
this
.
logBox
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
logBox_VisibleChanged
);
...
@@ -225,48 +227,54 @@
...
@@ -225,48 +227,54 @@
//
//
// groupBox2
// groupBox2
//
//
this
.
groupBox2
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
groupBox2
.
Controls
.
Add
(
this
.
btnMoni
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
txtMoni
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button6
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button6
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button3
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button3
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button5
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
button5
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
460
,
82
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
481
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
476
,
78
);
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
968
,
78
);
this
.
groupBox2
.
TabIndex
=
276
;
this
.
groupBox2
.
TabIndex
=
276
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"流水线通信测试"
;
this
.
groupBox2
.
Text
=
"流水线通信测试"
;
this
.
groupBox2
.
Visible
=
false
;
//
//
// button6
// button6
//
//
this
.
button6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button6
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
32
);
this
.
button6
.
Location
=
new
System
.
Drawing
.
Point
(
235
,
0
);
this
.
button6
.
Name
=
"button6"
;
this
.
button6
.
Name
=
"button6"
;
this
.
button6
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
button6
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
button6
.
TabIndex
=
275
;
this
.
button6
.
TabIndex
=
275
;
this
.
button6
.
Text
=
"发送"
;
this
.
button6
.
Text
=
"发送"
;
this
.
button6
.
UseVisualStyleBackColor
=
true
;
this
.
button6
.
UseVisualStyleBackColor
=
true
;
this
.
button6
.
Visible
=
false
;
this
.
button6
.
Click
+=
new
System
.
EventHandler
(
this
.
button6_Click
);
this
.
button6
.
Click
+=
new
System
.
EventHandler
(
this
.
button6_Click
);
//
//
// button3
// button3
//
//
this
.
button3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button3
.
Location
=
new
System
.
Drawing
.
Point
(
64
,
31
);
this
.
button3
.
Location
=
new
System
.
Drawing
.
Point
(
23
,
0
);
this
.
button3
.
Name
=
"button3"
;
this
.
button3
.
Name
=
"button3"
;
this
.
button3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
button3
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
button3
.
TabIndex
=
273
;
this
.
button3
.
TabIndex
=
273
;
this
.
button3
.
Text
=
"连接"
;
this
.
button3
.
Text
=
"连接"
;
this
.
button3
.
UseVisualStyleBackColor
=
true
;
this
.
button3
.
UseVisualStyleBackColor
=
true
;
this
.
button3
.
Visible
=
false
;
this
.
button3
.
Click
+=
new
System
.
EventHandler
(
this
.
button3_Click
);
this
.
button3
.
Click
+=
new
System
.
EventHandler
(
this
.
button3_Click
);
//
//
// button5
// button5
//
//
this
.
button5
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button5
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
button5
.
Location
=
new
System
.
Drawing
.
Point
(
1
93
,
32
);
this
.
button5
.
Location
=
new
System
.
Drawing
.
Point
(
1
29
,
0
);
this
.
button5
.
Name
=
"button5"
;
this
.
button5
.
Name
=
"button5"
;
this
.
button5
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
button5
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
button5
.
TabIndex
=
274
;
this
.
button5
.
TabIndex
=
274
;
this
.
button5
.
Text
=
"停止"
;
this
.
button5
.
Text
=
"停止"
;
this
.
button5
.
UseVisualStyleBackColor
=
true
;
this
.
button5
.
UseVisualStyleBackColor
=
true
;
this
.
button5
.
Visible
=
false
;
this
.
button5
.
Click
+=
new
System
.
EventHandler
(
this
.
button5_Click
);
this
.
button5
.
Click
+=
new
System
.
EventHandler
(
this
.
button5_Click
);
//
//
// lblThisSta
// lblThisSta
...
@@ -1233,19 +1241,19 @@
...
@@ -1233,19 +1241,19 @@
// toolStripMenuItem2
// toolStripMenuItem2
//
//
this
.
toolStripMenuItem2
.
Name
=
"toolStripMenuItem2"
;
this
.
toolStripMenuItem2
.
Name
=
"toolStripMenuItem2"
;
this
.
toolStripMenuItem2
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
toolStripMenuItem2
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
toolStripMenuItem2
.
Text
=
"启用调试"
;
this
.
toolStripMenuItem2
.
Text
=
"启用调试"
;
this
.
toolStripMenuItem2
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem2_Click
);
this
.
toolStripMenuItem2
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem2_Click
);
//
//
// toolStripSeparator6
// toolStripSeparator6
//
//
this
.
toolStripSeparator6
.
Name
=
"toolStripSeparator6"
;
this
.
toolStripSeparator6
.
Name
=
"toolStripSeparator6"
;
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
//
//
// 板卡调试ToolStripMenuItem
// 板卡调试ToolStripMenuItem
//
//
this
.
板卡调试
ToolStripMenuItem
.
Name
=
"板卡调试ToolStripMenuItem"
;
this
.
板卡调试
ToolStripMenuItem
.
Name
=
"板卡调试ToolStripMenuItem"
;
this
.
板卡调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
板卡调试
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
板卡调试
ToolStripMenuItem
.
Text
=
"板卡调试"
;
this
.
板卡调试
ToolStripMenuItem
.
Text
=
"板卡调试"
;
this
.
板卡调试
ToolStripMenuItem
.
Visible
=
false
;
this
.
板卡调试
ToolStripMenuItem
.
Visible
=
false
;
this
.
板卡调试
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
板卡调试
ToolStripMenuItem_Click
);
this
.
板卡调试
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
板卡调试
ToolStripMenuItem_Click
);
...
@@ -1253,25 +1261,25 @@
...
@@ -1253,25 +1261,25 @@
// toolStripSeparator7
// toolStripSeparator7
//
//
this
.
toolStripSeparator7
.
Name
=
"toolStripSeparator7"
;
this
.
toolStripSeparator7
.
Name
=
"toolStripSeparator7"
;
this
.
toolStripSeparator7
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
this
.
toolStripSeparator7
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
this
.
toolStripSeparator7
.
Visible
=
false
;
this
.
toolStripSeparator7
.
Visible
=
false
;
//
//
// 打开设备照明ToolStripMenuItem
// 打开设备照明ToolStripMenuItem
//
//
this
.
打开设备照明
ToolStripMenuItem
.
Name
=
"打开设备照明ToolStripMenuItem"
;
this
.
打开设备照明
ToolStripMenuItem
.
Name
=
"打开设备照明ToolStripMenuItem"
;
this
.
打开设备照明
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
打开设备照明
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
打开设备照明
ToolStripMenuItem
.
Text
=
"打开设备照明"
;
this
.
打开设备照明
ToolStripMenuItem
.
Text
=
"打开设备照明"
;
this
.
打开设备照明
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
打开设备照明
ToolStripMenuItem_Click
);
this
.
打开设备照明
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
打开设备照明
ToolStripMenuItem_Click
);
//
//
// toolStripSeparator14
// toolStripSeparator14
//
//
this
.
toolStripSeparator14
.
Name
=
"toolStripSeparator14"
;
this
.
toolStripSeparator14
.
Name
=
"toolStripSeparator14"
;
this
.
toolStripSeparator14
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
this
.
toolStripSeparator14
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
//
//
// 关闭设备照明ToolStripMenuItem
// 关闭设备照明ToolStripMenuItem
//
//
this
.
关闭设备照明
ToolStripMenuItem
.
Name
=
"关闭设备照明ToolStripMenuItem"
;
this
.
关闭设备照明
ToolStripMenuItem
.
Name
=
"关闭设备照明ToolStripMenuItem"
;
this
.
关闭设备照明
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
关闭设备照明
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
关闭设备照明
ToolStripMenuItem
.
Text
=
"关闭设备照明"
;
this
.
关闭设备照明
ToolStripMenuItem
.
Text
=
"关闭设备照明"
;
this
.
关闭设备照明
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
关闭设备照明
ToolStripMenuItem_Click
);
this
.
关闭设备照明
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
关闭设备照明
ToolStripMenuItem_Click
);
//
//
...
@@ -1408,6 +1416,29 @@
...
@@ -1408,6 +1416,29 @@
this
.
toolStripSeparator17
.
Name
=
"toolStripSeparator17"
;
this
.
toolStripSeparator17
.
Name
=
"toolStripSeparator17"
;
this
.
toolStripSeparator17
.
Size
=
new
System
.
Drawing
.
Size
(
177
,
6
);
this
.
toolStripSeparator17
.
Size
=
new
System
.
Drawing
.
Size
(
177
,
6
);
//
//
// txtMoni
//
this
.
txtMoni
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
txtMoni
.
Location
=
new
System
.
Drawing
.
Point
(
129
,
32
);
this
.
txtMoni
.
Name
=
"txtMoni"
;
this
.
txtMoni
.
Size
=
new
System
.
Drawing
.
Size
(
825
,
26
);
this
.
txtMoni
.
TabIndex
=
276
;
this
.
txtMoni
.
Text
=
"\"Cmd\":\"starIn\",\"CanOutStore\":0,\"PosId\":\"\",\"PlateH\":12,\"PlateW\":13,\"WareCode\":\"=13"
+
"x12=13172G620;GS1MWG_R2_00001;GS1M;;1124;7500##=13x12=998168*35030238*1124*7500*"
+
"000035714##\",\"rfid\":\"B102\",\"IsNg\":true"
;
//
// btnMoni
//
this
.
btnMoni
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMoni
.
Location
=
new
System
.
Drawing
.
Point
(
23
,
25
);
this
.
btnMoni
.
Name
=
"btnMoni"
;
this
.
btnMoni
.
Size
=
new
System
.
Drawing
.
Size
(
100
,
33
);
this
.
btnMoni
.
TabIndex
=
277
;
this
.
btnMoni
.
Text
=
"模拟"
;
this
.
btnMoni
.
UseVisualStyleBackColor
=
true
;
this
.
btnMoni
.
Click
+=
new
System
.
EventHandler
(
this
.
btnMoni_Click
);
//
// FrmEquip
// FrmEquip
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Inherit
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Inherit
;
...
@@ -1429,6 +1460,7 @@
...
@@ -1429,6 +1460,7 @@
this
.
tabPage2
.
ResumeLayout
(
false
);
this
.
tabPage2
.
ResumeLayout
(
false
);
this
.
tabPage2
.
PerformLayout
();
this
.
tabPage2
.
PerformLayout
();
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox2
.
PerformLayout
();
this
.
tabPage3
.
ResumeLayout
(
false
);
this
.
tabPage3
.
ResumeLayout
(
false
);
this
.
groupInout
.
ResumeLayout
(
false
);
this
.
groupInout
.
ResumeLayout
(
false
);
this
.
groupInout
.
PerformLayout
();
this
.
groupInout
.
PerformLayout
();
...
@@ -1550,6 +1582,8 @@
...
@@ -1550,6 +1582,8 @@
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
s2
复位
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
s2
复位
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator17
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator17
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
s3
复位
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
s3
复位
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
TextBox
txtMoni
;
private
System
.
Windows
.
Forms
.
Button
btnMoni
;
}
}
}
}
source/HCSingleStore/FrmEquip.cs
查看文件 @
056990e
...
@@ -189,7 +189,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -189,7 +189,7 @@ namespace OnlineStore.ACSingleStore
if
(
LineConnect
.
DoorPosInfo
!=
null
)
if
(
LineConnect
.
DoorPosInfo
!=
null
)
{
{
string
msg
=
"出料口物料:"
+
LineConnect
.
DoorPosInfo
.
ToStr
()+
"\r\n"
+
"料架信息:"
+
equip
.
CurrTray
.
ToStr
();
string
msg
=
"出料口物料:"
+
LineConnect
.
DoorPosInfo
?.
ToStr
()+
"\r\n"
+
"料架信息:"
+
equip
.
CurrTray
?
.
ToStr
();
lblWarnMsg
.
Text
=
msg
;
lblWarnMsg
.
Text
=
msg
;
}
}
}
}
...
@@ -1160,5 +1160,12 @@ namespace OnlineStore.ACSingleStore
...
@@ -1160,5 +1160,12 @@ namespace OnlineStore.ACSingleStore
}
}
equip
.
StationMap
[
3
].
Reset
();
equip
.
StationMap
[
3
].
Reset
();
}
}
private
void
btnMoni_Click
(
object
sender
,
EventArgs
e
)
{
string
text
=
txtMoni
.
Text
.
Trim
();
LogUtil
.
info
(
"点击模拟按钮:"
+
text
);
equip
.
lineConn
.
HandlerMsg
(
text
);
}
}
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论