Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 309220de
由
LN
编写于
2021-09-10 14:25:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
PointDisplayType=1时,投影文字显示partNum,否则显示点名称
1 个父辈
a7800ec3
全部展开
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
24 行增加
和
8 行删除
Common/Setting_Init.cs
DeviceLibrary/bean/BoardInfo.cs
DeviceLibrary/manager/BoardManager.cs
TSA-V/App.config
TSA-V/FrmBoardInfo.Designer.cs
TSA-V/FrmBoardInfo.cs
TSA-V/Properties/Resource.en-US.resx
TSA-V/Properties/Resource.zh-CN.resx
TSA-V/workForm/PointDisplay.cs
UserFromControl/ImagePointControl.cs
Common/Setting_Init.cs
查看文件 @
309220d
...
@@ -173,5 +173,6 @@ namespace TSA_V.Common
...
@@ -173,5 +173,6 @@ namespace TSA_V.Common
public
static
string
WorkSingleStart
=
"WorkSingleStart"
;
public
static
string
WorkSingleStart
=
"WorkSingleStart"
;
public
static
string
PointDisplayType
=
"PointDisplayType"
;
}
}
}
}
DeviceLibrary/bean/BoardInfo.cs
查看文件 @
309220d
...
@@ -264,6 +264,16 @@ namespace TSA_V.DeviceLibrary
...
@@ -264,6 +264,16 @@ namespace TSA_V.DeviceLibrary
return
pointName
+
spilt
+
"1"
+
spilt
+
"2"
+
spilt
+
PositionX
+
spilt
+
PositionY
+
spilt
+
"CRD"
+
spilt
+
NodePositionX
+
spilt
+
NodePositionY
;
return
pointName
+
spilt
+
"1"
+
spilt
+
"2"
+
spilt
+
PositionX
+
spilt
+
PositionY
+
spilt
+
"CRD"
+
spilt
+
NodePositionX
+
spilt
+
NodePositionY
;
}
}
public
string
GetDisplayStr
()
{
string
text
=
pointName
;
if
(
BoardManager
.
PointDisplayType
.
Equals
(
1
))
{
text
=
PartNum
;
}
return
text
;
}
/// <summary>
/// <summary>
/// 点类型,1=点,2=+,3=|,3=-,4=方形,5=圆圈
/// 点类型,1=点,2=+,3=|,3=-,4=方形,5=圆圈
/// </summary>
/// </summary>
...
...
DeviceLibrary/manager/BoardManager.cs
查看文件 @
309220d
...
@@ -15,6 +15,7 @@ namespace TSA_V.DeviceLibrary
...
@@ -15,6 +15,7 @@ namespace TSA_V.DeviceLibrary
{
{
public
class
BoardManager
public
class
BoardManager
{
{
public
static
int
PointDisplayType
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
PointDisplayType
);
private
static
int
MaxId
=
0
;
private
static
int
MaxId
=
0
;
/// <summary>
/// <summary>
/// 板子列表
/// 板子列表
...
...
TSA-V/App.config
查看文件 @
309220d
...
@@ -110,6 +110,8 @@
...
@@ -110,6 +110,8 @@
<
add
key
=
"SideCylinderMoveFirst"
value
=
"1"
/>
<
add
key
=
"SideCylinderMoveFirst"
value
=
"1"
/>
<!--是否启用工作区信号触发开始工作-->
<!--是否启用工作区信号触发开始工作-->
<
add
key
=
"WorkSingleStart"
value
=
"0"
/>
<
add
key
=
"WorkSingleStart"
value
=
"0"
/>
<!--点位描述显示类型-->
<
add
key
=
"PointDisplayType"
value
=
"1"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"defaultAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"defaultAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
TSA-V/FrmBoardInfo.Designer.cs
查看文件 @
309220d
此文件的差异被折叠,
点击展开。
TSA-V/FrmBoardInfo.cs
查看文件 @
309220d
...
@@ -96,8 +96,9 @@ namespace TSA_V
...
@@ -96,8 +96,9 @@ namespace TSA_V
isFinishLoad
=
true
;
isFinishLoad
=
true
;
if
(
dgvList
.
Rows
.
Count
>
0
)
if
(
dgvList
.
Rows
.
Count
>
0
)
{
{
int
index
=
dgvList
.
Rows
.
Count
-
1
;
// int index = dgvList.Rows.Count - 1;
dgvList
.
Rows
[
0
].
Selected
=
true
;
// dgvList.Rows[0].Selected = true;
UpdateSelPoint
(
0
);
}
}
}
}
private
void
LanguagePro
()
private
void
LanguagePro
()
...
@@ -165,6 +166,7 @@ namespace TSA_V
...
@@ -165,6 +166,7 @@ namespace TSA_V
{
{
dgvList
.
Columns
[
i
].
ReadOnly
=
true
;
dgvList
.
Columns
[
i
].
ReadOnly
=
true
;
}
}
dgvList
.
Columns
[
i
].
Selected
=
false
;
}
}
}
}
protected
override
bool
ProcessCmdKey
(
ref
Message
msg
,
Keys
keyData
)
protected
override
bool
ProcessCmdKey
(
ref
Message
msg
,
Keys
keyData
)
...
...
TSA-V/Properties/Resource.en-US.resx
查看文件 @
309220d
...
@@ -517,7 +517,7 @@
...
@@ -517,7 +517,7 @@
<value>WIDTH↑</value>
<value>WIDTH↑</value>
</data>
</data>
<data name="FrmBoardInfo_label14_Text" xml:space="preserve">
<data name="FrmBoardInfo_label14_Text" xml:space="preserve">
<value>
TYP
E</value>
<value>
BARCOD
E</value>
</data>
</data>
<data name="FrmBoardInfo_label3_Text" xml:space="preserve">
<data name="FrmBoardInfo_label3_Text" xml:space="preserve">
<value>LENGTH→</value>
<value>LENGTH→</value>
...
...
TSA-V/Properties/Resource.zh-CN.resx
查看文件 @
309220d
...
@@ -337,7 +337,7 @@
...
@@ -337,7 +337,7 @@
<value>数量:</value>
<value>数量:</value>
</data>
</data>
<data name="FrmPutCom_label2_Text" xml:space="preserve">
<data name="FrmPutCom_label2_Text" xml:space="preserve">
<value>
料盘
编码:</value>
<value>
物料
编码:</value>
</data>
</data>
<data name="FrmAddCom_Text" xml:space="preserve">
<data name="FrmAddCom_Text" xml:space="preserve">
<value>新增元器件库</value>
<value>新增元器件库</value>
...
@@ -517,7 +517,7 @@
...
@@ -517,7 +517,7 @@
<value>宽度 ↑</value>
<value>宽度 ↑</value>
</data>
</data>
<data name="FrmBoardInfo_label14_Text" xml:space="preserve">
<data name="FrmBoardInfo_label14_Text" xml:space="preserve">
<value>
类型
</value>
<value>
条码
</value>
</data>
</data>
<data name="FrmBoardInfo_label3_Text" xml:space="preserve">
<data name="FrmBoardInfo_label3_Text" xml:space="preserve">
<value>长度→</value>
<value>长度→</value>
...
...
TSA-V/workForm/PointDisplay.cs
查看文件 @
309220d
...
@@ -130,7 +130,7 @@ namespace TSA_V
...
@@ -130,7 +130,7 @@ namespace TSA_V
//写字
//写字
if
(
index
.
Equals
(
selectIndex
)
||
ShowName
)
if
(
index
.
Equals
(
selectIndex
)
||
ShowName
)
{
{
grfx
.
DrawString
(
weld
.
pointName
,
new
Font
(
"Arial "
,
9
,
FontStyle
.
Bold
),
brushes
,
x
-
lineLength
/
2
+
2
,
y
+
lineLength
/
2
+
2
);
grfx
.
DrawString
(
weld
.
GetDisplayStr
()
,
new
Font
(
"Arial "
,
9
,
FontStyle
.
Bold
),
brushes
,
x
-
lineLength
/
2
+
2
,
y
+
lineLength
/
2
+
2
);
}
}
index
++;
index
++;
}
}
...
@@ -193,7 +193,7 @@ namespace TSA_V
...
@@ -193,7 +193,7 @@ namespace TSA_V
grfx
.
DrawLine
(
new
Pen
(
Color
.
Red
,
4
),
x
,
y
-
lineLength
,
x
,
y
+
lineLength
);
grfx
.
DrawLine
(
new
Pen
(
Color
.
Red
,
4
),
x
,
y
-
lineLength
,
x
,
y
+
lineLength
);
grfx
.
DrawLine
(
new
Pen
(
Color
.
Red
,
4
),
x
-
lineLength
,
y
,
x
+
lineLength
,
y
);
grfx
.
DrawLine
(
new
Pen
(
Color
.
Red
,
4
),
x
-
lineLength
,
y
,
x
+
lineLength
,
y
);
isFindCurrPoint
=
true
;
;
isFindCurrPoint
=
true
;
;
g
.
DrawString
(
weld
.
pointName
,
new
Font
(
"Arial "
,
8
,
FontStyle
.
Bold
),
Brushes
.
Red
,
x
-
lineLength
/
2
+
5
,
y
+
lineLength
/
2
+
2
);
g
.
DrawString
(
weld
.
GetDisplayStr
()
,
new
Font
(
"Arial "
,
8
,
FontStyle
.
Bold
),
Brushes
.
Red
,
x
-
lineLength
/
2
+
5
,
y
+
lineLength
/
2
+
2
);
}
}
else
else
{
{
...
...
UserFromControl/ImagePointControl.cs
查看文件 @
309220d
...
@@ -105,7 +105,7 @@ namespace UserFromControl
...
@@ -105,7 +105,7 @@ namespace UserFromControl
//写字
//写字
if
(
index
.
Equals
(
selectIndex
)
||
ShowName
)
if
(
index
.
Equals
(
selectIndex
)
||
ShowName
)
{
{
grfx
.
DrawString
(
weld
.
pointName
,
new
Font
(
"Arial "
,
9
,
FontStyle
.
Bold
),
brushes
,
x
-
lineLength
/
2
+
2
,
y
+
lineLength
/
2
+
2
);
grfx
.
DrawString
(
weld
.
GetDisplayStr
()
,
new
Font
(
"Arial "
,
9
,
FontStyle
.
Bold
),
brushes
,
x
-
lineLength
/
2
+
2
,
y
+
lineLength
/
2
+
2
);
}
}
index
++;
index
++;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论