hutongqing
2024-11-21 8b150adba61ff2de1800c0fb99410847833b1642
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs
@@ -248,7 +248,15 @@
                        Dt_LocationInfo newLocation;
                        Dt_LocationInfo newSourceAddress;
                        newSourceAddress = _basicService.LocationInfoService.GetLocationplatform(generate.SourceAddress);
                        newLocation = _basicService.LocationInfoService.GetLocation(newSourceAddress.RoadwayNo);
                        int Locationtype = 9;   //默认为9
                        if(dt_StockInfo.MaterialType== (int)InventoryMaterialType.成品)
                        {
                            Locationtype = 11;
                        }else if(dt_StockInfo.MaterialType == (int)InventoryMaterialType.原材料)
                        {
                            Locationtype = 10;
                        }
                        newLocation = _basicService.LocationInfoService.GetLocation(newSourceAddress.RoadwayNo, Locationtype);
                        //string[] Pallet = PalletCode.Split("-");
                        if (newLocation != null && newSourceAddress != null)
                        {
@@ -512,7 +520,7 @@
                            StockStatus = (int)StockStatusEmun.组盘暂存,
                            Creater = "WMS",
                            CreateDate = DateTime.Now,
                            MaterialType = (int)InventoryMaterialType.原材料,
                            MaterialType = (int)InventoryMaterialType.成品,
                            Materialweight = 0,
                        };
                        _unitOfWorkManage.BeginTran();