|  |  |  | 
|---|
|  |  |  | 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_BZ12_IssueTask = $"{rgvLocation.ToString()},æ ¹æ®UPI:{task.UPI}æ²¡ææ¾å°å¯¹è±¡ "; | 
|---|
|  |  |  | SystemWarningMsg._lbl_Alert_DataProcess_BZ12_IssueTask = $"{rgvLocation.ToString()},æ ¹æ®UPI:{task.Upi}æ²¡ææ¾å°å¯¹è±¡ "; | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | placeZ = (short)upiObj.MachineZCenter; | 
|---|
|  |  |  | if (isrotate != 1 && isrotate != 2) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | SystemWarningMsg._lbl_Alert_DataProcess_BZ12_IssueTask = $"{rgvLocation.ToString()},æ ¹æ®UPI:{task.UPI}çæè½¬æ¹åå¼ä¸æ¯1æ2 "; | 
|---|
|  |  |  | //åå
¥æ¥è¦ä¿¡æ¯ | 
|---|
|  |  |  | await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ12_7); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | SystemWarningMsg._lbl_Alert_DataProcess_BZ12_IssueTask = $"{rgvLocation.ToString()},æ ¹æ®UPI:{task.Upi}çæè½¬æ¹åå¼ä¸æ¯1æ2 "; | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | task.TaskStatus = (int)TaskStatusEnum.å·²ä¸å; | 
|---|
|  |  |  | task.TaskStatusName = TaskStatusEnum.å·²ä¸å.ToString(); | 
|---|
|  |  |  | task.IssueTime = DateTime.Now; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | wmsDB.SaveChanges(); | 
|---|
|  |  |  | } | 
|---|