Commit 4aed483f 刘韬

优化上传mes系统字典匹配的大小写问题

1 个父辈 130327d5
......@@ -158,7 +158,7 @@ namespace BLL
LogNet.log.Debug("Enter PrintLabel Method");
Dictionary<string, string> key = new();
Dictionary<string, string> key = new(StringComparer.OrdinalIgnoreCase);
for (int i = 0; i < extensions.Count; i++)
{
if (extensions[i].Key == "") continue;
......@@ -231,7 +231,7 @@ namespace BLL
MPN = TryGetDictValue(keyv, "MPN"),
SiteCode = TryGetDictValue(keyv, "SiteCode"),
VEN = TryGetDictValue(keyv, "VEN"),
TraceCode = TryGetDictValue(keyv, "Trace"),
TraceCode = TryGetDictValue(keyv, "TRACE"),
};
if (string.IsNullOrWhiteSpace(initPPID_Request_DPS.ToLoc))
......
......@@ -361,7 +361,7 @@ namespace BLL
private bool TemplateExtract(int index, List<BarcodeInfo> code, out Dictionary<string, string> keyword, out bool[] isCodeUsed)
{
keyword = new();
keyword = new(StringComparer.OrdinalIgnoreCase);
isCodeUsed = new bool[code.Count];
int matchCount = 0;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!