| | |
| | | 锘縰sing System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Reflection.Metadata; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_DTO.AGV.HIKROBOT; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | | { |
| | | public partial class TaskJob |
| | | { |
| | | #region 澶勭悊娴峰悍AGV浠诲姟 |
| | | public void HIKROBOTTask(List<Dt_Task> tasks) |
| | | { |
| | | foreach (var item in tasks) |
| | | { |
| | | SendHIKROBOTTask(item); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 涓嬪彂娴峰悍AGV浠诲姟 |
| | | public void SendHIKROBOTTask(List<Dt_Task> tasks) |
| | | public void SendHIKROBOTTask(Dt_Task task) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | HIKROBOTTaskSubmit hIKROBOTTaskSubmit = new HIKROBOTTaskSubmit(); |
| | | try |
| | | { |
| | | hIKROBOTTaskSubmit.taskType = ""; |
| | | hIKROBOTTaskSubmit.targetRoute = new List<TargetRouteDto> { new TargetRouteDto() }; |
| | | hIKROBOTTaskSubmit.initPriority = task.Grade; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | content.Error(ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |