Просмотр исходного кода

产能检查公式添加注释

heteng 3 лет назад
Родитель
Сommit
67d0d4af91

+ 3 - 3
MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs

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