tangdi 2 lat temu
rodzic
commit
4be6b72e2c

+ 4 - 4
MicroServices/Business/Business.Application/ReplenishmentManagement/ReplenishmentAppService.cs

@@ -2582,7 +2582,7 @@ namespace Business.Replenishment
                                 weekItem.Area = item.area;
                                 weekItem.PlanStartDate = mes_Morder.moentry_sys_stime.GetValueOrDefault();
                                 weekItem.Week = $"WK{GetWeekOfYear(mes_Morder.moentry_sys_stime.Value).ToString("00")}";
-                                weekItem.OrderNO = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "WO", 1, "", 1)[0].NbrResult;
+                                weekItem.OrderNO = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "M5", 1, "", 1)[0].NbrResult;
                                 weekItem.ProductionOrder = mes_Morder.morder_no;
                                 weekItem.SAPOrderNO = "";
                                 weekItem.OrderType = "量产";
@@ -2801,7 +2801,7 @@ namespace Business.Replenishment
             week = week == 0 ? 7 : week;
             int count = planItemList.Count * 12 * 3;//瑞奇国科海王
             var list = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "MPO", count, "", 1);
-            var nbrlistDto = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "WO", count, "", 1);
+            var nbrlistDto = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "M5", count, "", 1);
             int j = 0;
             //滚动三个月12周的周计划,已经发布的周计划不改(TODO:删除未来未发布的周计划和工单(是否影响资源检查)) 
             //最小经济批量
@@ -3214,7 +3214,7 @@ namespace Business.Replenishment
                 }
             });
             var list = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "MPO", count, "", 1);
-            var nbrlistDto = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "WO", count, "", 1);
+            var nbrlistDto = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "M5", count, "", 1);
             int j = 0;
             DateTime currentTime = DateTime.Now;
             int week = Convert.ToInt32(currentTime.DayOfWeek);
@@ -3490,7 +3490,7 @@ namespace Business.Replenishment
                 }
             });
             var list = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "MPO", count, "", 1);
-            var nbrlistDto = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "WO", count, "", 1);
+            var nbrlistDto = _serialNumberAppService.GetBillNo(input.factory_id.ToString(), "M5", count, "", 1);
             int j = 0;
             DateTime currentTime = DateTime.Now;
             int week = Convert.ToInt32(currentTime.DayOfWeek);

+ 1 - 1
MicroServices/Business/Business.Application/ResourceExamineManagement/MorderAppService.cs

@@ -153,7 +153,7 @@ namespace Business.ResourceExamineManagement
             mes_Morder.work_order_type = generateMorderDto.work_order_type;
             mes_Morder.morder_state = generateMorderDto.morder_state;
             
-            var nbrlistDto = _serialNumberAppService.GetBillNo(param.factoryId.ToString(), "WO", 1, "", 1);
+            var nbrlistDto = _serialNumberAppService.GetBillNo(param.factoryId.ToString(), "M5", 1, "", 1);
             if (nbrlistDto.Any())
             {
                 mes_Morder.morder_no = nbrlistDto[0].NbrResult;