<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<data>
|
|
<variable
|
name="itemclidk"
|
type="com.dayu.pipirrapp.fragment.OrderFragment" />
|
|
<variable
|
name="data"
|
type="com.dayu.pipirrapp.bean.net.OrderListResult.Data" />
|
</data>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="10dp"
|
android:background="@drawable/ic_choose_gray_edge"
|
android:onClick="@{()->itemclidk.startDetail(data.workOrderId)}"
|
android:orientation="vertical"
|
android:padding="10dp">
|
|
<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_centerVertical="true"
|
android:layout_marginRight="10dp"
|
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/manage_item_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">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1">
|
|
<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/manage_item_text_size" />
|
|
<TextView
|
android:id="@+id/jindu"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{data.workOrderId}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/manage_item_text_size" />
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1">
|
|
<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/manage_item_text_size" />
|
|
<TextView
|
android:id="@+id/daiShenPi"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{data.deadLine}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/manage_item_text_size" />
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingRight="5dp">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="完成标准:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/manage_item_text_size" />
|
|
<TextView
|
android:id="@+id/xiangMuJianCheng"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:ellipsize="end"
|
android:maxLines="1"
|
android:text="@{data.completeCriteria}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/manage_item_text_size" />
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingRight="5dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="任务内容:"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/manage_item_text_size" />
|
|
<TextView
|
android:id="@+id/xiangMuType"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:ellipsize="end"
|
android:maxLines="1"
|
android:text="@{data.taskContent}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/manage_item_text_size" />
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center_horizontal"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:layout_weight="2"
|
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/manage_item_text_size" />
|
|
<TextView
|
android:id="@+id/startTime"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{data.dispatchTime}"
|
android:textColor="@color/manage_item_text"
|
android:textSize="@dimen/manage_item_text_size" />
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="10dp"
|
android:layout_marginTop="5dp"
|
android:layout_marginRight="10dp"
|
android:layout_weight="1"
|
android:orientation="horizontal"
|
android:visibility="gone">
|
|
|
<TextView
|
android:id="@+id/lookDetail"
|
android:layout_width="0dp"
|
android:layout_height="@dimen/manage_item_btn_height"
|
android:layout_weight="1"
|
android:background="@drawable/ic_blue_background"
|
android:gravity="center"
|
|
android:text="查看"
|
android:textColor="@color/white"
|
android:textSize="@dimen/manage_item_btn_text_size" />
|
|
|
<TextView
|
android:id="@+id/examineBtn"
|
android:layout_width="0dp"
|
android:layout_height="@dimen/manage_item_btn_height"
|
android:layout_marginLeft="15dp"
|
android:layout_weight="1"
|
android:background="@drawable/ic_blue_background"
|
android:gravity="center"
|
|
android:text="审批"
|
android:textColor="@color/white"
|
android:textSize="@dimen/manage_item_btn_text_size" />
|
|
|
</LinearLayout>
|
</LinearLayout>
|
|
</LinearLayout>
|
</layout>
|