|
@@ -0,0 +1,355 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:tool="http://schemas.android.com/tools"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
+ android:focusable="true"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:background="@drawable/login_button_normal"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.sunwin.visitorapp.view.UINav
|
|
|
+ android:id="@+id/UINav"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:paddingVertical="20dp"
|
|
|
+ android:paddingHorizontal="30dp"
|
|
|
+ >
|
|
|
+ <LinearLayout
|
|
|
+ android:background="@drawable/card_white"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_margin="20dp"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:text="访客信息"
|
|
|
+ android:layout_marginVertical="5dp"
|
|
|
+ style="@style/StyleTextLarge"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ImageVisitorPhoto"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:scaleType="fitCenter"
|
|
|
+ android:layout_width="160dp"
|
|
|
+ android:layout_height="160dp"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/TextVisitorName"
|
|
|
+ tools:text="访客名称"
|
|
|
+ android:layout_marginVertical="5dp"
|
|
|
+ style="@style/StyleTextLarge"/>
|
|
|
+ <TextView
|
|
|
+ android:text="身份证号"
|
|
|
+ android:layout_marginVertical="5dp"
|
|
|
+ style="@style/StyleTextLarge"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/TextVisitorIdCode"
|
|
|
+ tools:text="code"
|
|
|
+ android:layout_marginVertical="5dp"
|
|
|
+ style="@style/StyleTextContent"/>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ViewForm"
|
|
|
+ android:background="@drawable/card_white"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_margin="20dp"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextLarge"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:text="完善访客信息"
|
|
|
+ />
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ android:paddingHorizontal="15dp"
|
|
|
+ android:text="访客信息"
|
|
|
+ />
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ViewFormVisitor"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingVertical="10dp"
|
|
|
+ android:paddingHorizontal="30dp">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="手机号码"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditPhone"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="来访事由"
|
|
|
+ />
|
|
|
+ <Spinner
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+
|
|
|
+ android:id="@+id/SpinnerReason"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="公司信息"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditCompany"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="车牌信息"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditCarPlate"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="来访时间"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditVisitTimeBegin"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="至"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditVisitTimeEnd"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="通行次数"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditVisitNumber"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="随行人数"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditVisitPeopleCount"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="IC卡"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditICCode"
|
|
|
+ android:layout_weight="5"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ android:paddingHorizontal="15dp"
|
|
|
+ android:text="被访人员信息"
|
|
|
+ />
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ViewFormVisitorBy"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingVertical="10dp"
|
|
|
+ android:paddingHorizontal="30dp">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="被访员工"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditByVisitPeople"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="被访部门"
|
|
|
+ />
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/EditByVisitDepartment"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/TextButtonSure"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ style="@style/TextButtonPrimary"
|
|
|
+
|
|
|
+ android:layout_marginHorizontal="100dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:text="提交"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+</LinearLayout>
|