Browse Source

肉禽,生产日报表,生产日报

master
lh 8 years ago
parent
commit
02976d894b
11 changed files with 230 additions and 1 deletions
  1. +6
    -0
      app/src/main/AndroidManifest.xml
  2. +12
    -0
      app/src/main/java/com/qhclh/ytzh/work/WorkFragment.java
  3. +42
    -0
      app/src/main/java/com/qhclh/ytzh/work/productiondaily/ProductiondailyActivity.java
  4. +42
    -0
      app/src/main/java/com/qhclh/ytzh/work/productiondailyw/ProductiondailywActivity.java
  5. +1
    -1
      app/src/main/java/com/qhclh/ytzh/work/tablepoultry/TablepoultryActivity.java
  6. BIN
      app/src/main/res/drawable-xhdpi/productdaily.png
  7. BIN
      app/src/main/res/drawable-xhdpi/productdaily_w.png
  8. +12
    -0
      app/src/main/res/layout/act_productiondaily.xml
  9. +12
    -0
      app/src/main/res/layout/act_productiondailyw.xml
  10. +101
    -0
      app/src/main/res/layout/fragment_work.xml
  11. +2
    -0
      app/src/main/res/values/strings.xml

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

@ -76,6 +76,12 @@
<activity <activity
android:name=".work.tablepoultry.TablepoultryActivity" android:name=".work.tablepoultry.TablepoultryActivity"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity
android:name=".work.productiondaily.ProductiondailyActivity"
android:screenOrientation="portrait" />
<activity
android:name=".work.productiondailyw.ProductiondailywActivity"
android:screenOrientation="portrait" />
<!-- 设置竖屏扫码 --> <!-- 设置竖屏扫码 -->
<activity <activity


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

@ -9,6 +9,8 @@ import com.qhclh.ytzh.base.BaseFragment;
import com.qhclh.ytzh.utils.GlideImageLoader; import com.qhclh.ytzh.utils.GlideImageLoader;
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;
import com.qhclh.ytzh.work.productiondaily.ProductiondailyActivity;
import com.qhclh.ytzh.work.productiondailyw.ProductiondailywActivity;
import com.qhclh.ytzh.work.scan.ScanResultActivity; import com.qhclh.ytzh.work.scan.ScanResultActivity;
import com.qhclh.ytzh.work.tablepoultry.TablepoultryActivity; import com.qhclh.ytzh.work.tablepoultry.TablepoultryActivity;
import com.youth.banner.Banner; import com.youth.banner.Banner;
@ -36,6 +38,10 @@ public class WorkFragment extends BaseFragment implements View.OnClickListener {
LinearLayout work_scan; LinearLayout work_scan;
@BindView(R.id.work_tablepoultry) @BindView(R.id.work_tablepoultry)
LinearLayout work_tablepoultry; LinearLayout work_tablepoultry;
@BindView(R.id.ll_productdaily)
LinearLayout ll_productdaily;
@BindView(R.id.ll_productdaily_w)
LinearLayout ll_productdaily_w;
@BindView(R.id.work_banner) @BindView(R.id.work_banner)
Banner banner; Banner banner;
@Override @Override
@ -76,6 +82,8 @@ public class WorkFragment extends BaseFragment implements View.OnClickListener {
work_carsmanager.setOnClickListener(this); work_carsmanager.setOnClickListener(this);
work_scan.setOnClickListener(this); work_scan.setOnClickListener(this);
work_tablepoultry.setOnClickListener(this); work_tablepoultry.setOnClickListener(this);
ll_productdaily.setOnClickListener(this);
ll_productdaily_w.setOnClickListener(this);
} }
@Override @Override
@ -105,6 +113,10 @@ public class WorkFragment extends BaseFragment implements View.OnClickListener {
startActivity(new Intent(getActivity(), ScanResultActivity.class)); startActivity(new Intent(getActivity(), ScanResultActivity.class));
}else if (view.equals(work_tablepoultry)){ }else if (view.equals(work_tablepoultry)){
startActivity(new Intent(getActivity(), TablepoultryActivity.class)); startActivity(new Intent(getActivity(), TablepoultryActivity.class));
}else if (view.equals(ll_productdaily)){
startActivity(new Intent(getActivity(), ProductiondailyActivity.class));
}else if (view.equals(ll_productdaily_w)){
startActivity(new Intent(getActivity(), ProductiondailywActivity.class));
} }
} }


