| | |
| | | using WMS.Entity.Context; |
| | | using WMS.Entity.DataEntity; |
| | | using WMS.Entity.SysEntity; |
| | | using WMS.IBLL.IBllTransServer; |
| | | using static Model.InterFaceModel.RCSModel; |
| | | |
| | | namespace WMS.BLL.BllTransServer |
| | | { |
| | | public class RcsServer |
| | | public class RcsServer:IRcsServer |
| | | { |
| | | private static readonly SqlSugarScope Db = DataContext.Db; |
| | | /// <summary> |
| | |
| | | /// <param name="agvCode"></param> |
| | | /// <param name="url">RCS地址</param> |
| | | /// <returns></returns> |
| | | public string genAgvSchedulingTask(string taskCode, string taskType, string startPos, string endPos, string agvCode,string url, ref genAgvSchedulingTaskRep cbrep) |
| | | public string genAgvSchedulingTask(AgvTask agv,string url, ref genAgvSchedulingTaskRep cbrep) |
| | | { |
| | | try |
| | | { |
| | | PositionCodePath pcd1 = new PositionCodePath() |
| | | { |
| | | positionCode = startPos.ToString(), |
| | | positionCode = agv.startPos.ToString(), |
| | | type = "00", |
| | | }; |
| | | PositionCodePath pcd2 = new PositionCodePath() |
| | | { |
| | | positionCode = endPos.ToString(), |
| | | positionCode = agv.endPos.ToString(), |
| | | type = "00", |
| | | }; |
| | | List<PositionCodePath> lst = new List<PositionCodePath>(); |
| | |
| | | lst.Add(pcd2); |
| | | genAgvSchedulingTaskReq cbreq = new genAgvSchedulingTaskReq() |
| | | { |
| | | reqCode = taskCode.ToString(), |
| | | taskCode = taskCode.ToString(), |
| | | taskTyp = taskType, |
| | | reqCode = agv.taskCode.ToString(), |
| | | taskCode = agv.taskCode.ToString(), |
| | | taskTyp = agv.taskType, |
| | | positionCodePath = lst, |
| | | podCode = "", |
| | | agvCode = agvCode, |
| | | agvCode = agv.agvCode, |
| | | ctnrTyp = "1", |
| | | //ctnrCode="2", |
| | | |
| | | }; |
| | | if (startPos == "50") |
| | | if (agv.startPos == "50") |
| | | { |
| | | cbreq.ctnrTyp = "4"; |
| | | } |