Browse Source

上鸡出栏

master
lh 7 years ago
parent
commit
4d0b87edbf
3 changed files with 45 additions and 0 deletions
  1. +2
    -0
      app/src/main/AndroidManifest.xml
  2. +30
    -0
      app/src/main/java/com/qhclh/ytzh/work/Fowl/FowlActivity.java
  3. +13
    -0
      app/src/main/java/com/qhclh/ytzh/work/WorkFragment.java

+ 2
- 0
app/src/main/AndroidManifest.xml View File

@ -182,6 +182,8 @@
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity android:name=".work.Poultrydailyreport.PoultryReportChandanActvity" <activity android:name=".work.Poultrydailyreport.PoultryReportChandanActvity"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity android:name=".work.Fowl.FowlActivity"
android:screenOrientation="portrait" />
<!-- 设置竖屏扫码 --> <!-- 设置竖屏扫码 -->
<activity <activity
android:name=".work.scan.ScanActivity" android:name=".work.scan.ScanActivity"


+ 30
- 0
app/src/main/java/com/qhclh/ytzh/work/Fowl/FowlActivity.java View File

@ -0,0 +1,30 @@
package com.qhclh.ytzh.work.Fowl;
import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseActivity;
/**
* Created by 青花瓷 on 2018/4/12.
*/
public class FowlActivity extends BaseActivity {
@Override
protected int setLayoutId() {
return R.layout.act_poultrydailyreport;
}
@Override
protected void initView() {
}
@Override
protected void initData() {
}
@Override
protected void initOper() {
}
}

+ 13
- 0
app/src/main/java/com/qhclh/ytzh/work/WorkFragment.java View File

@ -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.Fowl.FowlActivity;
import com.qhclh.ytzh.work.Hatchery.HatcheryActivity; 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;
@ -146,6 +147,10 @@ public class WorkFragment extends BaseFragment {
///< 孵化场 ///< 孵化场
startActivity(new Intent(getActivity(), HatcheryActivity.class)); startActivity(new Intent(getActivity(), HatcheryActivity.class));
} }
if (x == 12) {
///< 上鸡出栏
startActivity(new Intent(getActivity(), FowlActivity.class));
}
@ -201,6 +206,10 @@ public class WorkFragment extends BaseFragment {
///< 孵化场 ///< 孵化场
workBeanList.add(new WorkBean(R.drawable.fuhuachang, "孵化场", 11)); workBeanList.add(new WorkBean(R.drawable.fuhuachang, "孵化场", 11));
} }
if (MainActivity.workList.contains("012")) {
///< 上鸡出栏
workBeanList.add(new WorkBean(R.drawable.fuhuachang, "上鸡出栏", 12));
}
@ -280,6 +289,10 @@ public class WorkFragment extends BaseFragment {
///< 孵化场 ///< 孵化场
workBeanList.add(new WorkBean(R.drawable.fuhuachang, "孵化场", 11)); workBeanList.add(new WorkBean(R.drawable.fuhuachang, "孵化场", 11));
} }
if (event.getWorkList().contains("012")) {
///< 上鸡出栏
workBeanList.add(new WorkBean(R.drawable.fuhuachang, "上鸡出栏", 12));
}
if (event.getWorkList().contains("007")) { if (event.getWorkList().contains("007")) {
work_iv.setVisibility(View.VISIBLE); work_iv.setVisibility(View.VISIBLE);
} else { } else {


Loading…
Cancel
Save