You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
163 lines
5.7 KiB
XML
163 lines
5.7 KiB
XML
|
9 months ago
|
<?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.haiwei_mom.data.device.DeviceInspection" />
|
||
|
|
<variable
|
||
|
|
name="adapter"
|
||
|
|
type="com.example.haiwei_mom.adapter.device.DeviceInspectiontAdapter" />
|
||
|
|
</data>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical"
|
||
|
|
tools:context=".device.DeviceCheckActivity">
|
||
|
|
|
||
|
|
<include
|
||
|
|
layout="@layout/toolbar"
|
||
|
|
app:title='@{title??"待巡检设备列表"}' />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="44dp"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:layout_marginEnd="4dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:background="@drawable/text_bg">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/text_title"
|
||
|
|
android:layout_width="120dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="@color/activity_bg"
|
||
|
|
android:text="选择巡检线路:" />
|
||
|
|
|
||
|
|
<Spinner
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:spinnerMode="dropdown"
|
||
|
|
android:textAlignment="center" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:layout_width="90dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="@drawable/button_bg"
|
||
|
|
android:onClick="deviceCheckSelect"
|
||
|
|
android:text="查询" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="38dp"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:layout_marginEnd="4dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/item_title_blue"
|
||
|
|
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.billsInspectCode}"/>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/item_title_blue"
|
||
|
|
android:layout_width="70dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:text="工单状态:" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/item_info"
|
||
|
|
android:layout_width="90dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
|
||
|
|
android:text="@{vm.inspectStatusName}"/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="38dp"
|
||
|
|
android:layout_marginTop="5dp"
|
||
|
|
android:layout_marginEnd="4dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/item_title_blue"
|
||
|
|
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.createTime}"/>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/item_title_blue"
|
||
|
|
android:layout_width="70dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:text="巡检线路:" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/item_info"
|
||
|
|
android:layout_width="90dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:text="@{vm.routeName}"/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:adapter="@{adapter}"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:padding="5dp"
|
||
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="44dp"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:layout_marginEnd="4dp"
|
||
|
|
android:layout_marginBottom="8dp"
|
||
|
|
android:background="@drawable/text_bg">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
style="@style/text_title"
|
||
|
|
android:layout_width="90dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="@color/activity_bg"
|
||
|
|
android:text="扫描设备:" />
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/inspection_deviceCode"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:layout_weight="1"
|
||
|
|
style="@style/text_san"/>
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:layout_width="97dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="@drawable/button_bg"
|
||
|
|
android:layout_marginLeft="3dp"
|
||
|
|
android:textSize="12dp"
|
||
|
|
android:onClick="deviceCheckStart"
|
||
|
|
android:text="开始巡检" />
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
</layout>
|