| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | StaticVariable.isLineRun = false; |
| | | |
| | | // 检查当前托盘是否存在任务 |
| | | if (await HasTask(palletCode)) |
| | |
| | | return content.Error($"【{stationManager.stationChildCode}】已存在直接出库任务任务"); |
| | | } |
| | | |
| | | if (StaticVariable.isStackerRun) |
| | | if (stationManager.stationType == 7) |
| | | { |
| | | if (stationManager.stationType == 7) |
| | | var result = await HandleStationType7(palletCode, stationManager); |
| | | if (result != null) |
| | | { |
| | | var result = await HandleStationType7(palletCode, stationManager); |
| | | if (result != null) |
| | | { |
| | | return result; |
| | | } |
| | | return result; |
| | | } |
| | | else if (stationManager.stationType == 6) |
| | | } |
| | | else if (stationManager.stationType == 6) |
| | | { |
| | | var result = await HandleStationType6(palletCode, stationManager); |
| | | if (result != null) |
| | | { |
| | | var result = await HandleStationType6(palletCode, stationManager); |
| | | if (result != null) |
| | | { |
| | | return result; |
| | | } |
| | | return result; |
| | | } |
| | | } |
| | | |
| | |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | StaticVariable.isLineRun = true; |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | var task = JsonConvert.DeserializeObject<WMSTaskDTO>(content.Data.ToString()); |
| | | ConsoleHelper.WriteSuccessLine(content.Data.ToString()); |
| | | |
| | | |
| | | content = ReceiveWMSTask(new List<WMSTaskDTO> { task }); |
| | | |
| | | |
| | | return content; |
| | | } |
| | | catch (Exception ex) |