1
huanghongfeng
2 天以前 a34059e688e947a2ea079a0646872f1a21089940
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs
@@ -31,14 +31,14 @@
                if (string.IsNullOrEmpty(clCode) || string.IsNullOrEmpty(clh))
                    throw new Exception($"车轮条码不能为空");
                if (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) throw new Exception($"车轮条码错误,请重新核对");
                //if ((!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) || (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("BVV"))) throw new Exception($"车轮条码错误,请重新核对");
                var clinfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh);
                if (clinfo != null) throw new Exception("车轮录入信息已存在");
                //检测库存是否已存在
                _WheelsStockRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh);
                if (clinfo != null) throw new Exception("库内已存在,请检查库存");
                Dt_WheelsStock dt_WheelsStock= _WheelsStockRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh);
                if (dt_WheelsStock != null) throw new Exception("库内已存在,请检查库存");
                //序列号
                //string madeUnit = saveModel.MainData["xlh"].ToString();