Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 84cea5df
由
LN
编写于
2021-05-18 11:07:51 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
点位增加启用禁用功能
1 个父辈
71ebee91
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
463 行增加
和
383 行删除
DeviceLibrary/bean/BoardInfo.cs
TSA-V/FrmBoardInfo.Designer.cs
TSA-V/FrmBoardInfo.cs
TSA-V/FrmBoardInfo.resx
TSA-V/Properties/Resource.en-US.resx
TSA-V/Properties/Resource.zh-CN.resx
DeviceLibrary/bean/BoardInfo.cs
查看文件 @
84cea5d
...
...
@@ -257,5 +257,9 @@ namespace TSA_V.DeviceLibrary
public
int
PenWidth
=
2
;
public
string
ShowText
=
""
;
/// <summary>
/// 是否禁用,默认0
/// </summary>
public
bool
Disable
=
false
;
}
}
TSA-V/FrmBoardInfo.Designer.cs
查看文件 @
84cea5d
...
...
@@ -46,6 +46,7 @@
this
.
dataGridViewImageColumn1
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
dataGridViewImageColumn2
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
btnOpenFile
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCheck
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
label8
=
new
System
.
Windows
.
Forms
.
Label
();
...
...
@@ -59,11 +60,33 @@
this
.
lblMousePosition
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
chbShowName
=
new
System
.
Windows
.
Forms
.
CheckBox
();
this
.
btnSort
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnGoHome
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
焊点列表
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
btnOpenFile
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label7
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
dgvList
=
new
System
.
Windows
.
Forms
.
DataGridView
();
this
.
btnSetOrigin
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel3
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panBoard
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
picBoard
=
new
System
.
Windows
.
Forms
.
PictureBox
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblLineW
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtLineWidth
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lbllinews
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnConfigAOI
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblAoi
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
cmbAOIFile
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtCode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtBoardName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtBoardL
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtBoardW
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label25
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label24
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSave
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
llblAllSel
=
new
System
.
Windows
.
Forms
.
LinkLabel
();
this
.
llblAllUSel
=
new
System
.
Windows
.
Forms
.
LinkLabel
();
this
.
Column_pointNum
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column_PartNum
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column_Name
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
...
...
@@ -82,36 +105,13 @@
this
.
Column_PointSizeY
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column_PenWidth
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column_ShowText
=
new
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
();
this
.
Column_disable
=
new
System
.
Windows
.
Forms
.
DataGridViewCheckBoxColumn
();
this
.
Column_getPosition
=
new
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
();
this
.
Column_MoveTest
=
new
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
();
this
.
Column_btnDetail
=
new
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
();
this
.
Column_Del
=
new
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
();
this
.
Column_Up
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
Column_Down
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
lblMsg
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnSetOrigin
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel3
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panBoard
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
picBoard
=
new
System
.
Windows
.
Forms
.
PictureBox
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
lblLineW
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtLineWidth
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lbllinews
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnConfigAOI
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblAoi
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
cmbAOIFile
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtCode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtBoardName
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtBoardL
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtBoardW
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label25
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label24
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSave
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
contextMenuStrip1
.
SuspendLayout
();
this
.
contextMenuStrip2
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
...
...
@@ -216,6 +216,8 @@
// panel1
//
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
Controls
.
Add
(
this
.
llblAllUSel
);
this
.
panel1
.
Controls
.
Add
(
this
.
llblAllSel
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnOpenFile
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnCheck
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox2
);
...
...
@@ -223,9 +225,7 @@
this
.
panel1
.
Controls
.
Add
(
this
.
lblMousePosition
);
this
.
panel1
.
Controls
.
Add
(
this
.
chbShowName
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnSort
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnGoHome
);
this
.
panel1
.
Controls
.
Add
(
this
.
焊点列表
);
this
.
panel1
.
Controls
.
Add
(
this
.
lblMsg
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnSetOrigin
);
this
.
panel1
.
Controls
.
Add
(
this
.
panel3
);
this
.
panel1
.
Controls
.
Add
(
this
.
groupBox1
);
...
...
@@ -237,6 +237,19 @@
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
1549
,
701
);
this
.
panel1
.
TabIndex
=
0
;
//
// btnOpenFile
//
this
.
btnOpenFile
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnOpenFile
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenFile
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenFile
.
Location
=
new
System
.
Drawing
.
Point
(
1410
,
663
);
this
.
btnOpenFile
.
Name
=
"btnOpenFile"
;
this
.
btnOpenFile
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
31
);
this
.
btnOpenFile
.
TabIndex
=
260
;
this
.
btnOpenFile
.
Text
=
"更改图片"
;
this
.
btnOpenFile
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenFile
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenFile_Click
);
//
// btnCheck
//
this
.
btnCheck
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
...
...
@@ -391,25 +404,10 @@
this
.
btnSort
.
UseVisualStyleBackColor
=
true
;
this
.
btnSort
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSort_Click
);
//
// btnGoHome
//
this
.
btnGoHome
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnGoHome
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnGoHome
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnGoHome
.
Location
=
new
System
.
Drawing
.
Point
(
38
,
619
);
this
.
btnGoHome
.
Name
=
"btnGoHome"
;
this
.
btnGoHome
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
31
);
this
.
btnGoHome
.
TabIndex
=
277
;
this
.
btnGoHome
.
Text
=
"设备复位"
;
this
.
btnGoHome
.
UseVisualStyleBackColor
=
true
;
this
.
btnGoHome
.
Visible
=
false
;
this
.
btnGoHome
.
Click
+=
new
System
.
EventHandler
(
this
.
btnGoHome_Click_1
);
//
// 焊点列表
//
this
.
焊点列表
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
焊点列表
.
Controls
.
Add
(
this
.
label7
);
this
.
焊点列表
.
Controls
.
Add
(
this
.
dgvList
);
this
.
焊点列表
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
79
);
this
.
焊点列表
.
Name
=
"焊点列表"
;
...
...
@@ -418,30 +416,6 @@
this
.
焊点列表
.
TabStop
=
false
;
this
.
焊点列表
.
Text
=
"组装信息(使用键盘上的上下键可更改选中行)"
;
//
// btnOpenFile
//
this
.
btnOpenFile
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btnOpenFile
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnOpenFile
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnOpenFile
.
Location
=
new
System
.
Drawing
.
Point
(
1410
,
663
);
this
.
btnOpenFile
.
Name
=
"btnOpenFile"
;
this
.
btnOpenFile
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
31
);
this
.
btnOpenFile
.
TabIndex
=
260
;
this
.
btnOpenFile
.
Text
=
"更改图片"
;
this
.
btnOpenFile
.
UseVisualStyleBackColor
=
true
;
this
.
btnOpenFile
.
Click
+=
new
System
.
EventHandler
(
this
.
btnOpenFile_Click
);
//
// label7
//
this
.
label7
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
285
,
501
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
209
,
12
);
this
.
label7
.
TabIndex
=
288
;
this
.
label7
.
Text
=
"使用键盘上的左右键可放大或缩小图片"
;
this
.
label7
.
Visible
=
false
;
//
// dgvList
//
this
.
dgvList
.
AllowDrop
=
true
;
...
...
@@ -470,6 +444,7 @@
this
.
Column_PointSizeY
,
this
.
Column_PenWidth
,
this
.
Column_ShowText
,
this
.
Column_disable
,
this
.
Column_getPosition
,
this
.
Column_MoveTest
,
this
.
Column_btnDetail
,
...
...
@@ -480,7 +455,6 @@
this
.
dgvList
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
20
);
this
.
dgvList
.
MultiSelect
=
false
;
this
.
dgvList
.
Name
=
"dgvList"
;
this
.
dgvList
.
ReadOnly
=
true
;
this
.
dgvList
.
RowHeadersWidth
=
10
;
this
.
dgvList
.
RowTemplate
.
Height
=
23
;
this
.
dgvList
.
SelectionMode
=
System
.
Windows
.
Forms
.
DataGridViewSelectionMode
.
FullRowSelect
;
...
...
@@ -494,229 +468,6 @@
this
.
dgvList
.
DragDrop
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
dgvList_DragDrop
);
this
.
dgvList
.
DragEnter
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
dgvList_DragEnter
);
//
// Column_pointNum
//
this
.
Column_pointNum
.
DataPropertyName
=
"pointNum"
;
this
.
Column_pointNum
.
HeaderText
=
"Id"
;
this
.
Column_pointNum
.
Name
=
"Column_pointNum"
;
this
.
Column_pointNum
.
ReadOnly
=
true
;
this
.
Column_pointNum
.
Visible
=
false
;
this
.
Column_pointNum
.
Width
=
55
;
//
// Column_PartNum
//
this
.
Column_PartNum
.
DataPropertyName
=
"partNum"
;
this
.
Column_PartNum
.
HeaderText
=
"编号"
;
this
.
Column_PartNum
.
Name
=
"Column_PartNum"
;
this
.
Column_PartNum
.
ReadOnly
=
true
;
//
// Column_Name
//
this
.
Column_Name
.
DataPropertyName
=
"pointName"
;
this
.
Column_Name
.
HeaderText
=
"名称"
;
this
.
Column_Name
.
Name
=
"Column_Name"
;
this
.
Column_Name
.
ReadOnly
=
true
;
//
// Column_X
//
this
.
Column_X
.
DataPropertyName
=
"PositionX"
;
this
.
Column_X
.
HeaderText
=
"X"
;
this
.
Column_X
.
Name
=
"Column_X"
;
this
.
Column_X
.
ReadOnly
=
true
;
this
.
Column_X
.
Width
=
80
;
//
// Column_Y
//
this
.
Column_Y
.
DataPropertyName
=
"PositionY"
;
this
.
Column_Y
.
HeaderText
=
"Y"
;
this
.
Column_Y
.
Name
=
"Column_Y"
;
this
.
Column_Y
.
ReadOnly
=
true
;
this
.
Column_Y
.
Width
=
80
;
//
// Column_NodeX
//
this
.
Column_NodeX
.
DataPropertyName
=
"NodePositionX"
;
this
.
Column_NodeX
.
HeaderText
=
"X"
;
this
.
Column_NodeX
.
Name
=
"Column_NodeX"
;
this
.
Column_NodeX
.
ReadOnly
=
true
;
this
.
Column_NodeX
.
Visible
=
false
;
this
.
Column_NodeX
.
Width
=
70
;
//
// Column_NodeY
//
this
.
Column_NodeY
.
DataPropertyName
=
"NodePositionY"
;
this
.
Column_NodeY
.
HeaderText
=
"Y"
;
this
.
Column_NodeY
.
Name
=
"Column_NodeY"
;
this
.
Column_NodeY
.
ReadOnly
=
true
;
this
.
Column_NodeY
.
Visible
=
false
;
this
.
Column_NodeY
.
Width
=
70
;
//
// Column_positionNum
//
this
.
Column_positionNum
.
DataPropertyName
=
"Column_positionNum"
;
this
.
Column_positionNum
.
HeaderText
=
"位置"
;
this
.
Column_positionNum
.
Name
=
"Column_positionNum"
;
this
.
Column_positionNum
.
ReadOnly
=
true
;
this
.
Column_positionNum
.
Width
=
70
;
//
// Column_NeedSoldering
//
this
.
Column_NeedSoldering
.
DataPropertyName
=
"NeedSoldering"
;
this
.
Column_NeedSoldering
.
HeaderText
=
"需焊接"
;
this
.
Column_NeedSoldering
.
Name
=
"Column_NeedSoldering"
;
this
.
Column_NeedSoldering
.
ReadOnly
=
true
;
this
.
Column_NeedSoldering
.
Visible
=
false
;
this
.
Column_NeedSoldering
.
Width
=
70
;
//
// Column_WeldTemp
//
this
.
Column_WeldTemp
.
DataPropertyName
=
"WeldTemp"
;
this
.
Column_WeldTemp
.
HeaderText
=
"焊接温度"
;
this
.
Column_WeldTemp
.
MaxInputLength
=
10
;
this
.
Column_WeldTemp
.
Name
=
"Column_WeldTemp"
;
this
.
Column_WeldTemp
.
ReadOnly
=
true
;
this
.
Column_WeldTemp
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_WeldTemp
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
NotSortable
;
this
.
Column_WeldTemp
.
Visible
=
false
;
this
.
Column_WeldTemp
.
Width
=
80
;
//
// Column_WeldTime
//
this
.
Column_WeldTime
.
DataPropertyName
=
"WeldTime"
;
this
.
Column_WeldTime
.
HeaderText
=
"焊接时间"
;
this
.
Column_WeldTime
.
MaxInputLength
=
10
;
this
.
Column_WeldTime
.
Name
=
"Column_WeldTime"
;
this
.
Column_WeldTime
.
ReadOnly
=
true
;
this
.
Column_WeldTime
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_WeldTime
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
NotSortable
;
this
.
Column_WeldTime
.
Visible
=
false
;
this
.
Column_WeldTime
.
Width
=
80
;
//
// Column_NeedCheck
//
this
.
Column_NeedCheck
.
DataPropertyName
=
"NeedCheck"
;
this
.
Column_NeedCheck
.
HeaderText
=
"需检测"
;
this
.
Column_NeedCheck
.
Name
=
"Column_NeedCheck"
;
this
.
Column_NeedCheck
.
ReadOnly
=
true
;
this
.
Column_NeedCheck
.
Visible
=
false
;
this
.
Column_NeedCheck
.
Width
=
55
;
//
// Column_CheckOK
//
this
.
Column_CheckOK
.
HeaderText
=
"校准点"
;
this
.
Column_CheckOK
.
Name
=
"Column_CheckOK"
;
this
.
Column_CheckOK
.
ReadOnly
=
true
;
this
.
Column_CheckOK
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
Automatic
;
this
.
Column_CheckOK
.
Width
=
140
;
//
// Column_PointType
//
this
.
Column_PointType
.
HeaderText
=
"点类型"
;
this
.
Column_PointType
.
Name
=
"Column_PointType"
;
this
.
Column_PointType
.
ReadOnly
=
true
;
this
.
Column_PointType
.
Visible
=
false
;
//
// Column_PointSizeX
//
this
.
Column_PointSizeX
.
HeaderText
=
"横向点大小"
;
this
.
Column_PointSizeX
.
Name
=
"Column_PointSizeX"
;
this
.
Column_PointSizeX
.
ReadOnly
=
true
;
this
.
Column_PointSizeX
.
Visible
=
false
;
//
// Column_PointSizeY
//
this
.
Column_PointSizeY
.
HeaderText
=
"纵向点大小"
;
this
.
Column_PointSizeY
.
Name
=
"Column_PointSizeY"
;
this
.
Column_PointSizeY
.
ReadOnly
=
true
;
this
.
Column_PointSizeY
.
Visible
=
false
;
//
// Column_PenWidth
//
this
.
Column_PenWidth
.
HeaderText
=
"画笔宽度"
;
this
.
Column_PenWidth
.
Name
=
"Column_PenWidth"
;
this
.
Column_PenWidth
.
ReadOnly
=
true
;
this
.
Column_PenWidth
.
Visible
=
false
;
//
// Column_ShowText
//
this
.
Column_ShowText
.
HeaderText
=
"投影文字"
;
this
.
Column_ShowText
.
Name
=
"Column_ShowText"
;
this
.
Column_ShowText
.
ReadOnly
=
true
;
this
.
Column_ShowText
.
Visible
=
false
;
//
// Column_getPosition
//
this
.
Column_getPosition
.
HeaderText
=
"更新坐标"
;
this
.
Column_getPosition
.
Name
=
"Column_getPosition"
;
this
.
Column_getPosition
.
ReadOnly
=
true
;
this
.
Column_getPosition
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_getPosition
.
Text
=
"更新坐标"
;
this
.
Column_getPosition
.
ToolTipText
=
"更新坐标"
;
this
.
Column_getPosition
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_getPosition
.
Visible
=
false
;
this
.
Column_getPosition
.
Width
=
70
;
//
// Column_MoveTest
//
this
.
Column_MoveTest
.
HeaderText
=
"移动测试"
;
this
.
Column_MoveTest
.
Name
=
"Column_MoveTest"
;
this
.
Column_MoveTest
.
ReadOnly
=
true
;
this
.
Column_MoveTest
.
Text
=
"移动测试"
;
this
.
Column_MoveTest
.
ToolTipText
=
"移动测试"
;
this
.
Column_MoveTest
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_MoveTest
.
Width
=
80
;
//
// Column_btnDetail
//
this
.
Column_btnDetail
.
HeaderText
=
"详情"
;
this
.
Column_btnDetail
.
Name
=
"Column_btnDetail"
;
this
.
Column_btnDetail
.
ReadOnly
=
true
;
this
.
Column_btnDetail
.
Text
=
"详情"
;
this
.
Column_btnDetail
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_btnDetail
.
Width
=
60
;
//
// Column_Del
//
this
.
Column_Del
.
HeaderText
=
"删除"
;
this
.
Column_Del
.
Name
=
"Column_Del"
;
this
.
Column_Del
.
ReadOnly
=
true
;
this
.
Column_Del
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_Del
.
Text
=
"删除"
;
this
.
Column_Del
.
ToolTipText
=
"删除"
;
this
.
Column_Del
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_Del
.
Width
=
60
;
//
// Column_Up
//
this
.
Column_Up
.
HeaderText
=
"上升"
;
this
.
Column_Up
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"Column_Up.Image"
)));
this
.
Column_Up
.
Name
=
"Column_Up"
;
this
.
Column_Up
.
ReadOnly
=
true
;
this
.
Column_Up
.
Visible
=
false
;
this
.
Column_Up
.
Width
=
50
;
//
// Column_Down
//
this
.
Column_Down
.
HeaderText
=
"下降"
;
this
.
Column_Down
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"Column_Down.Image"
)));
this
.
Column_Down
.
Name
=
"Column_Down"
;
this
.
Column_Down
.
ReadOnly
=
true
;
this
.
Column_Down
.
Visible
=
false
;
this
.
Column_Down
.
Width
=
50
;
//
// lblMsg
//
this
.
lblMsg
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
lblMsg
.
AutoSize
=
true
;
this
.
lblMsg
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Bold
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lblMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
lblMsg
.
Location
=
new
System
.
Drawing
.
Point
(
102
,
636
);
this
.
lblMsg
.
Name
=
"lblMsg"
;
this
.
lblMsg
.
Size
=
new
System
.
Drawing
.
Size
(
56
,
17
);
this
.
lblMsg
.
TabIndex
=
260
;
this
.
lblMsg
.
Text
=
"急停未开"
;
this
.
lblMsg
.
Visible
=
false
;
//
// btnSetOrigin
//
this
.
btnSetOrigin
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
...
...
@@ -972,6 +723,248 @@
this
.
btnSave
.
UseVisualStyleBackColor
=
true
;
this
.
btnSave
.
Click
+=
new
System
.
EventHandler
(
this
.
btnSave_Click
);
//
// llblAllSel
//
this
.
llblAllSel
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
llblAllSel
.
AutoSize
=
true
;
this
.
llblAllSel
.
Location
=
new
System
.
Drawing
.
Point
(
23
,
645
);
this
.
llblAllSel
.
Name
=
"llblAllSel"
;
this
.
llblAllSel
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
llblAllSel
.
TabIndex
=
292
;
this
.
llblAllSel
.
TabStop
=
true
;
this
.
llblAllSel
.
Text
=
"全部启用"
;
this
.
llblAllSel
.
LinkClicked
+=
new
System
.
Windows
.
Forms
.
LinkLabelLinkClickedEventHandler
(
this
.
llblAllSel_LinkClicked
);
//
// llblAllUSel
//
this
.
llblAllUSel
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
llblAllUSel
.
AutoSize
=
true
;
this
.
llblAllUSel
.
Location
=
new
System
.
Drawing
.
Point
(
94
,
645
);
this
.
llblAllUSel
.
Name
=
"llblAllUSel"
;
this
.
llblAllUSel
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
llblAllUSel
.
TabIndex
=
293
;
this
.
llblAllUSel
.
TabStop
=
true
;
this
.
llblAllUSel
.
Text
=
"全部禁用"
;
this
.
llblAllUSel
.
LinkClicked
+=
new
System
.
Windows
.
Forms
.
LinkLabelLinkClickedEventHandler
(
this
.
llblAllUSel_LinkClicked
);
//
// Column_pointNum
//
this
.
Column_pointNum
.
DataPropertyName
=
"pointNum"
;
this
.
Column_pointNum
.
HeaderText
=
"Id"
;
this
.
Column_pointNum
.
Name
=
"Column_pointNum"
;
this
.
Column_pointNum
.
ReadOnly
=
true
;
this
.
Column_pointNum
.
Visible
=
false
;
this
.
Column_pointNum
.
Width
=
55
;
//
// Column_PartNum
//
this
.
Column_PartNum
.
DataPropertyName
=
"partNum"
;
this
.
Column_PartNum
.
HeaderText
=
"编号"
;
this
.
Column_PartNum
.
Name
=
"Column_PartNum"
;
this
.
Column_PartNum
.
ReadOnly
=
true
;
//
// Column_Name
//
this
.
Column_Name
.
DataPropertyName
=
"pointName"
;
this
.
Column_Name
.
HeaderText
=
"名称"
;
this
.
Column_Name
.
Name
=
"Column_Name"
;
this
.
Column_Name
.
ReadOnly
=
true
;
//
// Column_X
//
this
.
Column_X
.
DataPropertyName
=
"PositionX"
;
this
.
Column_X
.
HeaderText
=
"X"
;
this
.
Column_X
.
Name
=
"Column_X"
;
this
.
Column_X
.
ReadOnly
=
true
;
this
.
Column_X
.
Width
=
80
;
//
// Column_Y
//
this
.
Column_Y
.
DataPropertyName
=
"PositionY"
;
this
.
Column_Y
.
HeaderText
=
"Y"
;
this
.
Column_Y
.
Name
=
"Column_Y"
;
this
.
Column_Y
.
ReadOnly
=
true
;
this
.
Column_Y
.
Width
=
80
;
//
// Column_NodeX
//
this
.
Column_NodeX
.
DataPropertyName
=
"NodePositionX"
;
this
.
Column_NodeX
.
HeaderText
=
"X"
;
this
.
Column_NodeX
.
Name
=
"Column_NodeX"
;
this
.
Column_NodeX
.
ReadOnly
=
true
;
this
.
Column_NodeX
.
Visible
=
false
;
this
.
Column_NodeX
.
Width
=
70
;
//
// Column_NodeY
//
this
.
Column_NodeY
.
DataPropertyName
=
"NodePositionY"
;
this
.
Column_NodeY
.
HeaderText
=
"Y"
;
this
.
Column_NodeY
.
Name
=
"Column_NodeY"
;
this
.
Column_NodeY
.
ReadOnly
=
true
;
this
.
Column_NodeY
.
Visible
=
false
;
this
.
Column_NodeY
.
Width
=
70
;
//
// Column_positionNum
//
this
.
Column_positionNum
.
DataPropertyName
=
"Column_positionNum"
;
this
.
Column_positionNum
.
HeaderText
=
"位置"
;
this
.
Column_positionNum
.
Name
=
"Column_positionNum"
;
this
.
Column_positionNum
.
ReadOnly
=
true
;
this
.
Column_positionNum
.
Width
=
70
;
//
// Column_NeedSoldering
//
this
.
Column_NeedSoldering
.
DataPropertyName
=
"NeedSoldering"
;
this
.
Column_NeedSoldering
.
HeaderText
=
"需焊接"
;
this
.
Column_NeedSoldering
.
Name
=
"Column_NeedSoldering"
;
this
.
Column_NeedSoldering
.
ReadOnly
=
true
;
this
.
Column_NeedSoldering
.
Visible
=
false
;
this
.
Column_NeedSoldering
.
Width
=
70
;
//
// Column_WeldTemp
//
this
.
Column_WeldTemp
.
DataPropertyName
=
"WeldTemp"
;
this
.
Column_WeldTemp
.
HeaderText
=
"焊接温度"
;
this
.
Column_WeldTemp
.
MaxInputLength
=
10
;
this
.
Column_WeldTemp
.
Name
=
"Column_WeldTemp"
;
this
.
Column_WeldTemp
.
ReadOnly
=
true
;
this
.
Column_WeldTemp
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_WeldTemp
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
NotSortable
;
this
.
Column_WeldTemp
.
Visible
=
false
;
this
.
Column_WeldTemp
.
Width
=
80
;
//
// Column_WeldTime
//
this
.
Column_WeldTime
.
DataPropertyName
=
"WeldTime"
;
this
.
Column_WeldTime
.
HeaderText
=
"焊接时间"
;
this
.
Column_WeldTime
.
MaxInputLength
=
10
;
this
.
Column_WeldTime
.
Name
=
"Column_WeldTime"
;
this
.
Column_WeldTime
.
ReadOnly
=
true
;
this
.
Column_WeldTime
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_WeldTime
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
NotSortable
;
this
.
Column_WeldTime
.
Visible
=
false
;
this
.
Column_WeldTime
.
Width
=
80
;
//
// Column_NeedCheck
//
this
.
Column_NeedCheck
.
DataPropertyName
=
"NeedCheck"
;
this
.
Column_NeedCheck
.
HeaderText
=
"需检测"
;
this
.
Column_NeedCheck
.
Name
=
"Column_NeedCheck"
;
this
.
Column_NeedCheck
.
ReadOnly
=
true
;
this
.
Column_NeedCheck
.
Visible
=
false
;
this
.
Column_NeedCheck
.
Width
=
55
;
//
// Column_CheckOK
//
this
.
Column_CheckOK
.
HeaderText
=
"校准点"
;
this
.
Column_CheckOK
.
Name
=
"Column_CheckOK"
;
this
.
Column_CheckOK
.
ReadOnly
=
true
;
this
.
Column_CheckOK
.
SortMode
=
System
.
Windows
.
Forms
.
DataGridViewColumnSortMode
.
Automatic
;
this
.
Column_CheckOK
.
Width
=
80
;
//
// Column_PointType
//
this
.
Column_PointType
.
HeaderText
=
"点类型"
;
this
.
Column_PointType
.
Name
=
"Column_PointType"
;
this
.
Column_PointType
.
ReadOnly
=
true
;
this
.
Column_PointType
.
Visible
=
false
;
//
// Column_PointSizeX
//
this
.
Column_PointSizeX
.
HeaderText
=
"横向点大小"
;
this
.
Column_PointSizeX
.
Name
=
"Column_PointSizeX"
;
this
.
Column_PointSizeX
.
ReadOnly
=
true
;
this
.
Column_PointSizeX
.
Visible
=
false
;
//
// Column_PointSizeY
//
this
.
Column_PointSizeY
.
HeaderText
=
"纵向点大小"
;
this
.
Column_PointSizeY
.
Name
=
"Column_PointSizeY"
;
this
.
Column_PointSizeY
.
ReadOnly
=
true
;
this
.
Column_PointSizeY
.
Visible
=
false
;
//
// Column_PenWidth
//
this
.
Column_PenWidth
.
HeaderText
=
"画笔宽度"
;
this
.
Column_PenWidth
.
Name
=
"Column_PenWidth"
;
this
.
Column_PenWidth
.
ReadOnly
=
true
;
this
.
Column_PenWidth
.
Visible
=
false
;
//
// Column_ShowText
//
this
.
Column_ShowText
.
HeaderText
=
"投影文字"
;
this
.
Column_ShowText
.
Name
=
"Column_ShowText"
;
this
.
Column_ShowText
.
ReadOnly
=
true
;
this
.
Column_ShowText
.
Visible
=
false
;
//
// Column_disable
//
this
.
Column_disable
.
FillWeight
=
80F
;
this
.
Column_disable
.
HeaderText
=
"禁用"
;
this
.
Column_disable
.
Name
=
"Column_disable"
;
this
.
Column_disable
.
ReadOnly
=
true
;
this
.
Column_disable
.
Width
=
80
;
//
// Column_getPosition
//
this
.
Column_getPosition
.
HeaderText
=
"更新坐标"
;
this
.
Column_getPosition
.
Name
=
"Column_getPosition"
;
this
.
Column_getPosition
.
ReadOnly
=
true
;
this
.
Column_getPosition
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_getPosition
.
Text
=
"更新坐标"
;
this
.
Column_getPosition
.
ToolTipText
=
"更新坐标"
;
this
.
Column_getPosition
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_getPosition
.
Visible
=
false
;
this
.
Column_getPosition
.
Width
=
70
;
//
// Column_MoveTest
//
this
.
Column_MoveTest
.
HeaderText
=
"移动测试"
;
this
.
Column_MoveTest
.
Name
=
"Column_MoveTest"
;
this
.
Column_MoveTest
.
ReadOnly
=
true
;
this
.
Column_MoveTest
.
Text
=
"移动测试"
;
this
.
Column_MoveTest
.
ToolTipText
=
"移动测试"
;
this
.
Column_MoveTest
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_MoveTest
.
Width
=
80
;
//
// Column_btnDetail
//
this
.
Column_btnDetail
.
HeaderText
=
"详情"
;
this
.
Column_btnDetail
.
Name
=
"Column_btnDetail"
;
this
.
Column_btnDetail
.
ReadOnly
=
true
;
this
.
Column_btnDetail
.
Text
=
"详情"
;
this
.
Column_btnDetail
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_btnDetail
.
Width
=
60
;
//
// Column_Del
//
this
.
Column_Del
.
HeaderText
=
"删除"
;
this
.
Column_Del
.
Name
=
"Column_Del"
;
this
.
Column_Del
.
ReadOnly
=
true
;
this
.
Column_Del
.
Resizable
=
System
.
Windows
.
Forms
.
DataGridViewTriState
.
True
;
this
.
Column_Del
.
Text
=
"删除"
;
this
.
Column_Del
.
ToolTipText
=
"删除"
;
this
.
Column_Del
.
UseColumnTextForLinkValue
=
true
;
this
.
Column_Del
.
Width
=
60
;
//
// Column_Up
//
this
.
Column_Up
.
HeaderText
=
"上升"
;
this
.
Column_Up
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"Column_Up.Image"
)));
this
.
Column_Up
.
Name
=
"Column_Up"
;
this
.
Column_Up
.
ReadOnly
=
true
;
this
.
Column_Up
.
Visible
=
false
;
this
.
Column_Up
.
Width
=
50
;
//
// Column_Down
//
this
.
Column_Down
.
HeaderText
=
"下降"
;
this
.
Column_Down
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"Column_Down.Image"
)));
this
.
Column_Down
.
Name
=
"Column_Down"
;
this
.
Column_Down
.
ReadOnly
=
true
;
this
.
Column_Down
.
Visible
=
false
;
this
.
Column_Down
.
Width
=
50
;
//
// FrmBoardInfo
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
...
...
@@ -993,7 +986,6 @@
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox2
.
PerformLayout
();
this
.
焊点列表
.
ResumeLayout
(
false
);
this
.
焊点列表
.
PerformLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
dgvList
)).
EndInit
();
this
.
panel3
.
ResumeLayout
(
false
);
this
.
panBoard
.
ResumeLayout
(
false
);
...
...
@@ -1027,7 +1019,6 @@
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
上升
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
下降
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
删除
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
Label
lblMsg
;
private
System
.
Windows
.
Forms
.
Label
label25
;
private
System
.
Windows
.
Forms
.
Label
label24
;
private
System
.
Windows
.
Forms
.
DataGridViewImageColumn
dataGridViewImageColumn1
;
...
...
@@ -1038,14 +1029,12 @@
private
System
.
Windows
.
Forms
.
Panel
panel3
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Button
btnSetOrigin
;
private
System
.
Windows
.
Forms
.
Button
btnGoHome
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
GroupBox
焊点列表
;
private
System
.
ComponentModel
.
BackgroundWorker
backgroundWorker1
;
private
System
.
Windows
.
Forms
.
Label
lblMousePosition
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
记录为组装坐标
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
更新为组装坐标
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
Label
label7
;
private
System
.
Windows
.
Forms
.
Button
btnSort
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox2
;
private
System
.
Windows
.
Forms
.
Button
btnUpdate
;
...
...
@@ -1061,6 +1050,11 @@
private
System
.
Windows
.
Forms
.
ComboBox
cmbAOIFile
;
private
System
.
Windows
.
Forms
.
Label
lblAoi
;
private
System
.
Windows
.
Forms
.
Button
btnConfigAOI
;
private
System
.
Windows
.
Forms
.
Label
lblLineW
;
private
System
.
Windows
.
Forms
.
TextBox
txtLineWidth
;
private
System
.
Windows
.
Forms
.
Label
lbllinews
;
private
System
.
Windows
.
Forms
.
LinkLabel
llblAllUSel
;
private
System
.
Windows
.
Forms
.
LinkLabel
llblAllSel
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column_pointNum
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column_PartNum
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column_Name
;
...
...
@@ -1079,14 +1073,12 @@
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column_PointSizeY
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column_PenWidth
;
private
System
.
Windows
.
Forms
.
DataGridViewTextBoxColumn
Column_ShowText
;
private
System
.
Windows
.
Forms
.
DataGridViewCheckBoxColumn
Column_disable
;
private
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
Column_getPosition
;
private
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
Column_MoveTest
;
private
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
Column_btnDetail
;
private
System
.
Windows
.
Forms
.
DataGridViewLinkColumn
Column_Del
;
private
System
.
Windows
.
Forms
.
DataGridViewImageColumn
Column_Up
;
private
System
.
Windows
.
Forms
.
DataGridViewImageColumn
Column_Down
;
private
System
.
Windows
.
Forms
.
Label
lblLineW
;
private
System
.
Windows
.
Forms
.
TextBox
txtLineWidth
;
private
System
.
Windows
.
Forms
.
Label
lbllinews
;
}
}
\ No newline at end of file
TSA-V/FrmBoardInfo.cs
查看文件 @
84cea5d
...
...
@@ -92,15 +92,7 @@ namespace TSA_V
}
TSAVBean
.
IsCanStepMove
=
true
;
timer1
.
Start
();
if
(
IOManager
.
ShuddenOK
().
Equals
(
false
))
{
// MessageBox.Show("急停未开!");
lblMsg
.
Text
=
ResourceCulture
.
GetString
(
ResourceCulture
.
DeviceInSuddenStop
,
"急停未开"
);
}
else
{
lblMsg
.
Text
=
""
;
}
isFinishLoad
=
true
;
}
private
void
LanguagePro
()
...
...
@@ -140,6 +132,7 @@ namespace TSA_V
this
.
Column_Up
.
HeaderText
=
ResourceCulture
.
GetString
(
ResourceCulture
.
ItemText_Up
,
"上升"
);
this
.
Column_Down
.
HeaderText
=
ResourceCulture
.
GetString
(
ResourceCulture
.
ItemText_Down
,
"下降"
);
this
.
Column_CheckOK
.
HeaderText
=
ResourceCulture
.
GetString
(
ResourceCulture
.
ItemText_Check
,
"校准点"
);
this
.
Column_disable
.
HeaderText
=
ResourceCulture
.
GetString
(
ResourceCulture
.
ItemText_Check
,
"禁用"
);
}
private
void
FrmBoardInfo_Load
(
object
sender
,
EventArgs
e
)
{
...
...
@@ -150,6 +143,19 @@ namespace TSA_V
lblAoi
.
Visible
=
TSAVBean
.
IsNeedAOI
;
cmbAOIFile
.
Visible
=
TSAVBean
.
IsNeedAOI
;
btnConfigAOI
.
Visible
=
TSAVBean
.
IsNeedAOI
;
int
count
=
dgvList
.
Columns
.
Count
;
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
if
(
i
.
Equals
(
Column_disable
.
Index
))
{
dgvList
.
Columns
[
i
].
ReadOnly
=
false
;
}
else
{
dgvList
.
Columns
[
i
].
ReadOnly
=
true
;
}
}
}
protected
override
bool
ProcessCmdKey
(
ref
Message
msg
,
Keys
keyData
)
{
...
...
@@ -271,6 +277,7 @@ namespace TSA_V
view
.
Cells
[
Column_PointSizeY
.
Index
].
Value
=
point
.
PointSizeY
;
view
.
Cells
[
Column_PenWidth
.
Index
].
Value
=
point
.
PenWidth
;
view
.
Cells
[
Column_ShowText
.
Index
].
Value
=
point
.
ShowText
;
view
.
Cells
[
Column_disable
.
Index
].
Value
=
point
.
Disable
;
if
(
point
.
CheckOK
)
{
view
.
DefaultCellStyle
.
ForeColor
=
Color
.
Red
;
...
...
@@ -290,34 +297,34 @@ namespace TSA_V
IsProcess
=
true
;
if
(
TSAVBean
.
Status
.
Equals
(
TSAVStatus
.
Wait
))
{
string
msg
=
ResourceCulture
.
GetString
(
ResourceCulture
.
DeviceNotOkMsg
,
"设备未连接"
);
if
(!
lblMsg
.
Text
.
Equals
(
msg
))
{
lblMsg
.
Text
=
msg
;
btnGoHome
.
Enabled
=
false
;
}
}
else
if
(
TSAVBean
.
Status
.
Equals
(
TSAVStatus
.
Reset
))
{
string
msg
=
ResourceCulture
.
GetString
(
ResourceCulture
.
DeviceInGohome
,
"设备正在原点返回中"
);
if
(!
lblMsg
.
Text
.
Equals
(
msg
))
{
lblMsg
.
Text
=
msg
;
btnGoHome
.
Enabled
=
true
;
}
}
else
if
(
TSAVBean
.
Status
.
Equals
(
TSAVStatus
.
Runing
))
{
string
msg
=
ResourceCulture
.
GetString
(
ResourceCulture
.
DeviceInWork
,
"设备工作中"
);
if
(!
lblMsg
.
Text
.
Equals
(
msg
))
{
lblMsg
.
Text
=
msg
;
btnGoHome
.
Enabled
=
true
;
}
//
if (TSAVBean.Status.Equals(TSAVStatus.Wait))
//
{
//
string msg = ResourceCulture.GetString(ResourceCulture.DeviceNotOkMsg, "设备未连接");
//
if (!lblMsg.Text.Equals(msg))
//
{
//
lblMsg.Text = msg;
//
btnGoHome.Enabled = false;
//
}
//
}
//
else if (TSAVBean.Status.Equals(TSAVStatus.Reset))
//
{
//
string msg = ResourceCulture.GetString(ResourceCulture.DeviceInGohome, "设备正在原点返回中");
//
if (!lblMsg.Text.Equals(msg))
//
{
//
lblMsg.Text = msg;
//
btnGoHome.Enabled = true;
//
}
//
}
//
else if (TSAVBean.Status.Equals(TSAVStatus.Runing))
//
{
//
string msg = ResourceCulture.GetString(ResourceCulture.DeviceInWork, "设备工作中");
//
if (!lblMsg.Text.Equals(msg))
//
{
//
lblMsg.Text = msg;
//
btnGoHome.Enabled = true;
//
}
}
//
}
IsProcess
=
false
;
}
...
...
@@ -486,13 +493,8 @@ namespace TSA_V
board
.
boardName
=
FormUtil
.
getValue
(
txtBoardName
);
board
.
boardLength
=
FormUtil
.
GetIntValue
(
txtBoardW
);
board
.
boardWidth
=
FormUtil
.
GetIntValue
(
txtBoardL
);
board
.
LineWidth
=
FormUtil
.
GetIntValue
(
txtLineWidth
);
//board.originX = orgXValue;
//board.originY = orgYValue;
board
.
boardCode
=
FormUtil
.
getValue
(
txtCode
);
//board.originX = FormUtil.GetIntValue(txtOriginX);
//board.originY = FormUtil.GetIntValue(txtOriginY);
board
.
LineWidth
=
FormUtil
.
GetIntValue
(
txtLineWidth
);
board
.
boardCode
=
FormUtil
.
getValue
(
txtCode
);
board
.
orgType
=
orgType
;
board
.
AOIProName
=
cmbAOIFile
.
Text
;
...
...
@@ -649,6 +651,7 @@ namespace TSA_V
point
.
PointType
=
Convert
.
ToInt32
(
row
.
Cells
[
this
.
Column_PointType
.
Name
].
Value
.
ToString
());
point
.
PenWidth
=
Convert
.
ToInt32
(
row
.
Cells
[
this
.
Column_PenWidth
.
Name
].
Value
.
ToString
());
point
.
ShowText
=
(
row
.
Cells
[
this
.
Column_ShowText
.
Name
].
Value
.
ToString
());
point
.
Disable
=
Convert
.
ToBoolean
(
row
.
Cells
[
this
.
Column_disable
.
Name
].
Value
.
ToString
());
}
catch
(
Exception
ex
)
{
...
...
@@ -1050,17 +1053,7 @@ namespace TSA_V
btnSetBasePoint_Click
(
null
,
null
);
}
private
void
btnGoHome_Click_1
(
object
sender
,
EventArgs
e
)
{
btnGoHome
.
Enabled
=
false
;
if
(
TSAVBean
.
Status
>
TSAVStatus
.
Wait
)
{
TSAVBean
.
StartReset
();
}
btnGoHome
.
Enabled
=
true
;
}
private
DateTime
preProTime
=
DateTime
.
Now
;
private
void
picBoard_MouseMove
(
object
sender
,
MouseEventArgs
e
)
...
...
@@ -1312,5 +1305,23 @@ namespace TSA_V
{
btnOpenFile_Click
(
null
,
null
);
}
private
void
llblAllSel_LinkClicked
(
object
sender
,
LinkLabelLinkClickedEventArgs
e
)
{
int
cout
=
dgvList
.
Rows
.
Count
;
for
(
int
i
=
0
;
i
<
cout
;
i
++)
{
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_disable
.
Name
].
Value
=
false
;
}
}
private
void
llblAllUSel_LinkClicked
(
object
sender
,
LinkLabelLinkClickedEventArgs
e
)
{
int
cout
=
dgvList
.
Rows
.
Count
;
for
(
int
i
=
0
;
i
<
cout
;
i
++)
{
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_disable
.
Name
].
Value
=
true
;
}
}
}
}
TSA-V/FrmBoardInfo.resx
查看文件 @
84cea5d
...
...
@@ -207,6 +207,9 @@
<metadata name="Column_ShowText.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_disable.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_getPosition.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
...
...
TSA-V/Properties/Resource.en-US.resx
查看文件 @
84cea5d
...
...
@@ -2272,34 +2272,87 @@
<data name="用户名或密码错误" xml:space="preserve">
<value>Incorrect user name or password</value>
</data>
<data name = "添加用户失败" xml:space = "preserve"> <value> Failed to add user </value> </data>
<data name = "退出" xml:space = "preserve"> <value> exit </value> </data>
<data name = "增加" xml:space = "preserve"> <value> add </value> </data>
<data name = "修改" xml:space = "preserve"> <value> modify </value> </data>
<data name = "删除" xml:space = "preserve"> <value> delete </value> </data>
<data name = "用户名" xml:space = "preserve"> <value> username </value> </data>
<data name = "密码" xml:space = "preserve"> <value> password </value> </data>
<data name = "权限" xml:space = "preserve"> <value> Permission </value> </data>
<data name = "用户管理" xml:space = "preserve"> <value> user management </value> </data>
<data name = "确认删除用户" xml:space = "preserve"> <value> Confirm to delete user </value> </data>
<data name = "用户删除成功" xml:space = "preserve"> <value> User deleted successfully </value> </data>
<data name = "用户删除失败" xml:space = "preserve"> <value> Failed to delete user </value> </data>
<data name = "确定修改用户信息" xml:space = "preserve"> <value> Confirm to modify user information </value> </data>
<data name = "用户修改成功" xml:space = "preserve"> <value> Modify user successfully </value> </data>
<data name = "用户修改失败" xml:space = "preserve"> <value> Failed to modify user </value> </data>
<data name = "添加用户成功" xml:space = "preserve"> <value> Added user successfully </value> </data>
<data name = "FrmDeviceConfig_lblCode_Text" xml:space = "preserve"> <value> Barcode: </value> </data>
<data name = "FrmPusicanTest_llblClearp_Text" xml:space = "preserve"> <value> Zero position </value> </data>
<data name="添加用户失败" xml:space="preserve">
<value> Failed to add user </value>
</data>
<data name="退出" xml:space="preserve">
<value> exit </value>
</data>
<data name="增加" xml:space="preserve">
<value> add </value>
</data>
<data name="修改" xml:space="preserve">
<value> modify </value>
</data>
<data name="删除" xml:space="preserve">
<value> delete </value>
</data>
<data name="用户名" xml:space="preserve">
<value> username </value>
</data>
<data name="密码" xml:space="preserve">
<value> password </value>
</data>
<data name="权限" xml:space="preserve">
<value> Permission </value>
</data>
<data name="用户管理" xml:space="preserve">
<value> user management </value>
</data>
<data name="确认删除用户" xml:space="preserve">
<value> Confirm to delete user </value>
</data>
<data name="用户删除成功" xml:space="preserve">
<value> User deleted successfully </value>
</data>
<data name="用户删除失败" xml:space="preserve">
<value> Failed to delete user </value>
</data>
<data name="确定修改用户信息" xml:space="preserve">
<value> Confirm to modify user information </value>
</data>
<data name="用户修改成功" xml:space="preserve">
<value> Modify user successfully </value>
</data>
<data name="用户修改失败" xml:space="preserve">
<value> Failed to modify user </value>
</data>
<data name="添加用户成功" xml:space="preserve">
<value> Added user successfully </value>
</data>
<data name="FrmDeviceConfig_lblCode_Text" xml:space="preserve">
<value> Barcode: </value>
</data>
<data name="FrmPusicanTest_llblClearp_Text" xml:space="preserve">
<value> Zero position </value>
</data>
<data name="LineWidth" xml:space="preserve">
<value>Line body width</value>
</data>
<data name="WriteLineWidth" xml:space="preserve">
<value>Please enter the line width</value>
</data>
<data name = "FrmBoardSelect_btnChangeW_Text" xml:space = "preserve"> <value> Adjust the line width </value> </data>
<data name = "FrmAddBoard_label9_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmAddBoard_lblName_Text" xml:space = "preserve"> <value> Projection words: </value> </data>
<data name = "FrmBoardInfo_lblLineW_Text" xml:space = "preserve"> <value> Line body width: </value> </data>
<data name = "FrmBoardInfo_lbllinews_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmChangeWidth_btnHomeM_Text" xml:space = "preserve"> <value> The origin back </value> </data>
<data name="FrmBoardSelect_btnChangeW_Text" xml:space="preserve">
<value> Adjust the line width </value>
</data>
<data name="FrmAddBoard_label9_Text" xml:space="preserve">
<value> mm </value>
</data>
<data name="FrmAddBoard_lblName_Text" xml:space="preserve">
<value> Projection words: </value>
</data>
<data name="FrmBoardInfo_lblLineW_Text" xml:space="preserve">
<value> Line body width: </value>
</data>
<data name="FrmBoardInfo_lbllinews_Text" xml:space="preserve">
<value> mm </value>
</data>
<data name="FrmChangeWidth_btnHomeM_Text" xml:space="preserve">
<value> The origin back </value>
</data>
<data name="禁用" xml:space="preserve">
<value>Disabled</value>
</data>
<data name = "FrmBoardInfo_llblAllUSel_Text" xml:space = "preserve"> <value> Disable all </value> </data>
<data name = "FrmBoardInfo_llblAllSel_Text" xml:space = "preserve"> <value> To enable all </value> </data>
</root>
\ No newline at end of file
TSA-V/Properties/Resource.zh-CN.resx
查看文件 @
84cea5d
...
...
@@ -2346,10 +2346,27 @@
<data name="WriteLineWidth" xml:space="preserve">
<value>请输入线体宽度</value>
</data>
<data name = "FrmBoardSelect_btnChangeW_Text" xml:space = "preserve"> <value> 调宽 </value> </data>
<data name = "FrmAddBoard_label9_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmAddBoard_lblName_Text" xml:space = "preserve"> <value> 投影文字: </value> </data>
<data name = "FrmBoardInfo_lblLineW_Text" xml:space = "preserve"> <value> 线体宽度: </value> </data>
<data name = "FrmBoardInfo_lbllinews_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmChangeWidth_btnHomeM_Text" xml:space = "preserve"> <value> 原点返回 </value> </data>
<data name="FrmBoardSelect_btnChangeW_Text" xml:space="preserve">
<value> 调宽 </value>
</data>
<data name="FrmAddBoard_label9_Text" xml:space="preserve">
<value> mm </value>
</data>
<data name="FrmAddBoard_lblName_Text" xml:space="preserve">
<value> 投影文字: </value>
</data>
<data name="FrmBoardInfo_lblLineW_Text" xml:space="preserve">
<value> 线体宽度: </value>
</data>
<data name="FrmBoardInfo_lbllinews_Text" xml:space="preserve">
<value> mm </value>
</data>
<data name="FrmChangeWidth_btnHomeM_Text" xml:space="preserve">
<value> 原点返回 </value>
</data>
<data name="禁用" xml:space="preserve">
<value>禁用</value>
</data>
<data name = "FrmBoardInfo_llblAllUSel_Text" xml:space = "preserve"> <value> 全部禁用 </value> </data>
<data name = "FrmBoardInfo_llblAllSel_Text" xml:space = "preserve"> <value> 全部启用 </value> </data>
</root>
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论