From 7e758c7f7ebfb3e9a3d1d8a12ce5cae796ee614d Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 18 三月 2026 09:20:43 +0800
Subject: [PATCH] 1

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskMethods.cs |  325 +++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 226 insertions(+), 99 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskMethods.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskMethods.cs"
index 618e8ce..67e93b8 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskMethods.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskMethods.cs"
@@ -1,8 +1,10 @@
-锘縰sing Magicodes.IE.Core;
+锘縰sing Autofac.Core;
+using Magicodes.IE.Core;
 using NetTaste;
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using System.Net.NetworkInformation;
 using System.Reflection.Metadata;
 using System.Text;
 using System.Text.Json;
@@ -18,6 +20,7 @@
 using WIDESEAWCS_DTO.RGV.FOURBOT;
 using WIDESEAWCS_DTO.WMS;
 using WIDESEAWCS_Model.Models;
+using WIDESEAWCS_QuartzJob;
 
 namespace WIDESEAWCS_TaskInfoService
 {
@@ -37,13 +40,15 @@
 
             WebResponseContent content = new WebResponseContent();
             GALAXISUpdateTaskStatus gALAXIS = new();
-            FOURBOTTaskStatusNotify Rgv = new();//鍥涘悜杞︿换鍔$姸鎬侀�氱煡
+            RGVReturnInfo Rgv = new();//鍥涘悜杞︿换鍔$姸鎬侀�氱煡
             HIKROBOTTaskProcessReport hIKROBOT = new();//娴峰悍鏈哄櫒浜�
+            string deviceName = "";
             try
             {
                 if (deviceTypeEnum == DeviceTypeEnum.GALAXIS)
                 {
-                     gALAXIS = TaskDTO.Serialize().DeserializeObject<GALAXISUpdateTaskStatus>();
+                    deviceName = "鍑箰澹�";
+                    gALAXIS = TaskDTO.Serialize().DeserializeObject<GALAXISUpdateTaskStatus>();
                     if (gALAXIS == null) throw new Exception("鍙傛暟杞崲澶辫触锛�");
                     var task = BaseDal.QueryFirst(x => x.WMSTaskNum == gALAXIS.taskId);
                     if (task == null) throw new Exception($"鏈壘鍒颁换鍔�,浠诲姟缂栧彿銆恵gALAXIS.taskId}銆�");
@@ -57,84 +62,146 @@
                             break;
                         default:
                             task.TaskState = ReturnTaskStatus(gALAXIS.taskStatus, deviceTypeEnum);
-                            BaseDal.UpdateData(task);
+                            if (gALAXIS.taskStatus == 10) TaskFeedback(task, 1);
+                            else BaseDal.UpdateData(task);
                             break;
                     }
                 }
                 else if (deviceTypeEnum == DeviceTypeEnum.HIKROBOT)
                 {
-                    hIKROBOT=TaskDTO.Serialize().DeserializeObject<HIKROBOTTaskProcessReport>();
-                    if (hIKROBOT==null) throw new Exception("鍙傛暟杞崲澶辫触锛�");
+                    deviceName = "娴峰悍";
+                    hIKROBOT = TaskDTO.Serialize().DeserializeObject<HIKROBOTTaskProcessReport>();
+                    if (hIKROBOT == null) throw new Exception("鍙傛暟杞崲澶辫触锛�");
                     var task = BaseDal.QueryFirst(x => x.WMSTaskNum == hIKROBOT.robotTaskCode);
                     if (task == null) throw new Exception($"鏈壘鍒颁换鍔�,浠诲姟缂栧彿銆恵hIKROBOT.robotTaskCode}銆�");
                     switch (hIKROBOT.extra.values.method)
                     {
                         case "start":
-                            TaskCompleted(task, deviceTypeEnum);
+                            task.TaskState = (int)TaskStatusEnum.Takeing;
+                            TaskFeedback(task, 1);
+                            break;
+                        case "outbin":
+                            {
+                                ///鍒ゆ柇浠诲姟鏄惁璺熻澶囨湁鍏�
+                                TaskFromCompleted(task, deviceTypeEnum);
+                            }
+                            break;
+                        case "into"://鐢宠杩涘叆鎻愬崌鏈�
+                            break;
+                        case "wait"://鎵爜绛夊緟
                             break;
                         case "end":
-                            TaskFromCompleted(task, deviceTypeEnum);
+                            {
+                                ///鍒ゆ柇浠诲姟鏄惁璺熻澶囨湁鍏�
+                                TaskCompleted(task, deviceTypeEnum);
+                            }
                             break;
                         default:
-                            task.TaskState = ReturnTaskStatus(gALAXIS.taskStatus, deviceTypeEnum);
-                            BaseDal.UpdateData(task);
-                            break;
+                            throw new Exception("鏈畾涔夌殑鏂规硶鍚嶏紒");
+                            //task.TaskState = ReturnTaskStatus(hIKROBOT.extra.values.method, deviceTypeEnum);
+                            //BaseDal.UpdateData(task);
+                            //break;
                     }
                 }
                 else //鍥涘悜杞�
                 {
-                    Rgv = TaskDTO.Serialize().DeserializeObject<FOURBOTTaskStatusNotify>();
-                    if (Rgv==null) throw new Exception("鍙傛暟杞崲澶辫触锛�");
-                    var task = BaseDal.QueryFirst(x => x.WMSTaskNum == Rgv.taskID.ToString());
-                    if (task==null) throw new Exception($"鏈壘鍒颁换鍔�,浠诲姟缂栧彿銆恵Rgv.taskID}銆�");
-                    switch (Rgv.status)
+                    deviceName = "鍥涘悜杞�";
+                    Rgv = TaskDTO.Serialize().DeserializeObject<RGVReturnInfo>();
+                    if (Rgv == null) throw new Exception("鍙傛暟杞崲澶辫触锛�");
+                    //var task = BaseDal.QueryFirst(x => x.RGVTaskId == Rgv.content.taskID);
+                    var task = BaseDal.QueryFirst(x => x.PalletCode == Rgv.content.podID);
+                    if (task == null) throw new Exception($"鏈壘鍒颁换鍔�,浠诲姟缂栧彿銆恵Rgv.content.taskID}銆�");
+                    //绉诲簱
+                    if (task.TaskType == TaskTypeEnum.CPMoveInventory.ObjToInt() && Rgv.messageType == 10 && Rgv.content.status == 4)
                     {
-                        case 2:
-                            TaskCompleted(task, deviceTypeEnum);
-                            break;
-                        case 4:
-                            TaskFromCompleted(task, deviceTypeEnum);
-                            break;
-                        default:
-                            task.TaskState = ReturnTaskStatus(gALAXIS.taskStatus, deviceTypeEnum);
-                            break;
+                        deviceName += "绉诲簱";
+                        WMSMoveLocationFeedback wMSMoveLocationFeedback = new WMSMoveLocationFeedback()
+                        {
+                            containerCode = task.PalletCode,
+                            fromStationCode = task.SourceAddress,
+                            toLocationCode = task.TargetAddress
+                        };
+                        Dt_ApiInfo? apiInfo = _apiInfoService.Repository.QueryFirst(x => x.ApiCode == nameof(WMSMoveLocationFeedback));
+                        WMSReturn agvContent = null;
+                        if (apiInfo == null) task.ExceptionMessage = "鏈壘鍒扮Щ搴撳畬鎴愬弽棣圵MS鎺ュ彛閰嶇疆淇℃伅锛佽妫�鏌ユ帴鍙i厤缃�";
+                        else
+                        {
+                            task.TaskState = TaskStatusEnum.Finish.ObjToInt();
+                            string response = HttpHelper.Post(apiInfo.ApiAddress, wMSMoveLocationFeedback.Serialize());
+                            agvContent = response.DeserializeObject<WMSReturn>();
+                            content.OK(data: agvContent);
+                            if (agvContent.code != 200)
+                            {
+                                task.ExceptionMessage = agvContent.message;
+                                content.Error(agvContent.message);
+                            }
+                            UpdateLocationStatus(task.TargetAddress, task.PalletCode, deviceTypeEnum, LocationStatusEnum.InStock);
+                            BaseDal.DeleteAndMoveIntoHty(task, OperateTypeEnum.鑷姩瀹屾垚);
+                        }
                     }
-
-
+                    else
+                    {
+                        //绔欏彴鍒拌川妫�鍙�
+                        if (Rgv.messageType == 72)//灏忚溅椤惰捣璐х墿
+                        {
+                            if (task.TaskType == (int)TaskTypeEnum.CPInbound && task.TaskState == (int)TaskStatusEnum.Execut)
+                            {
+                                task.TaskState = (int)TaskStatusEnum.WaiCheckShape;
+                                //BaseDal.UpdateData(task);//缁欒川妫�闂ㄥ啓鍏ュ惎鍔ㄤ俊鍙�
+                                var device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "F1") as OtherDevice;
+                                if (device == null) task.ExceptionMessage = "鏈壘鍒�1妤艰川妫�闂ㄨ澶囦俊鎭�";
+                                else
+                                {
+                                    if (device.IsConnected)
+                                        device.SetValue(QualityInspectionCommandEnum.StartqualityInspection, true, task.SourceAddress);
+                                    else
+                                        task.ExceptionMessage = "1妤艰川妫�闂ㄨ澶囪繛鎺ュけ璐�";
+                                }
+                                TaskFeedback(task, 4);
+                            }
+                            else
+                            {
+                                //杩欓噷鍑哄簱锛岃繖涓帴鍙d腑涔熻繑鍥炵粰浜唚ms鐘舵��
+                                TaskFromCompleted(task, deviceTypeEnum);
+                            }
+                        }
+                        else if (Rgv.messageType == 10)//璐ㄦ鍙板埌鐩爣璐т綅
+                        {
+                            if (Rgv.content.status == 2) TaskFeedback(task, 1);
+                            if (Rgv.content.status == 4)
+                            {
+                                if (task.TaskType == (int)TaskTypeEnum.CPInbound && task.TaskState == (int)TaskStatusEnum.TakeFinish)
+                                {
+                                    if (!string.IsNullOrEmpty(task.ExceptionMessage)) task.TaskState = TaskStatusEnum.CheckShapeingNG.ObjToInt();
+                                    else task.TaskState = (int)TaskStatusEnum.CheckShapeing;
+                                    BaseDal.UpdateData(task);
+                                }
+                                else if (task.TaskType == (int)TaskTypeEnum.CPInbound && task.TaskState == (int)TaskStatusEnum.Puting)
+                                {
+                                    if (!string.IsNullOrEmpty(task.ExceptionMessage))
+                                        ErrorTaskFeedback(task, true/*!task.ExceptionMessage.Contains("澶栨澶辫触")*/);
+                                    else
+                                        TaskCompleted(task, deviceTypeEnum);
+                                }
+                                else if (task.TaskType == (int)TaskTypeEnum.CPOutbound )//鍑哄簱瀹屾垚
+                                {
+                                    TaskCompleted(task, deviceTypeEnum);
+                                }
+                            }
+                        }
+                    }
                 }
