|
|
@@ -47,7 +47,7 @@ public class CookTimeUtils { |
|
|
|
if(!silos.isEmpty()){ |
|
|
|
BPA_SILOS_CALIBRATE bean = (BPA_SILOS_CALIBRATE) QueryDB.GetSilosCalibrateByNum( silos.get(0).num); |
|
|
|
int valueDeal = AnalogConvert.Scale( val, bean.inputWightMax, bean.inputWightMin, |
|
|
|
bean.outputTimeMax, bean.outputTimeMin); |
|
|
|
bean.outputTimeMax, bean.outputTimeMin)/100; |
|
|
|
time += valueDeal; |
|
|
|
LogUtils.d("measureCookTime name="+name+";重量="+val+";换算时间="+valueDeal); |
|
|
|
} |
|
|
@@ -67,6 +67,8 @@ public class CookTimeUtils { |
|
|
|
} |
|
|
|
time += val; |
|
|
|
} |
|
|
|
}else if(value!=null && value.contains("上升")||value.contains("下降")){ |
|
|
|
time += 10; |
|
|
|
}else if(value!=null && value.contains("(克),")){ |
|
|
|
String[] res = value.split("克"); |
|
|
|
if(res.length==2){ |
|
|
@@ -76,13 +78,13 @@ public class CookTimeUtils { |
|
|
|
if(item.processname.contains("加水")){ |
|
|
|
BPA_SILOS_CALIBRATE bean = (BPA_SILOS_CALIBRATE) QueryDB.GetSilosCalibrateByNum(10); |
|
|
|
int valueDeal = AnalogConvert.Scale( val, bean.inputWightMax, bean.inputWightMin, |
|
|
|
bean.outputTimeMax, bean.outputTimeMin); |
|
|
|
bean.outputTimeMax, bean.outputTimeMin)/100; |
|
|
|
LogUtils.d("measureCookTime 加水重量="+val+";换算加水时间="+valueDeal); |
|
|
|
time += valueDeal; |
|
|
|
}else if(item.processname.contains("勾芡")){ |
|
|
|
BPA_SILOS_CALIBRATE bean = (BPA_SILOS_CALIBRATE) QueryDB.GetSilosCalibrateByNum(11); |
|
|
|
int valueDeal = AnalogConvert.Scale( val, bean.inputWightMax, bean.inputWightMin, |
|
|
|
bean.outputTimeMax, bean.outputTimeMin); |
|
|
|
bean.outputTimeMax, bean.outputTimeMin)/100; |
|
|
|
LogUtils.d("measureCookTime 加水重量="+val+";换算加水时间="+valueDeal); |
|
|
|
time += valueDeal; |
|
|
|
} |
|
|
@@ -128,7 +130,7 @@ public class CookTimeUtils { |
|
|
|
if(!silos.isEmpty()){ |
|
|
|
BPA_SILOS_CALIBRATE bean = (BPA_SILOS_CALIBRATE) QueryDB.GetSilosCalibrateByNum( silos.get(0).num); |
|
|
|
int valueDeal = AnalogConvert.Scale( val, bean.inputWightMax, bean.inputWightMin, |
|
|
|
bean.outputTimeMax, bean.outputTimeMin); |
|
|
|
bean.outputTimeMax, bean.outputTimeMin)/100; |
|
|
|
time += valueDeal; |
|
|
|
LogUtils.d("measureCookTime name="+name+";重量="+val+";换算时间="+valueDeal); |
|
|
|
} |
|
|
@@ -148,6 +150,8 @@ public class CookTimeUtils { |
|
|
|
} |
|
|
|
time += val; |
|
|
|
} |
|
|
|
}else if(value!=null && value.contains("上升")||value.contains("下降")){ |
|
|
|
time += 10; |
|
|
|
}else if(value!=null && value.contains("(克),")){ |
|
|
|
String[] res = value.split("克"); |
|
|
|
if(res.length==2){ |
|
|
@@ -157,13 +161,13 @@ public class CookTimeUtils { |
|
|
|
if(item.processname.contains("加水")){ |
|
|
|
BPA_SILOS_CALIBRATE bean = (BPA_SILOS_CALIBRATE) QueryDB.GetSilosCalibrateByNum(10); |
|
|
|
int valueDeal = AnalogConvert.Scale( val, bean.inputWightMax, bean.inputWightMin, |
|
|
|
bean.outputTimeMax, bean.outputTimeMin); |
|
|
|
bean.outputTimeMax, bean.outputTimeMin)/100; |
|
|
|
LogUtils.d("measureCookTime 加水重量="+val+";换算加水时间="+valueDeal); |
|
|
|
time += valueDeal; |
|
|
|
}else if(item.processname.contains("勾芡")){ |
|
|
|
BPA_SILOS_CALIBRATE bean = (BPA_SILOS_CALIBRATE) QueryDB.GetSilosCalibrateByNum(11); |
|
|
|
int valueDeal = AnalogConvert.Scale( val, bean.inputWightMax, bean.inputWightMin, |
|
|
|
bean.outputTimeMax, bean.outputTimeMin); |
|
|
|
bean.outputTimeMax, bean.outputTimeMin)/100; |
|
|
|
LogUtils.d("measureCookTime 加水重量="+val+";换算加水时间="+valueDeal); |
|
|
|
time += valueDeal; |
|
|
|
} |
|
|
|