This commit is contained in:
2022-03-28 00:41:47 +00:00
parent 62cb6e7d2f
commit 61913f133e

View File

@@ -606,6 +606,16 @@ namespace AyaNova.Biz
}
}
List<string> ImportSerials = new List<string>();
if (j["PartSerialsViz"] != null)
{
var raw = (string)j["PartSerialsViz"];
if (!string.IsNullOrWhiteSpace(raw))
ImportSerials = raw.Split(',').Select(x => x.Trim()).Where(x => !string.IsNullOrWhiteSpace(x)).ToList();
}
todo: deal with serials, then mega test figure out what's not done here yet
long existingId = await ct.Part.AsNoTracking().Where(z => z.Name == (string)j["Name"]).Select(x => x.Id).FirstOrDefaultAsync();
if (existingId == 0)