Browse Source

最新版本

songw 1 year ago
parent
commit
b6297395f6

+ 3 - 0
app/src/main/java/com/uas/pda_smart_com/adapter/StorageRechargeInspectionAdapter.java

@@ -68,6 +68,7 @@ public class StorageRechargeInspectionAdapter extends BaseAdapter {
         holder.listStorageInspectionVendnameTv.setText(object.getVendname());
         holder.listStorageInspectionRecorderTv.setText(object.getRecorder());
         holder.listStorageInspectionStateTv.setText(object.getStates());
+        holder.tv_receiving_aterials_time.setText(object.getAN_INDATE());
     }
 
     protected class ViewHolder {
@@ -76,6 +77,7 @@ public class StorageRechargeInspectionAdapter extends BaseAdapter {
         private TextView listStorageInspectionRecorderTv;
         private TextView listStorageInspectionStateTv;
         private TextView codeCaptionTv;
+        private TextView tv_receiving_aterials_time;
 
         public ViewHolder(View view) {
             listStorageInspectionCodeTv = (TextView) view.findViewById(R.id.list_storage_recharge_inspection_code_tv);
@@ -83,6 +85,7 @@ public class StorageRechargeInspectionAdapter extends BaseAdapter {
             listStorageInspectionRecorderTv = (TextView) view.findViewById(R.id.list_storage_recharge_inspection_recorder_tv);
             listStorageInspectionStateTv = (TextView) view.findViewById(R.id.list_storage_recharge_inspection_state_tv);
             codeCaptionTv = (TextView) view.findViewById(R.id.list_storage_recharge_inspection_code_caption);
+            tv_receiving_aterials_time = (TextView) view.findViewById(R.id.tv_receiving_aterials_time);
         }
     }
 }

+ 10 - 0
app/src/main/java/com/uas/pda_smart_com/bean/StorageRechargeInspectionBean.java

@@ -19,6 +19,8 @@ public class StorageRechargeInspectionBean implements Serializable {
     private String mDetailJson;
     private boolean isSlipable;
 
+    private String AN_INDATE;      //收料日期
+
     public long getId() {
         return mId;
     }
@@ -98,4 +100,12 @@ public class StorageRechargeInspectionBean implements Serializable {
     public void setSlipable(boolean slipable) {
         isSlipable = slipable;
     }
+
+    public String getAN_INDATE() {
+        return AN_INDATE;
+    }
+
+    public void setAN_INDATE(String AN_INDATE) {
+        this.AN_INDATE = AN_INDATE;
+    }
 }

+ 1 - 0
app/src/main/java/com/uas/pda_smart_com/fragment/StorageRechargeListFragment.java

@@ -212,6 +212,7 @@ public class StorageRechargeListFragment extends BaseFragment implements HttpCal
                                 storageRechargeInspectionBean.setVendname(FastjsonUtil.getText(mainObject, "AN_VENDNAME"));
                                 storageRechargeInspectionBean.setDetailJson(FastjsonUtil.getText(dataObject, "detail"));
                                 storageRechargeInspectionBean.setSlipable(FastjsonUtil.getBoolean(dataObject, "ifShowButton"));
+                                storageRechargeInspectionBean.setAN_INDATE(FastjsonUtil.getText(mainObject, "AN_INDATE"));
 
                                 mStorageRechargeInspectionBeans.add(storageRechargeInspectionBean);
                             }

+ 25 - 0
app/src/main/res/layout/list_storage_recharge_inspection.xml

@@ -32,6 +32,31 @@
             tools:text="2018-01-21" />
     </LinearLayout>
 
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:background="@color/white"
+        android:orientation="horizontal"
+        android:padding="4dp">
+
+        <TextView
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="8dp"
+            android:layout_weight="1"
+            android:text="收料日期:"
+            android:textSize="14sp" />
+
+        <TextView
+            android:id="@+id/tv_receiving_aterials_time"
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_weight="3"
+            android:textColor="@color/black"
+            android:textSize="14sp"
+            tools:text="" />
+    </LinearLayout>
+
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"