From a7ceaaa38a4394b82501ca60230e97d25a6871e3 Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期六, 18 一月 2025 17:30:33 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" index b4dde35..af36c1b 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" @@ -438,7 +438,7 @@ PalletCode = model.CarrierCode, PalletType = palletTypeInfo.PalletType, WarehouseId = warehouse.WarehouseId, - StockStatus = StockStatusEmun.缁勭洏鏆傚瓨.ObjToInt() + StockStatus = StockStatusEmun.MES閫�搴�.ObjToInt() }; Dt_StockInfoDetail_Hty stockInfoDetail_Hty = _stockRepository.StockInfoDetail_HtyRepository.QueryFirst(x => x.BatchNo == model.MaterialLot && x.MaterielCode == model.MaterialCode); @@ -455,27 +455,27 @@ OutboundQuantity = 0, SerialNumber = stockInfoDetail_Hty?.SerialNumber ?? "0", StockQuantity = model.Quantity, - Status = StockStatusEmun.缁勭洏鏆傚瓨.ObjToInt(), + Status = StockStatusEmun.MES閫�搴�.ObjToInt(), Unit = model.Unit }; - Dt_Task task = new Dt_Task() - { - PalletCode = stockInfo.PalletCode, - CurrentAddress = "", - NextAddress = "", - PalletType = stockInfo.PalletType, - Roadway = "", - SourceAddress = "", - TargetAddress = "", - TaskStatus = TaskStatusEnum.New.ObjToInt(), - TaskType = TaskTypeEnum.MesMatReturn.ObjToInt(), - WarehouseId = warehouse.WarehouseId - }; + //Dt_Task task = new Dt_Task() + //{ + // PalletCode = stockInfo.PalletCode, + // CurrentAddress = "", + // NextAddress = "", + // PalletType = stockInfo.PalletType, + // Roadway = "RGV01_BC", + // SourceAddress = "RGV01_BC", + // TargetAddress = "", + // TaskStatus = TaskStatusEnum.New.ObjToInt(), + // TaskType = TaskTypeEnum.MesMatReturn.ObjToInt(), + // WarehouseId = warehouse.WarehouseId + //}; _unitOfWorkManage.BeginTran(); Db.InsertNav(stockInfo).Include(x => x.Details).ExecuteCommand(); - BaseDal.AddData(task); + //BaseDal.AddData(task); _unitOfWorkManage.CommitTran(); return MesResponseContent.Instance.OK(); -- Gitblit v1.9.3