Esempio n. 1
0
  /**
   * 获取所有货物的信息
   *
   * @return
   */
  public List<HashMap<String, String>> getAllInfo() {
    List<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();

    arrayList.clear();
    brrayList.clear();
    crrayList.clear();

    crrayList = Soap.GetWebServre("selectAllCargoInfor", arrayList, brrayList);

    HashMap<String, String> tempHash = new HashMap<String, String>();
    tempHash.put("Cno", "Cno");
    tempHash.put("Cname", "Cname");
    tempHash.put("Cnum", "Cnum");
    list.add(tempHash);

    for (int j = 0; j < crrayList.size(); j += 3) {
      HashMap<String, String> hashMap = new HashMap<String, String>();
      hashMap.put("Cno", crrayList.get(j));
      hashMap.put("Cname", crrayList.get(j + 1));
      hashMap.put("Cnum", crrayList.get(j + 2));
      list.add(hashMap);
    }

    return list;
  }
Esempio n. 2
0
  /**
   * 删除一条货物信息
   *
   * @return
   */
  public void deleteCargoInfo(String Cno) {

    arrayList.clear();
    brrayList.clear();

    arrayList.add("Cno");
    brrayList.add(Cno);

    Soap.GetWebServre("deleteCargoInfo", arrayList, brrayList);
  }
Esempio n. 3
0
  /**
   * 增加一条货物信息
   *
   * @return
   */
  public void insertCargoInfo(String Cname, String Cnum) {

    arrayList.clear();
    brrayList.clear();

    arrayList.add("Cname");
    arrayList.add("Cnum");
    brrayList.add(Cname);
    brrayList.add(Cnum);

    Soap.GetWebServre("insertCargoInfo", arrayList, brrayList);
  }