料架暂控,不允许齐套呼叫

This commit is contained in:
2024-10-31 09:39:45 +08:00
parent 0c93b4a6e3
commit eb8cc1871b

View File

@@ -2169,6 +2169,13 @@ namespace Tnb.WarehouseMgr
throw new AppFriendlyException($"【CallRackToProductionLine】不存在料架号为{input.carry_code}的料架!", 500);
}
//如果料架是暂控,不允许齐套呼叫
if(wmsCarryH.is_check== ((int)EnumCheckConclusion.).ToString())
{
Logger.LogWarning($"【CallRackToProductionLine】料架号为{input.carry_code}的料架状态为暂控,不允许呼叫");
throw new AppFriendlyException($"【CallRackToProductionLine】料架号为{input.carry_code}的料架状态为暂控,不允许呼叫!", 500);
}
// 获取产线
OrganizeEntity organizeEntityCX = _db.Queryable<OrganizeEntity>().Where(r => r.Id == organizeEntity.ParentId).First();
if (organizeEntityCX == null)