毛坯,抛光,一次合格仓库添加总零件计数,工单排程修改编号为字符串,仓库看板统计优化,产线数量除3计算
This commit is contained in:
@@ -614,6 +614,14 @@ namespace ZR.Service.mes.qc
|
||||
.Queryable<QcQualityStatisticsTotal>()
|
||||
.Where(predicate1)
|
||||
.Sum(it => it.BaofeiTotal) ?? 0;
|
||||
|
||||
// 除三优化
|
||||
boardData.ProductRequireTotal = boardData.ProductRequireTotal / 3;
|
||||
boardData.ProductQualifiedTotal = boardData.ProductQualifiedTotal / 3;
|
||||
boardData.ProductQualifiedNotDoorknobTotal = boardData.ProductQualifiedNotDoorknobTotal / 3;
|
||||
boardData.ProductPolishTotal = boardData.ProductPolishTotal / 3;
|
||||
boardData.ProductSandingTotal = boardData.ProductSandingTotal / 3;
|
||||
boardData.ProductDiscardTotal = boardData.ProductDiscardTotal / 3;
|
||||
return boardData;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,5 +23,11 @@ namespace ZR.Service.mes.wms.IService
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
int SynchronousMaterial(WmBlankInventory parm);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓库零件数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetPartNumber();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,5 +38,11 @@ namespace ZR.Service.mes.wms.IService
|
||||
/// <returns></returns>
|
||||
int DoWmOneTimeStocktaking(WmOneTimeInventory parm);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓库零件数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetPartNumber();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,5 +43,11 @@ namespace ZR.Service.mes.wms.IService
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
int DoWmPolishStocktaking(WmPolishInventory parm);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓库零件数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetPartNumber();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,5 +242,14 @@ namespace ZR.Service.mes.wms
|
||||
|
||||
return Context.Insertable(wmBlank).ExecuteCommand();
|
||||
}
|
||||
|
||||
// 获取毛坯仓库零件数量
|
||||
public int GetPartNumber()
|
||||
{
|
||||
return Context
|
||||
.Queryable<WmBlankInventory>()
|
||||
.Where(it => it.Status == 1)
|
||||
.Sum(it => it.Quantity) ?? 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -397,5 +397,14 @@ namespace ZR.Service.mes.wms
|
||||
throw new Exception(e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取仓库零件数量
|
||||
public int GetPartNumber()
|
||||
{
|
||||
return Context
|
||||
.Queryable<WmOneTimeInventory>()
|
||||
.Where(it => it.Status == 1)
|
||||
.Sum(it => it.Quantity) ?? 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -463,5 +463,14 @@ namespace ZR.Service.mes.wms
|
||||
throw new Exception(e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取仓库零件数量
|
||||
public int GetPartNumber()
|
||||
{
|
||||
return Context
|
||||
.Queryable<WmPolishInventory>()
|
||||
.Where(it => it.Status == 1)
|
||||
.Sum(it => it.Quantity) ?? 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user