|
|
|
@ -333,7 +333,7 @@ public class HomeFragment extends BaseFragment {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
case 4:
|
|
|
|
//巡检
|
|
|
|
//巡检
|
|
|
|
if((firstDeparment!=null&&firstDeparment.equals("运行部"))||(firstDeparment!=null&&firstDeparment.equals("承包商"))||(username!=null&&username.equals("371522"))||(username!=null&&username.equals("ceshi1"))||(username!=null&&username.equals("RH00001"))){
|
|
|
|
if((firstDeparment!=null&&firstDeparment.equals("运行部"))||(firstDeparment!=null&&firstDeparment.equals("承包商"))||(username!=null&&username.equals("371522"))||(username!=null&&username.equals("ceshi1"))||(username!=null&&username.equals("RH00001"))||(username!=null&&username.equals("RH00020"))){
|
|
|
|
Intent intentXj= new Intent(mActivity, XscbglActivity.class);
|
|
|
|
Intent intentXj= new Intent(mActivity, XscbglActivity.class);
|
|
|
|
intentXj.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
|
|
|
intentXj.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
|
|
|
startActivity(intentXj);
|
|
|
|
startActivity(intentXj);
|
|
|
|
@ -343,7 +343,7 @@ public class HomeFragment extends BaseFragment {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
case 5:
|
|
|
|
//点检
|
|
|
|
//点检
|
|
|
|
if((firstDeparment!=null&&firstDeparment.equals("设备部"))||(firstDeparment!=null&&firstDeparment.equals("粤电服大亚湾项目部"))||(firstDeparment!=null&&firstDeparment.equals("承包商"))||(username!=null&&username.equals("371522"))||(username!=null&&username.equals("ceshi1"))||(username!=null&&username.equals("RH00001"))){
|
|
|
|
if((firstDeparment!=null&&firstDeparment.equals("设备部"))||(firstDeparment!=null&&firstDeparment.equals("粤电服大亚湾项目部"))||(firstDeparment!=null&&firstDeparment.equals("承包商"))||(username!=null&&username.equals("371522"))||(username!=null&&username.equals("ceshi1"))||(username!=null&&username.equals("RH00001"))||(username!=null&&username.equals("RH00020"))){
|
|
|
|
Intent intentDj= new Intent(mActivity, SbxdjglActivity.class);
|
|
|
|
Intent intentDj= new Intent(mActivity, SbxdjglActivity.class);
|
|
|
|
intentDj.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
|
|
|
intentDj.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
|
|
|
intentDj.putExtra("edit",false);
|
|
|
|
intentDj.putExtra("edit",false);
|
|
|
|
|