|
|
@ -15,6 +15,7 @@ import com.qhclh.ytzh.home.MainActivity; |
|
|
import com.qhclh.ytzh.index.WorkEvent; |
|
|
import com.qhclh.ytzh.index.WorkEvent; |
|
|
import com.qhclh.ytzh.utils.GlideImageLoader; |
|
|
import com.qhclh.ytzh.utils.GlideImageLoader; |
|
|
import com.qhclh.ytzh.utils.RecyclerViewUtil; |
|
|
import com.qhclh.ytzh.utils.RecyclerViewUtil; |
|
|
|
|
|
import com.qhclh.ytzh.work.Hatchery.HatcheryActivity; |
|
|
import com.qhclh.ytzh.work.Poultrydailyreport.PoultryDailyReportActivity; |
|
|
import com.qhclh.ytzh.work.Poultrydailyreport.PoultryDailyReportActivity; |
|
|
import com.qhclh.ytzh.work.breedpoultry.DatanalysisActivity; |
|
|
import com.qhclh.ytzh.work.breedpoultry.DatanalysisActivity; |
|
|
import com.qhclh.ytzh.work.carsmannage.CarsManageActivity; |
|
|
import com.qhclh.ytzh.work.carsmannage.CarsManageActivity; |
|
|
@ -139,6 +140,10 @@ public class WorkFragment extends BaseFragment { |
|
|
///< 过磅单录入 |
|
|
///< 过磅单录入 |
|
|
startActivity(new Intent(getActivity(), WeightListActivity.class)); |
|
|
startActivity(new Intent(getActivity(), WeightListActivity.class)); |
|
|
} |
|
|
} |
|
|
|
|
|
if (x == 11) { |
|
|
|
|
|
///< 孵化场 |
|
|
|
|
|
startActivity(new Intent(getActivity(), HatcheryActivity.class)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -190,6 +195,10 @@ public class WorkFragment extends BaseFragment { |
|
|
///< 过磅单录入 |
|
|
///< 过磅单录入 |
|
|
workBeanList.add(new WorkBean(R.drawable.guobangdan, getString(R.string.guobandanluru), 10)); |
|
|
workBeanList.add(new WorkBean(R.drawable.guobangdan, getString(R.string.guobandanluru), 10)); |
|
|
} |
|
|
} |
|
|
|
|
|
if (MainActivity.workList.contains("011")) { |
|
|
|
|
|
///< 孵化场 |
|
|
|
|
|
workBeanList.add(new WorkBean(R.drawable.guobangdan, "孵化场", 11)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -265,6 +274,10 @@ public class WorkFragment extends BaseFragment { |
|
|
///< 过磅单录入 |
|
|
///< 过磅单录入 |
|
|
workBeanList.add(new WorkBean(R.drawable.guobangdan, getString(R.string.guobandanluru), 10)); |
|
|
workBeanList.add(new WorkBean(R.drawable.guobangdan, getString(R.string.guobandanluru), 10)); |
|
|
} |
|
|
} |
|
|
|
|
|
if (event.getWorkList().contains("011")) { |
|
|
|
|
|
///< 孵化场 |
|
|
|
|
|
workBeanList.add(new WorkBean(R.drawable.guobangdan, "孵化场", 11)); |
|
|
|
|
|
} |
|
|
if (event.getWorkList().contains("007")) { |
|
|
if (event.getWorkList().contains("007")) { |
|
|
work_iv.setVisibility(View.VISIBLE); |
|
|
work_iv.setVisibility(View.VISIBLE); |
|
|
} else { |
|
|
} else { |
|
|
|