|
@@ -194,6 +194,52 @@ public class ERPDocking extends BaseClass {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询Erp批次库存
|
|
|
+ *
|
|
|
+ * @param pagerows
|
|
|
+ * @param pagenum
|
|
|
+ * @param fitemnos
|
|
|
+ * @return
|
|
|
+ * @throws YosException
|
|
|
+ */
|
|
|
+ public JSONArray getErpIcinvbalBatchRowsforbatchno(int pagerows, int pagenum, JSONArray fitemnos,String fbatchno) throws YosException {
|
|
|
+ {
|
|
|
+
|
|
|
+ JSONObject object = new JSONObject();
|
|
|
+ JSONObject objectdetail = new JSONObject();
|
|
|
+ objectdetail.put("fstockno", "01");
|
|
|
+ objectdetail.put("fstockname", "");
|
|
|
+ objectdetail.put("fmodel", "");
|
|
|
+ objectdetail.put("fitemname", "");
|
|
|
+ objectdetail.put("fbatchno", fbatchno);
|
|
|
+ objectdetail.put("fitemclsnum", "");
|
|
|
+ objectdetail.put("onlyFqtyPositive", "true");
|
|
|
+ objectdetail.put("fitemnos", fitemnos);
|
|
|
+ objectdetail.put("pagerows", pagerows);
|
|
|
+ objectdetail.put("pagenum", pagenum);
|
|
|
+ object.put("access_token", "basicDrp");
|
|
|
+ object.put("classname", "Icinvbal");
|
|
|
+ object.put("method", "queryPageOfBatch");
|
|
|
+ object.put("content", objectdetail);
|
|
|
+
|
|
|
+ HashMap<String, String> map = new HashMap<>();
|
|
|
+ map.put("content-Type", "application/json");
|
|
|
+ String result = new WebRequest().doPost(object.toString(), url, map);
|
|
|
+ JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
+ if (resultobject != null) {
|
|
|
+ if (resultobject.getString("errcode").equals("0")) {
|
|
|
+ return resultobject.getJSONObject("results").getJSONArray("list");
|
|
|
+ } else {
|
|
|
+ return new JSONArray();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return new JSONArray();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 创建Erp发货单
|
|
|
*
|