基本信息
源码名称:android物流管理源码(android 调用webservice实现)
源码大小:0.82M
文件格式:.zip
开发语言:C#
更新时间:2015-06-23
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
package com.bottle.stockmanage; import java.sql.Connection; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class DBUtil { private ArrayList<String> arrayList = new ArrayList<String>(); private ArrayList<String> brrayList = new ArrayList<String>(); private ArrayList<String> crrayList = new ArrayList<String>(); private HttpConnSoap Soap = new HttpConnSoap(); public static Connection getConnection() { Connection con = null; try { //Class.forName("org.gjt.mm.mysql.Driver"); //con=DriverManager.getConnection("jdbc:mysql://192.168.0.106:3306/test?useUnicode=true&characterEncoding=UTF-8","root","initial"); } catch (Exception e) { //e.printStackTrace(); } return con; } /** * 获取所有货物的信息 * * @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; } /** * 增加一条货物信息 * * @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); } /** * 删除一条货物信息 * * @return */ public void deleteCargoInfo(String Cno) { arrayList.clear(); brrayList.clear(); arrayList.add("Cno"); brrayList.add(Cno); Soap.GetWebServre("deleteCargoInfo", arrayList, brrayList); } }