Commit bab040c2 LN

成都料仓扫码修改

1 个父辈 3e4aa624
...@@ -348,12 +348,18 @@ namespace OnlineStore.DeviceLibrary ...@@ -348,12 +348,18 @@ namespace OnlineStore.DeviceLibrary
List<string> pCode = (from m in codeList where m.StartsWith(start) select m).ToList<string>(); List<string> pCode = (from m in codeList where m.StartsWith(start) select m).ToList<string>();
if (pCode.Count > 0) if (pCode.Count > 0)
{ {
//成都料仓打印的条码,PN是以:PN;开头的
string code = pCode[0];
if (code.Contains("PN;"))
{
code= code.Replace("PN;", "PN:");
}
int subCount = start.Length; int subCount = start.Length;
if (pCode[0].Substring(start.Length, 1).Equals(":")) if (code.Substring(start.Length, 1).Equals(":"))
{ {
subCount = start.Length + 1; subCount = start.Length + 1;
} }
return pCode[0].Substring(subCount, pCode[0].Length - subCount); return code.Substring(subCount, code.Length - subCount);
} }
return ""; return "";
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!