|
|
@@ -79,7 +79,7 @@ public class HomeFragment extends Fragment implements View.OnClickListener, MyCl |
|
|
|
/** |
|
|
|
* 当前温度 |
|
|
|
*/ |
|
|
|
TextView wendu1,pf_ms,plc_status; |
|
|
|
TextView wendu1,pf_ms,plc_status,dianzichen; |
|
|
|
/** |
|
|
|
* 界面实例 |
|
|
|
*/ |
|
|
@@ -119,6 +119,7 @@ public class HomeFragment extends Fragment implements View.OnClickListener, MyCl |
|
|
|
nohelp=view.findViewById(R.id.nohelp); |
|
|
|
image_zdkz=view.findViewById(R.id.image_zdkz); |
|
|
|
wendu1 = view.findViewById(R.id.wendu1); |
|
|
|
dianzichen= view.findViewById(R.id.dianzichen); |
|
|
|
pf_ms = view.findViewById(R.id.pf_ms); |
|
|
|
plc_status = view.findViewById(R.id.plc_status); |
|
|
|
if( ConfigName.getInstance().IsUserDownOrder) |
|
|
@@ -374,6 +375,7 @@ public class HomeFragment extends Fragment implements View.OnClickListener, MyCl |
|
|
|
public void run() { |
|
|
|
wendu1.setText(String.valueOf(DeviceData.Get().getBWX_FructoseTemperature()) + "°C"); |
|
|
|
plc_status.setText(DataBus.getInstance().PlcIsConnect?"正常":"异常"); |
|
|
|
dianzichen.setText(String.valueOf(DeviceData.Get().getCallCurrentWeight(1) / 10.0) + " g"); |
|
|
|
// plc_status.setTextColor(DataBus.getInstance().PlcIsConnect?getResources().getColor(R.color.foreground):getResources().getColor(R.color.warm_red)); |
|
|
|
} |
|
|
|
}); |
|
|
|