|
|
@@ -74,7 +74,7 @@ public class HomeFragment extends Fragment implements View.OnClickListener, MyCl |
|
|
|
/** |
|
|
|
* 当前温度 |
|
|
|
*/ |
|
|
|
TextView wendu1, wendu2,pf_ms; |
|
|
|
TextView wendu1, wendu2,pf_ms,plc_status; |
|
|
|
/** |
|
|
|
* 界面实例 |
|
|
|
*/ |
|
|
@@ -106,6 +106,7 @@ public class HomeFragment extends Fragment implements View.OnClickListener, MyCl |
|
|
|
wendu1 = view.findViewById(R.id.wendu1); |
|
|
|
wendu2 = view.findViewById(R.id.wendu2); |
|
|
|
pf_ms = view.findViewById(R.id.pf_ms); |
|
|
|
plc_status = view.findViewById(R.id.plc_status); |
|
|
|
if( ConfigName.getInstance().IsUserDownOrder) |
|
|
|
{ |
|
|
|
makesp.setVisibility(View.VISIBLE); |
|
|
@@ -309,6 +310,9 @@ public class HomeFragment extends Fragment implements View.OnClickListener, MyCl |
|
|
|
public void run() { |
|
|
|
wendu1.setText(String.valueOf(DeviceData.Get().getBWX_FructoseTemperature()) + "°C"); |
|
|
|
wendu2.setText(String.valueOf(DeviceData.Get().getJRX_FructoseTemperature()) + "°C"); |
|
|
|
plc_status.setText(DataBus.getInstance().PlcIsConnect?"正常":"异常"); |
|
|
|
plc_status.setTextColor(DataBus.getInstance().PlcIsConnect?getResources().getColor(R.color.foreground):getResources().getColor(R.color.warm_red)); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
Thread.sleep(100); |
|
|
|