Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO908-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6f3e225d
由
张东亮
编写于
2023-02-20 11:23:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
4e882e84
全部展开
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
77 行增加
和
17 行删除
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
source/XLRStoreClient/inputForm/FrmBatchMove.Designer.cs
source/XLRStoreClient/inputForm/FrmBatchMove.cs
source/XLRStoreClient/inputForm/FrmInputEquip.Designer.cs
source/XLRStoreClient/inputForm/FrmInputEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
6f3e225
...
...
@@ -835,6 +835,10 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
{
return
waitAOutStoreList
.
TryDequeue
(
out
param
);
}
}
else
{
...
...
@@ -853,6 +857,10 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
{
return
waitBOutStoreList
.
TryDequeue
(
out
param
);
}
}
}
catch
(
Exception
ex
)
...
...
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
查看文件 @
6f3e225
...
...
@@ -41,8 +41,8 @@ namespace OnlineStore.XLRStore
lblName
.
Text
=
boxBean
.
Name
;
this
.
Text
=
boxBean
.
Name
;
chbDebug
.
Checked
=
boxBean
.
IsDebug
;
FrmAutoFindPos
frmAutoFindPos
=
new
FrmAutoFindPos
();
AddForm
(
tabControl1
,
" 视觉对位 "
,
frmAutoFindPos
);
//
FrmAutoFindPos frmAutoFindPos = new FrmAutoFindPos();
//
AddForm(tabControl1, " 视觉对位 ", frmAutoFindPos);
//FrmTongsLearn learn = new FrmTongsLearn();
//AddForm(tabControl1, " 抓手训练 ", learn);
FrmPosDebug
frmPosDebug
=
new
FrmPosDebug
();
...
...
source/XLRStoreClient/inputForm/FrmBatchMove.Designer.cs
查看文件 @
6f3e225
...
...
@@ -20,6 +20,7 @@
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
btnScan
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel2
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
btnPointEnable
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox3
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
LineStop_A
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
LineBack_A
=
new
System
.
Windows
.
Forms
.
Button
();
...
...
@@ -73,6 +74,7 @@
//
// panel2
//
this
.
panel2
.
Controls
.
Add
(
this
.
btnPointEnable
);
this
.
panel2
.
Controls
.
Add
(
this
.
groupBox3
);
this
.
panel2
.
Controls
.
Add
(
this
.
groupBox2
);
this
.
panel2
.
Controls
.
Add
(
this
.
groupBox1
);
...
...
@@ -85,6 +87,19 @@
this
.
panel2
.
Size
=
new
System
.
Drawing
.
Size
(
949
,
546
);
this
.
panel2
.
TabIndex
=
324
;
//
// btnPointEnable
//
this
.
btnPointEnable
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
btnPointEnable
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnPointEnable
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnPointEnable
.
Location
=
new
System
.
Drawing
.
Point
(
502
,
503
);
this
.
btnPointEnable
.
Name
=
"btnPointEnable"
;
this
.
btnPointEnable
.
Size
=
new
System
.
Drawing
.
Size
(
135
,
34
);
this
.
btnPointEnable
.
TabIndex
=
286
;
this
.
btnPointEnable
.
Text
=
"启用点位编辑"
;
this
.
btnPointEnable
.
UseVisualStyleBackColor
=
false
;
this
.
btnPointEnable
.
Click
+=
new
System
.
EventHandler
(
this
.
btnPointEnable_Click
);
//
// groupBox3
//
this
.
groupBox3
.
Controls
.
Add
(
this
.
LineStop_A
);
...
...
@@ -308,9 +323,9 @@
this
.
chbMoveStop
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chbMoveStop
.
AutoSize
=
true
;
this
.
chbMoveStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbMoveStop
.
Location
=
new
System
.
Drawing
.
Point
(
3
2
2
,
86
);
this
.
chbMoveStop
.
Location
=
new
System
.
Drawing
.
Point
(
3
0
2
,
86
);
this
.
chbMoveStop
.
Name
=
"chbMoveStop"
;
this
.
chbMoveStop
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
24
);
this
.
chbMoveStop
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
28
);
this
.
chbMoveStop
.
TabIndex
=
327
;
this
.
chbMoveStop
.
Text
=
"暂停运动"
;
this
.
chbMoveStop
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -349,9 +364,9 @@
this
.
chbDebug
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
chbDebug
.
AutoSize
=
true
;
this
.
chbDebug
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbDebug
.
Location
=
new
System
.
Drawing
.
Point
(
21
3
,
86
);
this
.
chbDebug
.
Location
=
new
System
.
Drawing
.
Point
(
19
3
,
86
);
this
.
chbDebug
.
Name
=
"chbDebug"
;
this
.
chbDebug
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
24
);
this
.
chbDebug
.
Size
=
new
System
.
Drawing
.
Size
(
104
,
28
);
this
.
chbDebug
.
TabIndex
=
325
;
this
.
chbDebug
.
Text
=
"调试状态"
;
this
.
chbDebug
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -377,7 +392,7 @@
this
.
lblAgvInfo
.
ImageAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
this
.
lblAgvInfo
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
62
);
this
.
lblAgvInfo
.
Name
=
"lblAgvInfo"
;
this
.
lblAgvInfo
.
Size
=
new
System
.
Drawing
.
Size
(
61
,
17
);
this
.
lblAgvInfo
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
20
);
this
.
lblAgvInfo
.
TabIndex
=
282
;
this
.
lblAgvInfo
.
Text
=
"AGV 状态"
;
//
...
...
@@ -423,7 +438,7 @@
//
// axisMoveControl1
//
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
128
);
this
.
axisMoveControl1
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
136
);
this
.
axisMoveControl1
.
Name
=
"axisMoveControl1"
;
this
.
axisMoveControl1
.
Size
=
new
System
.
Drawing
.
Size
(
486
,
398
);
this
.
axisMoveControl1
.
TabIndex
=
219
;
...
...
@@ -435,9 +450,9 @@
this
.
chbAutoOut
.
Checked
=
true
;
this
.
chbAutoOut
.
CheckState
=
System
.
Windows
.
Forms
.
CheckState
.
Checked
;
this
.
chbAutoOut
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
chbAutoOut
.
Location
=
new
System
.
Drawing
.
Point
(
502
,
510
);
this
.
chbAutoOut
.
Location
=
new
System
.
Drawing
.
Point
(
725
,
509
);
this
.
chbAutoOut
.
Name
=
"chbAutoOut"
;
this
.
chbAutoOut
.
Size
=
new
System
.
Drawing
.
Size
(
168
,
24
);
this
.
chbAutoOut
.
Size
=
new
System
.
Drawing
.
Size
(
212
,
28
);
this
.
chbAutoOut
.
TabIndex
=
280
;
this
.
chbAutoOut
.
Text
=
"入料完成自动开始出库"
;
this
.
chbAutoOut
.
UseVisualStyleBackColor
=
true
;
...
...
@@ -445,7 +460,7 @@
//
// FrmBatchMove
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17
F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
9F
,
20
F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
949
,
546
);
this
.
Controls
.
Add
(
this
.
panel2
);
...
...
@@ -457,6 +472,7 @@
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmTest_FormClosing
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmStoreIOStatus_Load
);
this
.
Shown
+=
new
System
.
EventHandler
(
this
.
FrmIOStatus_Shown
);
this
.
Leave
+=
new
System
.
EventHandler
(
this
.
FrmBatchMove_Leave
);
this
.
panel2
.
ResumeLayout
(
false
);
this
.
panel2
.
PerformLayout
();
this
.
groupBox3
.
ResumeLayout
(
false
);
...
...
@@ -500,6 +516,7 @@
protected
System
.
Windows
.
Forms
.
Button
btnResetShelf
;
protected
System
.
Windows
.
Forms
.
CheckBox
chbMoveStop
;
private
useControl
.
AxisPointControl
batchAxisP4
;
private
System
.
Windows
.
Forms
.
Button
btnPointEnable
;
}
}
source/XLRStoreClient/inputForm/FrmBatchMove.cs
查看文件 @
6f3e225
...
...
@@ -91,6 +91,7 @@ namespace OnlineStore.XLRStore
lblWarnMsg
.
Text
=
moveBean
.
WarnMsg
;
lblCurrInfo
.
Text
=
moveBean
.
GetMoveStr
();
lblAgvInfo
.
Text
=
"AGV "
+
moveBean
.
Config
.
AgvName
+
" :"
+
AgvClient
.
GetAction
(
moveBean
.
Config
.
AgvName
);
PointEnable
(
false
);
IsLoad
=
true
;
}
...
...
@@ -317,6 +318,34 @@ namespace OnlineStore.XLRStore
moveBean
.
MoveStop
=
chbMoveStop
.
Checked
;
LogUtil
.
info
(
moveBean
.
Name
+
"用户切换是否暂停: "
+
moveBean
.
MoveStop
);
}
private
void
btnPointEnable_Click
(
object
sender
,
EventArgs
e
)
{
if
(!
IsLoad
)
{
return
;
}
FrmPwd
fw
=
new
FrmPwd
(
10
);
DialogResult
result
=
fw
.
ShowDialog
();
if
(!
result
.
Equals
(
DialogResult
.
OK
))
{
LogUtil
.
info
(
"打开入料机构点位调试时,没有正确输入密码"
);
return
;
}
PointEnable
(
true
);
}
void
PointEnable
(
bool
enable
)
{
axisMoveControl1
.
Enabled
=
enable
;
groupBox1
.
Enabled
=
enable
;
groupBox2
.
Enabled
=
enable
;
groupBox3
.
Enabled
=
enable
;
}
private
void
FrmBatchMove_Leave
(
object
sender
,
EventArgs
e
)
{
PointEnable
(
false
);
}
}
}
...
...
source/XLRStoreClient/inputForm/FrmInputEquip.Designer.cs
查看文件 @
6f3e225
此文件的差异被折叠,
点击展开。
source/XLRStoreClient/inputForm/FrmInputEquip.cs
查看文件 @
6f3e225
...
...
@@ -620,24 +620,29 @@ namespace OnlineStore.XLRStore
groupBox9
.
Enabled
=
enable
;
groupBox10
.
Enabled
=
enable
;
groupBox11
.
Enabled
=
enable
;
axisMoveControl1
.
Enabled
=
enable
;
}
private
void
chbPointEditEnable_CheckedChanged
(
object
sender
,
EventArgs
e
)
private
void
btnPointEditEnable_Click
(
object
sender
,
EventArgs
e
)
{
if
(!
IsLoad
)
{
return
;
}
PointEditEnable
(
chbPointEditEnable
.
Checked
);
FrmPwd
fw
=
new
FrmPwd
(
10
);
DialogResult
result
=
fw
.
ShowDialog
();
if
(!
result
.
Equals
(
DialogResult
.
OK
))
{
LogUtil
.
info
(
"打开入料机构点位调试时,没有正确输入密码"
);
return
;
}
PointEditEnable
(
true
);
}
internal
void
FrmInputEquip_VisibleChanged
(
object
sender
,
EventArgs
e
)
{
if
(!
IsLoad
)
{
return
;
}
chbPointEditEnable
.
Checked
=
false
;
}
private
void
tabControl1_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
...
...
@@ -646,7 +651,7 @@ namespace OnlineStore.XLRStore
{
return
;
}
chbPointEditEnable
.
Checked
=
false
;
PointEditEnable
(
false
)
;
}
private
void
BtnInStoreTest_Click
(
object
sender
,
EventArgs
e
)
...
...
@@ -810,6 +815,7 @@ namespace OnlineStore.XLRStore
}
}
#
endregion
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论