-               return content.OK();
+                content.OK();
             }
             catch (Exception ex)
             {
-                return content.Error(ex.Message);
+                content.Error(ex.Message);
             }
             finally
             {
-                // 鍦� finally 涓垽鏂摢涓璞¤璧嬪�间簡
-                object logObject = null;
-                string deviceName = "";
-
-                if (gALAXIS != null && gALAXIS.taskId != null)
-                {
-                    logObject = gALAXIS;
-                    deviceName = "鍑箰澹獳GV";
-                }
-                else if (hIKROBOT != null && hIKROBOT.robotTaskCode != null)
-                {
-                    logObject = hIKROBOT;
-                    deviceName = "娴峰悍鏈哄櫒浜�";
-                }
-                else if (Rgv != null && Rgv.taskID != 0)
-                {
-                    logObject = Rgv;
-                    deviceName = "鍥涘悜杞�";
-                }
-
-                if (logObject != null)
-                {
-                    _trackloginfoService.AddTrackLog(logObject, content, $"涓嬪彂{deviceName}浠诲姟", "", "");
-                }
+                _trackloginfoService.AddTrackLog(TaskDTO, content, $"{deviceName}浠诲姟鐘舵�佸弽棣�", "", "");
             }
+            return content;
         }
         #endregion
 
