| | |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob; |
| | | using WIDESEAWCS_TaskInfoService; |
| | | using WIDESEAWCS_Tasks; |
| | | using WIDESEAWCS_Tasks.DBNames; |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | Thread.Sleep(500); |
| | | CommonConveyorLine commonConveyorLine = (CommonConveyorLine)device; |
| | | string PickBarCode = commonConveyorLine.GetValue<ConveyorLineDBName, string>(ConveyorLineDBName.R_PickBarCode, stationManger.StationCode).Trim(); |
| | | |
| | | if (containerFlowDTO.ContainerCode != PickBarCode) throw new Exception($"ä¼ å
¥æç®±ç {containerFlowDTO.ContainerCode}ï¼è¾éæç®±ç {PickBarCode}æ°æ®é误"); |
| | | if (containerFlowDTO.Direction == "100") |
| | | int W_PickToHode = commonConveyorLine.GetValue<ConveyorLineDBName, short>(ConveyorLineDBName.W_PickToHode, stationManger.StationDeviceCode); |
| | | if (containerFlowDTO.Direction == "100" && W_PickToHode == 300) |
| | | { |
| | | WebResponseContent responseContent = Service.ContainerFlow(containerFlowDTO, stationManger.StationDeviceCode, stationManger.PickStationCode); |
| | | if (!responseContent.Status) throw new Exception(responseContent.Message); |
| | | } |
| | | WriteLog.Write_Log($"容卿µå¨{stationManger.StationCode}", $"è¾é线信æ¯", "å¼å§å
¥åº", $"ç¶æ{containerFlowDTO.Direction}ï¼æç®±ç {containerFlowDTO.ContainerCode}"); |
| | | commonConveyorLine.SetValue(ConveyorLineDBName.W_PickToHode, (short)containerFlowDTO.Direction.ObjToInt(), stationManger.StationCode); |
| | | } |
| | | content.OK(); |
| | |
| | | { |
| | | return Service.TaskCompleted(taskNum); |
| | | } |
| | | /// <summary> |
| | | /// 人工æå¨åæ¶æå®ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡ç¼å·</param> |
| | | /// <returns>æä½ç»æ</returns> |
| | | [HttpPost, HttpGet, Route("ManualTaskCancellation"), AllowAnonymous] |
| | | public WebResponseContent ManualTaskCancellation(int taskNum) |
| | | { |
| | | return Service.ManualTaskCancellation(taskNum); |
| | | } |
| | | /// WMSä»»å¡åæ¶åæ¥ |
| | | /// </summary> |
| | | /// <param name="taskCancels"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("CancelTask"), AllowAnonymous] |
| | | public WebResponseContent CancelTask([FromBody] List<TaskCancel> taskCancels) |
| | | { |
| | | return Service.TaskCancel(taskCancels); ; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// WMSä»»å¡åæ¶åæ¥ |
| | | /// æä»»å¡å¼å¸¸900ä¿®æ¹ä¸ºAGVæ§è¡ä¸300 |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("CancelTask"), AllowAnonymous] |
| | | public WebResponseContent CancelTask(List<TaskCancel> taskCancels) |
| | | [HttpPost, HttpGet, Route("ResetAllExceptionTask"), AllowAnonymous] |
| | | public WebResponseContent ResetAllExceptionTask(int taskNum) |
| | | { |
| | | return WebResponseContent.Instance.Error(); |
| | | return Service.ResetAllExceptionTask(taskNum); |
| | | } |
| | | } |
| | | } |