| | |
| | | sd1 = new DataStockDetail() |
| | | { |
| | | LotNo = bind.LotNo, |
| | | LotText = bind.LotText, |
| | | //LotText = bind.LotText, |
| | | SupplierLot = bind.SupplierLot, |
| | | SkuNo = sku.SkuNo, |
| | | SkuName = sku.SkuName, |
| | |
| | | ExpirationTime = bind.ExpirationTime, |
| | | Status = "0", |
| | | InspectMark = bind.InspectMark, |
| | | InspectStatus = sku.IsInspect, |
| | | //InspectStatus = sku.IsInspect, |
| | | BitPalletMark = bind.BitPalletMark, |
| | | PackagNo = sku.PackagNo, |
| | | IsBale = bind.IsBale, |
| | |
| | | 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) |
| | |
| | | Standard = sku.Standard, |
| | | ProductionTime = box.ProductionTime, |
| | | SupplierLot = box.SupplierLot, |
| | | InspectStatus = sku.IsInspect, |
| | | //InspectStatus = sku.IsInspect, |
| | | InspectMark = box.InspectMark, |
| | | BitBoxMark = box.BitBoxMark, |
| | | ExpirationTime = box.ExpirationTime, |
| | |
| | | CreateUser = 0, |
| | | CreateTime = comTime |
| | | }; |
| | | //2025年12月04日甲方要求“生产退料入库”默认质检合格 |
| | | box2.InspectStatus = (notice.Type == "8") ? "1" : sku.IsInspect; |
| | | |
| | | //添加库存箱码明细 |
| | | Db.Insertable(box2).ExecuteCommand(); |
| | | #endregion |