Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5e131a5d
由
LN
编写于
2021-06-16 16:44:21 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
部分中英文完善。条码匹配修改。
1 个父辈
fb910b0b
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
255 行增加
和
122 行删除
DeviceLibrary/manager/LineWidthManager.cs
DeviceLibrary/manager/ResourceControl.cs
DeviceLibrary/manager/TSAVBean.cs
DeviceLibrary/manager/TSAVBean_Partial.cs
TSA-V/FrmAddCom.cs
TSA-V/FrmBoardInfo.Designer.cs
TSA-V/FrmBoardList.cs
TSA-V/FrmChangeWidth.cs
TSA-V/Properties/Resource.en-US.resx
TSA-V/Properties/Resource.zh-CN.resx
TSA-V/ResourceCulture.cs
TSA-V/deviceDebug/FrmIoManager.cs
TSA-V/workForm/FrmBoardSelect.Designer.cs
TSA-V/workForm/FrmBoardSelect.cs
TSA-V/workForm/FrmTSAV.Designer.cs
TSA-V/workForm/FrmTSAV.cs
DeviceLibrary/manager/LineWidthManager.cs
查看文件 @
5e131a5
...
@@ -57,19 +57,19 @@ namespace TSA_V.DeviceLibrary
...
@@ -57,19 +57,19 @@ namespace TSA_V.DeviceLibrary
}
}
public
static
string
StartChangeWidth
(
int
targetWidth
,
int
targetPosition
,
int
timeOutSeconds
=
600
)
public
static
string
StartChangeWidth
(
int
targetWidth
,
int
targetPosition
,
int
timeOutSeconds
=
600
)
{
{
string
result
=
""
;
if
(
targetWidth
<=
0
)
if
(
targetWidth
<=
0
)
{
{
return
"宽度无效"
;
return
result
=
ResourceControl
.
GetString
(
ResourceControl
.
WidthInvalid
,
"宽度无效"
)
;
}
}
if
(!
CanStartChWidth
())
if
(!
CanStartChWidth
())
{
{
return
"启动调宽失败"
;
return
result
=
ResourceControl
.
GetString
(
ResourceControl
.
ChangeWFail
,
"启动调宽失败"
)
;
}
}
if
(!
IsStop
)
if
(!
IsStop
)
{
{
return
"移栽调宽中"
;
return
result
=
ResourceControl
.
GetString
(
ResourceControl
.
InChangeW
,
"已在调宽中"
)
;
}
}
string
result
=
""
;
IsStop
=
false
;
IsStop
=
false
;
string
logName
=
"轨道调宽["
+
targetWidth
+
"]["
+
targetPosition
+
"]["
+
timeOutSeconds
+
"]:"
;
string
logName
=
"轨道调宽["
+
targetWidth
+
"]["
+
targetPosition
+
"]["
+
timeOutSeconds
+
"]:"
;
try
try
...
@@ -97,12 +97,12 @@ namespace TSA_V.DeviceLibrary
...
@@ -97,12 +97,12 @@ namespace TSA_V.DeviceLibrary
Thread
.
Sleep
(
200
);
Thread
.
Sleep
(
200
);
if
(
IsStop
)
if
(
IsStop
)
{
{
result
=
"用户中止"
;
result
=
ResourceControl
.
GetString
(
ResourceControl
.
UserStop
,
"用户中止"
)
;
break
;
break
;
}
}
else
if
(
stopwatch
.
ElapsedMilliseconds
/
1000
>
timeOutSeconds
)
else
if
(
stopwatch
.
ElapsedMilliseconds
/
1000
>
timeOutSeconds
)
{
{
result
=
"等待原点完成超时"
;
result
=
ResourceControl
.
GetString
(
ResourceControl
.
HomeMoveTimeout
,
"等待原点完成超时"
)
;
break
;
break
;
}
}
else
if
(
PUSICANControl
.
IsHomeEnd
(
LWidthManager
.
Line_NodeAddr
))
else
if
(
PUSICANControl
.
IsHomeEnd
(
LWidthManager
.
Line_NodeAddr
))
...
@@ -131,13 +131,13 @@ namespace TSA_V.DeviceLibrary
...
@@ -131,13 +131,13 @@ namespace TSA_V.DeviceLibrary
if
(
IsStop
)
if
(
IsStop
)
{
{
IsStop
=
true
;
IsStop
=
true
;
result
=
"用户中止"
;
result
=
ResourceControl
.
GetString
(
ResourceControl
.
UserStop
,
"用户中止"
)
;
break
;
break
;
}
}
else
if
(
stopwatch
.
ElapsedMilliseconds
/
1000
>
timeOutSeconds
)
else
if
(
stopwatch
.
ElapsedMilliseconds
/
1000
>
timeOutSeconds
)
{
{
IsStop
=
true
;
IsStop
=
true
;
result
=
"等待目标位置:"
+
DefaultPosition
;
result
=
ResourceControl
.
GetString
(
ResourceControl
.
WaitChangeWOk
,
"等待目标位置{0}超时"
,
DefaultPosition
)
;
break
;
break
;
}
}
else
else
...
...
DeviceLibrary/manager/ResourceControl.cs
查看文件 @
5e131a5
...
@@ -136,5 +136,30 @@ namespace TSA_V
...
@@ -136,5 +136,30 @@ namespace TSA_V
/// 线体宽度
/// 线体宽度
/// </summary>
/// </summary>
public
static
string
LineWidth
=
"LineWidth"
;
public
static
string
LineWidth
=
"LineWidth"
;
/// <summary>
/// 启动调宽失败
/// </summary>
public
static
string
ChangeWFail
=
"ChangeWFail"
;
/// <summary>
/// 宽度无效
/// </summary>
public
static
string
WidthInvalid
=
"WidthInvalid"
;
/// <summary>
/// 已在调宽中
/// </summary>
public
static
string
InChangeW
=
"InChangeW"
;
/// <summary>
/// 用户中止
/// </summary>
public
static
string
UserStop
=
"UserStop"
;
/// <summary>
/// 等待原点完成超时
/// </summary>
public
static
string
HomeMoveTimeout
=
"HomeMoveTimeout"
;
/// <summary>
/// 等待目标位置{0}超时
/// </summary>
public
static
string
WaitChangeWOk
=
"WaitChangeWOk"
;
}
}
}
}
DeviceLibrary/manager/TSAVBean.cs
查看文件 @
5e131a5
...
@@ -124,7 +124,7 @@ namespace TSA_V.DeviceLibrary
...
@@ -124,7 +124,7 @@ namespace TSA_V.DeviceLibrary
public
static
string
GetTime
()
public
static
string
GetTime
()
{
{
string
date
=
DateTime
.
Now
.
ToString
(
"HH:mm"
);
string
date
=
DateTime
.
Now
.
ToString
(
"HH:mm"
);
return
""
+
date
+
"ALARM "
;
return
""
+
date
+
"
ALARM "
;
}
}
public
static
string
StartRun
()
public
static
string
StartRun
()
{
{
...
@@ -287,12 +287,7 @@ namespace TSA_V.DeviceLibrary
...
@@ -287,12 +287,7 @@ namespace TSA_V.DeviceLibrary
break
;
break
;
}
}
}
}
}
}
//if (!PUSICANControl.IsHomeEnd(LWidthManager.Line_NodeAddr))
//{
// timeOutMsg = ResourceControl.GetString(ResourceControl.RNodeGoHome, " 调宽轴[{0}]原点返回完成", LWidthManager.Line_NodeAddr);
// isAllOk = false;
//}
if
(
isAllOk
.
Equals
(
true
))
if
(
isAllOk
.
Equals
(
true
))
{
{
...
@@ -305,8 +300,7 @@ namespace TSA_V.DeviceLibrary
...
@@ -305,8 +300,7 @@ namespace TSA_V.DeviceLibrary
PUSICANControl
.
DefatutPosMove
(
node
.
NodeId
,
TSAVBean
.
RotateNode_DefaultPosition
,
0
);
PUSICANControl
.
DefatutPosMove
(
node
.
NodeId
,
TSAVBean
.
RotateNode_DefaultPosition
,
0
);
}
}
}
}
// PuHomeMove(LWidthManager.Line_NodeAddr, LWidthManager.DefaultPosition, 0);
LogUtil
.
info
(
Name
+
"重置中:所有旋转轴原点返回完成,开始到待机点:"
+
TSAVBean
.
RotateNode_DefaultPosition
);
LogUtil
.
info
(
Name
+
"重置中:所有旋转轴原点返回完成,开始到待机点:"
+
TSAVBean
.
RotateNode_DefaultPosition
);
resetStep
=
ResetStep
.
RNodeOnline_4
;
resetStep
=
ResetStep
.
RNodeOnline_4
;
LastResetChangeTime
=
DateTime
.
Now
;
LastResetChangeTime
=
DateTime
.
Now
;
...
@@ -343,7 +337,7 @@ namespace TSA_V.DeviceLibrary
...
@@ -343,7 +337,7 @@ namespace TSA_V.DeviceLibrary
}
}
if
(
isTimeOut
)
if
(
isTimeOut
)
{
{
WarnMsg
=
GetTime
()
+
ResourceControl
.
GetString
(
ResourceControl
.
TimeOutMsg
,
"重置等待[{0}]超时
,已等待:
{1}分"
,
timeOutMsg
,
Math
.
Round
(
span
.
TotalMinutes
,
1
));
WarnMsg
=
GetTime
()
+
ResourceControl
.
GetString
(
ResourceControl
.
TimeOutMsg
,
"重置等待[{0}]超时{1}分"
,
timeOutMsg
,
Math
.
Round
(
span
.
TotalMinutes
,
1
));
LogUtil
.
error
(
Name
+
WarnMsg
);
LogUtil
.
error
(
Name
+
WarnMsg
);
}
}
}
}
...
...
DeviceLibrary/manager/TSAVBean_Partial.cs
查看文件 @
5e131a5
...
@@ -123,7 +123,7 @@ namespace TSA_V.DeviceLibrary
...
@@ -123,7 +123,7 @@ namespace TSA_V.DeviceLibrary
//当等待超过一分钟时,需要打印提示
//当等待超过一分钟时,需要打印提示
if
(
span
.
TotalSeconds
>
LineStep
.
TimeOutSeconds
)
if
(
span
.
TotalSeconds
>
LineStep
.
TimeOutSeconds
)
{
{
WarnMsg
=
GetTime
()
+
ResourceControl
.
GetString
(
ResourceControl
.
LineTimeOutMsg
,
"流水线转动中,等待【{0}】超时 已等待[{1}]秒"
,
waitMsg
,
Math
.
Round
(
span
.
TotalSeconds
,
0
));
WarnMsg
=
GetTime
()
+
ResourceControl
.
GetString
(
ResourceControl
.
LineTimeOutMsg
,
"流水线转动{0}-{1},等待【{2}】超时[{3}]秒"
,
LineStep
.
moveType
,
LineStep
.
lineStep
,
waitMsg
,
Math
.
Round
(
span
.
TotalSeconds
,
0
));
LogUtil
.
error
(
WarnMsg
);
LogUtil
.
error
(
WarnMsg
);
}
}
}
}
...
...
TSA-V/FrmAddCom.cs
查看文件 @
5e131a5
...
@@ -38,18 +38,11 @@ namespace TSA_V
...
@@ -38,18 +38,11 @@ namespace TSA_V
if
(
comList
.
Count
>
0
)
if
(
comList
.
Count
>
0
)
{
{
Dictionary
<
string
,
string
>
namePositonMap
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
namePositonMap
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
posiitonNameMap
=
new
Dictionary
<
string
,
string
>();
foreach
(
ComponetInfo
com
in
comList
)
foreach
(
ComponetInfo
com
in
comList
)
{
{
if
(!
namePositonMap
.
ContainsKey
(
com
.
ComponentName
))
if
(!
namePositonMap
.
ContainsKey
(
com
.
ComponentName
))
{
{
//验证库位是否存在过
List
<
string
>
positinList
=
new
List
<
string
>();
if
(
positinList
.
Contains
(
com
.
ComponentName
))
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
CheckFile
,
"两个不同的元器件中都配置在库位【{0}】中,请检查文件"
,
com
.
PositionNum
));
comList
=
new
List
<
ComponetInfo
>();
return
;
}
namePositonMap
.
Add
(
com
.
ComponentName
,
com
.
PositionNum
);
namePositonMap
.
Add
(
com
.
ComponentName
,
com
.
PositionNum
);
}
}
else
else
...
@@ -57,22 +50,41 @@ namespace TSA_V
...
@@ -57,22 +50,41 @@ namespace TSA_V
string
prePosition
=
namePositonMap
[
com
.
ComponentName
];
string
prePosition
=
namePositonMap
[
com
.
ComponentName
];
if
(!
prePosition
.
Equals
(
com
.
PositionNum
))
if
(!
prePosition
.
Equals
(
com
.
PositionNum
))
{
{
result
=
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
SureImport
,
result
=
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
SureImport
,
"元器件【{0}】配置了两个位置【{1}】和【{2}】,是否确定导入?"
,
com
.
ComponentName
,
prePosition
,
com
.
PositionNum
),
""
,
"元器件【{0}】配置了两个位置【{1}】和【{2}】,是否确定导入?"
,
com
.
ComponentName
,
prePosition
,
com
.
PositionNum
),
""
,
MessageBoxButtons
.
YesNo
Cancel
);
;
MessageBoxButtons
.
OK
Cancel
);
;
if
(!
result
.
Equals
(
DialogResult
.
Yes
))
if
(!
result
.
Equals
(
DialogResult
.
OK
))
{
{
comList
=
new
List
<
ComponetInfo
>();
comList
=
new
List
<
ComponetInfo
>();
return
;
return
;
}
}
}
}
}
}
if
(
posiitonNameMap
.
ContainsKey
(
com
.
PositionNum
))
{
string
name
=
posiitonNameMap
[
com
.
PositionNum
];
if
(!
name
.
Equals
(
com
.
ComponentName
))
{
result
=
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
CheckFile
,
"两个元器件【{0}】和【{1}】都配置在位置【{2}】中,是否确定导入"
,
name
,
com
.
ComponentName
,
com
.
PositionNum
)
,
""
,
MessageBoxButtons
.
OKCancel
);
;
if
(!
result
.
Equals
(
DialogResult
.
OK
))
{
comList
=
new
List
<
ComponetInfo
>();
return
;
}
}
}
else
{
posiitonNameMap
.
Add
(
com
.
PositionNum
,
com
.
ComponentName
);
}
}
}
this
.
txtBomFilePath
.
Text
=
fileName
;
this
.
txtBomFilePath
.
Text
=
fileName
;
}
}
else
else
{
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
SelectRightFile
,
"请选择正确的文件(文件格式可以通过下载模板获得)"
));
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
SelectRightFile
,
"请选择正确的文件(文件格式可以通过下载模板获得)"
));
}
}
}
}
}
}
...
...
TSA-V/FrmBoardInfo.Designer.cs
查看文件 @
5e131a5
此文件的差异被折叠,
点击展开。
TSA-V/FrmBoardList.cs
查看文件 @
5e131a5
...
@@ -21,6 +21,7 @@ namespace TSA_V
...
@@ -21,6 +21,7 @@ namespace TSA_V
{
{
public
static
FrmBoardList
instance
=
new
FrmBoardList
();
public
static
FrmBoardList
instance
=
new
FrmBoardList
();
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
private
bool
LoadOk
=
false
;
private
FrmBoardList
(
)
private
FrmBoardList
(
)
{
{
InitializeComponent
();
InitializeComponent
();
...
@@ -34,6 +35,7 @@ namespace TSA_V
...
@@ -34,6 +35,7 @@ namespace TSA_V
}
}
public
void
LoadCom
()
public
void
LoadCom
()
{
{
LoadOk
=
false
;
cmbBoardList
.
DataSource
=
null
;
cmbBoardList
.
DataSource
=
null
;
cmbBoardList
.
DataSource
=
BoardManager
.
boardList
;
cmbBoardList
.
DataSource
=
BoardManager
.
boardList
;
cmbBoardList
.
DisplayMember
=
"boardName"
;
cmbBoardList
.
DisplayMember
=
"boardName"
;
...
@@ -64,7 +66,8 @@ namespace TSA_V
...
@@ -64,7 +66,8 @@ namespace TSA_V
leftCount
.
Width
=
100
;
//设置列宽度
leftCount
.
Width
=
100
;
//设置列宽度
leftCount
.
TextAlign
=
HorizontalAlignment
.
Left
;
//设置列的对齐方式
leftCount
.
TextAlign
=
HorizontalAlignment
.
Left
;
//设置列的对齐方式
this
.
listPoint
.
Columns
.
Add
(
leftCount
);
//将列头添加到ListView控件。
this
.
listPoint
.
Columns
.
Add
(
leftCount
);
//将列头添加到ListView控件。
LoadOk
=
true
;
LoadBoard
();
LoadBoard
();
}
}
...
@@ -96,30 +99,48 @@ namespace TSA_V
...
@@ -96,30 +99,48 @@ namespace TSA_V
}
}
}
}
private
int
pointHight
=
14
;
private
int
pointHight
=
14
;
private
void
btnLook_Click
(
object
sender
,
EventArgs
e
)
//
private void btnLook_Click(object sender, EventArgs e)
{
//
{
LoadBoard
();
//
LoadBoard();
this
.
panel1
.
Refresh
();
//
this.panel1.Refresh();
}
//
}
private
void
LoadBoard
()
private
void
LoadBoard
()
{
{
if
(
cmbBoardList
.
Text
!=
""
&&
cmbBoardList
.
SelectedIndex
>=
0
)
if
(
!
LoadOk
)
{
{
BoardInfo
board
=
(
BoardInfo
)
cmbBoardList
.
SelectedItem
;
return
;
groupBox2
.
Text
=
"【"
+
board
.
boardName
+
"】"
;
}
txtBomName
.
Text
=
board
.
bomName
;
try
txtLength
.
Text
=
board
.
boardLength
.
ToString
();
{
txtWidth
.
Text
=
board
.
boardWidth
.
ToString
();
txtPointCount
.
Text
=
board
.
smtList
.
Count
.
ToString
();
LoadOk
=
false
;
txtMianji
.
Text
=
(
board
.
boardLength
*
board
.
boardWidth
).
ToString
();
if
(
cmbBoardList
.
Text
!=
""
&&
cmbBoardList
.
SelectedIndex
>=
0
)
loadPictureBoxSize
(
board
);
{
LoadPoint
(
board
);
BoardInfo
board
=
(
BoardInfo
)
cmbBoardList
.
SelectedItem
;
groupBox2
.
Text
=
"【"
+
board
.
boardName
+
"】"
;
txtBomName
.
Text
=
board
.
bomName
;
txtLength
.
Text
=
board
.
boardLength
.
ToString
();
txtWidth
.
Text
=
board
.
boardWidth
.
ToString
();
txtPointCount
.
Text
=
board
.
smtList
.
Count
.
ToString
();
txtMianji
.
Text
=
(
board
.
boardLength
*
board
.
boardWidth
).
ToString
();
LoadPoint
(
board
);
loadPictureBoxSize
(
board
);
FrmProjectorScreen
.
instance
.
ShowPoint
(
false
,
board
.
smtList
.
ToArray
());
}
FrmProjectorScreen
.
instance
.
ShowPoint
(
false
,
board
.
smtList
.
ToArray
());
}
}
catch
(
Exception
ex
)
{
}
finally
{
LoadOk
=
true
;
}
}
}
int
preId
=
-
1
;
int
preId
=
-
1
;
private
void
LoadPoint
(
BoardInfo
board
)
private
void
LoadPoint
(
BoardInfo
board
)
...
@@ -155,6 +176,7 @@ namespace TSA_V
...
@@ -155,6 +176,7 @@ namespace TSA_V
this
.
listPoint
.
Items
.
Add
(
lvi
);
this
.
listPoint
.
Items
.
Add
(
lvi
);
i
++;
i
++;
}
}
}
}
...
@@ -236,15 +258,13 @@ namespace TSA_V
...
@@ -236,15 +258,13 @@ namespace TSA_V
display
.
SetImage
(
board
.
GetImage
());
display
.
SetImage
(
board
.
GetImage
());
display
.
ShowName
=
false
;
display
.
ShowName
=
false
;
display
.
ImageNormal
=
true
;
display
.
ImageNormal
=
true
;
display
.
LoadPoint
(
width
,
height
,
pointList
);
display
.
LoadPoint
(
width
,
height
,
pointList
);
}
}
private
void
FrmBoardList_Shown
(
object
sender
,
EventArgs
e
)
private
void
FrmBoardList_Shown
(
object
sender
,
EventArgs
e
)
{
{
//SetSkin(this);
//SetSkin(this);
LoadBoard
();
//
LoadBoard();
if
((
BoardManager
.
boardList
.
Count
<=
0
)
&&
(
LoadCSVLibrary
.
CSVReaderBomManager
.
allComMap
.
Count
<=
0
))
if
((
BoardManager
.
boardList
.
Count
<=
0
)
&&
(
LoadCSVLibrary
.
CSVReaderBomManager
.
allComMap
.
Count
<=
0
))
{
{
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ImportComList
,
"请先导入元器件库!"
));
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ImportComList
,
"请先导入元器件库!"
));
...
@@ -355,11 +375,14 @@ namespace TSA_V
...
@@ -355,11 +375,14 @@ namespace TSA_V
private
void
listPoint_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
private
void
listPoint_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
{
if
(
listPoint
.
SelectedItems
!=
null
&&
listPoint
.
SelectedItems
.
Count
>
0
)
if
(
LoadOk
)
{
{
int
index
=
listPoint
.
SelectedItems
[
0
].
Index
;
if
(
listPoint
.
SelectedItems
!=
null
&&
listPoint
.
SelectedItems
.
Count
>
0
)
display
.
selectIndex
=
index
;
{
loadPictureBoxSize
(
null
);
int
index
=
listPoint
.
SelectedItems
[
0
].
Index
;
display
.
selectIndex
=
index
;
loadPictureBoxSize
(
null
);
}
}
}
}
}
}
}
...
...
TSA-V/FrmChangeWidth.cs
查看文件 @
5e131a5
...
@@ -65,7 +65,7 @@ namespace TSA_V
...
@@ -65,7 +65,7 @@ namespace TSA_V
LogUtil
.
info
(
"点击 轨道调宽:【"
+
w
+
"】【"
+
p
+
"】"
);
LogUtil
.
info
(
"点击 轨道调宽:【"
+
w
+
"】【"
+
p
+
"】"
);
if
(!
LWidthManager
.
CanStartChWidth
())
if
(!
LWidthManager
.
CanStartChWidth
())
{
{
MessageBox
.
Show
(
"启动调宽失败"
);
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ChangeWFail
,
"启动调宽失败"
)
);
return
;
return
;
}
}
Task
.
Factory
.
StartNew
(
delegate
Task
.
Factory
.
StartNew
(
delegate
...
@@ -73,12 +73,12 @@ namespace TSA_V
...
@@ -73,12 +73,12 @@ namespace TSA_V
string
result
=
LWidthManager
.
StartChangeWidth
(
w
,
p
);
string
result
=
LWidthManager
.
StartChangeWidth
(
w
,
p
);
LogUtil
.
info
(
"调宽"
+
w
+
"="
+
p
+
"结束:"
+
result
);
LogUtil
.
info
(
"调宽"
+
w
+
"="
+
p
+
"结束:"
+
result
);
if
(
String
.
IsNullOrEmpty
(
result
))
if
(
String
.
IsNullOrEmpty
(
result
))
{
{
MessageBox
.
Show
(
"调宽"
+
w
+
"="
+
p
+
"完成"
);
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ChangeWOk
,
"调宽{0}={1}完成"
,
w
,
p
)
);
}
}
else
else
{
{
MessageBox
.
Show
(
"调宽"
+
w
+
"="
+
p
+
"结束:"
+
result
);
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ChangeWEnd
,
"调宽{0}={1}结束:{2}"
,
w
,
p
,
result
)
);
}
}
});
});
}
}
...
...
TSA-V/Properties/Resource.en-US.resx
查看文件 @
5e131a5
...
@@ -839,7 +839,7 @@
...
@@ -839,7 +839,7 @@
<value>WRITE POSITION NAME</value>
<value>WRITE POSITION NAME</value>
</data>
</data>
<data name="CheckFile" xml:space="preserve">
<data name="CheckFile" xml:space="preserve">
<value>
TWO DIFFERENT COMPONENTS IN POSITION【{0}】. PLEASE CHECK
</value>
<value>
BOTH [{0}] AND [{1}] ARE CONFIGURED IN LOCATION [{2}], CONFIRM TO IMPORT?
</value>
</data>
</data>
<data name="SureImport" xml:space="preserve">
<data name="SureImport" xml:space="preserve">
<value>COMPONENT【{0}】IN TWO POSITION【{1}】AND【{2}】. CONFIRM TO IMPORT?</value>
<value>COMPONENT【{0}】IN TWO POSITION【{1}】AND【{2}】. CONFIRM TO IMPORT?</value>
...
@@ -1367,7 +1367,7 @@
...
@@ -1367,7 +1367,7 @@
<value>Length</value>
<value>Length</value>
</data>
</data>
<data name="LineTimeOutMsg" xml:space="preserve">
<data name="LineTimeOutMsg" xml:space="preserve">
<value>
Waiting [{0}] timeout waiting [{1}] seconds in pipeline rotation
</value>
<value>
Pipeline rotation {0}-{1}, waiting for [{2}] timeout [{3}] seconds
</value>
</data>
</data>
<data name="RNodeGoHome" xml:space="preserve">
<data name="RNodeGoHome" xml:space="preserve">
<value>The rotation axis [{0}] is complete</value>
<value>The rotation axis [{0}] is complete</value>
...
@@ -1382,7 +1382,7 @@
...
@@ -1382,7 +1382,7 @@
<value>Received emergency stop signal, stop all movement, equipment disconnection</value>
<value>Received emergency stop signal, stop all movement, equipment disconnection</value>
</data>
</data>
<data name="TimeOutMsg" xml:space="preserve">
<data name="TimeOutMsg" xml:space="preserve">
<value>Reset wait
ing [{0}] timeout, waiting: {1} score
</value>
<value>Reset wait
for [{0}] timeout {1} minutes
</value>
</data>
</data>
<data name="WaitTimeOutMsg" xml:space="preserve">
<data name="WaitTimeOutMsg" xml:space="preserve">
<value>In assembly, waiting for [{0}] timeout has waited for [{1}] seconds</value>
<value>In assembly, waiting for [{0}] timeout has waited for [{1}] seconds</value>
...
@@ -2364,4 +2364,32 @@
...
@@ -2364,4 +2364,32 @@
</data>
</data>
<data name = "FrmDeviceConfig_chbDisSideCylinder_Text" xml:space = "preserve"> <value> Disable the side brake cylinder </value> </data>
<data name = "FrmDeviceConfig_chbDisSideCylinder_Text" xml:space = "preserve"> <value> Disable the side brake cylinder </value> </data>
<data name = "FrmDeviceConfig_chbDisBottonCylinder_Text" xml:space = "preserve"> <value> Disable bottom cylinder </value> </data>
<data name = "FrmDeviceConfig_chbDisBottonCylinder_Text" xml:space = "preserve"> <value> Disable bottom cylinder </value> </data>
<data name="ChangeWEnd" xml:space="preserve">
<value>Adjust width {0}={1} End: {2}</value>
</data>
<data name="ChangeWFail" xml:space="preserve">
<value>Failed to start widening</value>
</data>
<data name="ChangeWOk" xml:space="preserve">
<value>Adjust width {0}={1} completed</value>
</data>
<data name="HomeMoveTimeout" xml:space="preserve">
<value>Timeout waiting for the origin to complete</value>
</data>
<data name="InChangeW" xml:space="preserve">
<value>It is already being broadened</value>
</data>
<data name="SureChangeWidth" xml:space="preserve">
<value>Current width [{0}], target width [{1}], whether to start adjusting the width?</value>
</data>
<data name="UserStop" xml:space="preserve">
<value>Users to suspend</value>
</data>
<data name="WaitChangeWOk" xml:space="preserve">
<value>Waiting for the target location {0} timed out</value>
</data>
<data name="WidthInvalid" xml:space="preserve">
<value>The width of the invalid</value>
</data>
</root>
</root>
\ No newline at end of file
\ No newline at end of file
TSA-V/Properties/Resource.zh-CN.resx
查看文件 @
5e131a5
...
@@ -838,7 +838,7 @@
...
@@ -838,7 +838,7 @@
<value>请先输入元器件库名称</value>
<value>请先输入元器件库名称</value>
</data>
</data>
<data name="CheckFile" xml:space="preserve">
<data name="CheckFile" xml:space="preserve">
<value>两个
不同的元器件中都配置在库位【{0}】中,请检查文件
</value>
<value>两个
元器件【{0}】和【{1}】都配置在位置【{2}】中,是否确定导入?
</value>
</data>
</data>
<data name="SureImport" xml:space="preserve">
<data name="SureImport" xml:space="preserve">
<value>元器件【{0}】配置了两个位置【{1}】和【{2}】,是否确定导入?</value>
<value>元器件【{0}】配置了两个位置【{1}】和【{2}】,是否确定导入?</value>
...
@@ -1351,7 +1351,7 @@
...
@@ -1351,7 +1351,7 @@
<value>长度→</value>
<value>长度→</value>
</data>
</data>
<data name="LineTimeOutMsg" xml:space="preserve">
<data name="LineTimeOutMsg" xml:space="preserve">
<value>流水线转动
中,等待【{0}】超时 已等待[{1
}]秒</value>
<value>流水线转动
{0}-{1},等待【{2}】超时[{3
}]秒</value>
</data>
</data>
<data name="RNodeGoHome" xml:space="preserve">
<data name="RNodeGoHome" xml:space="preserve">
<value>旋转轴[{0}]原点返回完成</value>
<value>旋转轴[{0}]原点返回完成</value>
...
@@ -1366,7 +1366,7 @@
...
@@ -1366,7 +1366,7 @@
<value>收到急停信号,停止所有运动,设备断开连接</value>
<value>收到急停信号,停止所有运动,设备断开连接</value>
</data>
</data>
<data name="TimeOutMsg" xml:space="preserve">
<data name="TimeOutMsg" xml:space="preserve">
<value>重置等待[{0}]超时
,已等待:
{1}分</value>
<value>重置等待[{0}]超时{1}分</value>
</data>
</data>
<data name="WaitTimeOutMsg" xml:space="preserve">
<data name="WaitTimeOutMsg" xml:space="preserve">
<value>组装中,等待【{0}】超时 已等待[{1}]秒</value>
<value>组装中,等待【{0}】超时 已等待[{1}]秒</value>
...
@@ -2376,6 +2376,37 @@
...
@@ -2376,6 +2376,37 @@
<data name="ItemText_Disable" xml:space="preserve">
<data name="ItemText_Disable" xml:space="preserve">
<value>禁用</value>
<value>禁用</value>
</data>
</data>
<data name = "FrmDeviceConfig_chbDisSideCylinder_Text" xml:space = "preserve"> <value> 禁用侧挡气缸 </value> </data>
<data name="FrmDeviceConfig_chbDisSideCylinder_Text" xml:space="preserve">
<data name = "FrmDeviceConfig_chbDisBottonCylinder_Text" xml:space = "preserve"> <value> 禁用底部气缸 </value> </data>
<value> 禁用侧挡气缸 </value>
</data>
<data name="FrmDeviceConfig_chbDisBottonCylinder_Text" xml:space="preserve">
<value> 禁用底部气缸 </value>
</data>
<data name="ChangeWEnd" xml:space="preserve">
<value>调宽{0}={1}结束:{2}</value>
</data>
<data name="ChangeWFail" xml:space="preserve">
<value>启动调宽失败</value>
</data>
<data name="ChangeWOk" xml:space="preserve">
<value>调宽{0}={1}完成</value>
</data>
<data name="HomeMoveTimeout" xml:space="preserve">
<value>等待原点完成超时</value>
</data>
<data name="InChangeW" xml:space="preserve">
<value>已在调宽中</value>
</data>
<data name="SureChangeWidth" xml:space="preserve">
<value>当前宽度[{0}],目标宽度[{1}],是否开始调宽?</value>
</data>
<data name="UserStop" xml:space="preserve">
<value>用户中止</value>
</data>
<data name="WaitChangeWOk" xml:space="preserve">
<value>等待目标位置{0}超时</value>
</data>
<data name="WidthInvalid" xml:space="preserve">
<value>宽度无效</value>
</data>
</root>
</root>
\ No newline at end of file
\ No newline at end of file
TSA-V/ResourceCulture.cs
查看文件 @
5e131a5
...
@@ -692,6 +692,24 @@ namespace TSA_V
...
@@ -692,6 +692,24 @@ namespace TSA_V
/// 请输入线体宽度
/// 请输入线体宽度
/// </summary>
/// </summary>
public
static
string
WriteLineWidth
=
"WriteLineWidth"
;
public
static
string
WriteLineWidth
=
"WriteLineWidth"
;
/// <summary>
/// 当前宽度[{0}],目标宽度[{1}],是否开始调宽?
/// </summary>
public
static
string
SureChangeWidth
=
"SureChangeWidth"
;
/// <summary>
/// 启动调宽失败
/// </summary>
public
static
string
ChangeWFail
=
"ChangeWFail"
;
/// <summary>
/// 调宽{0}={1}完成
/// </summary>
public
static
string
ChangeWOk
=
"ChangeWOk"
;
/// <summary>
/// 调宽{0}={1}结束:{2}
/// </summary>
public
static
string
ChangeWEnd
=
"ChangeWEnd"
;
}
}
}
}
TSA-V/deviceDebug/FrmIoManager.cs
查看文件 @
5e131a5
...
@@ -258,15 +258,8 @@ namespace TSA_V
...
@@ -258,15 +258,8 @@ namespace TSA_V
cmbWriteIO
.
DataSource
=
null
;
cmbWriteIO
.
DataSource
=
null
;
cmbWriteIO
.
Items
.
Clear
();
cmbWriteIO
.
Items
.
Clear
();
cmbWriteIO
.
DataSource
=
new
List
<
ConfigIO
>(
IOManager
.
DOList
.
Values
);
cmbWriteIO
.
DataSource
=
new
List
<
ConfigIO
>(
IOManager
.
DOList
.
Values
);
cmbWriteIO
.
ValueMember
=
"ProName"
;
cmbWriteIO
.
ValueMember
=
"ProName"
;
if
(
ResourceCulture
.
CurrLanguage
.
Equals
(
ResourceCulture
.
English
))
cmbWriteIO
.
DisplayMember
=
"DisplayStr"
;
{
cmbWriteIO
.
DisplayMember
=
"DisplayUSStr"
;
}
else
{
cmbWriteIO
.
DisplayMember
=
"DisplayCnStr"
;
}
cmbWriteIO
.
SelectedIndex
=
0
;
cmbWriteIO
.
SelectedIndex
=
0
;
}
}
...
...
TSA-V/workForm/FrmBoardSelect.Designer.cs
查看文件 @
5e131a5
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
this
.
lblWait
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"lblWait.Image"
)));
this
.
lblWait
.
Image
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"lblWait.Image"
)));
this
.
lblWait
.
Location
=
new
System
.
Drawing
.
Point
(
101
,
32
);
this
.
lblWait
.
Location
=
new
System
.
Drawing
.
Point
(
101
,
32
);
this
.
lblWait
.
Name
=
"lblWait"
;
this
.
lblWait
.
Name
=
"lblWait"
;
this
.
lblWait
.
Size
=
new
System
.
Drawing
.
Size
(
331
,
1
5
1
);
this
.
lblWait
.
Size
=
new
System
.
Drawing
.
Size
(
331
,
1
6
1
);
this
.
lblWait
.
TabIndex
=
278
;
this
.
lblWait
.
TabIndex
=
278
;
this
.
lblWait
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
TopCenter
;
this
.
lblWait
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
TopCenter
;
//
//
...
...
TSA-V/workForm/FrmBoardSelect.cs
查看文件 @
5e131a5
...
@@ -102,11 +102,20 @@ namespace TSA_V
...
@@ -102,11 +102,20 @@ namespace TSA_V
if
(!
code
.
Equals
(
""
))
if
(!
code
.
Equals
(
""
))
{
{
int
index
=
-
1
;
int
index
=
-
1
;
List
<
BoardInfo
>
list
=
(
from
m
in
BoardManager
.
boardList
where
m
.
boardCode
.
StartsWith
(
code
)
select
m
).
ToList
<
BoardInfo
>();
List
<
BoardInfo
>
list
=
(
from
m
in
BoardManager
.
boardList
where
(!
String
.
IsNullOrEmpty
(
m
.
boardCode
))
&&
m
.
boardCode
.
StartsWith
(
code
)
select
m
).
ToList
<
BoardInfo
>();
if
(
list
.
Count
<=
0
)
if
(
list
.
Count
<=
0
)
{
{
list
=
(
from
m
in
BoardManager
.
boardList
where
code
.
StartsWith
(
m
.
boardC
ode
)
select
m
).
ToList
<
BoardInfo
>();
list
=
(
from
m
in
BoardManager
.
boardList
where
(!
String
.
IsNullOrEmpty
(
m
.
boardCode
))
&&
m
.
boardCode
.
Contains
(
c
ode
)
select
m
).
ToList
<
BoardInfo
>();
}
}
if
(
list
.
Count
<=
0
)
{
list
=
(
from
m
in
BoardManager
.
boardList
where
(!
String
.
IsNullOrEmpty
(
m
.
boardCode
))
&&
code
.
StartsWith
(
m
.
boardCode
)
select
m
).
ToList
<
BoardInfo
>();
}
if
(
list
.
Count
<=
0
)
{
list
=
(
from
m
in
BoardManager
.
boardList
where
(!
String
.
IsNullOrEmpty
(
m
.
boardCode
))
&&
code
.
Contains
(
m
.
boardCode
)
select
m
).
ToList
<
BoardInfo
>();
}
if
(
list
.
Count
>
0
)
if
(
list
.
Count
>
0
)
{
{
foreach
(
BoardInfo
board
in
BoardManager
.
boardList
)
foreach
(
BoardInfo
board
in
BoardManager
.
boardList
)
...
@@ -202,8 +211,8 @@ namespace TSA_V
...
@@ -202,8 +211,8 @@ namespace TSA_V
int
p
=
LWidthManager
.
GetWidthPosition
(
w
);
int
p
=
LWidthManager
.
GetWidthPosition
(
w
);
LogUtil
.
info
(
" 选择程序["
+
BoardManager
.
CurrBoard
.
boardName
+
"]后,开始轨道调宽:【"
+
w
+
"】【"
+
p
+
"】"
);
LogUtil
.
info
(
" 选择程序["
+
BoardManager
.
CurrBoard
.
boardName
+
"]后,开始轨道调宽:【"
+
w
+
"】【"
+
p
+
"】"
);
string
msg
=
ResourceCulture
.
GetString
(
ResourceCulture
.
SureChangeWidth
,
"当前宽度[{0}],目标宽度[{1}],是否开始调宽?"
,
LWidthManager
.
Line_LastWidth
,
w
);
DialogResult
result
=
MessageBox
.
Show
(
"当前宽度["
+
LWidthManager
.
Line_LastWidth
+
"],目标宽度["
+
w
+
"],是否开始调宽"
,
"提示
"
,
MessageBoxButtons
.
OKCancel
,
MessageBoxIcon
.
Question
);
DialogResult
result
=
MessageBox
.
Show
(
msg
,
"
"
,
MessageBoxButtons
.
OKCancel
,
MessageBoxIcon
.
Question
);
if
(!
result
.
Equals
(
DialogResult
.
OK
))
if
(!
result
.
Equals
(
DialogResult
.
OK
))
{
{
return
;
return
;
...
@@ -211,7 +220,7 @@ namespace TSA_V
...
@@ -211,7 +220,7 @@ namespace TSA_V
if
(!
LWidthManager
.
CanStartChWidth
())
if
(!
LWidthManager
.
CanStartChWidth
())
{
{
MessageBox
.
Show
(
"启动调宽失败"
);
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ChangeWFail
,
"启动调宽失败"
)
);
return
;
return
;
}
}
...
@@ -224,11 +233,11 @@ namespace TSA_V
...
@@ -224,11 +233,11 @@ namespace TSA_V
LogUtil
.
info
(
"调宽"
+
w
+
"="
+
p
+
"结束:"
+
ok
);
LogUtil
.
info
(
"调宽"
+
w
+
"="
+
p
+
"结束:"
+
ok
);
if
(
String
.
IsNullOrEmpty
(
ok
))
if
(
String
.
IsNullOrEmpty
(
ok
))
{
{
MessageBox
.
Show
(
"调宽"
+
w
+
"="
+
p
+
"完成"
);
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ChangeWOk
,
"调宽{0}={1}完成"
,
w
,
p
)
);
}
}
else
else
{
{
MessageBox
.
Show
(
"调宽"
+
w
+
"="
+
p
+
"结束:"
+
ok
);
MessageBox
.
Show
(
ResourceCulture
.
GetString
(
ResourceCulture
.
ChangeWEnd
,
"调宽{0}={1}结束:{2}"
,
w
,
p
,
ok
)
);
}
}
//Thread.Sleep(5000);
//Thread.Sleep(5000);
...
...
TSA-V/workForm/FrmTSAV.Designer.cs
查看文件 @
5e131a5
...
@@ -400,7 +400,7 @@
...
@@ -400,7 +400,7 @@
this
.
panPoint
.
Controls
.
Add
(
this
.
picPoint
);
this
.
panPoint
.
Controls
.
Add
(
this
.
picPoint
);
this
.
panPoint
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
17
);
this
.
panPoint
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
17
);
this
.
panPoint
.
Name
=
"panPoint"
;
this
.
panPoint
.
Name
=
"panPoint"
;
this
.
panPoint
.
Size
=
new
System
.
Drawing
.
Size
(
5
39
,
436
);
this
.
panPoint
.
Size
=
new
System
.
Drawing
.
Size
(
5
41
,
437
);
this
.
panPoint
.
TabIndex
=
3
;
this
.
panPoint
.
TabIndex
=
3
;
//
//
// picPoint
// picPoint
...
@@ -410,7 +410,7 @@
...
@@ -410,7 +410,7 @@
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
picPoint
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
picPoint
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
picPoint
.
Name
=
"picPoint"
;
this
.
picPoint
.
Name
=
"picPoint"
;
this
.
picPoint
.
Size
=
new
System
.
Drawing
.
Size
(
50
3
,
390
);
this
.
picPoint
.
Size
=
new
System
.
Drawing
.
Size
(
50
5
,
391
);
this
.
picPoint
.
SizeMode
=
System
.
Windows
.
Forms
.
PictureBoxSizeMode
.
StretchImage
;
this
.
picPoint
.
SizeMode
=
System
.
Windows
.
Forms
.
PictureBoxSizeMode
.
StretchImage
;
this
.
picPoint
.
TabIndex
=
2
;
this
.
picPoint
.
TabIndex
=
2
;
this
.
picPoint
.
TabStop
=
false
;
this
.
picPoint
.
TabStop
=
false
;
...
...
TSA-V/workForm/FrmTSAV.cs
查看文件 @
5e131a5
...
@@ -82,7 +82,8 @@ namespace TSA_V
...
@@ -82,7 +82,8 @@ namespace TSA_V
TSAVBean
.
InputCodeEvent
+=
TSAVBean_InputCodeEvent
;
TSAVBean
.
InputCodeEvent
+=
TSAVBean_InputCodeEvent
;
IsSet
=
true
;
IsSet
=
true
;
}
}
isInitOk
=
true
;
timerShowForm
.
Start
();
isInitOk
=
true
;
// string ip = ConfigAppSettings.GetValue(Setting_Init.StatusServerIp);
// string ip = ConfigAppSettings.GetValue(Setting_Init.StatusServerIp);
// bool result = StatusClient.instance.Connect();
// bool result = StatusClient.instance.Connect();
// LogUtil.info("连接状态服务器【" + ip + "】【" + result + "】【" + StatusClient.instance.ErrInfo + "】");
// LogUtil.info("连接状态服务器【" + ip + "】【" + result + "】【" + StatusClient.instance.ErrInfo + "】");
...
@@ -253,7 +254,7 @@ namespace TSA_V
...
@@ -253,7 +254,7 @@ namespace TSA_V
if
(
TSAVBean
.
Work
.
IsLastP
())
if
(
TSAVBean
.
Work
.
IsLastP
())
{
{
ShowAOI
();
ShowAOI
();
}
}
}
}
}
catch
(
Exception
ex
)
}
catch
(
Exception
ex
)
{
{
...
@@ -564,30 +565,38 @@ namespace TSA_V
...
@@ -564,30 +565,38 @@ namespace TSA_V
}
}
private
void
timerShowForm_Tick
(
object
sender
,
EventArgs
e
)
private
void
timerShowForm_Tick
(
object
sender
,
EventArgs
e
)
{
{
if
(
smtPoint
!=
null
&&
smtPoint
.
PositionX
>
0
&&
smtPoint
.
PositionY
>
0
)
try
{
{
//ShowMsg();
if
(
smtPoint
!=
null
&&
smtPoint
.
PositionX
>
0
&&
smtPoint
.
PositionY
>
0
)
Color
color
=
Color
.
Yellow
;
if
(
preIsShow
)
{
color
=
Color
.
Yellow
;
preIsShow
=
false
;
}
else
{
{
color
=
Color
.
Red
;
//ShowMsg();
preIsShow
=
true
;
Color
color
=
Color
.
Yellow
;
}
if
(
preIsShow
)
int
pontX
=
Convert
.
ToInt32
(
picPoint
.
Width
*
defaultXxishu
);
{
int
pontY
=
Convert
.
ToInt32
(
picPoint
.
Height
*
defaultYxishu
);
color
=
Color
.
Yellow
;
Graphics
g
=
picPoint
.
CreateGraphics
();
preIsShow
=
false
;
g
.
DrawLine
(
new
Pen
(
Color
.
FromArgb
(
255
,
color
),
lineWidth
),
pontX
-
lineWidth
/
2
,
pontY
-
lineLength
,
pontX
-
lineWidth
/
2
,
pontY
+
lineLength
-
lineWidth
/
2
);
}
g
.
DrawLine
(
new
Pen
(
Color
.
FromArgb
(
255
,
color
),
lineWidth
),
pontX
-
lineLength
,
pontY
-
lineWidth
/
2
,
pontX
+
lineLength
-
lineWidth
/
2
,
pontY
-
lineWidth
/
2
);
else
{
color
=
Color
.
Red
;
preIsShow
=
true
;
}
g
.
Flush
(
);
int
pontX
=
Convert
.
ToInt32
(
picPoint
.
Width
*
defaultXxishu
);
g
.
Dispose
(
);
int
pontY
=
Convert
.
ToInt32
(
picPoint
.
Height
*
defaultYxishu
);
preIsShow
=
false
;
Graphics
g
=
picPoint
.
CreateGraphics
()
;
g
.
DrawLine
(
new
Pen
(
Color
.
FromArgb
(
255
,
color
),
lineWidth
),
pontX
-
lineWidth
/
2
,
pontY
-
lineLength
,
pontX
-
lineWidth
/
2
,
pontY
+
lineLength
-
lineWidth
/
2
);
g
.
DrawLine
(
new
Pen
(
Color
.
FromArgb
(
255
,
color
),
lineWidth
),
pontX
-
lineLength
,
pontY
-
lineWidth
/
2
,
pontX
+
lineLength
-
lineWidth
/
2
,
pontY
-
lineWidth
/
2
);
g
.
Flush
();
g
.
Dispose
();
//preIsShow = false;
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
Name
+
" timerShowForm_Tick 出错:"
+
ex
.
ToString
());
}
}
}
}
private
int
preIndex
=
-
1
;
private
int
preIndex
=
-
1
;
...
@@ -680,16 +689,7 @@ namespace TSA_V
...
@@ -680,16 +689,7 @@ namespace TSA_V
}
}
private
void
btnStop_Click
(
object
sender
,
EventArgs
e
)
private
void
btnStop_Click
(
object
sender
,
EventArgs
e
)
{
{
//Task.Factory.StartNew(delegate
//{
// if (TSAVBean.Status > TSAVStatus.Reset)
// {
// TSAVBean.StopWork();
// }
// //OpInfo op = OpInfo.GetOpInfo(BoardManager.CurrBoard);
// //bool result = DB.db.AddHistory(op, out int id);
//});
this
.
Close
();
this
.
Close
();
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论