Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8f614d2c
由
刘韬
编写于
2025-04-30 17:25:18 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
1d6ad21b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
BLL/MatchAnalysis.cs
BLL/MaterialEdit.cs
BLL/MatchAnalysis.cs
查看文件 @
8f614d2
...
@@ -68,11 +68,10 @@ namespace BLL
...
@@ -68,11 +68,10 @@ namespace BLL
{
{
//return;
//return;
foreach
(
var
tp
in
MatchTemplateList
)
{
foreach
(
var
tp
in
MatchTemplateList
)
{
LogNet
.
log
.
Info
(
$
"开始解析模版:{tp.Key}"
);
LogNet
.
log
.
Info
(
$
"
===
开始解析模版:{tp.Key}"
);
foreach
(
var
m
in
tp
.
Value
.
MatchCollections
)
{
foreach
(
var
m
in
tp
.
Value
.
MatchCollections
)
{
LogNet
.
log
.
Info
(
$
"开始解析关键字:{m.Key}"
);
LogNet
.
log
.
Info
(
$
"开始解析关键字:{m.Key}"
);
//LogNet.log.Info($"匹配到关键字:{m.Key}");
string
matchlist
=
m
.
Value
.
barcodeInfo
.
Text
+
"\t/\t"
;
string
matchlist
=
m
.
Value
.
barcodeInfo
.
Text
+
"\t/\t"
;
foreach
(
var
item
in
m
.
Value
.
Matchs
)
foreach
(
var
item
in
m
.
Value
.
Matchs
)
{
{
...
@@ -80,6 +79,7 @@ namespace BLL
...
@@ -80,6 +79,7 @@ namespace BLL
}
}
LogNet
.
log
.
Info
(
matchlist
);
LogNet
.
log
.
Info
(
matchlist
);
}
}
LogNet
.
log
.
Info
(
$
"===结束解析模版:{tp.Key}"
);
}
}
}
}
public
class
TemplateCollection
public
class
TemplateCollection
...
...
BLL/MaterialEdit.cs
查看文件 @
8f614d2
...
@@ -769,7 +769,7 @@ namespace BLL
...
@@ -769,7 +769,7 @@ namespace BLL
//bool ismatch = true;
//bool ismatch = true;
if
(
code
.
Length
<
codeMatch
[
i
].
MinLength
)
if
(
code
.
Length
<
codeMatch
[
i
].
MinLength
)
ismatch
=
false
;
ismatch
=
false
;
MatchAnalysis
.
AddMatch
(
codeMatch
[
i
].
Keyword
,
ismatch
,
codeMatch
[
i
].
CodeID
,
$
"长度
小于:{codeMatch[i].Match
MinLength}"
,
ismatch
?
"OK"
:
"NG"
);
MatchAnalysis
.
AddMatch
(
codeMatch
[
i
].
Keyword
,
ismatch
,
codeMatch
[
i
].
CodeID
,
$
"长度
最小:{codeMatch[i].
MinLength}"
,
ismatch
?
"OK"
:
"NG"
);
//if (!ismatch) return null;
//if (!ismatch) return null;
}
}
...
@@ -780,7 +780,7 @@ namespace BLL
...
@@ -780,7 +780,7 @@ namespace BLL
//bool ismatch = true;
//bool ismatch = true;
if
(
code
.
Length
>
codeMatch
[
i
].
MaxLength
)
if
(
code
.
Length
>
codeMatch
[
i
].
MaxLength
)
ismatch
=
false
;
ismatch
=
false
;
MatchAnalysis
.
AddMatch
(
codeMatch
[
i
].
Keyword
,
ismatch
,
codeMatch
[
i
].
CodeID
,
$
"长度最大:{codeMatch[i].Ma
tchMa
xLength}"
,
ismatch
?
"OK"
:
"NG"
);
MatchAnalysis
.
AddMatch
(
codeMatch
[
i
].
Keyword
,
ismatch
,
codeMatch
[
i
].
CodeID
,
$
"长度最大:{codeMatch[i].MaxLength}"
,
ismatch
?
"OK"
:
"NG"
);
}
}
if
(!
ismatch
)
if
(!
ismatch
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论