@@ -192,10 +259,11 @@
             try
             {
                 dt_Task.TaskState = TaskStatusEnum.TakeFinish.ObjToInt();
-                Db.Ado.BeginTran();
-                UpdateLocationStatus(dt_Task, deviceTypeEnum, LocationStatusEnum.Free);
-                BaseDal.UpdateData(dt_Task);
-                Db.Ado.CommitTran();
+                TaskFeedback(dt_Task, 4);
+                //Db.Ado.BeginTran();
+                UpdateLocationStatus(dt_Task.SourceAddress, dt_Task.PalletCode, deviceTypeEnum, LocationStatusEnum.Free);
+                //BaseDal.UpdateData(dt_Task);
+                //Db.Ado.CommitTran();
                 return WebResponseContent.Instance.OK();
             }
             catch (Exception ex)
@@ -217,45 +285,17 @@
         {
             try
             {
-                WMSInOutBoundCompleteFeedback boundCompleteFeedback = new WMSInOutBoundCompleteFeedback();
-                WMSReturn agvContent = null;
                 dt_Task.TaskState = TaskStatusEnum.Finish.ObjToInt();
+                TaskFeedback(dt_Task, 2);
+                //Db.Ado.BeginTran();
+                UpdateLocationStatus(dt_Task.TargetAddress, dt_Task.PalletCode, deviceTypeEnum, LocationStatusEnum.InStock);
 
-                Dt_ApiInfo? apiInfo = _apiInfoService.Repository.QueryFirst(x => x.ApiCode == nameof(WMSInOutBoundCompleteFeedback));
-                if (apiInfo == null) dt_Task.ExceptionMessage = "鏈壘鍒板嚭鍏ュ簱瀹屾垚鍙嶉WMS鎺ュ彛閰嶇疆淇℃伅锛佽妫�鏌ユ帴鍙i厤缃�";
-                else
-                {
-                    boundCompleteFeedback.taskCode = dt_Task.WMSTaskNum;
-                    boundCompleteFeedback.containerCode = dt_Task.PalletCode;
-                    boundCompleteFeedback.fromStationCode = dt_Task.SourceAddress;
-                    boundCompleteFeedback.toLocationCode = dt_Task.TargetAddress;
-                    switch (deviceTypeEnum)
-                    {
-                        case DeviceTypeEnum.GALAXIS:
-                            boundCompleteFeedback.businessType = 1;
-                            break;
-                        case DeviceTypeEnum.YuanLiJuHe:
-                            boundCompleteFeedback.businessType = 2;
-                            break;
-                    }
-
-                    boundCompleteFeedback.completeType = 1;
-                    string response = HttpHelper.Post(apiInfo.ApiAddress, boundCompleteFeedback.Serialize());
-                    agvContent = response.DeserializeObject<WMSReturn>();
-                    if (agvContent.code != 0) dt_Task.ExceptionMessage = agvContent.msg;
-                }
-                Db.Ado.BeginTran();
-                UpdateLocationStatus(dt_Task, deviceTypeEnum, LocationStatusEnum.InStock);
-                if (agvContent != null && agvContent.code == 0)
-                    BaseDal.DeleteAndMoveIntoHty(dt_Task, OperateTypeEnum.鑷姩瀹屾垚);
-                else
-                    BaseDal.UpdateData(dt_Task);
-                Db.Ado.CommitTran();
+                //Db.Ado.CommitTran();
                 return WebResponseContent.Instance.OK();
             }
             catch (Exception ex)
             {
-                Db.Ado.RollbackTran();
+                //Db.Ado.RollbackTran();
                 throw new Exception(ex.Message);
             }
         }
@@ -269,22 +309,22 @@
         /// <param name="deviceTypeEnum"></param>
         /// <param name="locationStatusEnum"></param>
         /// <returns></returns>
-        public WebResponseContent UpdateLocationStatus(Dt_Task takse, DeviceTypeEnum deviceTypeEnum, LocationStatusEnum locationStatusEnum)
+        public WebResponseContent UpdateLocationStatus(string locationCode, string palletCode, DeviceTypeEnum deviceTypeEnum, LocationStatusEnum locationStatusEnum)
         {
             try
             {
                 if (deviceTypeEnum == DeviceTypeEnum.GALAXIS)
                 {
-                    Dt_KLSLocationInfo? dt_KLSLocationInfo = _kLSLocationInfoService.Repository.QueryFirst(x => x.LocationCode == takse.SourceAddress);
+                    Dt_KLSLocationInfo? dt_KLSLocationInfo = _kLSLocationInfoService.Repository.QueryFirst(x => x.LocationCode == locationCode);
                     if (dt_KLSLocationInfo != null)
                     {
-                        if (locationStatusEnum== LocationStatusEnum.Free) //濡傛灉璧风偣瀹屾垚灏辩粰璐т綅璧嬪�兼墭鐩樺彿
+                        if (locationStatusEnum == LocationStatusEnum.Free) //濡傛灉璧风偣瀹屾垚灏辩粰璐т綅璧嬪�兼墭鐩樺彿
                         {
                             dt_KLSLocationInfo.PalletCode = "";
                         }
                         else
                         {
-                            dt_KLSLocationInfo.PalletCode = takse.PalletCode;
+                            dt_KLSLocationInfo.PalletCode = palletCode;
                         }
                         dt_KLSLocationInfo.LocationStatus = locationStatusEnum.ObjToInt();
                         _kLSLocationInfoService.Repository.UpdateData(dt_KLSLocationInfo);
@@ -292,7 +332,7 @@
                 }
                 else if (deviceTypeEnum == DeviceTypeEnum.HIKROBOT)
                 {
-                    Dt_HKLocationInfo? dt_HKLocationInfo = _hKLocationInfoService.Repository.QueryFirst(x => x.LocationCode == takse.SourceAddress);
+                    Dt_HKLocationInfo? dt_HKLocationInfo = _hKLocationInfoService.Repository.QueryFirst(x => x.LocationCode == locationCode);
                     if (dt_HKLocationInfo != null)
                     {
                         if (locationStatusEnum == LocationStatusEnum.Free) //濡傛灉璧风偣瀹屾垚灏辩粰璐т綅璧嬪�兼墭鐩樺彿
@@ -301,7 +341,7 @@
                         }
                         else
                         {
-                            dt_HKLocationInfo.PalletCode = takse.PalletCode;
+                            dt_HKLocationInfo.PalletCode = palletCode;
                         }
                         dt_HKLocationInfo.LocationStatus = locationStatusEnum.ObjToInt();
                         _hKLocationInfoService.Repository.UpdateData(dt_HKLocationInfo);
@@ -309,7 +349,7 @@
                 }
                 else if (deviceTypeEnum == DeviceTypeEnum.YuanLiJuHe)
                 {
-                    Dt_RGVLocationInfo dt_RGVLocationInfo = _rGVLocationInfoService.Repository.QueryFirst(x => x.LocationCode == takse.SourceAddress);
+                    Dt_RGVLocationInfo dt_RGVLocationInfo = _rGVLocationInfoService.Repository.QueryFirst(x => x.LocationCode == locationCode);
                     //杩欓噷灏嗕换鍔$殑鎵樼洏鍙风粰璐т綅琛ㄤ腑鐨凱alletCode瀛楁銆�
 
                     if (dt_RGVLocationInfo != null)
@@ -320,13 +360,13 @@
                         }
                         else
                         {
-                            dt_RGVLocationInfo.PalletCode = takse.PalletCode;
+                            dt_RGVLocationInfo.PalletCode = palletCode;
                         }
                         dt_RGVLocationInfo.LocationStatus = locationStatusEnum.ObjToInt();
                         _rGVLocationInfoService.Repository.UpdateData(dt_RGVLocationInfo);
                     }
                 }
-                else//搴撳绔欏彴
+                else//骞冲簱搴撲綅
                 {
 
                 }
@@ -338,5 +378,92 @@
             }
         }
         #endregion
+
+        #region 涓婃姤WMS
+        public WebResponseContent TaskFeedback(Dt_Task dt_Task, int Status)
+        {
+            WebResponseContent content = new WebResponseContent();
+            WMSInOutBoundCompleteFeedback boundCompleteFeedback = new WMSInOutBoundCompleteFeedback();
+            WMSReturn agvContent = null;
+            try
+            {
+                Dt_ApiInfo? apiInfo = _apiInfoService.Repository.QueryFirst(x => x.ApiCode == nameof(WMSInOutBoundCompleteFeedback));
+                if (apiInfo == null) dt_Task.ExceptionMessage = "鏈壘鍒板嚭鍏ュ簱瀹屾垚鍙嶉WMS鎺ュ彛閰嶇疆淇℃伅锛佽妫�鏌ユ帴鍙i厤缃�";
+                else
+                {
+                    boundCompleteFeedback.taskCode = dt_Task.WMSTaskNum;
+                    boundCompleteFeedback.containerCode = dt_Task.PalletCode;
+                    boundCompleteFeedback.fromStationCode = dt_Task.SourceAddress;
+                    boundCompleteFeedback.toLocationCode = dt_Task.TargetAddress;
+                    boundCompleteFeedback.status = Status;
+                    boundCompleteFeedback.custStatus = "";
+                    string response = HttpHelper.Post(apiInfo.ApiAddress, boundCompleteFeedback.Serialize());
+                    agvContent = response.DeserializeObject<WMSReturn>();
+                    content.OK(data: agvContent);
+                    if (agvContent.code != 200)
+                    {
+                        dt_Task.ExceptionMessage = agvContent.message;
+                        content.Error(agvContent.message);
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                dt_Task.ExceptionMessage = ex.Message;
+            }
+            finally
+            {
+                _trackloginfoService.AddTrackLog(boundCompleteFeedback, content, "鍑哄叆搴撲换鍔$姸鎬佸弽棣圵MS", "", "");
+                if (agvContent != null && agvContent.code == 200 && Status == 2)
+                    BaseDal.DeleteAndMoveIntoHty(dt_Task, OperateTypeEnum.鑷姩瀹屾垚);
+                else
+                    BaseDal.UpdateData(dt_Task);
+            }
+            return WebResponseContent.Instance.OK();
+        }
+        #endregion
+        #region 澶辫触浠诲姟涓婃姤WMS骞跺垹闄や换鍔�
+        public WebResponseContent ErrorTaskFeedback(Dt_Task dt_Task, bool Del)
+        {
+            WebResponseContent content = new WebResponseContent();
+            WMSInOutBoundCompleteFeedback boundCompleteFeedback = new WMSInOutBoundCompleteFeedback();
+            WMSReturn agvContent = null;
+            try
+            {
+                Dt_ApiInfo? apiInfo = _apiInfoService.Repository.QueryFirst(x => x.ApiCode == nameof(WMSInOutBoundCompleteFeedback));
+                if (apiInfo == null) dt_Task.ExceptionMessage = "鏈壘鍒板嚭鍏ュ簱瀹屾垚鍙嶉WMS鎺ュ彛閰嶇疆淇℃伅锛佽妫�鏌ユ帴鍙i厤缃�";
+                else
+                {
+                    boundCompleteFeedback.taskCode = dt_Task.WMSTaskNum;
+                    boundCompleteFeedback.containerCode = dt_Task.PalletCode;
+                    boundCompleteFeedback.fromStationCode = dt_Task.SourceAddress;
+                    boundCompleteFeedback.toLocationCode = dt_Task.TargetAddress;
+                    boundCompleteFeedback.status = 3;
+                    boundCompleteFeedback.custStatus = "";
+                    boundCompleteFeedback.memo = dt_Task.ExceptionMessage;
+                    string response = HttpHelper.Post(apiInfo.ApiAddress, boundCompleteFeedback.Serialize());
+                    agvContent = response.DeserializeObject<WMSReturn>();
+                    content.OK(data: agvContent);
+                    if (agvContent.code != 200)
+                    {
+                        dt_Task.ExceptionMessage = agvContent.message;
+                        content.Error(agvContent.message);
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                dt_Task.ExceptionMessage = ex.Message;
+                content.Error(ex.Message);
+            }
+            finally
+            {
+                _trackloginfoService.AddTrackLog(boundCompleteFeedback, content, "鍑哄叆搴撲换鍔$姸鎬佸弽棣圵MS", "", "");
+                if (agvContent != null && agvContent.code == 200 && Del) BaseDal.DeleteAndMoveIntoHty(dt_Task, OperateTypeEnum.鑷姩鍒犻櫎);
+                else BaseDal.UpdateData(dt_Task);
+            }
+            return content;
+        }
+        #endregion
     }
 }

--
Gitblit v1.9.3