Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 787c70a3
由
刘韬
编写于
2022-02-16 16:56:28 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
放开历史查询最近30天的限制
1 个父辈
4c8d82e2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
29 行删除
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.cs
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
RC1266-AutoCountMachine/source/AutoCountClient/FrmAnalyze.cs
查看文件 @
787c70a
...
...
@@ -52,18 +52,19 @@ namespace OnlineStore.AutoCountClient
DateTime
startTime
=
dtpStartTime
.
Value
;
DateTime
endTime
=
dtpEndTime
.
Value
;
if
(
startTime
<
DateTime
.
Now
.
AddDays
(-
30
))
{
MessageBox
.
Show
(
"请输入正确的时间(只能查询近30天的日志)"
);
dtpStartTime
.
Focus
();
return
;
}
if
(
startTime
>
endTime
)
if
(
startTime
>
endTime
)
{
MessageBox
.
Show
(
"请输入正确的时间(开始时间必须小于结束时间)"
);
dtpEndTime
.
Focus
();
return
;
}
if
((
endTime
-
startTime
).
TotalDays
>
31
)
{
MessageBox
.
Show
(
"请输入正确的时间(只能查询近30天的日志)"
);
dtpStartTime
.
Focus
();
return
;
}
PreStartTime
=
startTime
;
PreEndTime
=
endTime
;
string
code
=
txtCode
.
Text
.
Trim
();
...
...
RC1266-AutoCountMachine/source/DeviceLibrary/bean/X_RAY_Equip_Partial.cs
查看文件 @
787c70a
...
...
@@ -447,25 +447,6 @@ namespace OnlineStore.DeviceLibrary
WorkLog
(
"点料:"
+
"NG:未找到元器件类型,PN["
+
ParamManager
.
GetCodeStrPN
(
Work_ReelInfo
.
WareCode
)
+
"]"
);
BackNoConfigImg
(
ParamManager
.
GetCodeStrPN
(
Work_ReelInfo
.
WareCode
));
}
string
fileP
=
path1_tif
+
@"\"
+
lastFileName
;
count
=
GetCountResult
(
fileP
,
lastParam
,
out
string
resfile
);
//eyemLib.EyemImage eyemImage = xrayImage.GetRawBufferHandle();
////WorkLog("获取到指针" + eyemImage.ucpImage.ToString());
//count = GetCountResult(eyemImage, fileP, lastParam, out string resfile);
//xrayImage.FreeRawBufferHandle();
if
(
count
<
ResultMinCount
)
{
isNg
=
true
;
NgMsg
=
"NG:点料结果小于"
+
ResultMinCount
;
}
WorkLog
(
"点料: 调用 GetCountResult 获取点料结果 【"
+
count
+
"】 "
+
lastParam
.
ToStr
()
+
", "
+
NgMsg
);
if
(
Work_ReelInfo
.
WareCount
<=
0
)
{
MoveInfo
.
MoveParam
.
WareCount
=
count
;
Work_ReelInfo
.
WareCount
=
count
;
}
var
splitindex
=
MoveInfo
.
MoveParam
.
WareCode
.
IndexOf
(
";"
);
if
(
splitindex
>
0
)
{
...
...
@@ -476,11 +457,26 @@ namespace OnlineStore.DeviceLibrary
isNg
=
true
;
NgMsg
=
"未匹配算法的新PN盘,NG."
;
BackNGImg
(
Work_ReelInfo
.
WareCode
);
//MoveInfo.MoveParam.TargetPosType = 1;
//MoveInfo.MoveParam.IsNgReel = true;
//MoveInfo.MoveParam.NgMsg = "未匹配算法的新PN盘,NG.";
}
}
string
resfile
=
""
;
if
(!
isNg
)
{
string
fileP
=
path1_tif
+
@"\"
+
lastFileName
;
count
=
GetCountResult
(
fileP
,
lastParam
,
out
resfile
);
if
(
count
<
ResultMinCount
)
{
isNg
=
true
;
NgMsg
=
"NG:点料结果小于"
+
ResultMinCount
;
}
WorkLog
(
"点料: 调用 GetCountResult 获取点料结果 【"
+
count
+
"】 "
+
lastParam
.
ToStr
()
+
", "
+
NgMsg
);
if
(
Work_ReelInfo
.
WareCount
<=
0
)
{
MoveInfo
.
MoveParam
.
WareCount
=
count
;
Work_ReelInfo
.
WareCount
=
count
;
}
}
if
(!
isNg
&&
SServerManager
.
CanConnect
())
{
...
...
@@ -505,6 +501,7 @@ namespace OnlineStore.DeviceLibrary
string
outF
=
resfile
;
if
(!
isNg
)
{
ReadOutMsg
(
outF
);
}
else
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论