admin
2 天以前 9f3f798670e87b91c1b4c4d2b1c44bb850a34153
车间退料入库质检状态默认合格
1个文件已修改
28 ■■■■ 已修改文件
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -280,7 +280,7 @@
                        sd1 = new DataStockDetail()
                        {
                            LotNo = bind.LotNo,
                            LotText = bind.LotText,
                            //LotText = bind.LotText,
                            SupplierLot = bind.SupplierLot,
                            SkuNo = sku.SkuNo,
                            SkuName = sku.SkuName,
@@ -304,7 +304,7 @@
                            ExpirationTime = bind.ExpirationTime,
                            Status = "0",
                            InspectMark = bind.InspectMark,
                            InspectStatus = sku.IsInspect,
                            //InspectStatus = sku.IsInspect,
                            BitPalletMark = bind.BitPalletMark,
                            PackagNo = sku.PackagNo,
                            IsBale = bind.IsBale,
@@ -314,13 +314,28 @@
                            CreateUser = 0,
                            CreateTime = comTime
                        };
                        //2025年12月04日甲方要求“生产退料入库”默认质检合格
                        if (notice.Type == "8")
                        {
                            sd1.InspectStatus = "1";
                            sd1.LotText = "";
                        }
                        else
                        {
                            sd1.InspectStatus = sku.IsInspect;
                            sd1.LotText = bind.LotText;
                        }
                        //生产日期
                        if (!string.IsNullOrEmpty(detail.Lot1))
                        {
                            sd1.ProductionTime = Convert.ToDateTime(detail.Lot1);//生产日期
                            sd1.ProductionTime = Convert.ToDateTime(detail.Lot1);
                        }
                        //到期日期
                        if (!string.IsNullOrEmpty(detail.Lot2))
                        {
                            sd1.ExpirationTime = Convert.ToDateTime(detail.Lot2);//到期日期
                            sd1.ExpirationTime = Convert.ToDateTime(detail.Lot2);
                        }
                        var palletData = Db.Queryable<DataStockDetail>().First(w => w.IsDel == "0" && w.PalletNo == sd1.PalletNo && !string.IsNullOrEmpty(w.LocatNo));
                        if (palletData != null)
@@ -428,7 +443,7 @@
                                Standard = sku.Standard,
                                ProductionTime = box.ProductionTime,
                                SupplierLot = box.SupplierLot,
                                InspectStatus = sku.IsInspect,
                                //InspectStatus = sku.IsInspect,
                                InspectMark = box.InspectMark,
                                BitBoxMark = box.BitBoxMark,
                                ExpirationTime = box.ExpirationTime,
@@ -436,6 +451,9 @@
                                CreateUser = 0,
                                CreateTime = comTime
                            };
                            //2025年12月04日甲方要求“生产退料入库”默认质检合格
                            box2.InspectStatus = (notice.Type == "8") ? "1" : sku.IsInspect;
                            //添加库存箱码明细
                            Db.Insertable(box2).ExecuteCommand();
                            #endregion