|
@@ -1,355 +1,422 @@
|
|
|
<?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:focusable="true"
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<com.sunwin.visitorapp.view.UINav
|
|
|
android:id="@+id/UINav"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ 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:orientation="horizontal"
|
|
|
android:paddingHorizontal="30dp"
|
|
|
- >
|
|
|
+ android:paddingVertical="20dp">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:background="@drawable/card_white"
|
|
|
- android:layout_weight="1"
|
|
|
- android:layout_margin="20dp"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:layout_margin="20dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/card_white"
|
|
|
android:gravity="center"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView
|
|
|
- android:text="访客信息"
|
|
|
+ style="@style/StyleTextLarge"
|
|
|
android:layout_marginVertical="5dp"
|
|
|
- style="@style/StyleTextLarge"/>
|
|
|
+ android:text="访客信息" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/ImageVisitorPhoto"
|
|
|
+ android:layout_width="160dp"
|
|
|
+ android:layout_height="160dp"
|
|
|
android:layout_margin="10dp"
|
|
|
android:background="@color/white"
|
|
|
- android:scaleType="fitCenter"
|
|
|
- android:layout_width="160dp"
|
|
|
- android:layout_height="160dp"/>
|
|
|
+ android:scaleType="fitCenter" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/TextVisitorName"
|
|
|
- tools:text="访客名称"
|
|
|
+ style="@style/StyleTextLarge"
|
|
|
android:layout_marginVertical="5dp"
|
|
|
- style="@style/StyleTextLarge"/>
|
|
|
+ tools:text="访客名称" />
|
|
|
+
|
|
|
<TextView
|
|
|
- android:text="身份证号"
|
|
|
+ style="@style/StyleTextLarge"
|
|
|
android:layout_marginVertical="5dp"
|
|
|
- style="@style/StyleTextLarge"/>
|
|
|
+ android:text="身份证号" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/TextVisitorIdCode"
|
|
|
- tools:text="code"
|
|
|
+ style="@style/StyleTextContent"
|
|
|
android:layout_marginVertical="5dp"
|
|
|
- style="@style/StyleTextContent"/>
|
|
|
+ tools:text="code" />
|
|
|
</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:layout_margin="20dp"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:background="@drawable/card_white"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/StyleTextLarge"
|
|
|
- android:padding="10dp"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:textAlignment="center"
|
|
|
+ android:padding="10dp"
|
|
|
android:text="完善访客信息"
|
|
|
- />
|
|
|
+ android:textAlignment="center" />
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
- android:paddingVertical="5dp"
|
|
|
android:paddingHorizontal="15dp"
|
|
|
- android:text="访客信息"
|
|
|
- />
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ 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">
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="30dp"
|
|
|
+ android:paddingVertical="10dp">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="手机号码"
|
|
|
- />
|
|
|
+ android:text="手机号码" />
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/EditPhone"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="来访事由"
|
|
|
- />
|
|
|
- <EditText
|
|
|
- style="@style/StyleInputContent"
|
|
|
+ android:text="来访事由" />
|
|
|
|
|
|
+ <EditText
|
|
|
android:id="@+id/comeReason"
|
|
|
- android:layout_weight="2"
|
|
|
+
|
|
|
+ style="@style/StyleInputContent"
|
|
|
android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"/>
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="公司信息"
|
|
|
- />
|
|
|
+ android:text="公司信息" />
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/EditCompany"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="车牌信息"
|
|
|
- />
|
|
|
+ android:text="车牌信息" />
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/EditCarPlate"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="来访时间"
|
|
|
- />
|
|
|
- <EditText
|
|
|
+ android:text="来访时间" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
android:id="@+id/EditVisitTimeBegin"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
- android:textAlignment="center"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
android:text="至"
|
|
|
- />
|
|
|
- <EditText
|
|
|
+ android:textAlignment="center" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
android:id="@+id/EditVisitTimeEnd"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="通行次数"
|
|
|
- />
|
|
|
+ android:text="通行次数" />
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/EditVisitNumber"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="随行人数"
|
|
|
- />
|
|
|
+ android:text="随行人数" />
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/EditVisitPeopleCount"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="IC卡"
|
|
|
- />
|
|
|
+ android:text="IC卡" />
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/EditICCode"
|
|
|
- android:layout_weight="5"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="5" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
- android:paddingVertical="5dp"
|
|
|
android:paddingHorizontal="15dp"
|
|
|
- android:text="被访人员信息"
|
|
|
- />
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ 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">
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="30dp"
|
|
|
+ android:paddingVertical="10dp">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="被访员工"
|
|
|
- />
|
|
|
+ android:text="被访员工" />
|
|
|
+
|
|
|
<EditText
|
|
|
android:id="@+id/EditByVisitPeople"
|
|
|
- android:layout_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
- android:orientation="horizontal"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="被访部门"
|
|
|
- />
|
|
|
- <EditText
|
|
|
+ android:text="被访部门" />
|
|
|
+
|
|
|
+ <Spinner
|
|
|
android:id="@+id/EditByVisitDepartment"
|
|
|
- android:layout_weight="2"
|
|
|
+ style="@style/StyleInputContent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_weight="2" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/StyleTextContent"
|
|
|
android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="授权设备" />
|
|
|
+
|
|
|
+ <Spinner
|
|
|
+ android:id="@+id/sp_net"
|
|
|
style="@style/StyleInputContent"
|
|
|
- android:layout_height="wrap_content"/>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_weight="2" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/TextButtonSure"
|
|
|
- android:layout_gravity="center_horizontal"
|
|
|
style="@style/ButtonPrimary"
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
android:layout_marginHorizontal="100dp"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:textAlignment="center"
|
|
|
android:layout_marginTop="20dp"
|
|
|
android:text="提交"
|
|
|
- />
|
|
|
+ android:textAlignment="center" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|