|
@@ -52,7 +52,7 @@ public class dzcjy_activity extends AppCompatActivity implements View.OnClickLis |
|
|
* zerocalibration_button:零点校准 |
|
|
* zerocalibration_button:零点校准 |
|
|
* allcalibration_button:一键去皮 |
|
|
* allcalibration_button:一键去皮 |
|
|
*/ |
|
|
*/ |
|
|
Button mwSave_button, owSave_button, materilwrite_button, calibration_button, zeroweight_button, outWrite_button, zerocalibration_button, allcalibration_button; |
|
|
|
|
|
|
|
|
Button mwSave_button, owSave_button, materilwrite_button, calibration_button, zeroweight_button, outWrite_button, zerocalibration_button, allcalibration_button,closewrite_bottom; |
|
|
|
|
|
|
|
|
EditText materialweight_edit, outweight_edit; |
|
|
EditText materialweight_edit, outweight_edit; |
|
|
|
|
|
|
|
@@ -106,6 +106,8 @@ public class dzcjy_activity extends AppCompatActivity implements View.OnClickLis |
|
|
|
|
|
|
|
|
values_spinner = this.findViewById(R.id.values_spinner); |
|
|
values_spinner = this.findViewById(R.id.values_spinner); |
|
|
allcalibration_button = this.findViewById(R.id.allcalibration_button); |
|
|
allcalibration_button = this.findViewById(R.id.allcalibration_button); |
|
|
|
|
|
|
|
|
|
|
|
closewrite_bottom = this.findViewById(R.id.closewrite_bottom); |
|
|
//edit |
|
|
//edit |
|
|
mode_1_realvalue = this.findViewById(R.id.mode_1_realvalue); |
|
|
mode_1_realvalue = this.findViewById(R.id.mode_1_realvalue); |
|
|
mode_2_realvalue = this.findViewById(R.id.mode_2_realvalue); |
|
|
mode_2_realvalue = this.findViewById(R.id.mode_2_realvalue); |
|
@@ -150,7 +152,7 @@ public class dzcjy_activity extends AppCompatActivity implements View.OnClickLis |
|
|
allcalibration_button.setOnClickListener(this); |
|
|
allcalibration_button.setOnClickListener(this); |
|
|
out_switch.setOnCheckedChangeListener(this); |
|
|
out_switch.setOnCheckedChangeListener(this); |
|
|
marialmode_switch.setOnCheckedChangeListener(this); |
|
|
marialmode_switch.setOnCheckedChangeListener(this); |
|
|
|
|
|
|
|
|
|
|
|
closewrite_bottom.setOnClickListener(this); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -254,7 +256,9 @@ public class dzcjy_activity extends AppCompatActivity implements View.OnClickLis |
|
|
case R.id.allcalibration_button://一件去皮 |
|
|
case R.id.allcalibration_button://一件去皮 |
|
|
DeviceData.Get().setOneClickPeeling(null); |
|
|
DeviceData.Get().setOneClickPeeling(null); |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case R.id.closewrite_bottom://关闭写保护 |
|
|
|
|
|
DeviceData.Get().setCloseWrite(null); |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
}).start(); |
|
|
}).start(); |
|
|
|
|
|
|
|
|