Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO815-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit edf7e3d0
由
刘韬
编写于
2021-08-18 10:53:03 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
temp
1 个父辈
e29c8c38
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
1359 行增加
和
1 行删除
source/ACSingleStore/AutoInOutStore.csproj
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/ResourceCulture.cs
source/ACSingleStore/userControl/uc_boxdebug.Designer.cs
source/ACSingleStore/userControl/uc_boxdebug.cs
source/ACSingleStore/userControl/uc_boxdebug.resx
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/acSingleStore/StoreManager.cs
source/ACSingleStore/AutoInOutStore.csproj
查看文件 @
edf7e3d
...
...
@@ -113,6 +113,12 @@
<Compile Include="userControl\AxisMoveControl.Designer.cs">
<DependentUpon>AxisMoveControl.cs</DependentUpon>
</Compile>
<Compile Include="userControl\uc_boxdebug.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="userControl\uc_boxdebug.Designer.cs">
<DependentUpon>uc_boxdebug.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="FrmAxisDebug.resx">
<DependentUpon>FrmAxisDebug.cs</DependentUpon>
</EmbeddedResource>
...
...
@@ -155,6 +161,9 @@
<EmbeddedResource Include="userControl\AxisMoveControl.resx">
<DependentUpon>AxisMoveControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="userControl\uc_boxdebug.resx">
<DependentUpon>uc_boxdebug.cs</DependentUpon>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
...
...
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
edf7e3d
...
...
@@ -116,6 +116,8 @@
this
.
btnUpDownP6
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP4
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
tabPage_Pos
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
uc_boxdebug1
=
new
OnlineStore
.
ACSingleStore
.
useControl
.
uc_boxdebug
();
this
.
menuStrip1
=
new
System
.
Windows
.
Forms
.
MenuStrip
();
this
.
料仓操作
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
启动
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
...
@@ -181,6 +183,7 @@
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
picPPoint
)).
BeginInit
();
this
.
groupBox7
.
SuspendLayout
();
this
.
groupInout
.
SuspendLayout
();
this
.
tabPage_Pos
.
SuspendLayout
();
this
.
menuStrip1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
...
...
@@ -558,6 +561,7 @@
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage4
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage5
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage2
);
this
.
tabControl1
.
Controls
.
Add
(
this
.
tabPage_Pos
);
this
.
tabControl1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tabControl1
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
33
);
this
.
tabControl1
.
Name
=
"tabControl1"
;
...
...
@@ -1417,6 +1421,26 @@
this
.
btnUpDownP4
.
UseVisualStyleBackColor
=
true
;
this
.
btnUpDownP4
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP4_Click
);
//
// tabPage_Pos
//
this
.
tabPage_Pos
.
Controls
.
Add
(
this
.
uc_boxdebug1
);
this
.
tabPage_Pos
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tabPage_Pos
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
30
);
this
.
tabPage_Pos
.
Name
=
"tabPage_Pos"
;
this
.
tabPage_Pos
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
tabPage_Pos
.
Size
=
new
System
.
Drawing
.
Size
(
1320
,
659
);
this
.
tabPage_Pos
.
TabIndex
=
6
;
this
.
tabPage_Pos
.
Text
=
"库位调试"
;
this
.
tabPage_Pos
.
UseVisualStyleBackColor
=
true
;
//
// uc_boxdebug1
//
this
.
uc_boxdebug1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
7
);
this
.
uc_boxdebug1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
5
);
this
.
uc_boxdebug1
.
Name
=
"uc_boxdebug1"
;
this
.
uc_boxdebug1
.
Size
=
new
System
.
Drawing
.
Size
(
868
,
521
);
this
.
uc_boxdebug1
.
TabIndex
=
0
;
//
// menuStrip1
//
this
.
menuStrip1
.
Font
=
new
System
.
Drawing
.
Font
(
"Microsoft YaHei UI"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
...
...
@@ -1834,6 +1858,7 @@
this
.
groupBox7
.
PerformLayout
();
this
.
groupInout
.
ResumeLayout
(
false
);
this
.
groupInout
.
PerformLayout
();
this
.
tabPage_Pos
.
ResumeLayout
(
false
);
this
.
menuStrip1
.
ResumeLayout
(
false
);
this
.
menuStrip1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
...
...
@@ -1992,6 +2017,8 @@
private
System
.
Windows
.
Forms
.
PictureBox
picAxis4
;
private
System
.
Windows
.
Forms
.
CheckBox
chbDebug
;
private
AutoCountClient
.
AxisMoveControl
axisMoveControl1
;
private
System
.
Windows
.
Forms
.
TabPage
tabPage_Pos
;
private
ACSingleStore
.
useControl
.
uc_boxdebug
uc_boxdebug1
;
}
}
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
edf7e3d
...
...
@@ -50,7 +50,7 @@ namespace OnlineStore.AutoInOutStore
return
;
}
uc_boxdebug1
.
Init
(
store
);
AutoStorePosition
Position
=
null
;
if
(
store
.
PositionNumList
.
Count
>
0
)
{
...
...
source/ACSingleStore/ResourceCulture.cs
查看文件 @
edf7e3d
...
...
@@ -591,5 +591,28 @@ namespace OnlineStore.AutoInOutStore
public
static
string
StartCycle
=
"StartCycle"
;
public
static
string
StopCycle
=
"StopCycle"
;
public
class
MyMessage
{
public
static
DialogResult
Show
(
string
msg
,
params
object
[]
param
)
{
string
showMsg
=
ResourceCulture
.
GetString
(
msg
,
msg
,
param
);
string
showTitle
=
ResourceCulture
.
GetString
(
"提示"
);
return
MessageBox
.
Show
(
showMsg
,
showTitle
);
}
public
static
DialogResult
Show
(
string
msg
,
string
title
,
MessageBoxButtons
but
,
params
object
[]
param
)
{
string
showMsg
=
ResourceCulture
.
GetString
(
msg
,
msg
,
param
);
string
showTitle
=
ResourceCulture
.
GetString
(
title
,
title
);
return
MessageBox
.
Show
(
showMsg
,
showTitle
,
but
);
}
public
static
DialogResult
ShowIcon
(
string
msg
,
string
title
,
MessageBoxButtons
but
,
MessageBoxIcon
icon
,
params
object
[]
param
)
{
string
showMsg
=
ResourceCulture
.
GetString
(
msg
,
msg
,
param
);
string
showTitle
=
ResourceCulture
.
GetString
(
title
,
title
);
return
MessageBox
.
Show
(
showMsg
,
showTitle
,
but
,
icon
);
}
}
}
}
source/ACSingleStore/userControl/uc_boxdebug.Designer.cs
0 → 100644
查看文件 @
edf7e3d
namespace
OnlineStore.ACSingleStore.useControl
{
partial
class
uc_boxdebug
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
groupInout
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnInOutP1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
checkBox_Double_Alternate
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
cmbPosition
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtJiange
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lblMsg
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnSavePosition
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStartAuTo
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label9
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtInOutP2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtComP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtComP2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtInOutP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtMiddleP2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpDownP5
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpDownP6
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtUpDownP3
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnInStore
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnOutStore
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
txtUpDownP4
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btnInOutP2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnComP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnComP2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnInOutP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnMiddleP2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP5
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP6
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP3
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnUpDownP4
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
dataGridView1
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
groupInout
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dataGridView1
)).
BeginInit
();
this
.
SuspendLayout
();
//
// groupInout
//
this
.
groupInout
.
Controls
.
Add
(
this
.
btnInOutP1
);
this
.
groupInout
.
Controls
.
Add
(
this
.
checkBox_Double_Alternate
);
this
.
groupInout
.
Controls
.
Add
(
this
.
cmbPosition
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtJiange
);
this
.
groupInout
.
Controls
.
Add
(
this
.
lblMsg
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnSavePosition
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnStartAuTo
);
this
.
groupInout
.
Controls
.
Add
(
this
.
label9
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtInOutP2
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtComP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtComP2
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtInOutP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtMiddleP2
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtUpDownP5
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtUpDownP6
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtUpDownP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnInStore
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnOutStore
);
this
.
groupInout
.
Controls
.
Add
(
this
.
txtUpDownP4
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnInOutP2
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnComP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnComP2
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnInOutP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnMiddleP2
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnUpDownP5
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnUpDownP6
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnUpDownP3
);
this
.
groupInout
.
Controls
.
Add
(
this
.
btnUpDownP4
);
this
.
groupInout
.
Location
=
new
System
.
Drawing
.
Point
(
2
,
315
);
this
.
groupInout
.
Name
=
"groupInout"
;
this
.
groupInout
.
Size
=
new
System
.
Drawing
.
Size
(
779
,
179
);
this
.
groupInout
.
TabIndex
=
101
;
this
.
groupInout
.
TabStop
=
false
;
this
.
groupInout
.
Text
=
"料仓操作"
;
//
// btnInOutP1
//
this
.
btnInOutP1
.
AutoSize
=
true
;
this
.
btnInOutP1
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInOutP1
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnInOutP1
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnInOutP1
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP1
.
ForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
btnInOutP1
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP1
.
Location
=
new
System
.
Drawing
.
Point
(
522
,
146
);
this
.
btnInOutP1
.
Name
=
"btnInOutP1"
;
this
.
btnInOutP1
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP1
.
Size
=
new
System
.
Drawing
.
Size
(
133
,
29
);
this
.
btnInOutP1
.
TabIndex
=
226
;
this
.
btnInOutP1
.
Text
=
"进出轴回待机点P1"
;
this
.
btnInOutP1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP1
.
UseVisualStyleBackColor
=
false
;
this
.
btnInOutP1
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInOutP1_Click
);
//
// checkBox_Double_Alternate
//
this
.
checkBox_Double_Alternate
.
AutoSize
=
true
;
this
.
checkBox_Double_Alternate
.
Location
=
new
System
.
Drawing
.
Point
(
97
,
154
);
this
.
checkBox_Double_Alternate
.
Name
=
"checkBox_Double_Alternate"
;
this
.
checkBox_Double_Alternate
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
16
);
this
.
checkBox_Double_Alternate
.
TabIndex
=
225
;
this
.
checkBox_Double_Alternate
.
Text
=
"Double Alternate"
;
this
.
checkBox_Double_Alternate
.
UseVisualStyleBackColor
=
true
;
this
.
checkBox_Double_Alternate
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
checkBox_Double_Alternate_CheckedChanged
);
//
// cmbPosition
//
this
.
cmbPosition
.
AutoSize
=
true
;
this
.
cmbPosition
.
Location
=
new
System
.
Drawing
.
Point
(
357
,
0
);
this
.
cmbPosition
.
Name
=
"cmbPosition"
;
this
.
cmbPosition
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
12
);
this
.
cmbPosition
.
TabIndex
=
224
;
//
// txtJiange
//
this
.
txtJiange
.
Location
=
new
System
.
Drawing
.
Point
(
209
,
87
);
this
.
txtJiange
.
Name
=
"txtJiange"
;
this
.
txtJiange
.
Size
=
new
System
.
Drawing
.
Size
(
37
,
21
);
this
.
txtJiange
.
TabIndex
=
221
;
this
.
txtJiange
.
Text
=
"0"
;
//
// lblMsg
//
this
.
lblMsg
.
AutoSize
=
true
;
this
.
lblMsg
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
lblMsg
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
19
);
this
.
lblMsg
.
Name
=
"lblMsg"
;
this
.
lblMsg
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
20
);
this
.
lblMsg
.
TabIndex
=
223
;
this
.
lblMsg
.
Text
=
"没有开启自动出入库"
;
//
// btnSavePosition
//
this
.
btnSavePosition
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnSavePosition
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnSavePosition
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSavePosition
.
Location
=
new
System
.
Drawing
.
Point
(
672
,
146
);
this
.
btnSavePosition
.
Name
=
"btnSavePosition"
;
this
.
btnSavePosition
.
Size
=
new
System
.
Drawing
.
Size
(
95
,
29
);
this
.
btnSavePosition
.
TabIndex
=
217
;
this
.
btnSavePosition
.
Text
=
"保存位置"
;
this
.
btnSavePosition
.
UseVisualStyleBackColor
=
false
;
this
.
btnSavePosition
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSavePosition_Click
);
//
// btnStartAuTo
//
this
.
btnStartAuTo
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnStartAuTo
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnStartAuTo
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnStartAuTo
.
Location
=
new
System
.
Drawing
.
Point
(
97
,
116
);
this
.
btnStartAuTo
.
Name
=
"btnStartAuTo"
;
this
.
btnStartAuTo
.
Size
=
new
System
.
Drawing
.
Size
(
149
,
32
);
this
.
btnStartAuTo
.
TabIndex
=
222
;
this
.
btnStartAuTo
.
Text
=
"启动自动模式"
;
this
.
btnStartAuTo
.
UseVisualStyleBackColor
=
false
;
this
.
btnStartAuTo
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStartAuTo_Click
);
//
// label9
//
this
.
label9
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label9
.
Location
=
new
System
.
Drawing
.
Point
(
51
,
90
);
this
.
label9
.
Name
=
"label9"
;
this
.
label9
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
17
);
this
.
label9
.
TabIndex
=
220
;
this
.
label9
.
Text
=
"入库间隔仓位:"
;
this
.
label9
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
// txtInOutP2
//
this
.
txtInOutP2
.
AcceptsReturn
=
true
;
this
.
txtInOutP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtInOutP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
689
,
19
);
this
.
txtInOutP2
.
MaxLength
=
20
;
this
.
txtInOutP2
.
Name
=
"txtInOutP2"
;
this
.
txtInOutP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtInOutP2
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtInOutP2
.
TabIndex
=
212
;
this
.
txtInOutP2
.
Text
=
"-1"
;
//
// txtComP3
//
this
.
txtComP3
.
AcceptsReturn
=
true
;
this
.
txtComP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtComP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtComP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtComP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtComP3
.
Location
=
new
System
.
Drawing
.
Point
(
690
,
117
);
this
.
txtComP3
.
MaxLength
=
20
;
this
.
txtComP3
.
Name
=
"txtComP3"
;
this
.
txtComP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtComP3
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtComP3
.
TabIndex
=
198
;
this
.
txtComP3
.
Text
=
"-1"
;
//
// txtComP2
//
this
.
txtComP2
.
AcceptsReturn
=
true
;
this
.
txtComP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtComP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtComP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtComP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtComP2
.
Location
=
new
System
.
Drawing
.
Point
(
689
,
85
);
this
.
txtComP2
.
MaxLength
=
20
;
this
.
txtComP2
.
Name
=
"txtComP2"
;
this
.
txtComP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtComP2
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtComP2
.
TabIndex
=
196
;
this
.
txtComP2
.
Text
=
"-1"
;
//
// txtInOutP3
//
this
.
txtInOutP3
.
AcceptsReturn
=
true
;
this
.
txtInOutP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtInOutP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtInOutP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtInOutP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
689
,
52
);
this
.
txtInOutP3
.
MaxLength
=
20
;
this
.
txtInOutP3
.
Name
=
"txtInOutP3"
;
this
.
txtInOutP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtInOutP3
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtInOutP3
.
TabIndex
=
194
;
this
.
txtInOutP3
.
Text
=
"-1"
;
//
// txtMiddleP2
//
this
.
txtMiddleP2
.
AcceptsReturn
=
true
;
this
.
txtMiddleP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtMiddleP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtMiddleP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtMiddleP2
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
437
,
149
);
this
.
txtMiddleP2
.
MaxLength
=
20
;
this
.
txtMiddleP2
.
Name
=
"txtMiddleP2"
;
this
.
txtMiddleP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtMiddleP2
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtMiddleP2
.
TabIndex
=
192
;
this
.
txtMiddleP2
.
Text
=
"-1"
;
//
// txtUpDownP5
//
this
.
txtUpDownP5
.
AcceptsReturn
=
true
;
this
.
txtUpDownP5
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP5
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP5
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
437
,
51
);
this
.
txtUpDownP5
.
MaxLength
=
20
;
this
.
txtUpDownP5
.
Name
=
"txtUpDownP5"
;
this
.
txtUpDownP5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP5
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtUpDownP5
.
TabIndex
=
188
;
this
.
txtUpDownP5
.
Text
=
"-1"
;
//
// txtUpDownP6
//
this
.
txtUpDownP6
.
AcceptsReturn
=
true
;
this
.
txtUpDownP6
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP6
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP6
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
437
,
116
);
this
.
txtUpDownP6
.
MaxLength
=
20
;
this
.
txtUpDownP6
.
Name
=
"txtUpDownP6"
;
this
.
txtUpDownP6
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP6
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtUpDownP6
.
TabIndex
=
190
;
this
.
txtUpDownP6
.
Text
=
"-1"
;
//
// txtUpDownP3
//
this
.
txtUpDownP3
.
AcceptsReturn
=
true
;
this
.
txtUpDownP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP3
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
437
,
19
);
this
.
txtUpDownP3
.
MaxLength
=
20
;
this
.
txtUpDownP3
.
Name
=
"txtUpDownP3"
;
this
.
txtUpDownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP3
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtUpDownP3
.
TabIndex
=
162
;
this
.
txtUpDownP3
.
Text
=
"-1"
;
//
// btnInStore
//
this
.
btnInStore
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInStore
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnInStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInStore
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
44
);
this
.
btnInStore
.
Name
=
"btnInStore"
;
this
.
btnInStore
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
32
);
this
.
btnInStore
.
TabIndex
=
102
;
this
.
btnInStore
.
Text
=
"入库测试"
;
this
.
btnInStore
.
UseVisualStyleBackColor
=
false
;
this
.
btnInStore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInStore_Click
);
//
// btnOutStore
//
this
.
btnOutStore
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnOutStore
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOutStore
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOutStore
.
Location
=
new
System
.
Drawing
.
Point
(
129
,
44
);
this
.
btnOutStore
.
Name
=
"btnOutStore"
;
this
.
btnOutStore
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
32
);
this
.
btnOutStore
.
TabIndex
=
101
;
this
.
btnOutStore
.
Text
=
"出库测试"
;
this
.
btnOutStore
.
UseVisualStyleBackColor
=
false
;
this
.
btnOutStore
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOutStore_Click
);
//
// txtUpDownP4
//
this
.
txtUpDownP4
.
AcceptsReturn
=
true
;
this
.
txtUpDownP4
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Window
;
this
.
txtUpDownP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
IBeam
;
this
.
txtUpDownP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
txtUpDownP4
.
ForeColor
=
System
.
Drawing
.
SystemColors
.
WindowText
;
this
.
txtUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
437
,
84
);
this
.
txtUpDownP4
.
MaxLength
=
20
;
this
.
txtUpDownP4
.
Name
=
"txtUpDownP4"
;
this
.
txtUpDownP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
txtUpDownP4
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
23
);
this
.
txtUpDownP4
.
TabIndex
=
166
;
this
.
txtUpDownP4
.
Text
=
"-1"
;
//
// btnInOutP2
//
this
.
btnInOutP2
.
AutoSize
=
true
;
this
.
btnInOutP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInOutP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnInOutP2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnInOutP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP2
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP2
.
Location
=
new
System
.
Drawing
.
Point
(
522
,
14
);
this
.
btnInOutP2
.
Name
=
"btnInOutP2"
;
this
.
btnInOutP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP2
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnInOutP2
.
TabIndex
=
211
;
this
.
btnInOutP2
.
Text
=
"进出轴取料点P2:"
;
this
.
btnInOutP2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP2
.
UseVisualStyleBackColor
=
false
;
this
.
btnInOutP2
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInOutP2_Click
);
//
// btnComP3
//
this
.
btnComP3
.
AutoSize
=
true
;
this
.
btnComP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnComP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnComP3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnComP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnComP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Purple
;
this
.
btnComP3
.
Location
=
new
System
.
Drawing
.
Point
(
522
,
113
);
this
.
btnComP3
.
Name
=
"btnComP3"
;
this
.
btnComP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnComP3
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnComP3
.
TabIndex
=
197
;
this
.
btnComP3
.
Text
=
"压紧轴压紧前点P3:"
;
this
.
btnComP3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnComP3
.
UseVisualStyleBackColor
=
false
;
this
.
btnComP3
.
Click
+=
new
System
.
EventHandler
(
this
.
btnComP3_Click
);
//
// btnComP2
//
this
.
btnComP2
.
AutoSize
=
true
;
this
.
btnComP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnComP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnComP2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnComP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnComP2
.
ForeColor
=
System
.
Drawing
.
Color
.
Purple
;
this
.
btnComP2
.
Location
=
new
System
.
Drawing
.
Point
(
522
,
80
);
this
.
btnComP2
.
Name
=
"btnComP2"
;
this
.
btnComP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnComP2
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnComP2
.
TabIndex
=
195
;
this
.
btnComP2
.
Text
=
"压紧轴压紧点P2:"
;
this
.
btnComP2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnComP2
.
UseVisualStyleBackColor
=
false
;
this
.
btnComP2
.
Click
+=
new
System
.
EventHandler
(
this
.
btnComP2_Click
);
//
// btnInOutP3
//
this
.
btnInOutP3
.
AutoSize
=
true
;
this
.
btnInOutP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnInOutP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnInOutP3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnInOutP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnInOutP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Green
;
this
.
btnInOutP3
.
Location
=
new
System
.
Drawing
.
Point
(
522
,
47
);
this
.
btnInOutP3
.
Name
=
"btnInOutP3"
;
this
.
btnInOutP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnInOutP3
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnInOutP3
.
TabIndex
=
193
;
this
.
btnInOutP3
.
Text
=
"进出轴取料点P3:"
;
this
.
btnInOutP3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnInOutP3
.
UseVisualStyleBackColor
=
false
;
this
.
btnInOutP3
.
Click
+=
new
System
.
EventHandler
(
this
.
btnInOutP3_Click
);
//
// btnMiddleP2
//
this
.
btnMiddleP2
.
AutoSize
=
true
;
this
.
btnMiddleP2
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnMiddleP2
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnMiddleP2
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnMiddleP2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnMiddleP2
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
192
)))));
this
.
btnMiddleP2
.
Location
=
new
System
.
Drawing
.
Point
(
269
,
146
);
this
.
btnMiddleP2
.
Name
=
"btnMiddleP2"
;
this
.
btnMiddleP2
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnMiddleP2
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnMiddleP2
.
TabIndex
=
191
;
this
.
btnMiddleP2
.
Text
=
"旋转轴库位点P2:"
;
this
.
btnMiddleP2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnMiddleP2
.
UseVisualStyleBackColor
=
false
;
this
.
btnMiddleP2
.
Click
+=
new
System
.
EventHandler
(
this
.
btnMiddleP2_Click
);
//
// btnUpDownP5
//
this
.
btnUpDownP5
.
AutoSize
=
true
;
this
.
btnUpDownP5
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP5
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP5
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP5
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP5
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP5
.
Location
=
new
System
.
Drawing
.
Point
(
269
,
47
);
this
.
btnUpDownP5
.
Name
=
"btnUpDownP5"
;
this
.
btnUpDownP5
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP5
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnUpDownP5
.
TabIndex
=
187
;
this
.
btnUpDownP5
.
Text
=
"升降轴出料前点P5:"
;
this
.
btnUpDownP5
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP5
.
UseVisualStyleBackColor
=
false
;
this
.
btnUpDownP5
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP5_Click
);
//
// btnUpDownP6
//
this
.
btnUpDownP6
.
AutoSize
=
true
;
this
.
btnUpDownP6
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP6
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP6
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP6
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP6
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP6
.
Location
=
new
System
.
Drawing
.
Point
(
269
,
113
);
this
.
btnUpDownP6
.
Name
=
"btnUpDownP6"
;
this
.
btnUpDownP6
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP6
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnUpDownP6
.
TabIndex
=
189
;
this
.
btnUpDownP6
.
Text
=
"升降轴出料缓冲点P6:"
;
this
.
btnUpDownP6
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP6
.
UseVisualStyleBackColor
=
false
;
this
.
btnUpDownP6
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP6_Click
);
//
// btnUpDownP3
//
this
.
btnUpDownP3
.
AutoSize
=
true
;
this
.
btnUpDownP3
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP3
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP3
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP3
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP3
.
Location
=
new
System
.
Drawing
.
Point
(
269
,
14
);
this
.
btnUpDownP3
.
Name
=
"btnUpDownP3"
;
this
.
btnUpDownP3
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP3
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnUpDownP3
.
TabIndex
=
161
;
this
.
btnUpDownP3
.
Text
=
"升降轴入料前点P3:"
;
this
.
btnUpDownP3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP3
.
UseVisualStyleBackColor
=
false
;
this
.
btnUpDownP3
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP3_Click
);
//
// btnUpDownP4
//
this
.
btnUpDownP4
.
AutoSize
=
true
;
this
.
btnUpDownP4
.
BackColor
=
System
.
Drawing
.
SystemColors
.
Control
;
this
.
btnUpDownP4
.
Cursor
=
System
.
Windows
.
Forms
.
Cursors
.
Default
;
this
.
btnUpDownP4
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpDownP4
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnUpDownP4
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
btnUpDownP4
.
Location
=
new
System
.
Drawing
.
Point
(
269
,
80
);
this
.
btnUpDownP4
.
Name
=
"btnUpDownP4"
;
this
.
btnUpDownP4
.
RightToLeft
=
System
.
Windows
.
Forms
.
RightToLeft
.
No
;
this
.
btnUpDownP4
.
Size
=
new
System
.
Drawing
.
Size
(
161
,
29
);
this
.
btnUpDownP4
.
TabIndex
=
165
;
this
.
btnUpDownP4
.
Text
=
"升降轴入料缓冲点P4:"
;
this
.
btnUpDownP4
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
this
.
btnUpDownP4
.
UseVisualStyleBackColor
=
false
;
this
.
btnUpDownP4
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpDownP4_Click
);
//
// timer1
//
this
.
timer1
.
Interval
=
1000
;
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// dataGridView1
//
this
.
dataGridView1
.
AllowUserToAddRows
=
false
;
this
.
dataGridView1
.
AllowUserToDeleteRows
=
false
;
this
.
dataGridView1
.
AllowUserToResizeColumns
=
false
;
this
.
dataGridView1
.
AllowUserToResizeRows
=
false
;
this
.
dataGridView1
.
ColumnHeadersBorderStyle
=
System
.
Windows
.
Forms
.
DataGridViewHeaderBorderStyle
.
Single
;
this
.
dataGridView1
.
ColumnHeadersHeightSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnHeadersHeightSizeMode
.
DisableResizing
;
this
.
dataGridView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Top
;
this
.
dataGridView1
.
EditMode
=
System
.
Windows
.
Forms
.
DataGridViewEditMode
.
EditProgrammatically
;
this
.
dataGridView1
.
EnableHeadersVisualStyles
=
false
;
this
.
dataGridView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
dataGridView1
.
MultiSelect
=
false
;
this
.
dataGridView1
.
Name
=
"dataGridView1"
;
this
.
dataGridView1
.
RowHeadersBorderStyle
=
System
.
Windows
.
Forms
.
DataGridViewHeaderBorderStyle
.
None
;
this
.
dataGridView1
.
RowHeadersVisible
=
false
;
this
.
dataGridView1
.
RowHeadersWidthSizeMode
=
System
.
Windows
.
Forms
.
DataGridViewRowHeadersWidthSizeMode
.
DisableResizing
;
this
.
dataGridView1
.
RowTemplate
.
Height
=
23
;
this
.
dataGridView1
.
SelectionMode
=
System
.
Windows
.
Forms
.
DataGridViewSelectionMode
.
CellSelect
;
this
.
dataGridView1
.
ShowCellErrors
=
false
;
this
.
dataGridView1
.
ShowCellToolTips
=
false
;
this
.
dataGridView1
.
ShowEditingIcon
=
false
;
this
.
dataGridView1
.
ShowRowErrors
=
false
;
this
.
dataGridView1
.
Size
=
new
System
.
Drawing
.
Size
(
785
,
313
);
this
.
dataGridView1
.
TabIndex
=
103
;
this
.
dataGridView1
.
CellClick
+=
new
System
.
Windows
.
Forms
.
DataGridViewCellEventHandler
(
this
.
dataGridView1_CellContentClick
);
this
.
dataGridView1
.
CellMouseDown
+=
new
System
.
Windows
.
Forms
.
DataGridViewCellMouseEventHandler
(
this
.
dataGridView1_CellMouseDown
);
//
// uc_boxdebug
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
dataGridView1
);
this
.
Controls
.
Add
(
this
.
groupInout
);
this
.
Name
=
"uc_boxdebug"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
785
,
530
);
this
.
groupInout
.
ResumeLayout
(
false
);
this
.
groupInout
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dataGridView1
)).
EndInit
();
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
GroupBox
groupInout
;
private
System
.
Windows
.
Forms
.
Label
lblMsg
;
private
System
.
Windows
.
Forms
.
Button
btnSavePosition
;
private
System
.
Windows
.
Forms
.
Button
btnStartAuTo
;
private
System
.
Windows
.
Forms
.
Label
label9
;
private
System
.
Windows
.
Forms
.
TextBox
txtJiange
;
public
System
.
Windows
.
Forms
.
TextBox
txtInOutP2
;
public
System
.
Windows
.
Forms
.
TextBox
txtComP3
;
public
System
.
Windows
.
Forms
.
TextBox
txtComP2
;
public
System
.
Windows
.
Forms
.
TextBox
txtInOutP3
;
public
System
.
Windows
.
Forms
.
TextBox
txtMiddleP2
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP5
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP6
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP3
;
private
System
.
Windows
.
Forms
.
Button
btnInStore
;
private
System
.
Windows
.
Forms
.
Button
btnOutStore
;
public
System
.
Windows
.
Forms
.
TextBox
txtUpDownP4
;
public
System
.
Windows
.
Forms
.
Button
btnInOutP2
;
public
System
.
Windows
.
Forms
.
Button
btnComP3
;
public
System
.
Windows
.
Forms
.
Button
btnComP2
;
public
System
.
Windows
.
Forms
.
Button
btnInOutP3
;
public
System
.
Windows
.
Forms
.
Button
btnMiddleP2
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP5
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP6
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP3
;
public
System
.
Windows
.
Forms
.
Button
btnUpDownP4
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
DataGridView
dataGridView1
;
private
System
.
Windows
.
Forms
.
Label
cmbPosition
;
private
System
.
Windows
.
Forms
.
CheckBox
checkBox_Double_Alternate
;
public
System
.
Windows
.
Forms
.
Button
btnInOutP1
;
}
}
source/ACSingleStore/userControl/uc_boxdebug.cs
0 → 100644
查看文件 @
edf7e3d
using
log4net
;
using
OnlineStore.AutoInOutStore
;
using
OnlineStore.Common
;
using
OnlineStore.DeviceLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.IO
;
using
System.Linq
;
using
System.Reflection
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
using
static
OnlineStore
.
AutoInOutStore
.
ResourceCulture
;
namespace
OnlineStore.ACSingleStore.useControl
{
public
partial
class
uc_boxdebug
:
UserControl
{
static
AxisManager
ACServerManager
=
AxisManager
.
instance
;
private
AC_SA_BoxBean
store
;
private
string
StartAuto
=
ResourceCulture
.
GetString
(
"开始自动出入库"
);
private
string
StopAuto
=
ResourceCulture
.
GetString
(
"停止自动出入库"
);
private
string
AutoOut
=
ResourceCulture
.
GetString
(
"自动出库:"
);
private
string
AutoIn
=
ResourceCulture
.
GetString
(
"自动入库:"
);
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
Dictionary
<
string
,
PosState
>
posState
=
new
Dictionary
<
string
,
PosState
>();
//如果总配置文件存在,保存到总的配置文件
static
string
appPath
=
Application
.
StartupPath
;
static
string
positionConfigFile
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Store_Position_Config
);
class
PosState
{
public
int
InStoreCheck
=
0
;
public
int
OutStoreCheck
=
0
;
}
public
uc_boxdebug
()
{
InitializeComponent
();
}
public
void
Init
(
AC_SA_BoxBean
store
)
{
this
.
store
=
this
.
store
=
store
;
if
(
store
==
null
)
{
LogUtil
.
error
(
LOGGER
,
"找不到对应的料仓"
);
return
;
}
StartAuto
=
ResourceCulture
.
GetString
(
"开始自动出入库"
);
StopAuto
=
ResourceCulture
.
GetString
(
"停止自动出入库"
);
AutoOut
=
ResourceCulture
.
GetString
(
"自动出库:"
);
AutoIn
=
ResourceCulture
.
GetString
(
"自动入库:"
);
FillBoxPos
();
store
.
InOutEndProcessEvent
+=
Store_InOutEndProcessEvent
;
timer1
.
Enabled
=
true
;
return
;
}
private
void
Store_InOutEndProcessEvent
(
string
arg1
,
StoreMoveType
arg2
,
bool
arg3
)
{
//LogUtil.info($"出入库完成状态:{arg2},库位:{arg1}");
int
InStoreCheck
=
0
;
int
OutStoreCheck
=
0
;
if
(
arg2
==
StoreMoveType
.
InStore
)
InStoreCheck
=
1
;
else
if
(
arg2
==
StoreMoveType
.
OutStore
)
OutStoreCheck
=
1
;
var
pps
=
SavePosCheck
(
arg1
,
InStoreCheck
,
OutStoreCheck
);
if
(
htpp
.
ContainsKey
(
arg1
))
{
var
pp
=
(
PosPos
)
htpp
[
arg1
];
var
cells
=
dataGridView1
.
Rows
[
pp
.
row
].
Cells
[
pp
.
col
];
cells
.
Style
=
GetStyle
(
arg1
);
}
}
DataGridViewCellStyle
GetStyle
(
string
posid
)
{
if
(
htpp
.
ContainsKey
(
posid
)
&&
posState
.
ContainsKey
(
posid
))
{
var
pp
=
(
PosPos
)
htpp
[
posid
];
var
pps
=
(
PosState
)
posState
[
posid
];
var
cells
=
dataGridView1
.
Rows
[
pp
.
row
].
Cells
[
pp
.
col
];
cells
.
Selected
=
true
;
if
(
pps
.
InStoreCheck
==
1
&&
pps
.
OutStoreCheck
==
1
)
return
dgv_ok
;
else
if
(
pps
.
InStoreCheck
==
1
)
return
dgv_oin
;
else
if
(
pps
.
OutStoreCheck
==
1
)
return
dgv_oout
;
}
return
dgv_none
;
}
Hashtable
htpp
=
new
Hashtable
();
class
PosPos
{
public
string
Posid
;
public
int
index
;
public
int
row
;
public
int
col
;
}
int
PosCompare
(
string
a
,
string
b
)
{
string
[]
pa
=
a
.
Split
(
'_'
);
string
[]
pb
=
b
.
Split
(
'_'
);
if
(
pa
[
1
].
Length
==
1
)
pa
[
1
]
+=
"A"
;
if
(
pb
[
1
].
Length
==
1
)
pb
[
1
]
+=
"A"
;
var
isa
=
pa
[
1
][
0
]+(
pa
[
1
][
1
].
Equals
(
'A'
)
?
"1"
:
"2"
)
+
pa
[
2
][
0
]
+
pa
[
3
].
PadLeft
(
2
,
'0'
);
var
isb
=
pb
[
1
][
0
]+(
pb
[
1
][
1
].
Equals
(
'A'
)
?
"1"
:
"2"
)
+
pb
[
2
][
0
]
+
pb
[
3
].
PadLeft
(
2
,
'0'
);
if
(
int
.
Parse
(
isa
)
==
int
.
Parse
(
isb
))
return
0
;
else
if
(
int
.
Parse
(
isa
)
>
int
.
Parse
(
isb
))
return
1
;
else
return
-
1
;
}
void
LoadPosCheck
()
{
var
poscheckfile
=
positionConfigFile
+
".check"
;
if
(
File
.
Exists
(
poscheckfile
))
{
try
{
posState
=
JsonHelper
.
DeserializeJsonToObject
<
Dictionary
<
string
,
PosState
>>(
File
.
ReadAllText
(
poscheckfile
));
File
.
Copy
(
poscheckfile
,
poscheckfile
+
".backup"
,
true
);
}
catch
{
if
(
File
.
Exists
(
poscheckfile
+
".backup"
))
{
File
.
Copy
(
poscheckfile
+
".backup"
,
poscheckfile
,
true
);
File
.
Delete
(
poscheckfile
+
".backup"
);
LoadPosCheck
();
}
}
}
else
{
File
.
WriteAllText
(
poscheckfile
,
JsonHelper
.
SerializeObject
(
posState
));
}
}
PosState
SavePosCheck
(
string
posid
,
int
inStoreCheck
,
int
outStoreCheck
)
{
if
(!
posState
.
ContainsKey
(
posid
))
posState
.
Add
(
posid
,
new
PosState
());
if
(
inStoreCheck
>
0
)
posState
[
posid
].
InStoreCheck
=
inStoreCheck
;
if
(
outStoreCheck
>
0
)
posState
[
posid
].
OutStoreCheck
=
outStoreCheck
;
var
poscheckfile
=
positionConfigFile
+
".check"
;
File
.
WriteAllText
(
poscheckfile
,
JsonHelper
.
SerializeObject
(
posState
));
return
posState
[
posid
];
}
static
Font
font
=
new
Font
(
"宋体"
,
10
);
DataGridViewCellStyle
dgv_ok
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
LightGreen
,
Font
=
font
};
DataGridViewCellStyle
dgv_oin
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
LightGray
,
Font
=
font
};
DataGridViewCellStyle
dgv_oout
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
LightSeaGreen
,
Font
=
font
};
DataGridViewCellStyle
dgv_none
=
new
DataGridViewCellStyle
()
{
BackColor
=
Color
.
White
,
Font
=
font
};
void
FillBoxPos
()
{
LoadPosCheck
();
Comparison
<
string
>
comparison
=
new
Comparison
<
string
>(
PosCompare
);
store
.
PositionNumList
.
Sort
(
comparison
);
//store.PositionNumList.Reverse();
string
[]
posstr
=
store
.
PositionNumList
[
store
.
PositionNumList
.
Count
-
1
].
Split
(
'_'
);
int
colcount
=
int
.
Parse
(
posstr
[
1
][
0
].
ToString
())+
1
;
for
(
int
i
=
0
;
i
<
colcount
;
i
++)
{
dataGridView1
.
Columns
.
Add
(
"Col"
+
i
+
"_A"
,
"Col"
+
i
+
"_A"
);
dataGridView1
.
Columns
.
Add
(
"Col"
+
i
+
"_B"
,
"Col"
+
i
+
"_B"
);
}
for
(
int
i
=
0
;
i
<
dataGridView1
.
Columns
.
Count
;
i
++)
{
dataGridView1
.
Columns
[
i
].
Width
=
64
;
dataGridView1
.
Columns
[
i
].
SortMode
=
DataGridViewColumnSortMode
.
NotSortable
;
}
dataGridView1
.
Rows
.
Add
();
int
currentRowIndex
=
0
;
int
lastcol
=
-
1
;
string
lastAB
=
""
;
for
(
int
i
=
0
;
i
<
store
.
PositionNumList
.
Count
;
i
++)
{
int
ci
=
store
.
PositionNumList
.
Count
-
1
-
i
;
string
posname
=
store
.
PositionNumList
[
ci
];
string
[]
_posstr
=
posname
.
Split
(
'_'
);
int
col
=
int
.
Parse
(
_posstr
[
1
][
0
].
ToString
());
string
ab
=
"A"
;
if
(
_posstr
[
1
].
Length
>
1
)
ab
=
_posstr
[
1
][
1
].
ToString
();
if
(
col
!=
lastcol
||
lastAB
!=
ab
)
currentRowIndex
=
0
;
lastcol
=
col
;
lastAB
=
ab
;
if
(
currentRowIndex
>=
dataGridView1
.
Rows
.
Count
-
1
)
{
int
x
=
dataGridView1
.
Rows
.
Add
();
}
var
currentRow
=
dataGridView1
.
Rows
[
currentRowIndex
];
int
currentColIndex
=
col
*
2
;
if
(
ab
.
ToLower
()
==
"b"
)
currentColIndex
++;
currentRow
.
Cells
[
currentColIndex
].
Value
=
$
"{_posstr[1]}_{_posstr[2]}_{_posstr[3]}"
;
currentRow
.
Cells
[
currentColIndex
].
Tag
=
posname
;
htpp
.
Add
(
posname
,
new
PosPos
()
{
Posid
=
posname
,
index
=
i
,
row
=
currentRowIndex
,
col
=
currentColIndex
});
currentRow
.
Cells
[
currentColIndex
].
Style
=
GetStyle
(
posname
);
currentRowIndex
++;
}
dataGridView1
.
Rows
.
RemoveAt
(
dataGridView1
.
Rows
.
Count
-
1
);
}
void
setData
(
string
posid
)
{
AutoStorePosition
ktkPosition
=
CSVPositionReader
<
AutoStorePosition
>.
GetPositon
(
posid
);
cmbPosition
.
Text
=
posid
;
if
(
ktkPosition
!=
null
)
{
txtMiddleP2
.
Text
=
ktkPosition
.
MiddleAxis_Position_P2
.
ToString
();
txtUpDownP3
.
Text
=
ktkPosition
.
UpDownAxis_IHPosition_P3
.
ToString
();
txtUpDownP4
.
Text
=
ktkPosition
.
UpDownAxis_ILPosition_P4
.
ToString
();
txtUpDownP5
.
Text
=
ktkPosition
.
UpDownAxis_OHPosition_P5
.
ToString
();
txtUpDownP6
.
Text
=
ktkPosition
.
UpDownAxis_OLPosition_P6
.
ToString
();
txtComP2
.
Text
=
ktkPosition
.
CompressAxis_Position_P2
.
ToString
();
txtComP3
.
Text
=
ktkPosition
.
CompressAxis_CPosition_P3
.
ToString
();
txtInOutP3
.
Text
=
ktkPosition
.
InOutAxis_Position_P3
.
ToString
();
txtInOutP2
.
Text
=
ktkPosition
.
InOutAxis_DoorOutPosition_P4
.
ToString
();
}
}
private
void
btnInStore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
store
.
StartInStoreMove
(
new
InOutStoreParam
(
""
,
selectPositionNum
,
ktk
));
}
else
{
MyMessage
.
Show
(
"请先启动料仓!"
);
}
}
private
void
btnOutStore_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
string
selectPositionNum
=
cmbPosition
.
Text
;
LineMoveP
ktk
=
LoadPostion
();
store
.
StartOutStoreMove
(
new
InOutStoreParam
(
""
,
selectPositionNum
,
ktk
),
false
);
}
else
{
MyMessage
.
Show
(
"请先启动料仓!"
);
}
}
private
void
btnStartAuTo_Click
(
object
sender
,
EventArgs
e
)
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
if
(
store
.
autoNext
)
{
store
.
autoNext
=
false
;
btnStartAuTo
.
Text
=
StartAuto
;
}
else
{
DialogResult
res
=
MyMessage
.
Show
(
"确定开始自动出入库?"
,
"提示"
,
MessageBoxButtons
.
YesNo
);
if
(
res
.
Equals
(
DialogResult
.
Yes
))
{
store
.
autoNext
=
true
;
int
jiange
=
FormUtil
.
GetIntValue
(
txtJiange
);
store
.
autoJiange
=
jiange
;
if
(!
string
.
IsNullOrEmpty
(
cmbPosition
.
Text
))
{
int
currIndex
=
store
.
PositionNumList
.
IndexOf
(
cmbPosition
.
Text
);
;
store
.
autoPositionIndex
=
currIndex
;
store
.
AutoStartIndex
=
currIndex
;
//store.Double_Alternate = checkBox_Double_Alternate.Checked;
//store.Alternate = false;
//store.hasDoublePlate = false;
string
poText
=
cmbPosition
.
Text
;
store
.
autoMsg
=
AutoIn
+
":"
+
poText
;
LogUtil
.
info
(
LOGGER
,
store
.
StoreName
+
"开启自动出入库模式,开始位置【"
+
poText
+
"】(索引="
+
currIndex
+
"),间隔="
+
jiange
+
",入库开始!"
);
//store.StartOutStoreMove(new InOutStoreParam("", poText));
store
.
StartInStoreMove
(
new
InOutStoreParam
(
""
,
poText
));
}
btnStartAuTo
.
Text
=
StopAuto
;
}
}
}
else
{
MyMessage
.
Show
(
"请先启动料仓!"
);
}
}
private
LineMoveP
LoadPostion
()
{
LineMoveP
ktk
=
new
LineMoveP
();
//ktk.ComPress_P1 = FormUtil.GetIntValue(txtComP1);
ktk
.
ComPress_P1
=
store
.
Config
.
CompressAxis_P1_Position
;
ktk
.
ComPress_P2
=
FormUtil
.
GetIntValue
(
txtComP2
);
ktk
.
ComPress_P3
=
FormUtil
.
GetIntValue
(
txtComP3
);
//ktk.InOut_P1 = FormUtil.GetIntValue(txtInOutP1);
ktk
.
InOut_P1
=
store
.
Config
.
InOutAxis_P1_Position
;
ktk
.
InOut_P2
=
FormUtil
.
GetIntValue
(
txtInOutP2
);
ktk
.
InOut_P3
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
//ktk.Middle_P1 = FormUtil.GetIntValue(txtMiddleP1);
ktk
.
Middle_P1
=
store
.
Config
.
MiddleAxis_P1_Position
;
ktk
.
Middle_P2
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
//ktk.UpDown_P1 = FormUtil.GetIntValue(txtUpDownP1);
//ktk.UpDown_P1 = store.Config.UpDownAxis_DoorOPosition_P1;
//ktk.UpDown_P2 = FormUtil.GetIntValue(txtUpDownP2);
//ktk.UpDown_P2 = store.Config.UpDownAxis_DoorIPosition_P2;
ktk
.
UpDown_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
ktk
.
UpDown_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktk
.
UpDown_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
ktk
.
UpDown_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
//ktk.UpDown_P7 = FormUtil.GetIntValue(txtUpDownP7);
//ktk.UpDown_P7 = store.Config.UpDownAxis_DoorOBPosition_P7;
//ktk.UpDown_P8 = FormUtil.GetIntValue(txtUpDownP8);
//ktk.UpDown_P8 = store.Config.UpDownAxis_DoorIBPosition_P8;
return
ktk
;
}
private
void
AxisABSMove
(
ConfigMoveAxis
moveAxis
,
int
targetPosition
,
int
targetSpeed
)
{
moveAxis
.
TargetPosition
=
targetPosition
;
ACServerManager
.
AbsMove
(
moveAxis
.
DeviceName
,
moveAxis
.
GetAxisValue
(),
targetPosition
,
targetSpeed
,
targetSpeed
*
4
,
targetSpeed
*
4
);
}
/// <summary>
/// 判断进出轴是否在P1点
/// </summary>
private
bool
InOutIsIsP1
()
{
int
InOutDefaultPosition
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
InOutDefaultPosition
);
int
currValue
=
ACServerManager
.
GetActualtPosition
(
store
.
Config
.
InOut_Axis
.
DeviceName
,
store
.
Config
.
InOut_Axis
.
GetAxisValue
());
if
(
currValue
<=
InOutDefaultPosition
)
{
return
true
;
}
MyMessage
.
Show
(
"叉子不在待机位,请先将叉子退回待机位("
+
InOutDefaultPosition
+
")"
,
"警告(叉子在待机位时,才能移动升降轴和旋转轴) "
,
MessageBoxButtons
.
OK
,
MessageBoxIcon
.
Exclamation
);
return
false
;
}
private
void
btnUpDownP3_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P3_Speed
);
}
}
private
void
btnUpDownP4_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P4_Speed
);
}
}
private
void
btnUpDownP5_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P5_Speed
);
}
}
private
void
btnUpDownP6_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
AxisABSMove
(
store
.
Config
.
UpDown_Axis
,
value
,
store
.
Config
.
UpDownAxis_P6_Speed
);
}
}
private
void
btnMiddleP2_Click
(
object
sender
,
EventArgs
e
)
{
if
(
InOutIsIsP1
())
{
int
value
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
AxisABSMove
(
store
.
Config
.
Middle_Axis
,
value
,
store
.
Config
.
MiddleAxis_P2_Speed
);
}
}
private
void
btnInOutP3_Click
(
object
sender
,
EventArgs
e
)
{
//if (store.InOutAxisCanMove().Equals(false))
//{
// MyMessage.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
// return;
//}
int
value
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
AxisABSMove
(
store
.
Config
.
InOut_Axis
,
value
,
store
.
Config
.
InOutAxis_P3_Speed
);
}
private
void
btnInOutP2_Click
(
object
sender
,
EventArgs
e
)
{
//if (store.InOutAxisCanMove().Equals(false))
//{
// MyMessage.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
// return;
//}
int
value
=
FormUtil
.
GetIntValue
(
txtInOutP2
);
AxisABSMove
(
store
.
Config
.
InOut_Axis
,
value
,
store
.
Config
.
InOutAxis_P2_Speed
);
}
private
void
btnComP2_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtComP2
);
AxisABSMove
(
store
.
Config
.
Comp_Axis
,
value
,
store
.
Config
.
CompAxis_P2_Speed
);
//ShuoKeControls.AbsMove(store.Config.CompressAxis_Slv, value);
}
private
void
btnComP3_Click
(
object
sender
,
EventArgs
e
)
{
int
value
=
FormUtil
.
GetIntValue
(
txtComP3
);
AxisABSMove
(
store
.
Config
.
Comp_Axis
,
value
,
store
.
Config
.
CompAxis_P3_Speed
);
//ShuoKeControls.AbsMove(store.Config.CompressAxis_Slv, value);
}
private
void
btnSavePosition_Click
(
object
sender
,
EventArgs
e
)
{
//料仓格子位置保存
string
selectPositionNum
=
cmbPosition
.
Text
;
AutoStorePosition
ktkPosition
=
CSVPositionReader
<
AutoStorePosition
>.
GetPositon
(
selectPositionNum
);
if
(
ktkPosition
!=
null
)
{
ktkPosition
.
MiddleAxis_Position_P2
=
FormUtil
.
GetIntValue
(
txtMiddleP2
);
ktkPosition
.
UpDownAxis_IHPosition_P3
=
FormUtil
.
GetIntValue
(
txtUpDownP3
);
ktkPosition
.
UpDownAxis_ILPosition_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktkPosition
.
UpDownAxis_ILPosition_P4
=
FormUtil
.
GetIntValue
(
txtUpDownP4
);
ktkPosition
.
InOutAxis_Position_P3
=
FormUtil
.
GetIntValue
(
txtInOutP3
);
ktkPosition
.
CompressAxis_CPosition_P3
=
FormUtil
.
GetIntValue
(
txtComP3
);
ktkPosition
.
UpDownAxis_OHPosition_P5
=
FormUtil
.
GetIntValue
(
txtUpDownP5
);
ktkPosition
.
UpDownAxis_OLPosition_P6
=
FormUtil
.
GetIntValue
(
txtUpDownP6
);
ktkPosition
.
CompressAxis_Position_P2
=
FormUtil
.
GetIntValue
(
txtComP2
);
//ktkPosition.InOutAxis_DoorPosition_P4 = FormUtil.GetIntValue(txtInOutP2);
}
//位置配置
if
(!
File
.
Exists
(
positionConfigFile
))
{
positionConfigFile
=
appPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
Store_Position_Config
,
"_"
+
store
.
StoreID
.
ToString
());
}
bool
result
=
CSVPositionReader
<
AutoStorePosition
>.
SavePostion
(
positionConfigFile
,
ktkPosition
);
if
(!
result
)
{
MyMessage
.
Show
(
"保存位置失败!"
);
}
}
bool
preOpen
=
false
;
public
void
StoreOpenStatus
(
bool
isOpen
)
{
if
(
preOpen
.
Equals
(
isOpen
))
{
return
;
}
preOpen
=
isOpen
;
btnOutStore
.
Enabled
=
isOpen
;
btnInStore
.
Enabled
=
isOpen
;
}
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
if
(!
Visible
)
return
;
if
(
store
.
storeRunStatus
==
StoreRunStatus
.
Wait
)
{
btnStartAuTo
.
Text
=
StartAuto
;
return
;
}
if
(
store
.
autoNext
)
{
string
msg
=
store
.
autoMsg
;
lblMsg
.
Text
=
msg
;
if
(
btnStartAuTo
.
Text
.
Equals
(
StartAuto
))
{
btnStartAuTo
.
Text
=
StopAuto
;
}
try
{
msg
=
msg
.
Replace
(
AutoOut
,
""
);
msg
=
msg
.
Replace
(
AutoIn
,
""
);
if
(
htpp
.
ContainsKey
(
msg
))
{
var
pp
=
(
PosPos
)
htpp
[
msg
];
dataGridView1
.
Rows
[
pp
.
row
].
Cells
[
pp
.
col
].
Selected
=
true
;
setData
(
msg
);
}
}
catch
(
Exception
ex
)
{
}
}
else
{
// lblMsg.Text = "没有开启自动出入库";
if
(
btnStartAuTo
.
Text
.
Equals
(
StopAuto
))
{
btnStartAuTo
.
Text
=
StartAuto
;
}
}
}
private
void
dataGridView1_CellContentClick
(
object
sender
,
DataGridViewCellEventArgs
e
)
{
if
(
e
.
RowIndex
<
0
||
dataGridView1
.
Rows
[
e
.
RowIndex
].
Cells
[
e
.
ColumnIndex
].
Tag
==
null
)
return
;
var
posid
=
dataGridView1
.
Rows
[
e
.
RowIndex
].
Cells
[
e
.
ColumnIndex
].
Tag
.
ToString
();
setData
(
posid
);
}
private
void
checkBox_Double_Alternate_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
var
obj
=
sender
as
CheckBox
;
//store.Double_Alternate = obj.Checked;
if
(
obj
.
Checked
)
{
txtJiange
.
Text
=
"1"
;
txtJiange
.
Enabled
=
false
;
}
else
txtJiange
.
Enabled
=
true
;
}
private
void
btnInOutP1_Click
(
object
sender
,
EventArgs
e
)
{
//if (store.InOutAxisCanMove().Equals(false))
//{
// MyMessage.Show("定位气缸不在下降端,不能移动进出轴", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
// return;
//}
AxisABSMove
(
store
.
Config
.
InOut_Axis
,
store
.
Config
.
InOutAxis_P1_Position
,
store
.
Config
.
InOutAxis_P1_Speed
);
}
private
void
dataGridView1_CellMouseDown
(
object
sender
,
DataGridViewCellMouseEventArgs
e
)
{
if
(
e
.
RowIndex
<
0
||
dataGridView1
.
Rows
[
e
.
RowIndex
].
Cells
[
e
.
ColumnIndex
].
Tag
==
null
)
return
;
var
posid
=
dataGridView1
.
Rows
[
e
.
RowIndex
].
Cells
[
e
.
ColumnIndex
].
Tag
.
ToString
();
setData
(
posid
);
}
}
}
source/ACSingleStore/userControl/uc_boxdebug.resx
0 → 100644
查看文件 @
edf7e3d
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
edf7e3d
...
...
@@ -35,6 +35,10 @@ namespace OnlineStore.DeviceLibrary
#
endregion
/// <summary>
/// PosId, InOut,isSuccess
/// </summary>
public
event
Action
<
string
,
StoreMoveType
,
bool
>
InOutEndProcessEvent
;
#
region
出入库参数
private
int
CurrInOutCount
=
0
;
...
...
source/DeviceLibrary/acSingleStore/StoreManager.cs
查看文件 @
edf7e3d
...
...
@@ -88,6 +88,7 @@ namespace OnlineStore.DeviceLibrary
Config
=
(
AUTO_SA_Config
)
storeConfig
;
Store
=
new
AC_SA_BoxBean
(
Config
);
Store
.
CID
=
CID
;
LogUtil
.
info
(
LOGGER
,
"加载料仓完成!"
);
return
Store
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论