|
|
@@ -579,12 +579,17 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
mPrintDpi = SharedPreUtil.getInt(mActivity, "printDpi", 203);
|
|
|
|
|
|
mCheckBox = root.findViewById(R.id.stock_data_summary_cb);
|
|
|
+
|
|
|
mSmartTable = root.findViewById(R.id.st_data);
|
|
|
CommonUtil.getDefaultTable(mActivity, mSmartTable);
|
|
|
+ initTableData();
|
|
|
+ }
|
|
|
+
|
|
|
+ private void initTableData() {
|
|
|
PD_PRODCODE = new Column<String>("物料编号", "PD_PRODCODE");
|
|
|
PR_DETAIL = new Column<String>("物料名称", "PR_DETAIL");
|
|
|
PD_PDAQTY = new Column<String>("已采集数量", "PD_PDAQTY");
|
|
|
- PD_WHCODE = new Column<String>("仓库", "PD_WHCODE");
|
|
|
+ PD_WHCODE = new Column<String>("仓库名称", "PD_WHCODE");
|
|
|
V_PW_WHCODE = new Column<String>("仓位", "V_PW_WHCODE");
|
|
|
PR_ORISPECCODE = new Column<String>("型号", "PR_ORISPECCODE");
|
|
|
PD_OUTQTY = new Column<Double>("出库数量", "PD_OUTQTY", new IFormat<Double>() {
|
|
|
@@ -611,7 +616,6 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
return CommonUtil.doubleFormat(aDouble);
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private void setTableData(List<OutboundTableData> filterTableData) {
|
|
|
@@ -619,7 +623,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
// 仓库pd_whcode,仓位V_PW_WHCODE,实物库存V_PW_ONHAND,
|
|
|
// 条码库存V_BA_REMAIN,型号PR_ORISPECCODE
|
|
|
mTableData = new TableData<OutboundTableData>("出库单列表", filterTableData,
|
|
|
- PD_PRODCODE, PR_DETAIL, PD_OUTQTY, PD_PDAQTY,To_Be_Collected, PD_WHCODE,
|
|
|
+ PD_PRODCODE, PR_DETAIL, PD_PDAQTY, PD_OUTQTY,To_Be_Collected, PD_WHCODE,
|
|
|
V_PW_WHCODE, V_PW_ONHAND, V_BA_REMAIN, PR_ORISPECCODE);
|
|
|
mSmartTable.setTableData(mTableData);
|
|
|
mSmartTable.postDelayed(new Runnable() {
|
|
|
@@ -694,8 +698,6 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
btn_oneprint.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
-
|
|
|
-
|
|
|
if (listArray != null && listArray.size() > 0) {
|
|
|
printEvent(listArray);
|
|
|
} else {
|
|
|
@@ -786,7 +788,6 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -894,7 +895,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
for (int i = 0; i < dataArray.size(); i++) {
|
|
|
com.alibaba.fastjson.JSONObject dataObject = dataArray.getJSONObject(i);
|
|
|
if (dataObject != null) {
|
|
|
- //物料编号pr_code,物料名称pr_detail,出库数量pd_outqty,已采集数量pd_pdaqty,'
|
|
|
+ //物料编号 pd_prodcode,物料名称pr_detail,出库数量pd_outqty,已采集数量pd_pdaqty,'
|
|
|
// 仓库pd_whcode,仓位V_PW_WHCODE,实物库存V_PW_ONHAND,
|
|
|
// 条码库存V_BA_REMAIN,型号PR_ORISPECCODE
|
|
|
OutboundTableData outboundTableData = new OutboundTableData();
|
|
|
@@ -1084,7 +1085,6 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
+ "&type=boxcode&msdcheck=" + msdcheck
|
|
|
+ "&datecheck=" + datecheck;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
@@ -1162,6 +1162,20 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ String pd_prodcode = JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE");
|
|
|
+ int[] array = new int[mStockTaskMultipleBeans.size()];
|
|
|
+ if (!TextUtils.isEmpty(pd_prodcode)) {
|
|
|
+ for (int i = 0; i < mStockTaskMultipleBeans.size(); i++) {
|
|
|
+ OutboundTableData outboundTableData = mStockTaskMultipleBeans.get(i);
|
|
|
+ if (pd_prodcode.equals(outboundTableData.getPD_PRODCODE())) {
|
|
|
+ array[i] = i;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ CommonUtil.getDefaultTable(mActivity, mSmartTable,R.color.viewfinder_laser,array);
|
|
|
+ initTableData();
|
|
|
+ setTableData(mStockTaskMultipleBeans);
|
|
|
+ }
|
|
|
+
|
|
|
SpannableStringBuilder style1 = new SpannableStringBuilder(part1);
|
|
|
SpannableStringBuilder style2 = new SpannableStringBuilder(part2);
|
|
|
SpannableStringBuilder style3 = new SpannableStringBuilder(part3);
|
|
|
@@ -1172,7 +1186,6 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
style1 = style1.append(style2).append(style3);
|
|
|
mCollectResultTextView.setText(style1);
|
|
|
|
|
|
-
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
mBoxTableLayout.setVisibility(View.GONE);
|
|
|
|
|
|
@@ -1263,11 +1276,23 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
mMaterialInforTextView.setText(materialInfo);
|
|
|
}
|
|
|
+
|
|
|
+// String pd_prodcode = materialInformationBean.getPD_PRODCODE();
|
|
|
+// if (!TextUtils.isEmpty(pd_prodcode)) {
|
|
|
+// for (int i = 0; i < mStockTaskMultipleBeans.size(); i++) {
|
|
|
+// OutboundTableData outboundTableData = mStockTaskMultipleBeans.get(i);
|
|
|
+// if (pd_prodcode.equals(outboundTableData.getPD_PRODCODE())) {
|
|
|
+// CommonUtil.getDefaultTable(mActivity, mSmartTable,i,R.color.viewfinder_laser);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// initTableData();
|
|
|
+// setTableData(mStockTaskMultipleBeans);
|
|
|
+// }
|
|
|
+
|
|
|
} else {
|
|
|
mMaterialInforTextView.setText("该出库单已经完成备料");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|