|
|
@@ -76,7 +76,7 @@ namespace Business.ResourceExamineManagement
|
|
|
public async Task<PschedDto> ReceiveResult(SeorderentryDto input)
|
|
|
{
|
|
|
mes_technique info = new mes_technique();
|
|
|
- SnowFlake snow = new SnowFlake(1,1);
|
|
|
+ SnowFlake snow = new SnowFlake(1, 1);
|
|
|
info.tech_id = snow.NextId();
|
|
|
info.tech_name = "ceshi";
|
|
|
info.level = 1;
|
|
|
@@ -92,7 +92,7 @@ namespace Business.ResourceExamineManagement
|
|
|
/// <param name="orderid">订单行id</param>
|
|
|
/// <param name="BomId">Bom主键</param>
|
|
|
/// <param name="Quantity">需要数量</param>
|
|
|
- public async Task BomPretreatmentAsync(long? orderid,long? BomId, int Quantity)
|
|
|
+ public async Task BomPretreatmentAsync(long? orderid, long? BomId, int Quantity)
|
|
|
{
|
|
|
//if (BomId == null)
|
|
|
//{
|
|
|
@@ -109,7 +109,24 @@ namespace Business.ResourceExamineManagement
|
|
|
/// <param name="Quantity">需要数量</param>
|
|
|
public async Task ProductiveExamine(long? BomId, int Quantity)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 检查在制工单
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="bomNumber">Bom编码</param>
|
|
|
+ /// <param name="Quantity">需要数量</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task CheckMorder(string bomNumber, int Quantity)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(bomNumber) || Quantity < 0)
|
|
|
+ {
|
|
|
+ //TODO:入参异常;
|
|
|
+ //throw new NotImplementedException();
|
|
|
+ }
|
|
|
+ //查询生产工单类型为计划工单并且工单类型为备库工单 并且BOM编码一致数据
|
|
|
+ // 订单状态为 初始或下达工单
|
|
|
+ // List =>数量满足Quantity && 生成工单结束日期最早
|
|
|
}
|
|
|
}
|
|
|
}
|