From 0d2f7d905975c1f5d39f70689760b070cef31349 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 20 十一月 2024 22:06:23 +0800
Subject: [PATCH] 优化前端界面

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs"
index b5eadc5..bb08ce0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs"
@@ -104,9 +104,11 @@
                                         {
                                             task.ShuttleCarCode = ShuttleCar?.ShuttleCarCode;
                                             _taskService.UpdateData(task);
+                                            SendTask(commonStackerCrane, task);//涓嬪彂鍫嗗灈鏈轰换鍔�
                                         }
                                     }
-                                    SendTask(commonStackerCrane, task);//涓嬪彂鍫嗗灈鏈轰换鍔�
+                                    else
+                                        SendTask(commonStackerCrane, task);//涓嬪彂鍫嗗灈鏈轰换鍔�
                                 }
                             }
 
@@ -135,7 +137,7 @@
                 {
                     if (commonStackerCrane.SetValue(StackerCraneDBName.CommandSend, sendFlag))
                     {
-                        commonStackerCrane.LastTaskType = task.TaskType;
+                        if (task.TaskType != (int)TaskOtherTypeEnum.RelocationCar) commonStackerCrane.LastTaskType = task.TaskType;
                         _taskService.UpdateTaskStatusToNext(task.TaskNum);
                     }
                 }
@@ -169,9 +171,12 @@
         {
             if (commonStackerCrane != null)
             {
+                //if (_taskService.GetTaskInfo(commonStackerCrane.CurrentTaskNum) != null)
+                //{
                 Console.Out.WriteLine($"鍫嗗灈鏈轰换鍔″畬鎴愶細[{commonStackerCrane.CurrentTaskNum}]锛泏DateTime.Now}");
-                var Status = _taskService.StackCraneTaskCompleted(commonStackerCrane.CurrentTaskNum).Status;///闇�淇敼锛侊紒锛侊紒锛侊紒锛侊紒锛侊紒锛侊紒锛侊紒
+                var Status = _taskService.StackCraneTaskCompleted(commonStackerCrane.CurrentTaskNum).Status;
                 commonStackerCrane.SetValue(StackerCraneDBName.ConfirmComplete, Status);
+                //}
             }
         }
         /// <summary>
@@ -330,7 +335,7 @@
                     return null;
                 }
             }
-            else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.RelocationGroup)
+            else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.RelocationGroup || task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OtherGroup)
             {
                 string[] targetCodes = task.NextAddress.Split("-");
                 if (targetCodes.Length == 3)

--
Gitblit v1.9.3