Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2512d66f
由
LN
编写于
2025-02-17 16:29:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.负数未偏移问题。2.工作完成未统计。3.极性非自定义时不能输入。4.点位编辑保存后自动显示新投影。
1 个父辈
aceaf5c7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
28 行增加
和
11 行删除
DeviceLibrary/manager/work/WorkInfo.cs
DeviceLibrary/tool/HVideoManager.cs
TSA-V/frmBoard/FrmBoardInfo.cs
TSA-V/frmBoard/FrmCalibrate.cs
TSA-V/frmBoard/FrmEditMPoint.cs
TSA-V/frmBoard/FrmPointInfo.cs
UserFromControl/ProjectorControl.cs
DeviceLibrary/manager/work/WorkInfo.cs
查看文件 @
2512d66
...
@@ -211,6 +211,11 @@ namespace TSA_V.DeviceLibrary
...
@@ -211,6 +211,11 @@ namespace TSA_V.DeviceLibrary
{
{
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】所有位置已走完 "
);
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】所有位置已走完 "
);
ClosePrePos
();
ClosePrePos
();
if
(
IOBase
.
NoLine
)
{
LogUtil
.
info
(
" 程序【"
+
currBoard
.
boardName
+
"】工作完成,无线体模式,记录工作次数"
);
WorkCountManager
.
AddWorkCount
();
}
//if (TSAVBean.IsNeedSoldering)
//if (TSAVBean.IsNeedSoldering)
//{
//{
// LogUtil.info(" 程序【" + currBoard.boardName + "】需要焊接,打开烙铁灯 ");
// LogUtil.info(" 程序【" + currBoard.boardName + "】需要焊接,打开烙铁灯 ");
...
...
DeviceLibrary/tool/HVideoManager.cs
查看文件 @
2512d66
...
@@ -31,7 +31,7 @@ namespace TSA_V.DeviceLibrary
...
@@ -31,7 +31,7 @@ namespace TSA_V.DeviceLibrary
listener
=
new
HttpListener
();
listener
=
new
HttpListener
();
listener
.
Prefixes
.
Add
(
$
"http://localhost:{Setting_NInit.Hand_ServerPort}/"
);
// 监听的URL地址
listener
.
Prefixes
.
Add
(
$
"http://localhost:{Setting_NInit.Hand_ServerPort}/"
);
// 监听的URL地址
listener
.
Start
();
listener
.
Start
();
LogUtil
.
info
(
"HTTP服务已启动,正在监听9876
端口..."
);
LogUtil
.
info
(
$
"HTTP服务已启动,正在监听{Setting_NInit.Hand_ServerPort}
端口..."
);
Task
.
Factory
.
StartNew
(()
=>
Task
.
Factory
.
StartNew
(()
=>
{
{
Run
();
Run
();
...
...
TSA-V/frmBoard/FrmBoardInfo.cs
查看文件 @
2512d66
...
@@ -878,8 +878,8 @@ namespace TSA_V
...
@@ -878,8 +878,8 @@ namespace TSA_V
int
index
=
dgvList
.
FirstDisplayedScrollingRowIndex
;
int
index
=
dgvList
.
FirstDisplayedScrollingRowIndex
;
DataGridViewRow
row
=
dgvList
.
Rows
[
rowIndex
];
DataGridViewRow
row
=
dgvList
.
Rows
[
rowIndex
];
SMTPointInfo
smtInfo
=
getRowPointInfo
(
row
);
SMTPointInfo
smtInfo
=
getRowPointInfo
(
row
);
panBoard
.
AutoScrollPosition
=
new
Point
((
int
)(
smtInfo
.
PositionX
*
display
.
imageXiShu
-
panBoard
.
Width
/
2
),(
int
)
(
smtInfo
.
PositionY
*
display
.
imageXiShu
-
panBoard
.
Height
/
2
));
panBoard
.
AutoScrollPosition
=
new
Point
((
int
)(
smtInfo
.
PositionX
*
display
.
imageXiShu
-
panBoard
.
Width
/
2
),
(
int
)(
smtInfo
.
PositionY
*
display
.
imageXiShu
-
panBoard
.
Height
/
2
));
// panBoard.AutoScrollPosition = new Point((int)picBoard.Width, (int)picBoard.Height);
// panBoard.AutoScrollPosition = new Point((int)picBoard.Width, (int)picBoard.Height);
if
(
isFinishLoad
&&
this
.
txtBoardW
.
Text
.
Trim
()
!=
""
&&
this
.
txtBoardL
.
Text
.
Trim
()
!=
""
)
if
(
isFinishLoad
&&
this
.
txtBoardW
.
Text
.
Trim
()
!=
""
&&
this
.
txtBoardL
.
Text
.
Trim
()
!=
""
)
{
{
...
@@ -894,7 +894,7 @@ namespace TSA_V
...
@@ -894,7 +894,7 @@ namespace TSA_V
FrmPointInfo
fwpi
=
new
FrmPointInfo
(
updateBoardInfo
,
allPoint
,
rowIndex
,
NextProcess
);
FrmPointInfo
fwpi
=
new
FrmPointInfo
(
updateBoardInfo
,
allPoint
,
rowIndex
,
NextProcess
);
fwpi
.
StartPosition
=
FormStartPosition
.
Manual
;
fwpi
.
StartPosition
=
FormStartPosition
.
Manual
;
fwpi
.
Location
=
new
Point
(
this
.
Location
.
X
,
this
.
Location
.
Y
);
fwpi
.
Location
=
new
Point
(
this
.
Location
.
X
,
this
.
Location
.
Y
);
fwpi
.
ShowPointEvent
+=
Fwpi_ShowPointEvent
;
fwpi
.
ShowPointEvent
+=
Fwpi_ShowPointEvent
;
fwpi
.
AoiProgramName
=
cmbAOIFile
.
Text
;
fwpi
.
AoiProgramName
=
cmbAOIFile
.
Text
;
fwpi
.
PicImage
=
picBoard
.
Image
;
fwpi
.
PicImage
=
picBoard
.
Image
;
...
@@ -913,6 +913,16 @@ namespace TSA_V
...
@@ -913,6 +913,16 @@ namespace TSA_V
}
}
rowIndex
=
fwpi
.
CurrIndex
;
rowIndex
=
fwpi
.
CurrIndex
;
dgvList
.
Rows
[
rowIndex
].
Selected
=
true
;
dgvList
.
Rows
[
rowIndex
].
Selected
=
true
;
if
(
allPoint
.
Count
>
0
)
{
SMTPointInfo
updatePoint
=
getRowPointInfo
(
dgvList
.
Rows
[
rowIndex
]);
if
(
updatePoint
!=
null
)
{
FrmProjectorScreen
.
instance
.
ClearPoint
();
FrmProjectorScreen
.
instance
.
ShowPoint
(
updatePoint
.
GetScreenShowPInfo
());
}
}
//smtInfo = fwpi.smpPointInfo;
//smtInfo = fwpi.smpPointInfo;
//setPointInfo(dgvList.Rows[rowIndex], smtInfo);
//setPointInfo(dgvList.Rows[rowIndex], smtInfo);
if
(
isFinishLoad
&&
this
.
txtBoardW
.
Text
.
Trim
()
!=
""
&&
this
.
txtBoardL
.
Text
.
Trim
()
!=
""
)
if
(
isFinishLoad
&&
this
.
txtBoardW
.
Text
.
Trim
()
!=
""
&&
this
.
txtBoardL
.
Text
.
Trim
()
!=
""
)
...
@@ -920,7 +930,7 @@ namespace TSA_V
...
@@ -920,7 +930,7 @@ namespace TSA_V
loadPictureBoxSize
();
loadPictureBoxSize
();
}
}
SetListCurrCell
(
index
);
SetListCurrCell
(
index
);
}
}
}
}
private
void
AddNewPoint
(
double
x
,
double
y
,
double
nodeX
,
double
nodeY
)
private
void
AddNewPoint
(
double
x
,
double
y
,
double
nodeX
,
double
nodeY
)
...
...
TSA-V/frmBoard/FrmCalibrate.cs
查看文件 @
2512d66
...
@@ -270,6 +270,7 @@ namespace TSA_V.frmBoard
...
@@ -270,6 +270,7 @@ namespace TSA_V.frmBoard
{
{
pointList
[
i
]
=
XYConvertManager
.
CalPointNodePosition
(
pointList
[
i
],
checkOKList
);
pointList
[
i
]
=
XYConvertManager
.
CalPointNodePosition
(
pointList
[
i
],
checkOKList
);
}
}
currBoard
.
calInfo
.
CurrStep
=
3
;
currBoard
.
smtList
=
pointList
;
currBoard
.
smtList
=
pointList
;
BoardManager
.
Update
(
currBoard
);
BoardManager
.
Update
(
currBoard
);
FrmProjectorScreen
.
instance
.
ClearPoint
();
FrmProjectorScreen
.
instance
.
ClearPoint
();
...
...
TSA-V/frmBoard/FrmEditMPoint.cs
查看文件 @
2512d66
...
@@ -204,7 +204,7 @@ namespace TSA_V
...
@@ -204,7 +204,7 @@ namespace TSA_V
txtXUpdate
.
Focus
();
txtXUpdate
.
Focus
();
return
;
return
;
}
}
if
(
xUpdate
>
0
||
yUpdate
>
0
)
if
(
xUpdate
!=
0
||
yUpdate
!=
0
)
{
{
showMsg
=
ResourceCulture
.
GetString
(
ResourceCulture
.
PWSureUPdateXY
,
"程序【{0}】的组装位置将修正,偏移量X[{1}],Y[{2}],是否确定修正"
,
updateBoardInfo
.
boardName
,
xUpdate
,
yUpdate
);
showMsg
=
ResourceCulture
.
GetString
(
ResourceCulture
.
PWSureUPdateXY
,
"程序【{0}】的组装位置将修正,偏移量X[{1}],Y[{2}],是否确定修正"
,
updateBoardInfo
.
boardName
,
xUpdate
,
yUpdate
);
}
}
...
@@ -226,7 +226,7 @@ namespace TSA_V
...
@@ -226,7 +226,7 @@ namespace TSA_V
{
{
double
oldX
=
point
.
PositionX
;
double
oldX
=
point
.
PositionX
;
double
oldY
=
point
.
PositionY
;
double
oldY
=
point
.
PositionY
;
if
(
xUpdate
>
0
||
yUpdate
>
0
)
if
(
xUpdate
!=
0
||
yUpdate
!=
0
)
{
{
point
.
PositionX
+=
xUpdate
;
point
.
PositionX
+=
xUpdate
;
point
.
PositionY
+=
yUpdate
;
point
.
PositionY
+=
yUpdate
;
...
...
TSA-V/frmBoard/FrmPointInfo.cs
查看文件 @
2512d66
...
@@ -317,15 +317,15 @@ namespace TSA_V
...
@@ -317,15 +317,15 @@ namespace TSA_V
smtPointInfo
.
PolarityAngle
=
actControl
.
PolarityAngle
;
smtPointInfo
.
PolarityAngle
=
actControl
.
PolarityAngle
;
smtPointInfo
.
CheckOK
=
false
;
smtPointInfo
.
CheckOK
=
false
;
if
(
boardInfo
!=
null
&&
boardInfo
.
calInfo
!=
null
&&
boardInfo
.
calInfo
.
CurrStep
>=
3
)
if
(
boardInfo
!=
null
&&
boardInfo
.
calInfo
!=
null
&&
boardInfo
.
calInfo
.
CurrStep
>=
2
)
{
{
List
<
SMTPointInfo
>
checkOKList
=
boardInfo
.
getCalPoint
();
List
<
SMTPointInfo
>
checkOKList
=
boardInfo
.
getCalPoint
();
smtPointInfo
=
XYConvertManager
.
CalPointNodePosition
(
smtPointInfo
,
checkOKList
);
smtPointInfo
=
XYConvertManager
.
CalPointNodePosition
(
smtPointInfo
,
checkOKList
);
}
}
else
else
{
{
smtPointInfo
.
NodePositionX
=
projectorControl
.
XValue
;
//
smtPointInfo.NodePositionX = projectorControl.XValue;
smtPointInfo
.
NodePositionY
=
projectorControl
.
YValue
;
//
smtPointInfo.NodePositionY = projectorControl.YValue;
}
}
}
}
...
...
UserFromControl/ProjectorControl.cs
查看文件 @
2512d66
...
@@ -627,6 +627,7 @@ namespace UserFromControl
...
@@ -627,6 +627,7 @@ namespace UserFromControl
lastPolaritiesType
=
cmbpolarities
.
SelectedIndex
;
lastPolaritiesType
=
cmbpolarities
.
SelectedIndex
;
lastAngle
=(
int
)
numAngle
.
Value
;
lastAngle
=(
int
)
numAngle
.
Value
;
lastAngle
=
ProjectorPInfo
.
getAngleByType
(
lastPolaritiesType
,
lastAngle
);
lastAngle
=
ProjectorPInfo
.
getAngleByType
(
lastPolaritiesType
,
lastAngle
);
numAngle
.
Enabled
=
lastPolaritiesType
.
Equals
(
9
);
numAngle
.
Value
=
lastAngle
;
numAngle
.
Value
=
lastAngle
;
DrawPoint
(
lastType
,
lastPolaritiesType
,
lastAngle
);
DrawPoint
(
lastType
,
lastPolaritiesType
,
lastAngle
);
ShowCurrPoint
();
ShowCurrPoint
();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论