|
|
|
|
@ -4,22 +4,33 @@
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="title"
|
|
|
|
|
type="String" />
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="vm"
|
|
|
|
|
type="com.example.aucma_mes.vm.CheckViewModel" />
|
|
|
|
|
<import type="android.view.View" />
|
|
|
|
|
|
|
|
|
|
<import type="android.view.View" />
|
|
|
|
|
<variable
|
|
|
|
|
name="sum"
|
|
|
|
|
type="com.example.aucma_mes.entity.CheckSum" />
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/grey"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
tools:context=".CheckActivity">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
@ -29,6 +40,7 @@
|
|
|
|
|
android:text="@{title}"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="43dp"
|
|
|
|
|
@ -47,6 +59,7 @@
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="@={vm.code}" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="43dp"
|
|
|
|
|
@ -63,10 +76,10 @@
|
|
|
|
|
android:text="产品型号:" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1_1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
style="@style/text_style1_1"
|
|
|
|
|
android:text="@{vm.name}"/>
|
|
|
|
|
android:text="@{vm.name}" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
@ -88,23 +101,68 @@
|
|
|
|
|
style="@style/text_style1_1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:drawableRight="@mipmap/icon_select"
|
|
|
|
|
android:onClick="checkSelect"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
|
android:text="@{vm.defect}" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:layout_width="50dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@drawable/button_w"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:onClick="selectRepair"
|
|
|
|
|
android:text="显示\n返修"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:onClick="selectRepair"
|
|
|
|
|
android:visibility="@{vm.buttonVisbleState? View.VISIBLE : View.GONE}"
|
|
|
|
|
android:text="显示\n返修" />
|
|
|
|
|
android:visibility="@{vm.buttonVisbleState? View.VISIBLE : View.GONE}" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="当班检测数据"
|
|
|
|
|
android:textColor="@color/blue" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="43dp"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
|
android:background="@color/white"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1"
|
|
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/grey"
|
|
|
|
|
android:text="已检测数量:" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1_1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="@{String.valueOf(sum.QUANTITY_SUM)}" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1"
|
|
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/grey"
|
|
|
|
|
android:text="返修数量:" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/text_style1_1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="@{String.valueOf(sum.REPAIR_SUM)}" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
@ -123,10 +181,6 @@
|
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
style="@style/button_true_style"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
@ -135,15 +189,9 @@
|
|
|
|
|
android:onClick="checkSubmint"
|
|
|
|
|
android:text="提交" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
style="@style/button_true_style"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
|
android:onClick="checkSubmint1"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:text="测试" />
|
|
|
|
|
<!-- -->
|
|
|
|
|
|
|
|
|
|
<!-- 查询数据 -->
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
</layout>
|