-
大小: 13.13MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-07-14
- 語言: 其他
- 標簽:
資源簡介
超市進存銷畢業(yè)設計管理系統(tǒng)
代碼片段和文件信息
package?com.dao;
//download?by?http://www.codefans.net
import?java.sql.Connection;
import?java.sql.PreparedStatement;
import?java.sql.ResultSet;
import?java.sql.SQLException;
import?java.util.ArrayList;
import?java.util.List;
import?com.itstar.GysBean;
import?com.itstar.JdbcConnection;
public?class?DaoGys?{
Connection?con?=?null;
ResultSet?ret?=?null;
PreparedStatement?pst?=?null;
public?DaoGys()?{
if?(con?==?null)
con?=?JdbcConnection.getConnection();
}
//?添加供應商信息的方法
public?boolean?insert(GysBean?g)?{
String?sql?=?“insert?into?gysgl?values(??????????)“;
int?count?=?0;
try?{
pst?=?con.prepareStatement(sql);
pst.setString(1?g.getAllcall());
pst.setString(2?g.getAddress());
pst.setString(3?g.getPnumber());
pst.setString(4?g.getEmail());
count?=?pst.executeUpdate();
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}?finally?{
try?{
pst.close();
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}
}
if?(count?!=?0)
return?true;
else
return?false;
}
//?下拉框的查詢方法;
/*public?String[]?cXxlak()?{
ResultSet?ret?=?null;
String[]?s1?=?new?String[100];
String?sql?=?“select?allcall?from?gysgl“;
try?{
pst?=?con.prepareStatement(sql);
}?catch?(SQLException?e1)?{
//?TODO?自動生成?catch?塊
e1.printStackTrace();
}
try?{
ret?=?pst.executeQuery();
for?(int?i?=?0;?ret.next();?i++)?{
s1[i]?=?ret.getString(1);
}
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}?finally?{
try?{
pst.close();
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}
}
return?s1;
}
*/
//?下拉框?各值一點就出現(xiàn)
public?GysBean?getInfos(String?gysmc)?{
ResultSet?ret?=?null;
GysBean?gys?=?new?GysBean();
String?sql?=?“select?*?from?gysgl?where?allcall=?“;
try?{
pst?=?con.prepareStatement(sql);
pst.setString(1?gysmc);
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}
try?{
ret?=?pst.executeQuery();
while?(ret.next())?{
gys.setAllcall(ret.getString(2));
gys.setAddress(ret.getString(3));
gys.setPnumber(ret.getString(4));
gys.setEmail(ret.getString(5));
}
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}?finally?{
try?{
pst.close();
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}
}
return?gys;
}
//?查詢供應商重名
public?boolean?gyscz(String?s4)?{
boolean?bb?=?false;
ResultSet?ret?=?null;
String?sql?=?“select?*from?gysgl?where?allcall=?“;
try?{
pst?=?con.prepareStatement(sql);
pst.setString(1?s4);
}?catch?(SQLException?e)?{
//?TODO?自動生成?catch?塊
e.printStackTrace();
}
try?{
ret?=?pst.executeQuery();
if?(ret.next())?{
bb?=?true;
}
}?catch?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A.SH.?????14848??2009-09-04?11:21??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\Thumbs.db
?????文件???????9049??2009-05-04?07:06??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\xdot.gif
?????文件??????63765??2009-09-03?10:32??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\主窗體.JPG
?????文件??????24180??2009-09-03?10:25??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\商品信息.JPG
?????文件??????23805??2009-09-03?10:23??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\客戶信息.JPG
?????文件??????17490??2009-09-03?11:05??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\登錄.JPG
?????文件??????31027??2009-09-03?10:28??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\盤點.JPG
?????文件??????35428??2009-09-03?10:21??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\展示圖片\銷售查詢.JPG
????..A..H.???????162??2009-08-28?15:17??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\~$數(shù)據(jù)表(新).doc
?????文件????1179648??2009-09-01?10:14??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\朱軍小組\Erp_Data.MDF
?????文件????1048576??2009-09-01?10:14??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\朱軍小組\Erp_Log.LDF
?????文件?????122880??2009-09-03?11:39??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\朱百萬小組\朱百萬小組——數(shù)據(jù)庫中的表.doc
?????文件?????164864??2009-08-28?10:51??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\顏敏剛小組\databa
?????文件????1048576??2009-08-28?10:02??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\顏敏剛小組\jxc_Data.MDF
?????文件????1048576??2009-08-28?10:02??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\顏敏剛小組\jxc_Log.LDF
?????文件???????5716??2009-09-01?01:44??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\黃蔚小組\db.sql
?????文件????1048576??2009-09-01?01:44??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\黃蔚小組\test_Data.MDF
?????文件????1048576??2009-09-01?01:44??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\黃蔚小組\test_Log.LDF
?????文件?????292374??2009-09-01?01:32??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\數(shù)據(jù)庫\黃蔚小組\數(shù)據(jù)庫設計.rtf
?????文件????????622??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\.classpath
?????文件????????502??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\.project
?????文件???????4547??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\dao\DaoGys.class
?????文件???????4681??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\dao\Daok.class
?????文件???????5383??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\dao\Daosp.class
?????文件???????1707??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\itstar\dao\Connect.class
?????文件???????2133??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\itstar\dao\Dao.class
?????文件???????1532??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\itstar\erp\Customer.class
?????文件???????2482??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\itstar\erp\CustomerEdit$1.class
?????文件???????1293??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\itstar\erp\CustomerEdit$2.class
?????文件????????705??2009-09-03?10:48??Java+MsSQL超市進銷存(畢業(yè)設計及答辯資料)\源代碼\朱軍小組\jt20-4\bin\com\itstar\erp\CustomerEdit$3.class
............此處省略1324個文件信息
- 上一篇:gsl-2.6.7z
- 下一篇:STS8200 測試系統(tǒng)手冊
評論
共有 條評論