|
|
@@ -42,18 +42,18 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
/// <returns></returns>
|
|
|
public static GenAgvSchedulingTaskResponse 满轮入库(string ctnrCode, string position, string taskCode, string priority)
|
|
|
{
|
|
|
- return GenAgvSchedulingTask("iwms_third", ctnrCode, "1", new List<positionCodeClass>()
|
|
|
+ return GenAgvSchedulingTask("iwms_third", ctnrCode, "4", new List<positionCodeClass>()
|
|
|
{
|
|
|
new positionCodeClass(){ //取货机台
|
|
|
positionCode=position,
|
|
|
type="00"
|
|
|
},
|
|
|
new positionCodeClass(){ //巷道分配点
|
|
|
- positionCode="LK_1",
|
|
|
+ positionCode="HJLK",
|
|
|
type="00"
|
|
|
},
|
|
|
new positionCodeClass(){ //预分配放货点
|
|
|
- positionCode="liku1",
|
|
|
+ positionCode="1015",
|
|
|
type="00"
|
|
|
}
|
|
|
}, priority, taskCode, "ZTGT03", "1");
|
|
|
@@ -82,7 +82,7 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 机台补空
|
|
|
+ /// 机台补满
|
|
|
/// </summary>
|
|
|
/// <param name="ctnrCode">RFID</param>
|
|
|
/// <param name="position1">取货站台</param>
|
|
|
@@ -90,7 +90,7 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
/// <param name="taskCode">WMS任务号</param>
|
|
|
/// <param name="priority">优先级</param>
|
|
|
/// <returns></returns>
|
|
|
- public static GenAgvSchedulingTaskResponse 机台补空(string ctnrCode, string position1, string position2, string taskCode, string priority)
|
|
|
+ public static GenAgvSchedulingTaskResponse 机台补满(string ctnrCode, string position1, string position2, string taskCode, string priority)
|
|
|
{
|
|
|
return GenAgvSchedulingTask("iWMS", ctnrCode, "1", new List<positionCodeClass>()
|
|
|
{
|
|
|
@@ -120,7 +120,7 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
/// <exception cref="KnownException"></exception>
|
|
|
public static GenAgvSchedulingTaskResponse GenAgvSchedulingTask(string clienCode, string ctnrCode, string ctnrTyp, List<positionCodeClass> positionCodePath, string priority, string taskCode, string taskType, string hjTaskTy)
|
|
|
{
|
|
|
- var res = APICaller.CallApi2<GenAgvSchedulingTaskResponse>(AgvUrl + "/hikRpcService/continueTask", new GenAgvSchedulingTaskRequest
|
|
|
+ var res = APICaller.CallApi2<GenAgvSchedulingTaskResponse>(AgvUrl + "/rcms/services/rest/hikRpcService/genAgvSchedulingTask", new GenAgvSchedulingTaskRequest
|
|
|
{
|
|
|
clientCode = clienCode,
|
|
|
ctnrCode = ctnrCode,
|
|
|
@@ -128,11 +128,12 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
interfaceName = "genAgvSchedulingTask",
|
|
|
positionCodePath = positionCodePath,
|
|
|
priority = priority,
|
|
|
- reqCode = Guid.NewGuid().ToString(),
|
|
|
+ reqCode = Guid.NewGuid().ToString().Replace("-", ""),
|
|
|
taskCode = taskCode,
|
|
|
taskTyp = taskType,
|
|
|
hjTaskTy = hjTaskTy,
|
|
|
- tokenCode = "08cf13d176b54d96aa"
|
|
|
+ tokenCode = "56898661ea976b748f328cefa6960434",
|
|
|
+ agvCode = "2047"
|
|
|
});
|
|
|
if (res.code != AgvResponseCode.Success)
|
|
|
{
|
|
|
@@ -143,6 +144,8 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
|
|
|
#endregion 任务单生成
|
|
|
|
|
|
+ #region 继续执行任务
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 继续执行任务
|
|
|
/// </summary>
|
|
|
@@ -156,8 +159,11 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
{
|
|
|
reqCode = Guid.NewGuid().ToString(),
|
|
|
taskCode = taskCode,
|
|
|
- type = "00",
|
|
|
- nextPositionCode = nextPositionCode
|
|
|
+ nextPositionCode = new positionCodeClass()
|
|
|
+ {
|
|
|
+ positionCode = nextPositionCode,
|
|
|
+ type = "00"
|
|
|
+ }
|
|
|
});
|
|
|
if (res.code != AgvResponseCode.Success)
|
|
|
{
|
|
|
@@ -165,5 +171,7 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
+ #endregion 继续执行任务
|
|
|
}
|
|
|
}
|