料架暂控,不允许齐套呼叫
This commit is contained in:
@@ -2169,6 +2169,13 @@ namespace Tnb.WarehouseMgr
|
|||||||
throw new AppFriendlyException($"【CallRackToProductionLine】不存在料架号为{input.carry_code}的料架!", 500);
|
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();
|
OrganizeEntity organizeEntityCX = _db.Queryable<OrganizeEntity>().Where(r => r.Id == organizeEntity.ParentId).First();
|
||||||
if (organizeEntityCX == null)
|
if (organizeEntityCX == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user