|
|
@@ -219,7 +219,7 @@ public class zdqx_activity extends AppCompatActivity implements View.OnClickList |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void onClick(View v) { |
|
|
|
double ps = Double.parseDouble(edit_pstime.getText().toString()); |
|
|
|
// double ps = Double.parseDouble(edit_pstime.getText().toString()); |
|
|
|
double js = Double.parseDouble(edit_jstime.getText().toString()); |
|
|
|
double qxj = Double.parseDouble(edit_jqxjtime.getText().toString()); |
|
|
|
switch (v.getId()) { |
|
|
@@ -228,7 +228,7 @@ public class zdqx_activity extends AppCompatActivity implements View.OnClickList |
|
|
|
break; |
|
|
|
case R.id.bt_save://保存 |
|
|
|
|
|
|
|
if (qxj >= js || qxj >= ps) { |
|
|
|
if (qxj >= js /*|| qxj >= ps*/) { |
|
|
|
T.show(zdqx_activity.this, "加清洗剂时间不能大于进水时间!"); |
|
|
|
return; |
|
|
|
} |
|
|
@@ -278,7 +278,7 @@ public class zdqx_activity extends AppCompatActivity implements View.OnClickList |
|
|
|
break; |
|
|
|
case R.id.bt_start://开始清洗 |
|
|
|
|
|
|
|
if (qxj >= js || qxj >= ps) { |
|
|
|
if (qxj >= js /*|| qxj >= ps*/) { |
|
|
|
T.show(zdqx_activity.this, "加清洗剂时间不能大于进水时间!"); |
|
|
|
return; |
|
|
|
} |
|
|
|