Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1131-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2980e5fa
由
张东亮
编写于
2023-01-03 14:40:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
及时删除贴标图片
1 个父辈
5e620c53
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
19 行增加
和
4 行删除
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
source/DeviceLibrary/storeBean/inputBean/PrintLabelBean.cs
source/XLRStoreClient/inputForm/FrmPrintLabel.cs
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
查看文件 @
2980e5f
...
...
@@ -183,7 +183,7 @@ namespace OnlineStore.DeviceLibrary
try
{
List
<
CodeInfo
>
cc
=
new
List
<
CodeInfo
>();
// eyemNoCode = true;
// eyemNoCode = true;
RemoteDecodeHelper
.
RemoteDecodeParam
remoteDecodeParam
=
new
RemoteDecodeHelper
.
RemoteDecodeParam
{
...
...
@@ -384,7 +384,7 @@ namespace OnlineStore.DeviceLibrary
if
(!
codeList
.
Contains
(
c
))
{
codeList
.
Add
(
c
);
// r = r + "##halcon|" + c.CodeType + "|" + c.CodeStr;
// r = r + "##halcon|" + c.CodeType + "|" + c.CodeStr;
LogUtil
.
info
(
" 【"
+
cameraName
+
"】[remote]"
+
c
.
CodeType
+
"(X: "
+
c
.
X
+
",Y: "
+
c
.
Y
+
") "
+
c
.
CodeStr
);
//if (!findRightCode)
//{
...
...
@@ -487,7 +487,22 @@ namespace OnlineStore.DeviceLibrary
}
return
dire
+
iamgeName
;
}
public
static
void
DelImg
(
string
deviceName
,
string
imgPath
)
{
try
{
if
(
File
.
Exists
(
imgPath
))
{
File
.
Delete
(
imgPath
);
LogUtil
.
info
(
deviceName
+
"删除图片【"
+
imgPath
+
"】成功"
);
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"删除"
+
deviceName
+
"图片【"
+
imgPath
+
"】出错"
+
ex
.
ToString
());
}
}
private
static
int
SaveErrorImageToFile
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
SaveErrorImageToFile
);
//private static void SaveImageToFile(string deviceName, string cameraName, HalconDotNet.HObject bitmap)
...
...
source/DeviceLibrary/storeBean/inputBean/PrintLabelBean.cs
查看文件 @
2980e5f
...
...
@@ -314,7 +314,6 @@ namespace OnlineStore.DeviceLibrary
BufferDataManager
.
BOutStoreInfo
.
Labeled
=
true
;
}
MoveLog
(
$
"打标:{MoveInfo.MoveParam.PosInfo.barcode}标记为打标,计算的贴标旋转角度:{MoveInfo.MoveParam.PosInfo.relativeAngle}°"
);
SetWarnMsg
();
BufferDataManager
.
LabelInfo
=
MoveInfo
.
MoveParam
.
PosInfo
.
ToCopy
();
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
}
...
...
@@ -329,9 +328,9 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
Label10_Finish
);
//MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
SetWarnMsg
();
Label_CylinderBack
(
MoveInfo
);
MoveLog
(
$
"打标:标签被取走,流程结束"
);
CodeManager
.
DelImg
(
Name
,
MoveInfo
?.
MoveParam
?.
PosInfo
?.
LabelParam
.
BitmapFilename
);
}
else
if
(
MoveInfo
.
IsTimeOut
())
{
...
...
source/XLRStoreClient/inputForm/FrmPrintLabel.cs
查看文件 @
2980e5f
...
...
@@ -96,6 +96,7 @@ namespace OnlineStore.XLRStore
button3_Click
(
null
,
null
);
}
LogUtil
.
info
(
$
"手动清除贴标缓存:{BufferDataManager.LabelInfo.ToStr()}"
);
CodeManager
.
DelImg
(
Name
,
BufferDataManager
.
LabelInfo
?.
LabelParam
.
BitmapFilename
);
BufferDataManager
.
LabelInfo
=
null
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论