| | |
| | | continue; |
| | | } |
| | | |
| | | var package = wmsDB.mes_package_gather.Where(x => x.PackageCode == upiObj.PackageCode).FirstOrDefault(); |
| | | if (package == null) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ21 = $"{rgvLocation.ToString()},æ ¹æ®å
å·:{upiObj.PackageCode}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | continue; |
| | | } |
| | | |
| | | //éªè¯æ¯å¦å
许å纸 |
| | | var validteReslt = ValidateIsAllowCut(); |
| | | if (validteReslt == false) |
| | |
| | | |
| | | //string upi = "LS070700101B0001GS"; |
| | | //è°ç¨åºçº¸æºæ¥å£ |
| | | var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | | var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_package_gather>(package); |
| | | papercut.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | papercut.ApiMessage = ""; |
| | | papercut.PushNum = 0; |
| | |
| | | wmsDB.mes_push_packagecode.Add(putpakegecode); |
| | | |
| | | //æ°å¢è¡¨ |
| | | var mesinequeue = ClassHelper.RotationMapping<mes_package_linequeue, mes_batchOrderUPI_new>(upiObj); |
| | | var mesinequeue = ClassHelper.RotationMapping<mes_package_linequeue, mes_package_gather>(package); |
| | | mesinequeue.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | mesinequeue.CreateTime = mesinequeue.UpdateTime = DateTime.Now; |
| | | wmsDB.mes_package_linequeue.Add(mesinequeue); |
| | |
| | | }; |
| | | //æ°å¢æå°è¡¨ |
| | | var printid = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | var print = ClassHelper.RotationMapping<wms_record_print, mes_batchOrderUPI_new>(upiObj); |
| | | var print = ClassHelper.RotationMapping<wms_record_print, mes_package_gather>(package); |
| | | print.Id = printid; |
| | | print.PrintType = (int)PrintTypeEnum.å
è£
æ¡ç ; |
| | | print.PrintSource = (int)PrintSourceEnum.å
è£
æ¡ç æå°; |
| | |
| | | |
| | | //å¤ç表 mes_order_gather |
| | | var errmsg = ""; |
| | | var package = wmsDB.mes_package_gather.Where(x => x.PackageCode == upiObj.PackageCode).FirstOrDefault(); |
| | | |
| | | var resultAlert = MyExtendHelper.HandlerOrderGather(wmsDB, package, "", "", out errmsg); |
| | | if (resultAlert == false) |
| | | { |
| | |
| | | |
| | | |
| | | WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "BZ21", "åå
"); |
| | | WmsRecordUpiProcessHandler.SaveWmsRecordPackageProcess(wmsDB, upiObj, "BZ21", "åå
"); |
| | | WmsRecordUpiProcessHandler.SaveWmsRecordPackageProcess(wmsDB, package, "BZ21", "åå
"); |
| | | |
| | | wmsDB.SaveChanges(); |
| | | } |