| | |
| | | public string Origin { get; set; } |
| | | } |
| | | |
| | | public class ReLocateData |
| | | public class ReLocateDataModel |
| | | { |
| | | /// <summary> |
| | | /// 库位 |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 下发AGV任务继续执行 |
| | | /// </summary> |
| | | /// <param name="taskno"></param> |
| | | /// <param name="url"></param> |
| | | /// <returns></returns> |
| | | public void AgvContinue(string taskno,string url) |
| | | { |
| | | var data = new { reqCode =taskno }; |
| | |
| | | /// </summary> |
| | | /// <param name=""></param> |
| | | /// <returns></returns> |
| | | public List<ReLocateData> GetLocateList() |
| | | public List<ReLocateDataModel> GetLocateList() |
| | | { |
| | | try |
| | | { |
| | | List<ReLocateData> list = new List<ReLocateData>(); |
| | | List<ReLocateDataModel> list = new List<ReLocateDataModel>(); |
| | | |
| | | //库存信息 |
| | | var stockDetailsList = Db.Queryable<StockDetailDto>().ToList(); |
| | |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | List<ReLocateData> GetLocateList(); |
| | | List<ReLocateDataModel> GetLocateList(); |
| | | } |
| | | } |
| | |
| | | /// <param name="model"></param> |
| | | public void cancelTask(string taskno, string url); |
| | | |
| | | |
| | | /// <summary> |
| | | /// agv任务继续执行 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | public void AgvContinue(string taskno,string url); |
| | | |
| | | #endregion |
| | |
| | | /// </summary> |
| | | /// <param name="model">入库口信息</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult AgcontinueTask(PutModel model) |
| | | { |
| | | try |
| | |
| | | _pdaCrServer.AgvContinue(model.TaskNo,_config.AgvHost+_config.ContinueTask); |
| | | |
| | | |
| | | return Ok(new OutCommanAgvDto { Code = "0", Message = "成功"}); |
| | | return Ok(new HttpReturnModel { Success = "0", Message = "成功"}); |
| | | |
| | | } |
| | | catch (Exception) |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | throw; |
| | | return Ok(new HttpReturnModel { Success = "1", Message = ex.ToString() }); |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="model">来源信息</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult ReLocateData(DigitalTwinModel model) |
| | | { |
| | | //记录log |
| | |
| | | LogFile.SaveLogToFile($"库位信息及质量状态反馈:( {jsonData} ),", logStr); |
| | | |
| | | //获取库存信息 |
| | | List<ReLocateData> stocks = _stock.GetLocateList(); |
| | | List<ReLocateDataModel> stocks = _stock.GetLocateList(); |
| | | |
| | | if (stocks.Count == 0) |
| | | { |