|
|
@@ -321,17 +321,17 @@ namespace Business.ResourceExamineManagement
|
|
|
private decimal CalcTakeTime(mes_tech_process proc,decimal quantity)
|
|
|
{
|
|
|
decimal takeTime = 0.00m;//当前工序前置准备时间(分钟)
|
|
|
- if (proc.wctype == 1)//人工型
|
|
|
+ if (proc.wctype == 1)//人工型:数量/uph(一小时生产数量)*60(小时转换为分钟)/wsinuse(工位数)
|
|
|
{
|
|
|
takeTime = quantity / proc.uph.Value * 60 / proc.wsinuse.Value;
|
|
|
return takeTime;
|
|
|
}
|
|
|
- else if (proc.wctype == 2)//流水线型
|
|
|
+ else if (proc.wctype == 2)//流水线型:数量*ct(生产一件所需时间)
|
|
|
{
|
|
|
takeTime = quantity * proc.ct.Value;
|
|
|
return takeTime;
|
|
|
}
|
|
|
- else if (proc.wctype == 3)//设备型
|
|
|
+ else if (proc.wctype == 3)//设备型:向上取整(数量/一次可加工数量)*ct(老化一次所需时间)
|
|
|
{
|
|
|
takeTime = Math.Ceiling(quantity / proc.upe.Value) * proc.ct.Value;
|
|
|
return takeTime;
|