| | |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); |
| | | if (upiObj == null) |
| | | { |
| | | //鍐欏叆鎶ヨ淇℃伅 |
| | | await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ39_2); |
| | | |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()},鏍规嵁UPI:{upiCode}娌℃湁鎵惧埌瀵硅薄 "; |
| | | continue; |
| | | } |
| | |
| | | var stock = wmsDB.wms_stock_quan.Where(x => x.Upi == upiObj.UPI).FirstOrDefault(); |
| | | if (stock != null) |
| | | { |
| | | //鍐欏叆鎶ヨ淇℃伅 |
| | | await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ39_1); |
| | | |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()},UPI:{upiCode}宸茬粡鍦ㄧ紦瀛樺簱涓簡 "; |
| | | continue; |
| | | } |
| | |
| | | var place = StationHandlerV2.FindBestEmptyPlace(wmsDB, upiObj); |
| | | if (place == null) |
| | | { |
| | | //鍐欏叆鎶ヨ淇℃伅 |
| | | await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ39_3); |
| | | |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()},鏍规嵁UPI:{upiCode}娌℃湁鎵惧埌缂撳瓨鍖哄矝鐨勭┖搴撲綅 "; |
| | | continue; |
| | | } |
| | |
| | | { |
| | | Id = _id, |
| | | TaskNo = plcTaskNo, |
| | | UPI = upiObj.UPI, |
| | | Upi = upiObj.UPI, |
| | | Length = upiObj.Length, |
| | | Width = upiObj.Width, |
| | | Thk = upiObj.Thk, |
| | |
| | | PackageCode = upiObj.PackageCode, |
| | | PlaceCode = place.PlaceCode, |
| | | RbTaskType = (int)RbTaskTypeEnum.鍏ュ簱浠诲姟, |
| | | RbTaskTypeEnumName = RbTaskTypeEnum.鍏ュ簱浠诲姟.ToString(), |
| | | TaskStatus = (int)TaskStatusEnum.鏂板缓, |
| | | TaskStatusName = TaskStatusEnum.鏂板缓.ToString(), |
| | | TaskMsg = "鍏ュ簱", |
| | | |
| | | |