<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<data>
|
|
<variable
|
name="itemclidk"
|
type="com.dayu.pipirrapp.activity.OrderDetailActivity" />
|
|
<variable
|
name="data"
|
type="com.dayu.pipirrapp.bean.net.OrderDetailResult" />
|
</data>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
<include
|
android:id="@+id/title"
|
layout="@layout/top_title" />
|
|
|
<ScrollView
|
android:id="@+id/ScrollView"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@+id/title">
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:padding="20dp">
|
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:minHeight="30dp"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:id="@+id/ic_project"
|
android:layout_width="20dp"
|
android:layout_height="20dp"
|
android:layout_marginRight="15dp"
|
android:layout_centerVertical="true"
|
android:src="@mipmap/icon_project" />
|
|
<TextView
|
android:id="@+id/projectName"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="15dp"
|
android:layout_toStartOf="@+id/stateText"
|
android:layout_toEndOf="@+id/ic_project"
|
android:ellipsize="end"
|
android:maxLines="1"
|
android:text="@{data.taskType}"
|
android:textColor="@color/title_color"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
<TextView
|
android:id="@+id/stateText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:background="@drawable/ic_edt_gray_bg"
|
android:gravity="center"
|
android:paddingLeft="10dp"
|
android:paddingTop="5dp"
|
android:paddingRight="10dp"
|
android:paddingBottom="5dp"
|
android:text="@{data.state}"
|
android:textSize="@dimen/manage_item_text_state_size" />
|
|
|
</RelativeLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal">
|
|
|
<TextView
|
android:id="@+id/jinduTag"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="工单ID:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
android:id="@+id/jindu"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@{data.workOrderId}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal">
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="派单人姓名:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{data.dispatcher}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal">
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="派单时间:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@{data.dispatchTime}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center_vertical"
|
android:text="任务类型:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
android:id="@+id/startTime"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@{data.taskType}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal">
|
|
|
<TextView
|
android:id="@+id/daiShenPiTag"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="要求完成时间:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
android:id="@+id/daiShenPi"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@{data.deadLine}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="完成标准:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
android:id="@+id/xiangMuJianCheng"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
|
android:text="@{data.completeCriteria}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="任务内容:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
android:id="@+id/xiangMuType"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
|
android:text="@{data.taskContent}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:id="@+id/orderDealLL"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:visibility="gone">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:gravity="center"
|
android:text="处理结果"
|
android:textColor="@color/base_blue"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="反馈:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@{data.completeCriteria}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginTop="10dp"
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="反馈图片:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/order_detail_text_size" />
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recyclerView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:layout_marginTop="10dp" />
|
|
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
<TextView
|
android:id="@+id/deal_button"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/order_detail_button_height"
|
android:layout_alignParentBottom="true"
|
android:background="@color/title_color"
|
android:gravity="center"
|
android:text="处理工单"
|
android:onClick="@{()->itemclidk.startDealActivity()}"
|
android:textColor="@color/white"
|
android:textSize="@dimen/order_detail_button_size" />
|
|
|
</RelativeLayout>
|
|
</layout>
|