| | |
| | | continue; |
| | | } |
| | | |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == task.UPI).FirstOrDefault(); |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == task.Upi).FirstOrDefault(); |
| | | if (upiObj == null) |
| | | { |
| | | SystemWarningMsg._lbl_Alert_DataProcess_BZ21_IssueTask = $"{rgvLocation.ToString()},æ ¹æ®UPI:{task.UPI}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | SystemWarningMsg._lbl_Alert_DataProcess_BZ21_IssueTask = $"{rgvLocation.ToString()},æ ¹æ®UPI:{task.Upi}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | continue; |
| | | } |
| | | |
| | |
| | | cartonhigh = (short)upiObj.Info3; |
| | | cartonwidth = (short)upiObj.Info2; |
| | | |
| | | var ngFlag = false; |
| | | var queryFlag = (int)UpiFlagEnum.NG; |
| | | var ngCount = upilist.Count(x => x.UpiFlag == queryFlag); |
| | | if (ngCount > 0) |
| | | { |
| | | ngFlag = true; |
| | | } |
| | | |
| | | //è¿éä¸å ä»»å¡ |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | |
| | | var plcres = client.WriteSurroundTaskInfo((int)EDevice.Station, rgvLocation, short.Parse(task.TaskNo), |
| | | (short)upilength, (short)upiwidth, cartonhigh, cartonwidth, 0, 0); |
| | | (short)upilength, (short)upiwidth, cartonhigh, cartonwidth, 0, 0, ngFlag); |
| | | if (!plcres.result) |
| | | { |
| | | SystemWarningMsg._lbl_Alert_DataProcess_BZ21_IssueTask = $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ 失败,WriteInStoreTaskInfoAsync è¿å:{plcres.resMsg}"; |
| | |
| | | } |
| | | |
| | | task.TaskStatus = (int)TaskStatusEnum.å·²ä¸å; |
| | | task.TaskStatusName = TaskStatusEnum.å·²ä¸å.ToString(); |
| | | |
| | | wmsDB.SaveChanges(); |
| | | } |