huanghongfeng
22 小时以前 bce2cc310d462ffbe56ee3d9f3d9368abf481aad
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs
@@ -67,6 +67,20 @@
                        dt_StockInfo.StockStatus = (int)StockStatusEmun.鍑哄簱閿佸畾;
                        locationInfo.LocationStatus = (int)LocationStatusEnum.InStockLock;
                        string TaregtAddres = "";
                        if (outbound.NodeCode != "2011" && outbound.NodeCode != "2009")
                        {
                            int nextTaregt = int.Parse(outbound.NodeCode);
                            //纭鐩爣绔欏彴锛堝浐瀹氾級
                            TaregtAddres = (nextTaregt - 1).ToString();
                        }
                        else
                        {
                            TaregtAddres = locationInfo.RoadwayNo == "SC01" ? "2021" : "2020";
                        }
                        //鐢熸垚绉诲姩浠诲姟
                        Dt_Task dt_Task = new()
                        {
@@ -83,9 +97,10 @@
                            Creater = "MES",
                            Depth = locationInfo.Depth,
                            CreateDate = DateTime.Now,
                            MEStaskId= outbound.TaskId,
                            MESbusinessId= outbound.BusinessId,
                            MESsubPalletCode= dt_StockInfo.MESsubPalletCode
                            MEStaskId = outbound.TaskId,
                            MESbusinessId = outbound.BusinessId,
                            MESsubPalletCode = dt_StockInfo.MESsubPalletCode,
                            OutboundPlatform = outbound.NodeCode
                        };
                        Adddtstockt.Add(dt_StockInfo);
                        Addlocations.Add(locationInfo);
@@ -96,8 +111,8 @@
                        _unitOfWorkManage.BeginTran();
                        _stockRepository.AddData(Adddtstockt);
                        _locationInfoRepository.AddData(Addlocations);
                        _stockRepository.UpdateData(Adddtstockt);
                        _locationInfoRepository.UpdateData(Addlocations);
                        BaseDal.AddData(Addtaskdt);
                        var respon = PushTasksToWCS(Addtaskdt,"");