Browse Source

成品检验添加【标准抽样数】字段

RaoMeng 5 năm trước cách đây
mục cha
commit
e6de9a55c2

+ 5 - 3
app/src/main/java/com/uas/pda_smart_sa/fragment/ProductCheckFragment.java

@@ -139,16 +139,18 @@ public class ProductCheckFragment extends BaseFragment implements View.OnClickLi
                         mCaptionValueBeans.add(new CaptionValueBean("数量", FastjsonUtil.getText(dataObject, "QTY")));
                         mCaptionValueBeans.add(new CaptionValueBean("批号", FastjsonUtil.getText(dataObject, "LOTNO")));
                         String stachecknum = FastjsonUtil.getText(dataObject, "STACHECKNUM");
-                        mCaptionValueBeans.add(new CaptionValueBean("标准抽样数", stachecknum));
+                        mCaptionValueBeans.add(new CaptionValueBean("AQL标准抽样数", stachecknum));
                         mCaptionValueBeans.add(new CaptionValueBean("封装形式", FastjsonUtil.getText(dataObject, "BAN_PKG")));
                         mCaptionValueBeans.add(new CaptionValueBean("放大倍数", FastjsonUtil.getText(dataObject, "BAN_TS")));
                         mCaptionValueBeans.add(new CaptionValueBean("开关时间", FastjsonUtil.getText(dataObject, "BAN_HFE")));
                         mCaptionValueBeans.add(new CaptionValueBean("反压参数", FastjsonUtil.getText(dataObject, "BAN_BVDSS")));
                         mCaptionValueBeans.add(new CaptionValueBean("管体批码", FastjsonUtil.getText(dataObject, "BAN_LOTNO")));
+                        String standersampdqty = FastjsonUtil.getText(dataObject, "PR_STANDERSAMPDQTY");
+                        mCaptionValueBeans.add(new CaptionValueBean("标准抽样数", standersampdqty));
 
                         mCommonFormAdapter.notifyDataSetChanged();
 
-                        mRealNumEditText.setText(stachecknum);
+                        mRealNumEditText.setText(standersampdqty);
                         JSONArray checkitems = dataObject.getJSONArray("CHECKITEMS");
                         if (checkitems != null && checkitems.size() > 0) {
                             mSpotCheckLinearLayout.setVisibility(View.VISIBLE);
@@ -156,7 +158,7 @@ public class ProductCheckFragment extends BaseFragment implements View.OnClickLi
                                 String checkname = checkitems.getString(i);
                                 SpotCheckBean spotCheckBean = new SpotCheckBean();
                                 spotCheckBean.setCheckname(checkname);
-                                spotCheckBean.setChecknum(stachecknum);
+                                spotCheckBean.setChecknum("0");
 
                                 mSpotCheckBeans.add(spotCheckBean);
                             }

+ 2 - 2
build.gradle

@@ -44,8 +44,8 @@ ext {
             targetSdkVersion : 28,
             compileSdkVersion: 28,
             buildToolsVersion: "28.0.3",
-            versionCode      : 11,
-            versionName      : "v1.1.9"
+            versionCode      : 12,
+            versionName      : "v1.2.0"
     ]
 
     depsVersion = [