| | |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); |
| | | if (upiObj == null) |
| | | { |
| | | //æ¨éplc 人工æ¾è¡ |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.WriteStation_PersonAllowAsync((int)EDevice.Station, false, rgvLocation); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()}- æ¨éplc 人工æ¾è¡ 失败,WriteStation_PersonAllowAsync è¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-æ¨éplc 人工æ¾è¡ æå,WriteStation_PersonAllowAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | } |
| | | |
| | | //åå
¥æ¥è¦ä¿¡æ¯ |
| | | await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_269_1); |
| | | |
| | | SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()},æ ¹æ®UPI:{upiCode}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | continue; |
| | | //*/ |
| | |
| | | var res = await client.WriteQiTaoInfoAsync((int)EDevice.Station, rgvLocation, true); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"{rgvLocation.ToString()}- æ¨éplcè§£æå®æ 失败,WriteQiTaoInfoAsyncè¿å:{res.resMsg}"; |
| | | SystemWarningMsg._lbl_alert_DataProcess_269 = $"{rgvLocation.ToString()}- æ¨éplcè§£æå®æ 失败,WriteQiTaoInfoAsyncè¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | |
| | | addUpiLineQueue.UpiFlag = (int)UpiFlagEnum.æ£å¸¸; |
| | | addUpiLineQueue.UpiStatus = (int)UpiStatusEnum.åå§; |
| | | addUpiLineQueue.CreateTime = DateTime.Now; |
| | | addUpiLineQueue.CreateUserName = "è°åº¦ç³»ç»"; |
| | | addUpiLineQueue.CreateUserName = SysGloble.WCSSystem; |
| | | wmsDB.mes_upi_linequeue.Add(addUpiLineQueue); |
| | | |
| | | WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "269", "馿¬¡æ«ç "); |