| | |
| | | * 1ã仿°æ®åºä¸å¤ææ¯å¦é½å¥ |
| | | * 2ãæ ¹æ®é½å¥ç»æï¼æ¨éç»PLC |
| | | */ |
| | | if (FormCC.stationView == null) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()}-è·åPLC对象为null"; |
| | | continue; |
| | | } |
| | | var obj = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation.ToString()).FirstOrDefault(); |
| | | if (obj.R_ReqParseData) |
| | | { |
| | |
| | | |
| | | upiObj.AreaCode = (int)AreaCodeEnum.å¾
ç¼å忣åº; |
| | | |
| | | //è®°å½æ¿ä»¶éå表 |
| | | var queueData = wmsDB.mes_upi_linequeue.Where(x => x.Upi == upiObj.UPI).FirstOrDefault(); |
| | | if (queueData != null) |
| | | { |
| | | wmsDB.mes_upi_linequeue.Remove(queueData); |
| | | } |
| | | mes_upi_linequeue addUpiLineQueue = ClassHelper.RotationMapping<mes_upi_linequeue, mes_batchOrderUPI_new>(upiObj); |
| | | addUpiLineQueue.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | addUpiLineQueue.Location = "269"; |
| | | addUpiLineQueue.AreaCode = (int)AreaCodeEnum.å¾
ç¼å忣åº; |
| | | addUpiLineQueue.Upi = upiObj.UPI; |
| | | addUpiLineQueue.UpiFlag = (int)UpiFlagEnum.æ£å¸¸; |
| | | addUpiLineQueue.UpiStatus = (int)UpiStatusEnum.åå§; |
| | | addUpiLineQueue.CreateTime = DateTime.Now; |
| | | addUpiLineQueue.CreateUserName = "è°åº¦ç³»ç»"; |
| | | wmsDB.mes_upi_linequeue.Add(addUpiLineQueue); |
| | | |
| | | WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "269", "馿¬¡æ«ç "); |
| | | |
| | | wmsDB.SaveChanges(); |