找传奇、传世资源到传世资源站!

android物流管理源码(android 调用webservice实现)

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

android物流管理源码(android 调用webservice实现) C#网络编程-第1张android物流管理源码(android 调用webservice实现) C#网络编程-第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);}}

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复