|
|
@@ -4435,7 +4435,7 @@ namespace Business.Replenishment
|
|
|
//周计划没有生成周工单的不校验优先级重复
|
|
|
if(weekPlan!=null && !string.IsNullOrEmpty(weekPlan.ProductionOrder))
|
|
|
{
|
|
|
- var isExistSamePriority = _workOrdMaster.Select(a => a.WorkOrd !=weekPlan.ProductionOrder && (string.IsNullOrEmpty(a.Status) || a.Status.ToUpper()=="P") && a.Priority == newpriority);
|
|
|
+ var isExistSamePriority = _workOrdMaster.Select(a => a.WorkOrd !=weekPlan.ProductionOrder && (string.IsNullOrEmpty(a.Status) || a.Status.ToUpper()=="P") && (string.IsNullOrEmpty(a.Typed) || (!string.IsNullOrEmpty(a.Typed) && a.Typed.ToUpper() != "PW" && a.BusinessID > 0)) && a.Priority == newpriority);
|
|
|
if (isExistSamePriority.Any())
|
|
|
return "优先级重复,请重新调整。";
|
|
|
}
|