Commit 16c7a7c8 刘韬

日志中加入模板xml

1 个父辈 d2891d65
......@@ -69,18 +69,18 @@ namespace BLL
{
//return;
foreach (var tp in MatchTemplateList) {
LogNet.log.Info($"===开始解析模版:{tp.Key}");
//LogNet.log.Info($"===开始解析模版:{tp.Key}");
foreach (var m in tp.Value.MatchCollections) {
LogNet.log.Info($"开始解析关键字:{m.Key}");
//LogNet.log.Info($"开始解析关键字:{m.Key}");
string matchlist = m.Value.barcodeInfo.Text + "\t/\t";
foreach (var item in m.Value.Matchs)
{
matchlist += $"{item.colName},{item.isMatch},{item.matchDesc}\t/\t";
}
LogNet.log.Info(matchlist);
//LogNet.log.Info(matchlist);
}
LogNet.log.Info($"===结束解析模版:{tp.Key}");
//LogNet.log.Info($"===结束解析模版:{tp.Key}");
}
}
public class TemplateCollection
......
......@@ -231,6 +231,7 @@ namespace BLL
//{
// temp.Image = ObjConversion.ReadImageFile(imgPath);
//}
LogNet.log.Info($"读取到模板:{temp.Name},{xmlDoc.OuterXml}");
temp.Code.AddRange(LoadMateCode());
temp.Ocr.AddRange(LoadMateOcr());
......@@ -724,7 +725,7 @@ namespace BLL
ismatch = false;
}
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"分割符:{codeMatch[i].SplitText},第:{codeMatch[i].SplitPart}位", ismatch ? "OK" : "NG");
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"分割符:{codeMatch[i].SplitText},第:{codeMatch[i].SplitPart}位,内容:{code}", ismatch ? "OK" : "NG");
//if (!ismatch) return null;
}
......@@ -764,7 +765,7 @@ namespace BLL
filtercode = m.Groups[1].Value;
analysisReason += $" OK";
}
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"是否为数字", analysisReason);
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"是否为数字,转换后:{filtercode}", analysisReason);
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!