Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1131-ConveyorLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ed1d2e2f
由
张东亮
编写于
2023-09-19 15:52:17 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加位置误差
1 个父辈
0c68e781
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
123 行增加
和
82 行删除
source/AssemblyLineClient/FrmLine.Designer.cs
source/AssemblyLineClient/FrmLine.cs
source/DeviceLibrary/lineManager/ALineManager.cs
source/DeviceLibrary/lineManager/SServerManager.cs
source/AssemblyLineClient/FrmLine.Designer.cs
查看文件 @
ed1d2e2
...
...
@@ -97,6 +97,8 @@
this
.
lblCPU
=
new
System
.
Windows
.
Forms
.
ToolStripStatusLabel
();
this
.
lblContainerWarn
=
new
System
.
Windows
.
Forms
.
ToolStripStatusLabel
();
this
.
panel3
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
tabPage3
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
textBox1
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tabControl1
.
SuspendLayout
();
this
.
tabPage1
.
SuspendLayout
();
this
.
tableLayoutPanel1
.
SuspendLayout
();
...
...
@@ -111,6 +113,7 @@
this
.
contextMenuStrip_control
.
SuspendLayout
();
this
.
statusStrip1
.
SuspendLayout
();
this
.
panel3
.
SuspendLayout
();
this
.
tabPage3
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// tabControl1
...
...
@@ -118,22 +121,23 @@
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage1
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage2
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage5
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage3
);
this
.
tabControl1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
tabControl1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
tabControl1
.
Multiline
=
true
;
this
.
tabControl1
.
Name
=
"tabControl1"
;
this
.
tabControl1
.
SelectedIndex
=
0
;
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
4
47
);
this
.
tabControl1
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
4
98
);
this
.
tabControl1
.
TabIndex
=
0
;
this
.
tabControl1
.
DrawItem
+=
new
System
.
Windows
.
Forms
.
DrawItemEventHandler
(
this
.
tabControl1_DrawItem
);
//
// tabPage1
//
this
.
tabPage1
.
Controls
.
Add
(
this
.
tableLayoutPanel1
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
63
);
this
.
tabPage1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
32
);
this
.
tabPage1
.
Name
=
"tabPage1"
;
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
374
);
this
.
tabPage1
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
tabPage1
.
TabIndex
=
0
;
this
.
tabPage1
.
Text
=
" 运行日志 "
;
this
.
tabPage1
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -150,16 +154,16 @@
this
.
tableLayoutPanel1
.
RowCount
=
2
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
21.20536F
));
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
System
.
Windows
.
Forms
.
RowStyle
(
System
.
Windows
.
Forms
.
SizeType
.
Percent
,
78.79464F
));
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
374
);
this
.
tableLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
tableLayoutPanel1
.
TabIndex
=
107
;
//
// logBox
//
this
.
logBox
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
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
(
3
,
82
);
this
.
logBox
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
100
);
this
.
logBox
.
Name
=
"logBox"
;
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
9
76
,
28
9
);
this
.
logBox
.
Size
=
new
System
.
Drawing
.
Size
(
9
88
,
35
9
);
this
.
logBox
.
TabIndex
=
106
;
this
.
logBox
.
Text
=
""
;
this
.
logBox
.
VisibleChanged
+=
new
System
.
EventHandler
(
this
.
logBox_VisibleChanged
);
...
...
@@ -170,16 +174,16 @@
this
.
warnBox
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
warnBox
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
warnBox
.
Name
=
"warnBox"
;
this
.
warnBox
.
Size
=
new
System
.
Drawing
.
Size
(
9
76
,
73
);
this
.
warnBox
.
Size
=
new
System
.
Drawing
.
Size
(
9
88
,
91
);
this
.
warnBox
.
TabIndex
=
107
;
this
.
warnBox
.
Text
=
""
;
//
// tabPage2
//
this
.
tabPage2
.
Controls
.
Add
(
this
.
panel2
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
63
);
this
.
tabPage2
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
32
);
this
.
tabPage2
.
Name
=
"tabPage2"
;
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
374
);
this
.
tabPage2
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
tabPage2
.
TabIndex
=
1
;
this
.
tabPage2
.
Text
=
"模块"
;
this
.
tabPage2
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -190,7 +194,7 @@
this
.
panel2
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel2
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel2
.
Name
=
"panel2"
;
this
.
panel2
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
374
);
this
.
panel2
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
panel2
.
TabIndex
=
98
;
//
// panel1
...
...
@@ -199,7 +203,7 @@
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
374
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
panel1
.
TabIndex
=
0
;
//
// flowLayoutPanel1
...
...
@@ -208,15 +212,15 @@
this
.
flowLayoutPanel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
flowLayoutPanel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
flowLayoutPanel1
.
Name
=
"flowLayoutPanel1"
;
this
.
flowLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
374
);
this
.
flowLayoutPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
flowLayoutPanel1
.
TabIndex
=
0
;
//
// tabPage5
//
this
.
tabPage5
.
Controls
.
Add
(
this
.
panel5
);
this
.
tabPage5
.
Location
=
new
System
.
Drawing
.
Point
(
10
,
63
);
this
.
tabPage5
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
32
);
this
.
tabPage5
.
Name
=
"tabPage5"
;
this
.
tabPage5
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
416
);
this
.
tabPage5
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
tabPage5
.
TabIndex
=
4
;
this
.
tabPage5
.
Text
=
"示意图"
;
this
.
tabPage5
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -229,7 +233,7 @@
this
.
panel5
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel5
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel5
.
Name
=
"panel5"
;
this
.
panel5
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
416
);
this
.
panel5
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
panel5
.
TabIndex
=
108
;
//
// picLine
...
...
@@ -238,7 +242,7 @@
this
.
picLine
.
Image
=
global
::
ConveyorLine
.
Properties
.
Resources
.
line
;
this
.
picLine
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
picLine
.
Name
=
"picLine"
;
this
.
picLine
.
Size
=
new
System
.
Drawing
.
Size
(
9
82
,
416
);
this
.
picLine
.
Size
=
new
System
.
Drawing
.
Size
(
9
94
,
462
);
this
.
picLine
.
SizeMode
=
System
.
Windows
.
Forms
.
PictureBoxSizeMode
.
Zoom
;
this
.
picLine
.
TabIndex
=
107
;
this
.
picLine
.
TabStop
=
false
;
...
...
@@ -260,24 +264,24 @@
this
.
toolStripSeparator8
,
this
.
toolStripMenuItem1
});
this
.
contextMenuStrip1
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1
85
,
126
);
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1
25
,
74
);
//
// 显示ToolStripMenuItem
//
this
.
显示
ToolStripMenuItem
.
Name
=
"显示ToolStripMenuItem"
;
this
.
显示
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
84
,
58
);
this
.
显示
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
24
,
32
);
this
.
显示
ToolStripMenuItem
.
Text
=
"显示"
;
this
.
显示
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
显示
ToolStripMenuItem_Click
);
//
// toolStripSeparator8
//
this
.
toolStripSeparator8
.
Name
=
"toolStripSeparator8"
;
this
.
toolStripSeparator8
.
Size
=
new
System
.
Drawing
.
Size
(
1
8
1
,
6
);
this
.
toolStripSeparator8
.
Size
=
new
System
.
Drawing
.
Size
(
1
2
1
,
6
);
//
// toolStripMenuItem1
//
this
.
toolStripMenuItem1
.
Name
=
"toolStripMenuItem1"
;
this
.
toolStripMenuItem1
.
Size
=
new
System
.
Drawing
.
Size
(
1
84
,
58
);
this
.
toolStripMenuItem1
.
Size
=
new
System
.
Drawing
.
Size
(
1
24
,
32
);
this
.
toolStripMenuItem1
.
Text
=
"退出"
;
this
.
toolStripMenuItem1
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem1_Click
);
//
...
...
@@ -299,60 +303,60 @@
this
.
toolStripSeparator2
,
this
.
退出
ToolStripMenuItem
});
this
.
操作
ToolStripMenuItem
.
Name
=
"操作ToolStripMenuItem"
;
this
.
操作
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
230
,
56
);
this
.
操作
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
118
,
31
);
this
.
操作
ToolStripMenuItem
.
Text
=
" 设备操作 "
;
//
// toolStripSeparator1
//
this
.
toolStripSeparator1
.
Name
=
"toolStripSeparator1"
;
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
28
1
,
6
);
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
14
1
,
6
);
//
// 启动AToolStripMenuItem
//
this
.
启动
AToolStripMenuItem
.
Name
=
"启动AToolStripMenuItem"
;
this
.
启动
AToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
284
,
60
);
this
.
启动
AToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
144
,
32
);
this
.
启动
AToolStripMenuItem
.
Text
=
"启动 "
;
this
.
启动
AToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启动所有料仓
AToolStripMenuItem_Click
);
//
// toolStripSeparator4
//
this
.
toolStripSeparator4
.
Name
=
"toolStripSeparator4"
;
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
28
1
,
6
);
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
14
1
,
6
);
//
// 复位RToolStripMenuItem
//
this
.
复位
RToolStripMenuItem
.
Name
=
"复位RToolStripMenuItem"
;
this
.
复位
RToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
284
,
60
);
this
.
复位
RToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
144
,
32
);
this
.
复位
RToolStripMenuItem
.
Text
=
"复位"
;
this
.
复位
RToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
复位
RToolStripMenuItem_Click
);
//
// toolStripSeparator3
//
this
.
toolStripSeparator3
.
Name
=
"toolStripSeparator3"
;
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
28
1
,
6
);
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
14
1
,
6
);
//
// 停止TToolStripMenuItem
//
this
.
停止
TToolStripMenuItem
.
Name
=
"停止TToolStripMenuItem"
;
this
.
停止
TToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
284
,
60
);
this
.
停止
TToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
144
,
32
);
this
.
停止
TToolStripMenuItem
.
Text
=
"停止"
;
this
.
停止
TToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
停止所有料仓
TToolStripMenuItem_Click
);
//
// toolStripSeparator5
//
this
.
toolStripSeparator5
.
Name
=
"toolStripSeparator5"
;
this
.
toolStripSeparator5
.
Size
=
new
System
.
Drawing
.
Size
(
28
1
,
6
);
this
.
toolStripSeparator5
.
Size
=
new
System
.
Drawing
.
Size
(
14
1
,
6
);
//
// toolStripSeparator2
//
this
.
toolStripSeparator2
.
Name
=
"toolStripSeparator2"
;
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
28
1
,
6
);
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
14
1
,
6
);
this
.
toolStripSeparator2
.
Visible
=
false
;
//
// 退出ToolStripMenuItem
//
this
.
退出
ToolStripMenuItem
.
Name
=
"退出ToolStripMenuItem"
;
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
284
,
60
);
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
144
,
32
);
this
.
退出
ToolStripMenuItem
.
Text
=
"退出"
;
this
.
退出
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
退出
ToolStripMenuItem_Click_1
);
//
...
...
@@ -368,56 +372,56 @@
this
.
toolStripSeparator14
,
this
.
线体
IOToolStripMenuItem
});
this
.
设置
TToolStripMenuItem
.
Name
=
"设置TToolStripMenuItem"
;
this
.
设置
TToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
56
);
this
.
设置
TToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
112
,
31
);
this
.
设置
TToolStripMenuItem
.
Text
=
"设备调试 "
;
//
// toolStripSeparator6
//
this
.
toolStripSeparator6
.
Name
=
"toolStripSeparator6"
;
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
429
,
6
);
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
6
);
this
.
toolStripSeparator6
.
Visible
=
false
;
//
// 查看容器编码ToolStripMenuItem
//
this
.
查看容器编码
ToolStripMenuItem
.
Name
=
"查看容器编码ToolStripMenuItem"
;
this
.
查看容器编码
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
432
,
60
);
this
.
查看容器编码
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
32
);
this
.
查看容器编码
ToolStripMenuItem
.
Text
=
"查看容器编码"
;
this
.
查看容器编码
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
托盘初始化
ToolStripMenuItem_Click
);
//
// toolStripSeparator9
//
this
.
toolStripSeparator9
.
Name
=
"toolStripSeparator9"
;
this
.
toolStripSeparator9
.
Size
=
new
System
.
Drawing
.
Size
(
429
,
6
);
this
.
toolStripSeparator9
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
6
);
this
.
toolStripSeparator9
.
Visible
=
false
;
//
// toolStripMenuItem2
//
this
.
toolStripMenuItem2
.
Name
=
"toolStripMenuItem2"
;
this
.
toolStripMenuItem2
.
Size
=
new
System
.
Drawing
.
Size
(
432
,
60
);
this
.
toolStripMenuItem2
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
32
);
this
.
toolStripMenuItem2
.
Text
=
"AGV调试"
;
this
.
toolStripMenuItem2
.
Click
+=
new
System
.
EventHandler
(
this
.
toolStripMenuItem2_Click
);
//
// toolStripSeparator13
//
this
.
toolStripSeparator13
.
Name
=
"toolStripSeparator13"
;
this
.
toolStripSeparator13
.
Size
=
new
System
.
Drawing
.
Size
(
429
,
6
);
this
.
toolStripSeparator13
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
6
);
//
// 查看托盘信息ToolStripMenuItem
//
this
.
查看托盘信息
ToolStripMenuItem
.
Name
=
"查看托盘信息ToolStripMenuItem"
;
this
.
查看托盘信息
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
432
,
60
);
this
.
查看托盘信息
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
32
);
this
.
查看托盘信息
ToolStripMenuItem
.
Text
=
"查看容器信息"
;
this
.
查看托盘信息
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
btnTrayInfo_Click
);
//
// toolStripSeparator14
//
this
.
toolStripSeparator14
.
Name
=
"toolStripSeparator14"
;
this
.
toolStripSeparator14
.
Size
=
new
System
.
Drawing
.
Size
(
429
,
6
);
this
.
toolStripSeparator14
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
6
);
//
// 线体IOToolStripMenuItem
//
this
.
线体
IOToolStripMenuItem
.
Name
=
"线体IOToolStripMenuItem"
;
this
.
线体
IOToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
432
,
60
);
this
.
线体
IOToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
32
);
this
.
线体
IOToolStripMenuItem
.
Text
=
"查看线体IO"
;
this
.
线体
IOToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
线体
IOToolStripMenuItem_Click
);
//
...
...
@@ -430,37 +434,37 @@
this
.
toolStripSeparator11
,
this
.
版本号
ToolStripMenuItem
});
this
.
帮助
ToolStripMenuItem
.
Name
=
"帮助ToolStripMenuItem"
;
this
.
帮助
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
162
,
56
);
this
.
帮助
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
31
);
this
.
帮助
ToolStripMenuItem
.
Text
=
" 系统 "
;
//
// 清空日志ToolStripMenuItem
//
this
.
清空日志
ToolStripMenuItem
.
Name
=
"清空日志ToolStripMenuItem"
;
this
.
清空日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
352
,
60
);
this
.
清空日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
178
,
32
);
this
.
清空日志
ToolStripMenuItem
.
Text
=
"清空日志"
;
this
.
清空日志
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
清空日志
ToolStripMenuItem_Click
);
//
// toolStripSeparator10
//
this
.
toolStripSeparator10
.
Name
=
"toolStripSeparator10"
;
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
349
,
6
);
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
175
,
6
);
//
// 复制日志ToolStripMenuItem
//
this
.
复制日志
ToolStripMenuItem
.
Name
=
"复制日志ToolStripMenuItem"
;
this
.
复制日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
352
,
60
);
this
.
复制日志
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
178
,
32
);
this
.
复制日志
ToolStripMenuItem
.
Text
=
"复制日志"
;
this
.
复制日志
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
复制日志
ToolStripMenuItem_Click
);
//
// toolStripSeparator11
//
this
.
toolStripSeparator11
.
Name
=
"toolStripSeparator11"
;
this
.
toolStripSeparator11
.
Size
=
new
System
.
Drawing
.
Size
(
349
,
6
);
this
.
toolStripSeparator11
.
Size
=
new
System
.
Drawing
.
Size
(
175
,
6
);
//
// 版本号ToolStripMenuItem
//
this
.
版本号
ToolStripMenuItem
.
Name
=
"版本号ToolStripMenuItem"
;
this
.
版本号
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
352
,
60
);
this
.
版本号
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
178
,
32
);
this
.
版本号
ToolStripMenuItem
.
Text
=
"关于软件"
;
this
.
版本号
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
版本号
ToolStripMenuItem_Click
);
//
...
...
@@ -468,7 +472,6 @@
//
this
.
menuStrip1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
menuStrip1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
menuStrip1
.
GripMargin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
,
2
,
0
,
2
);
this
.
menuStrip1
.
ImageScalingSize
=
new
System
.
Drawing
.
Size
(
24
,
24
);
this
.
menuStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
操作
ToolStripMenuItem
,
...
...
@@ -477,7 +480,7 @@
this
.
帮助
ToolStripMenuItem
});
this
.
menuStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
menuStrip1
.
Name
=
"menuStrip1"
;
this
.
menuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
60
);
this
.
menuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
35
);
this
.
menuStrip1
.
TabIndex
=
4
;
this
.
menuStrip1
.
Text
=
"menuStrip1"
;
//
...
...
@@ -489,32 +492,32 @@
this
.
启用蜂鸣器
ToolStripMenuItem
,
this
.
toolStripSeparator24
});
this
.
运行参数
ToolStripMenuItem
.
Name
=
"运行参数ToolStripMenuItem"
;
this
.
运行参数
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
206
,
56
);
this
.
运行参数
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
106
,
31
);
this
.
运行参数
ToolStripMenuItem
.
Text
=
"运行参数"
;
//
// 开机自动启动ToolStripMenuItem
//
this
.
开机自动启动
ToolStripMenuItem
.
Name
=
"开机自动启动ToolStripMenuItem"
;
this
.
开机自动启动
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
432
,
60
);
this
.
开机自动启动
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
32
);
this
.
开机自动启动
ToolStripMenuItem
.
Text
=
"开机自动启动"
;
this
.
开机自动启动
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
开机自动启动
ToolStripMenuItem_Click
);
//
// toolStripSeparator15
//
this
.
toolStripSeparator15
.
Name
=
"toolStripSeparator15"
;
this
.
toolStripSeparator15
.
Size
=
new
System
.
Drawing
.
Size
(
429
,
6
);
this
.
toolStripSeparator15
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
6
);
//
// 启用蜂鸣器ToolStripMenuItem
//
this
.
启用蜂鸣器
ToolStripMenuItem
.
Name
=
"启用蜂鸣器ToolStripMenuItem"
;
this
.
启用蜂鸣器
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
432
,
60
);
this
.
启用蜂鸣器
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
32
);
this
.
启用蜂鸣器
ToolStripMenuItem
.
Text
=
"启用蜂鸣器"
;
this
.
启用蜂鸣器
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
启用蜂鸣器
ToolStripMenuItem_Click
);
//
// toolStripSeparator24
//
this
.
toolStripSeparator24
.
Name
=
"toolStripSeparator24"
;
this
.
toolStripSeparator24
.
Size
=
new
System
.
Drawing
.
Size
(
429
,
6
);
this
.
toolStripSeparator24
.
Size
=
new
System
.
Drawing
.
Size
(
215
,
6
);
//
// contextMenuStrip_control
//
...
...
@@ -533,73 +536,73 @@
this
.
control_Debug
,
this
.
toolStripSeparator22
});
this
.
contextMenuStrip_control
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip_control
.
Size
=
new
System
.
Drawing
.
Size
(
311
,
30
0
);
this
.
contextMenuStrip_control
.
Size
=
new
System
.
Drawing
.
Size
(
189
,
18
0
);
//
// toolStripSeparator21
//
this
.
toolStripSeparator21
.
Name
=
"toolStripSeparator21"
;
this
.
toolStripSeparator21
.
Size
=
new
System
.
Drawing
.
Size
(
307
,
6
);
this
.
toolStripSeparator21
.
Size
=
new
System
.
Drawing
.
Size
(
185
,
6
);
this
.
toolStripSeparator21
.
Visible
=
false
;
//
// toolName
//
this
.
toolName
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
toolName
.
Name
=
"toolName"
;
this
.
toolName
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
52
);
this
.
toolName
.
Size
=
new
System
.
Drawing
.
Size
(
188
,
28
);
this
.
toolName
.
Visible
=
false
;
//
// toolStripSeparator23
//
this
.
toolStripSeparator23
.
Name
=
"toolStripSeparator23"
;
this
.
toolStripSeparator23
.
Size
=
new
System
.
Drawing
.
Size
(
307
,
6
);
this
.
toolStripSeparator23
.
Size
=
new
System
.
Drawing
.
Size
(
185
,
6
);
//
// control_InDetial
//
this
.
control_InDetial
.
Name
=
"control_InDetial"
;
this
.
control_InDetial
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
52
);
this
.
control_InDetial
.
Size
=
new
System
.
Drawing
.
Size
(
188
,
28
);
this
.
control_InDetial
.
Text
=
"进入详情界面"
;
this
.
control_InDetial
.
Click
+=
new
System
.
EventHandler
(
this
.
control_InDetial_Click
);
//
// toolStripSeparator18
//
this
.
toolStripSeparator18
.
Name
=
"toolStripSeparator18"
;
this
.
toolStripSeparator18
.
Size
=
new
System
.
Drawing
.
Size
(
307
,
6
);
this
.
toolStripSeparator18
.
Size
=
new
System
.
Drawing
.
Size
(
185
,
6
);
//
// control_StartDebug
//
this
.
control_StartDebug
.
Name
=
"control_StartDebug"
;
this
.
control_StartDebug
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
52
);
this
.
control_StartDebug
.
Size
=
new
System
.
Drawing
.
Size
(
188
,
28
);
this
.
control_StartDebug
.
Text
=
"启动调试"
;
this
.
control_StartDebug
.
Click
+=
new
System
.
EventHandler
(
this
.
control_StartDebug_Click
);
//
// toolStripSeparator19
//
this
.
toolStripSeparator19
.
Name
=
"toolStripSeparator19"
;
this
.
toolStripSeparator19
.
Size
=
new
System
.
Drawing
.
Size
(
307
,
6
);
this
.
toolStripSeparator19
.
Size
=
new
System
.
Drawing
.
Size
(
185
,
6
);
//
// control_Stop
//
this
.
control_Stop
.
Name
=
"control_Stop"
;
this
.
control_Stop
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
52
);
this
.
control_Stop
.
Size
=
new
System
.
Drawing
.
Size
(
188
,
28
);
this
.
control_Stop
.
Text
=
"停止运行"
;
this
.
control_Stop
.
Click
+=
new
System
.
EventHandler
(
this
.
control_Stop_Click
);
//
// toolStripSeparator20
//
this
.
toolStripSeparator20
.
Name
=
"toolStripSeparator20"
;
this
.
toolStripSeparator20
.
Size
=
new
System
.
Drawing
.
Size
(
307
,
6
);
this
.
toolStripSeparator20
.
Size
=
new
System
.
Drawing
.
Size
(
185
,
6
);
//
// control_Debug
//
this
.
control_Debug
.
Name
=
"control_Debug"
;
this
.
control_Debug
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
52
);
this
.
control_Debug
.
Size
=
new
System
.
Drawing
.
Size
(
188
,
28
);
this
.
control_Debug
.
Text
=
"启用调试"
;
this
.
control_Debug
.
Click
+=
new
System
.
EventHandler
(
this
.
control_Debug_Click
);
//
// toolStripSeparator22
//
this
.
toolStripSeparator22
.
Name
=
"toolStripSeparator22"
;
this
.
toolStripSeparator22
.
Size
=
new
System
.
Drawing
.
Size
(
307
,
6
);
this
.
toolStripSeparator22
.
Size
=
new
System
.
Drawing
.
Size
(
185
,
6
);
//
// statusStrip1
//
...
...
@@ -609,9 +612,9 @@
this
.
lblMemory
,
this
.
lblCPU
,
this
.
lblContainerWarn
});
this
.
statusStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
5
07
);
this
.
statusStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
5
33
);
this
.
statusStrip1
.
Name
=
"statusStrip1"
;
this
.
statusStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
52
);
this
.
statusStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
26
);
this
.
statusStrip1
.
TabIndex
=
97
;
this
.
statusStrip1
.
Text
=
"statusStrip1"
;
//
...
...
@@ -619,35 +622,55 @@
//
this
.
lblStatus
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblStatus
.
Name
=
"lblStatus"
;
this
.
lblStatus
.
Size
=
new
System
.
Drawing
.
Size
(
137
,
39
);
this
.
lblStatus
.
Size
=
new
System
.
Drawing
.
Size
(
69
,
20
);
this
.
lblStatus
.
Text
=
"等待启动"
;
//
// lblMemory
//
this
.
lblMemory
.
Name
=
"lblMemory"
;
this
.
lblMemory
.
Size
=
new
System
.
Drawing
.
Size
(
83
,
39
);
this
.
lblMemory
.
Size
=
new
System
.
Drawing
.
Size
(
42
,
20
);
this
.
lblMemory
.
Text
=
"0MB"
;
//
// lblCPU
//
this
.
lblCPU
.
Name
=
"lblCPU"
;
this
.
lblCPU
.
Size
=
new
System
.
Drawing
.
Size
(
62
,
39
);
this
.
lblCPU
.
Size
=
new
System
.
Drawing
.
Size
(
31
,
20
);
this
.
lblCPU
.
Text
=
"0%"
;
//
// lblContainerWarn
//
this
.
lblContainerWarn
.
Name
=
"lblContainerWarn"
;
this
.
lblContainerWarn
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
39
);
this
.
lblContainerWarn
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
20
);
//
// panel3
//
this
.
panel3
.
Controls
.
Add
(
this
.
tabControl1
);
this
.
panel3
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel3
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
60
);
this
.
panel3
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
35
);
this
.
panel3
.
Name
=
"panel3"
;
this
.
panel3
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
4
47
);
this
.
panel3
.
Size
=
new
System
.
Drawing
.
Size
(
1002
,
4
98
);
this
.
panel3
.
TabIndex
=
98
;
//
// tabPage3
//
this
.
tabPage3
.
Controls
.
Add
(
this
.
textBox1
);
this
.
tabPage3
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
32
);
this
.
tabPage3
.
Name
=
"tabPage3"
;
this
.
tabPage3
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage3
.
Size
=
new
System
.
Drawing
.
Size
(
994
,
462
);
this
.
tabPage3
.
TabIndex
=
5
;
this
.
tabPage3
.
Text
=
"实时信息"
;
this
.
tabPage3
.
UseVisualStyleBackColor
=
true
;
//
// textBox1
//
this
.
textBox1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
textBox1
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
3
);
this
.
textBox1
.
Multiline
=
true
;
this
.
textBox1
.
Name
=
"textBox1"
;
this
.
textBox1
.
Size
=
new
System
.
Drawing
.
Size
(
988
,
456
);
this
.
textBox1
.
TabIndex
=
0
;
//
// FrmLine
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -684,6 +707,8 @@
this
.
statusStrip1
.
ResumeLayout
(
false
);
this
.
statusStrip1
.
PerformLayout
();
this
.
panel3
.
ResumeLayout
(
false
);
this
.
tabPage3
.
ResumeLayout
(
false
);
this
.
tabPage3
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
...
...
@@ -758,6 +783,8 @@
private
System
.
Windows
.
Forms
.
ToolStripStatusLabel
lblContainerWarn
;
private
System
.
Windows
.
Forms
.
ToolStripStatusLabel
lblMemory
;
private
System
.
Windows
.
Forms
.
ToolStripStatusLabel
lblCPU
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage3
;
private
System
.
Windows
.
Forms
.
TextBox
textBox1
;
}
}
source/AssemblyLineClient/FrmLine.cs
查看文件 @
ed1d2e2
...
...
@@ -472,6 +472,9 @@ namespace OnlineStore.AssemblyLine
SetMenuS
(
复位
RToolStripMenuItem
,
false
);
SetMenuS
(
停止
TToolStripMenuItem
,
false
);
}
textBox1
.
Text
=
$
"从AGV获取的信息:{LineManager.RobotInfo}\r\n"
+
$
"上报的信息:{LineManager.UploadInfo}\r\n"
+
$
"位置信息:{LineManager.posInfo}"
;
}
catch
{
}
finally
...
...
source/DeviceLibrary/lineManager/ALineManager.cs
查看文件 @
ed1d2e2
...
...
@@ -232,11 +232,16 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
static
Dictionary
<
string
,
List
<
Point
>>
AgvPoints
=
new
Dictionary
<
string
,
List
<
Point
>>();
static
string
posInfo
=
""
;
public
static
string
posInfo
=
""
;
public
static
string
RobotInfo
=
""
;
public
static
string
UploadInfo
=
""
;
public
static
void
UploadAGVStatus
(
RobotStates
robotStates
)
{
try
{
RobotInfo
=
JsonHelper
.
SerializeObject
(
robotStates
);
int
errorX
=
ConfigHelper
.
Config
.
Get
(
"errorPosX"
,
1000
);
int
errorY
=
ConfigHelper
.
Config
.
Get
(
"errorPosY"
,
1000
);
if
(
robotStates
!=
null
&&
robotStates
.
robots
!=
null
)
{
List
<
AgvStatus
>
agvs
=
new
List
<
AgvStatus
>();
...
...
@@ -249,7 +254,8 @@ namespace OnlineStore.DeviceLibrary
status
.
type
=
j
+
1
;
foreach
(
var
key
in
AgvPoints
.
Keys
)
{
var
find
=
AgvPoints
[
key
].
Find
(
s
=>
s
.
X
.
Equals
(
item
.
positionX
)
&&
s
.
Y
.
Equals
(
item
.
positionY
));
var
find
=
AgvPoints
[
key
].
Find
(
s
=>
(
s
.
X
-
errorX
<=
item
.
positionX
&&
s
.
X
+
errorX
>=
item
.
positionX
)
&&
(
s
.
Y
-
errorY
<=
item
.
positionY
&&
s
.
Y
+
errorY
>=
item
.
positionY
));
if
(
find
!=
null
&&
find
.
X
!=
0
&&
find
.
Y
!=
0
)
{
status
.
loc
=
key
;
...
...
@@ -262,9 +268,10 @@ namespace OnlineStore.DeviceLibrary
}
agvs
.
Add
(
status
);
}
UploadInfo
=
JsonHelper
.
SerializeObject
(
agvs
);
SServerManager
.
UpdateAgvStatus
(
agvs
);
StringBuilder
sb
=
new
StringBuilder
();
robotStates
.
robots
.
ForEach
(
s
=>
sb
.
Append
(
$
"
{s.robotCode} 当前位置:{s.positionX},{s.positionY}
"
));
robotStates
.
robots
.
ForEach
(
s
=>
sb
.
Append
(
$
"
{s.robotCode} [{s.energyLevel}]当前位置:{s.positionX},{s.positionY};
"
));
string
curPosInfo
=
sb
.
ToString
();
if
(!
posInfo
.
Equals
(
curPosInfo
))
{
...
...
source/DeviceLibrary/lineManager/SServerManager.cs
查看文件 @
ed1d2e2
...
...
@@ -424,7 +424,7 @@ namespace OnlineStore.DeviceLibrary
/// <param name="status">状态</param>
/// <param name="locInfo">位置</param>
/// <returns></returns>
public
static
bool
UpdateLocInfo
(
string
deviceName
,
string
barcode
,
string
status
,
string
locInfo
,
out
bool
canRemove
,
out
string
msg
)
public
static
bool
UpdateLocInfo
(
string
deviceName
,
string
barcode
,
string
status
,
string
locInfo
,
out
bool
canRemove
,
out
string
msg
)
{
msg
=
""
;
canRemove
=
false
;
...
...
@@ -448,7 +448,7 @@ namespace OnlineStore.DeviceLibrary
string
server
=
GetAddr
(
Addr_UpdateLocInfo
,
paramMap
);
DateTime
startTime
=
DateTime
.
Now
;
string
resultStr
=
HttpHelper
.
Get
(
server
);
msg
=
(
"UpdateTrayLoc "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
msg
=
(
"UpdateTrayLoc "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
// 返回: { "code": 0, "msg":"ok", "data":""}
ServerData
serverResult
=
JsonHelper
.
DeserializeJsonToObject
<
ServerData
>(
resultStr
);
if
(
serverResult
==
null
)
...
...
@@ -460,14 +460,14 @@ namespace OnlineStore.DeviceLibrary
{
canRemove
=
true
;
// code: 0为正常,其他为异常, msg: 消息, data: 为空
// msg = deviceName + " UpdateTrayLoc 任务已完成【" + barcode + "】【" + status + "】【" + locInfo + "】 :" + "【" + serverResult.code + "】" + serverResult.msg;
// msg = deviceName + " UpdateTrayLoc 任务已完成【" + barcode + "】【" + status + "】【" + locInfo + "】 :" + "【" + serverResult.code + "】" + serverResult.msg;
//LogUtil.info(msg);
return
true
;
}
else
if
(
serverResult
.
code
.
Equals
(
0
).
Equals
(
true
))
{
// code: 0为正常,其他为异常, msg: 消息, data: 为空
// msg = deviceName + " UpdateTrayLoc【" + barcode + "】【" + status + "】【" + locInfo + "】 :" + "【" + serverResult.code + "】" + serverResult.msg;
// msg = deviceName + " UpdateTrayLoc【" + barcode + "】【" + status + "】【" + locInfo + "】 :" + "【" + serverResult.code + "】" + serverResult.msg;
// LogUtil.info(msg);
return
true
;
}
...
...
@@ -531,7 +531,7 @@ namespace OnlineStore.DeviceLibrary
{
try
{
if
(
agvStatuses
==
null
||
agvStatuses
.
Count
==
0
)
if
(
agvStatuses
==
null
||
agvStatuses
.
Count
==
0
)
{
LogUtil
.
error
(
$
"UpdateAgvStatus 无信息"
);
return
false
;
...
...
@@ -542,10 +542,14 @@ namespace OnlineStore.DeviceLibrary
string
content
=
JsonHelper
.
SerializeObject
(
agvStatuses
);
string
json
=
HttpHelper
.
Post
(
server
,
content
);
ServerData
rtnData
=
JsonHelper
.
DeserializeJsonToObject
<
ServerData
>(
json
);
if
(!
agvStr
.
Equals
(
json
))
if
(
string
.
IsNullOrEmpty
(
json
))
{
LogUtil
.
error
(
$
"UpdateAgvStatus【{content}】【{json}】"
);
}
else
if
(!
agvStr
.
Equals
(
content
))
{
LogUtil
.
info
(
$
"UpdateAgvStatus【{content}】【{json}】"
);
agvStr
=
json
;
agvStr
=
content
;
}
if
(
rtnData
!=
null
&&
rtnData
.
code
==
0
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论