|
@@ -0,0 +1,329 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<RelativeLayout 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"
|
|
|
|
+ android:id="@+id/main"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:animateLayoutChanges="true"
|
|
|
|
+ android:background="@mipmap/icon_add_bg"
|
|
|
|
+ tools:context=".ui.add.PlanAddActivity">
|
|
|
|
+
|
|
|
|
+ <RelativeLayout
|
|
|
|
+ android:id="@+id/rel1"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="45dp"
|
|
|
|
+ android:layout_marginTop="10dp">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/image"
|
|
|
|
+ android:layout_width="30dp"
|
|
|
|
+ android:layout_height="30dp"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:layout_marginLeft="20dp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/deptName"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
|
+ android:layout_toRightOf="@+id/image"
|
|
|
|
+ android:text="实验室名称-房间号"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="22sp" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_centerInParent="true"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:layout_marginTop="2dp">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tvTitle"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:text="化学品智能管理"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="24sp"
|
|
|
|
+ android:textStyle="bold" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/nowTime"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginLeft="6dp"
|
|
|
|
+ android:layout_toRightOf="@+id/tvTitle"
|
|
|
|
+ android:textColor="@color/white" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <RelativeLayout
|
|
|
|
+ android:id="@+id/loggedIn"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:paddingRight="18dp">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/imageName"
|
|
|
|
+ android:layout_width="30dp"
|
|
|
|
+ android:layout_height="30dp"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:layout_marginRight="6dp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tvName"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:layout_marginLeft="6dp"
|
|
|
|
+ android:layout_marginRight="6dp"
|
|
|
|
+ android:layout_toRightOf="@+id/imageName"
|
|
|
|
+ android:text="李XX"
|
|
|
|
+ android:textColor="@color/white" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/imgOut"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:layout_marginLeft="6dp"
|
|
|
|
+ android:layout_marginRight="6dp"
|
|
|
|
+ android:layout_toRightOf="@+id/tvName"
|
|
|
|
+ android:background="@mipmap/cshrk_dl_tc" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tvOutLogin"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_centerVertical="true"
|
|
|
|
+ android:layout_marginRight="10dp"
|
|
|
|
+ android:layout_toRightOf="@+id/imgOut"
|
|
|
|
+ android:text="退出"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+ </RelativeLayout>
|
|
|
|
+ </RelativeLayout>
|
|
|
|
+
|
|
|
|
+ <RelativeLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_below="@+id/rel1"
|
|
|
|
+ android:layout_marginLeft="31dp"
|
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
|
+ android:layout_marginRight="31dp"
|
|
|
|
+ android:layout_marginBottom="69dp"
|
|
|
|
+ android:background="@drawable/bg_add_chemicals_one">
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/bottom_bar"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/count_LL"
|
|
|
|
+ android:layout_width="390dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/last_BT"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="上一页" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/countTV"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/next_BT"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="下一页" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:gravity="center">
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/input_BT"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="手动录入化学品" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <androidx.viewpager2.widget.ViewPager2
|
|
|
|
+ android:id="@+id/locker_VP2"
|
|
|
|
+ android:layout_width="350dp"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_above="@id/bottom_bar"
|
|
|
|
+ android:layout_margin="20dp" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_above="@id/bottom_bar"
|
|
|
|
+ android:layout_margin="10dp"
|
|
|
|
+ android:layout_toEndOf="@id/locker_VP2"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <RelativeLayout
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginVertical="10dp">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="待存储列表"
|
|
|
|
+ android:textSize="18sp"
|
|
|
|
+ android:textStyle="bold" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
|
+ android:text="总数:0"
|
|
|
|
+ android:textSize="18sp"
|
|
|
|
+ android:textStyle="bold" />
|
|
|
|
+ </RelativeLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="40dp"
|
|
|
|
+ android:background="#f5f5f5"
|
|
|
|
+ android:gravity="center_vertical">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:text="名称"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:text="CAS"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:text="类别"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:text="级别"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:text="规格"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:text="净含量"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="数量"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:textSize="16sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <ListView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ tools:listitem="@layout/item_in_storage" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/ne"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
|
+ android:src="@mipmap/img_gh_smsb" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
|
+ android:gravity="center_horizontal"
|
|
|
|
+ android:text="扫描化学品标签\n或手动录入化学品"
|
|
|
|
+ android:textSize="18sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </RelativeLayout>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tvReturn"
|
|
|
|
+ android:layout_width="85dp"
|
|
|
|
+ android:layout_height="30dp"
|
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
|
+ android:background="@drawable/bg_retrun"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="返回180s"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="10sp" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/subAdd"
|
|
|
|
+ android:layout_width="85dp"
|
|
|
|
+ android:layout_height="30dp"
|
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
|
+ android:background="@drawable/bg_retrun_two"
|
|
|
|
+ android:text="确认入库"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="10sp" />
|
|
|
|
+</RelativeLayout>
|