From 61913f133e325ea3c1e00a372437bd162299b8c9 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 28 Mar 2022 00:41:47 +0000 Subject: [PATCH] --- server/AyaNova/biz/PartBiz.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/AyaNova/biz/PartBiz.cs b/server/AyaNova/biz/PartBiz.cs index a68c17b7..733f156f 100644 --- a/server/AyaNova/biz/PartBiz.cs +++ b/server/AyaNova/biz/PartBiz.cs @@ -606,6 +606,16 @@ namespace AyaNova.Biz } } + List ImportSerials = new List(); + 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)