| | |
| | | using iWareSql.WmsDBModel; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Diagnostics.Eventing.Reader; |
| | | using System.Linq; |
| | | using System.ServiceModel.Configuration; |
| | | using System.Text; |
| | |
| | | |
| | | wmsDB.wms_rbline_task.Add(task); |
| | | |
| | | //ä¸´æ¶ |
| | | /* |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | |
| | | var res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, place.PlaceCode, |
| | | (short)upiObj.Length, |
| | | (short)upiObj.Width, (short)upiObj.Thk, Convert.ToInt32(task.TaskNo)); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ 失败,WriteInStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ æå,WriteInStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | } |
| | | //*/ |
| | | |
| | | |
| | | |
| | | place.PlaceStatus = (int)PlaceStatusEnum.éå®; |
| | | |
| | |
| | | wmsDB.SaveChanges(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-没æè¦å¤ççæ°æ®"; |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |