From 2aec0a99e559fb11b7046b148e5f357b3208cb66 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 12 九月 2025 10:06:22 +0800
Subject: [PATCH] 推送最新代码

---
 项目代码/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Outbound.cs |   65 --------------------------------
 1 files changed, 1 insertions(+), 64 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Outbound.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Outbound.cs"
index ae4290d..23241b2 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Outbound.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Outbound.cs"
@@ -298,70 +298,7 @@
             }
             return content;
         }
-        /// <summary>
-        /// 鏃犵汉甯冨嚭搴�
-        /// </summary>
-        /// <param name="Count"></param>
-        /// <returns></returns>
-        //public WebResponseContent RequestWFBWMSTaskOut(int Count)
-        //{
-        //    WebResponseContent content = new WebResponseContent();
-        //    try
-        //    {
-        //        List<Dt_AGVStationInfo> aGVStationInfos = _agvStationInfoRepository.QueryData(x => x.StationArea == AGVStationAreaEnum.AreaC.ObjToInt() && x.IsOccupied == WhetherEnum.False.ObjToInt());
-        //        if (aGVStationInfos.Count < Count)
-        //        {
-        //            return content.Error($"鍙敤缂撳瓨鏁颁笉瓒�");
-        //        }
-        //        List<Dt_ProStockInfo> stockInfos = _stockRepository.ProStockInfoRepository.QueryData(x => x.ProStockAttribute == ProStockAttributeEnum.杈呮枡澶囦欢.ObjToInt() && x.StockStatus == StockStatusEmun.鍏ュ簱瀹屾垚.ObjToInt()).OrderBy(x => x.CreateDate).Take(Count).ToList();
-        //        List<Dt_LocationInfo> locationInfos = _basicRepository.LocationInfoRepository.QueryData(x => stockInfos.Select(x => x.LocationCode).Contains(x.LocationCode));
-        //        if (stockInfos.Count < Count)
-        //        {
-        //            return content.Error($"搴撳瓨鏁伴噺涓嶈冻");
-        //        }
-        //        foreach (var item in stockInfos)
-        //        {
-        //            Dt_LocationInfo? locationInfo = locationInfos.FirstOrDefault(x => x.LocationCode == item.LocationCode);
-        //            if (locationInfo != null && (locationInfo.EnableStatus == EnableStatusEnum.OnlyOut.ObjToInt() || locationInfo.EnableStatus == EnableStatusEnum.Normal.ObjToInt()) && locationInfo.LocationStatus == LocationStatusEnum.InStock.ObjToInt())
-        //            {
-        //                item.StockStatus = StockStatusEmun.鍑哄簱閿佸畾.ObjToInt();
-        //            }
-        //            else
-        //            {
-        //                return content.Error($"璐т綅鐘舵�佷笉姝g‘");
-        //            }
-        //        }
-        //        List<Dt_Task> tasks = GetTasks(stockInfos, TaskTypeEnum.OutWFB);
-        //        if (tasks == null || tasks.Count <= 0)
-        //        {
-        //            return content.Error($"鐢熸垚浠诲姟澶辫触");
-        //        }
-        //        for (int i = 0; i < tasks.Count; i++)
-        //        {
-        //            aGVStationInfos[i].IsOccupied = WhetherEnum.True.ObjToInt();
-        //            tasks[i].TargetAddress = aGVStationInfos[i].AGVStationCode;
-        //        }
-        //        //鍒ゆ柇鏄惁鏈夊嚭搴撳崟淇℃伅
-        //        _unitOfWorkManage.BeginTran();
-        //        //鏇存柊搴撳瓨鐘舵��
-        //        _stockRepository.ProStockInfoRepository.UpdateData(stockInfos);
-        //        _agvStationInfoRepository.UpdateData(aGVStationInfos);
-        //        //鏇存柊璐т綅鐘舵��
-        //        _basicRepository.LocationInfoRepository.UpdateLocationStatus(locationInfos, LocationStatusEnum.Lock);
-        //        //鍔犲叆璐т綅鍙樺姩璁板綍
-        //        _recordService.LocationStatusChangeRecordSetvice.AddLocationStatusChangeRecord(locationInfos, LocationStatusEnum.Lock, LocationChangeType.OutboundAssignLocation, taskNums: tasks.Select(x => x.TaskNum).ToList());
-        //        //鏂板缓浠诲姟
-        //        BaseDal.AddData(tasks);
-        //        _unitOfWorkManage.CommitTran();
-        //        PushTasksToWCS(tasks);
-        //        content.OK();
-        //    }
-        //    catch (Exception ex)
-        //    {
-        //        content.Error(ex.Message);
-        //    }
-        //    return content;
-        //}
+        
         /// <summary>
         /// 鍘熸枡鍑哄簱浠诲姟
         /// </summary>

--
Gitblit v1.9.3