|
|
@@ -19,7 +19,7 @@ namespace Business.ResourceExamineManagement
|
|
|
public class ResourceExamineAppService : IResourceExamineAppService
|
|
|
{
|
|
|
|
|
|
- private IRepository<ic_item,long> _ic_item;
|
|
|
+ private IRepository<ic_item, long> _ic_item;
|
|
|
private IRepository<ic_bom, long> _ic_bom;
|
|
|
|
|
|
public ResourceExamineAppService(
|
|
|
@@ -58,5 +58,23 @@ namespace Business.ResourceExamineManagement
|
|
|
|
|
|
var query = (await _ic_bom.GetQueryableAsync()).WhereIf(true, a => a.bom_id == BomId).ToList();
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 检查在制工单
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="bomNumber">Bom编码</param>
|
|
|
+ /// <param name="Quantity">需要数量</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ //public async Task CheckMorder(string bomNumber, int Quantity)
|
|
|
+ public void CheckMorder(string bomNumber, int Quantity)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(bomNumber) || Quantity < 0)
|
|
|
+ {
|
|
|
+ //TODO:入参异常;
|
|
|
+ //throw new NotImplementedException();
|
|
|
+ }
|
|
|
+ //查询生产工单类型为计划工单并且工单类型为备库工单 并且BOM编码一致数据
|
|
|
+ // 订单状态为 初始或下达工单
|
|
|
+ // List =>数量满足Quantity && 生成工单结束日期最早
|
|
|
+ }
|
|
|
}
|
|
|
}
|