|
|
@ -5,37 +5,44 @@
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
|
|
|
|
|
|
<data>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
<variable
|
|
|
|
name="vm"
|
|
|
|
name="vm"
|
|
|
|
type="com.example.beijing_daxing.vm.InStoreVM" />
|
|
|
|
type="com.example.beijing_daxing.vm.InStoreVM" />
|
|
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
<variable
|
|
|
|
name="adapter"
|
|
|
|
name="adapter"
|
|
|
|
type="com.example.beijing_daxing.adapter.InAdapter" />
|
|
|
|
type="com.example.beijing_daxing.adapter.InAdapter" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
|
|
|
name="checkState"
|
|
|
|
|
|
|
|
type="androidx.databinding.ObservableBoolean" />
|
|
|
|
|
|
|
|
<import type="android.view.View"/>
|
|
|
|
</data>
|
|
|
|
</data>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
|
|
android:background="@color/bg1"
|
|
|
|
android:background="@color/bg1"
|
|
|
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:context=".InActivity">
|
|
|
|
tools:context=".InActivity">
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
style="@style/title_text"
|
|
|
|
style="@style/title_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:text="轮挡入库"/>
|
|
|
|
android:text="轮挡入库" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/recyclerView2"
|
|
|
|
android:id="@+id/recyclerView2"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:background="@color/white"
|
|
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
|
|
android:adapter="@{adapter}"
|
|
|
|
|
|
|
|
android:background="@color/white"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
android:adapter="@{adapter}" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
@ -71,7 +78,7 @@
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:text="@={vm.binchCode}"/>
|
|
|
|
android:text="@={vm.binchCode}" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
@ -89,7 +96,7 @@
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:entries="@{vm.manus}"
|
|
|
|
android:entries="@{vm.manus}"
|
|
|
|
android:onItemSelected="@{vm.selectManus}"/>
|
|
|
|
android:onItemSelected="@{vm.selectManus}" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
@ -106,19 +113,36 @@
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:entries="@{vm.locations}"
|
|
|
|
android:entries="@{vm.locations}"
|
|
|
|
android:onItemSelected="@{vm.selectLocation}"/>
|
|
|
|
android:onItemSelected="@{vm.selectLocation}" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<Button
|
|
|
|
|
|
|
|
style="@style/button_style"
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="55dp"
|
|
|
|
android:layout_height="55dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
android:text="提交"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
android:onClick="in_submit"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout4"
|
|
|
|
<Button
|
|
|
|
tools:layout_editor_absoluteX="16dp" />
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
|
|
android:backgroundTint="@{checkState?@color/yellow:@color/black}"
|
|
|
|
|
|
|
|
android:onClick="instore_check"
|
|
|
|
|
|
|
|
android:text='@{checkState?"停止读取":"开始盘点"}'
|
|
|
|
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
style="@style/button_style"
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
|
|
android:onClick="in_submit"
|
|
|
|
|
|
|
|
android:text="提交"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout4"
|
|
|
|
|
|
|
|
tools:layout_editor_absoluteX="16dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</layout>
|
|
|
|
</layout>
|