hutongqing
2025-01-02 b51a65433d6102f2f8f00226404d9ca3808404af
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/AGV/AGVExtend.cs
@@ -40,14 +40,14 @@
                                positionCode=agvTask.NextAddress
                            }
                        },
                        TaskCode = agvTask.TaskNum.ToString(),
                        PodTyp = agvTask.PalletType == 1 ? "XX" : "DD",
                        TaskCode = agvTask.AgvTaskNum,
                        PodTyp = agvTask.PalletType < 3 ? "XX" : "DD",
                    };
                    WebResponseContent content = _taskService.AgvSendTask(taskDTO);
                    if (content.Status)
                    {
                        agvTask.TaskState = TaskStatusEnum.AGV_Executing.ObjToInt();
                        agvTask.Remark = content.Data.ObjToString();
                        //agvTask.Remark = content.Data.ObjToString();
                    }
                    else
                    {
@@ -76,7 +76,7 @@
                    AgvSecureReplyDTO replyDTO = new AgvSecureReplyDTO()
                    {
                        ReqCode = Guid.NewGuid().ToString().Replace("-", ""), //WaitToTask.TaskNum.ToString(),
                        taskCode = WaitToTask.Remark,
                        taskCode = WaitToTask.AgvTaskNum,
                    };
                    WebResponseContent content = _taskService.AgvSecureReply(replyDTO);
                    if (content.Status)
@@ -101,11 +101,11 @@
        {
            switch (DeviceCode)
            {
                case "SC01_CSJ":
                case "AGV_CSJ":
                    {
                        return TaskType == TaskTypeEnum.ProductionReturn.ObjToInt() ? "23" : "24";
                    }
                case "SC01_ZH":
                case "AGV_ZH":
                    {
                        if (TaskType == TaskTypeEnum.InboundXB.ObjToInt())
                            return "20";