完成 不合格
parent
3c0dcc676c
commit
4406b63b77
@ -0,0 +1,16 @@
|
||||
package com.example.jingyuan_mes.check;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.example.jingyuan_mes.R;
|
||||
|
||||
public class CheckDisposalActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_check_disposal);
|
||||
}
|
||||
}
|
@ -0,0 +1,228 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="title"
|
||||
type="String" />
|
||||
|
||||
<variable
|
||||
name="vm"
|
||||
type="com.example.jingyuan_mes.entity.check.CheckResult" />
|
||||
|
||||
<variable
|
||||
name="adapter"
|
||||
type="com.example.jingyuan_mes.adapter.check.CheckWorkAdapter" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
tools:context=".check.CheckDisposalActivity">
|
||||
|
||||
<include
|
||||
layout="@layout/toolbar"
|
||||
app:title='@{title??"不合格处置"}' />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="40dp">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="检验方式:" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text='@{vm.checkMode==null?"":(vm.checkMode+"("+vm.checkSample+"%)")}' />
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="检验类型:" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@{vm.checkRuleType}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="40dp">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="物料编号:" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@{vm.materialCode}" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="物料名称:" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@{vm.materialName}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="40dp">
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="批次数量:" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_info"
|
||||
android:layout_width="95dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@{vm.checkMode}" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="质检通过数量:" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@{vm.checkStatus}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="40dp">
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="质检不通过数量:" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_info"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@{vm.checkStatus}" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="9dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@color/item_bg" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="109dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:text="不合格情况描述:"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginLeft="40dp"
|
||||
android:layout_marginRight="40dp"
|
||||
android:background="@drawable/san_text_bg"
|
||||
android:gravity="left"
|
||||
android:padding="5dp"
|
||||
android:text="12312"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@color/item_bg" />
|
||||
|
||||
<TextView
|
||||
style="@style/item_title"
|
||||
android:layout_width="109dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:text="不合格情况描述:"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:layout_marginLeft="40dp"
|
||||
android:layout_marginRight="40dp"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@color/item_bg" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_margin="20dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="checktype">
|
||||
<item>选择检验类型</item>
|
||||
<item>来料检验</item>
|
||||
<item>半成品检验</item>
|
||||
<item>成品检验</item>
|
||||
<item>工序检验</item>
|
||||
</string-array>
|
||||
</resources>
|
Loading…
Reference in New Issue