+ 42
- 0
app/src/main/java/com/qhclh/ytzh/work/productiondaily/ProductiondailyActivity.java View File

@ -0,0 +1,42 @@
package com.qhclh.ytzh.work.productiondaily;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseActivity;
import butterknife.BindView;
/**
* Created by 青花瓷 on 2017/12/4.
*/
///< 生产日报
public class ProductiondailyActivity extends BaseActivity {
@BindView(R.id.toolbar)
Toolbar mToolbar;
@Override
protected int setLayoutId() {
return R.layout.act_productiondaily;
}
@Override
protected void initView() {
initToolbar(mToolbar, getString(R.string.Productiondaily), new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
}
@Override
protected void initData() {
}
@Override
protected void initOper() {
}
}

+ 42
- 0
app/src/main/java/com/qhclh/ytzh/work/productiondailyw/ProductiondailywActivity.java View File

@ -0,0 +1,42 @@
package com.qhclh.ytzh.work.productiondailyw;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseActivity;
import butterknife.BindView;
/**
* Created by 青花瓷 on 2017/12/4.
*/
///< 写生产日报
public class ProductiondailywActivity extends BaseActivity {
@BindView(R.id.toolbar)
Toolbar mToolbar;
@Override
protected int setLayoutId() {
return R.layout.act_productiondailyw;
}
@Override
protected void initView() {
initToolbar(mToolbar, getString(R.string.Productiondaily_w), new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
}
@Override
protected void initData() {
}
@Override
protected void initOper() {
}
}

+ 1
- 1
app/src/main/java/com/qhclh/ytzh/work/tablepoultry/TablepoultryActivity.java View File

@ -41,7 +41,7 @@ public class TablepoultryActivity extends BaseActivity {
@Override @Override
protected void initView() { protected void initView() {
x=1;
// x=1;
initToolbar(mToolbar, "肉禽", new View.OnClickListener() { initToolbar(mToolbar, "肉禽", new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {


BIN
app/src/main/res/drawable-xhdpi/productdaily.png View File

Before After
Width: 120  |  Height: 120  |  Size: 2.9 KiB

BIN
app/src/main/res/drawable-xhdpi/productdaily_w.png View File

Before After
Width: 120  |  Height: 120  |  Size: 2.1 KiB

+ 12
- 0
app/src/main/res/layout/act_productiondaily.xml View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/include_tool_bar"/>
<TextView
android:layout_width="wrap_content"
android:text="@string/Productiondaily"
android:layout_height="wrap_content" />
</LinearLayout>

+ 12
- 0
app/src/main/res/layout/act_productiondailyw.xml View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/include_tool_bar"/>
<TextView
android:layout_width="wrap_content"
android:text="@string/Productiondaily_w"
android:layout_height="wrap_content" />
</LinearLayout>

+ 101
- 0
app/src/main/res/layout/fragment_work.xml View File

@ -122,4 +122,105 @@
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal"
android:paddingBottom="@dimen/dp_15"
android:paddingLeft="@dimen/dp_10"
android:paddingRight="@dimen/dp_10"
android:paddingTop="@dimen/dp_15">
<!--生产日报列表 -->
<LinearLayout
android:id="@+id/ll_productdaily"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/productdaily" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="@string/Productiondaily"
android:textSize="@dimen/text_size_14" />
</LinearLayout>
<!-- 写生产日报-->
<LinearLayout
android:id="@+id/ll_productdaily_w"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/productdaily_w" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="@string/Productiondaily_w"
android:textSize="@dimen/text_size_14" />
</LinearLayout>
<!-- -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:visibility="invisible"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/scan" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="@string/work_scan"
android:textSize="@dimen/text_size_14" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:visibility="invisible"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/rouqin_3x" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5"
android:text="@string/work_tablepoultry"
android:textSize="@dimen/text_size_14" />
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>

+ 2
- 0
app/src/main/res/values/strings.xml View File

@ -58,5 +58,7 @@
<string name="shouguangxi">寿光西</string> <string name="shouguangxi">寿光西</string>
<string name="anqiu">安丘</string> <string name="anqiu">安丘</string>
<string name="qiuping">邱平</string> <string name="qiuping">邱平</string>
<string name="Productiondaily">生产日报表</string>
<string name="Productiondaily_w">生产日报</string>
</resources> </resources>

Loading…
Cancel
Save