Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3714dd55
由
LN
编写于
2023-07-27 10:47:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
位号bug修改
1 个父辈
28e77816
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
13 行删除
TSA-V/FrmComponentList.cs
TSA-V/FrmPointInfo.cs
TSA-V/FrmComponentList.cs
查看文件 @
3714dd5
...
@@ -142,6 +142,7 @@ namespace TSA_V
...
@@ -142,6 +142,7 @@ namespace TSA_V
ComponetInfo
obj
=
getRowPointInfo
(
row
);
ComponetInfo
obj
=
getRowPointInfo
(
row
);
string
oldPosition
=
obj
.
PositionNum
;
string
oldPosition
=
obj
.
PositionNum
;
string
oldTagNo
=
obj
.
TagNo
;
if
(
obj
==
null
)
if
(
obj
==
null
)
{
{
...
@@ -163,6 +164,7 @@ namespace TSA_V
...
@@ -163,6 +164,7 @@ namespace TSA_V
obj
.
TagNo
=
FormUtil
.
getValue
(
txtPartNum
);
obj
.
TagNo
=
FormUtil
.
getValue
(
txtPartNum
);
obj
.
Id
=
FormUtil
.
GetIntValue
(
txtId
);
obj
.
Id
=
FormUtil
.
GetIntValue
(
txtId
);
obj
.
PositionNum
=
position
.
PositionNum
;
obj
.
PositionNum
=
position
.
PositionNum
;
if
(
obj
.
PN
.
Equals
(
""
))
if
(
obj
.
PN
.
Equals
(
""
))
{
{
...
@@ -186,6 +188,18 @@ namespace TSA_V
...
@@ -186,6 +188,18 @@ namespace TSA_V
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ComExists
,
"元器件已存在"
));
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ComExists
,
"元器件已存在"
));
}
}
}
}
if
(
obj
.
TagNo
.
Equals
(
oldTagNo
).
Equals
(
false
)
&&(
!
String
.
IsNullOrEmpty
(
obj
.
TagNo
)))
{
List
<
ComponetInfo
>
list
=
CSVBomManager
.
GetComList
(
cmbList
.
Text
);
List
<
ComponetInfo
>
objs
=
(
from
m
in
list
where
(!
String
.
IsNullOrEmpty
(
m
.
TagNo
))
&&
m
.
TagNo
.
Equals
(
obj
.
TagNo
)
select
m
).
ToList
();
if
(
objs
.
Count
>
0
)
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
PartNAExist
,
"元器件编号[{0}]已存在"
,
obj
.
TagNo
));
txtPartNum
.
Focus
();
return
;
}
}
bool
result
=
CSVBomManager
.
UpdateComponet
(
cmbList
.
Text
,
obj
);
bool
result
=
CSVBomManager
.
UpdateComponet
(
cmbList
.
Text
,
obj
);
if
(
result
)
if
(
result
)
{
{
...
@@ -345,7 +359,14 @@ namespace TSA_V
...
@@ -345,7 +359,14 @@ namespace TSA_V
txtCount
.
Text
=
obj
.
ComCount
.
ToString
();
txtCount
.
Text
=
obj
.
ComCount
.
ToString
();
txtPartNum
.
Text
=
obj
.
TagNo
;
txtPartNum
.
Text
=
obj
.
TagNo
;
txtNotes
.
Text
=
obj
.
Notes
;
txtNotes
.
Text
=
obj
.
Notes
;
txtPartNum
.
Enabled
=
false
;
if
(
txtPartNum
.
Text
==
""
)
{
txtPartNum
.
Enabled
=
true
;
}
else
{
txtPartNum
.
Enabled
=
false
;
}
btnNewCom
.
Visible
=
true
;
btnNewCom
.
Visible
=
true
;
txtId
.
Text
=
obj
.
Id
.
ToString
();
txtId
.
Text
=
obj
.
Id
.
ToString
();
//txtPosition.Text = obj.PositionNum;
//txtPosition.Text = obj.PositionNum;
...
...
TSA-V/FrmPointInfo.cs
查看文件 @
3714dd5
...
@@ -234,20 +234,25 @@ namespace TSA_V
...
@@ -234,20 +234,25 @@ namespace TSA_V
}
}
string
tagNo
=
FormUtil
.
getValue
(
txtTagNo
);
string
tagNo
=
FormUtil
.
getValue
(
txtTagNo
);
if
(
tagNo
.
Equals
(
""
))
{
if
(
isNewPoint
)
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
WritePartNumber
,
"请输入位号!"
));
txtTagNo
.
Focus
();
return
false
;
}
List
<
SMTPointInfo
>
pos
=
(
from
m
in
boardInfo
.
smtList
where
m
.
pointNum
!=
smtPointInfo
.
pointNum
&&
m
.
TagNo
.
Equals
(
tagNo
)
select
m
).
ToList
();
if
(
pos
.
Count
>
0
)
{
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
WritePartNumber
,
"请输入位号!"
));
if
(
tagNo
.
Equals
(
""
))
txtTagNo
.
Text
=
smtPointInfo
.
TagNo
;
{
txtTagNo
.
Focus
();
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
WritePartNumber
,
"请输入位号!"
));
return
false
;
txtTagNo
.
Focus
();
return
false
;
}
List
<
SMTPointInfo
>
pos
=
(
from
m
in
boardInfo
.
smtList
where
m
.
pointNum
!=
smtPointInfo
.
pointNum
&&
m
.
TagNo
.
Equals
(
tagNo
)
select
m
).
ToList
();
if
(
pos
.
Count
>
0
)
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
WritePartNumber
,
"请输入位号!"
));
txtTagNo
.
Text
=
smtPointInfo
.
TagNo
;
txtTagNo
.
Focus
();
return
false
;
}
}
}
smtPointInfo
.
PN
=
pn
;
smtPointInfo
.
PN
=
pn
;
smtPointInfo
.
TagNo
=
tagNo
;
smtPointInfo
.
TagNo
=
tagNo
;
smtPointInfo
.
PositionX
=
FormUtil
.
getDoubleValue
(
txtX
);
smtPointInfo
.
PositionX
=
FormUtil
.
getDoubleValue
(
txtX
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论