schangxiang@126.com
2025-03-27 71e1322fa3f5879b9d71930b783ed1a393477451
CC/iWareCC_ASRS/ThreadService/04_BZ21£¨°áÔËÕû¶â»úÆ÷ÈË£©/2¡¢DataProcess_BZ21_IssueTask.cs
@@ -70,13 +70,20 @@
                                continue;
                            }
                            var package = wmsDB.mes_package_gather.Where(x => x.PackageCode == upiObj.PackageCode).FirstOrDefault();
                            if (package == null)
                            {
                                SystemWarningMsg._lbl_Alert_DataProcess_BZ21_IssueTask = $"{rgvLocation.ToString()},根据包号:{upiObj.PackageCode}没有找到对象 ";
                                continue;
                            }
                            short cartonwidth = 0;//纸箱宽
                            short cartonhigh = 0;//纸箱高
                            var upilist = wmsDB.mes_batchOrderUPI_new.Where(x => x.PackageCode == upiObj.PackageCode).ToList();
                            var upilength = upilist.Max(x => x.Length);
                            var upiwidth = upilist.Max(x => x.Width);
                            cartonhigh = (short)upiObj.Info3;
                            cartonwidth = (short)upiObj.Info2;
                            cartonhigh = (short)package.Info3;
                            cartonwidth = (short)package.Info2;
                            var ngFlag = false;
                            var queryFlag = (int)UpiFlagEnum.NG;
@@ -104,6 +111,7 @@
                            }
                            task.TaskStatus = (int)TaskStatusEnum.已下发;
                            task.IssueTime = DateTime.Now;
                            wmsDB.SaveChanges();
                        }