freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java課程設(shè)計(jì)產(chǎn)品銷售管理系統(tǒng)-資料下載頁(yè)

2025-04-12 00:23本頁(yè)面
  

【正文】 espersonPhone))。 (saleSpersonDate)。 } return saleSpersonList。 } //對(duì)產(chǎn)品庫(kù)進(jìn)行ID查詢 public List queryEvery( int SID) throws SQLException{ Connection conn=()。//鏈接數(shù)據(jù)庫(kù) String sql=select * from salespersondate where salespersonID=?。 PreparedStatement pst=(sql)。 (1, SID)。 ResultSet rs=()。 List saleSpersonList=new ArrayList()。 SalespersonDate saleSpersonDate=null。 while(()){ saleSpersonDate=new SalespersonDate()。 ((salespersonID))。 ((salespersonName))。 ((salespersonPhone))。 (saleSpersonDate)。 } return saleSpersonList。 } //對(duì)銷售員庫(kù)的添加 public void addSaleperson(int SID,String SNAME,int SPHONE) throws SQLException{//對(duì)數(shù)據(jù)庫(kù)的添加操作 Connection conn=()。//鏈接數(shù)據(jù)庫(kù) String sql=insert into salespersondate values ( ?,?,?)。 PreparedStatement pst=(sql)。 (1, SID)。 (2, SNAME)。 (3, SPHONE)。 ()。 } //輸入你要更新銷售員的ID,進(jìn)行修改你的產(chǎn)品信息 public void updateSalesperson(int SID,String SNAME,int SPHONE) throws SQLException{//更新 Connection conn=()。//鏈接數(shù)據(jù)庫(kù) String sql=update salespersondate set salespersonName=? ,salespersonPhone=? where salespersonID=?。 PreparedStatement pst=(sql)。 (1, SNAME)。 (2, SPHONE)。 (3, SID)。 ()。 } //輸入你要?jiǎng)h除的銷售員的ID進(jìn)行刪除操作 public void delProduct(int SID) throws SQLException{//刪除 Connection conn=()。//鏈接數(shù)據(jù)庫(kù) String sql=delete from salespersondate where salespersonID=?。 PreparedStatement pst=(sql)。 (1, SID)。 ()。 }}:package ProductSystemOne。//銷售記錄庫(kù)(銷售日期 銷售產(chǎn)品ID 售出數(shù)量 單價(jià) 銷售員ID 等)public class SoldNoteDate { private String salesDate。 private Integer productID。 private String salesVolumes。 private String salesPrice。 private Integer salesID。 public Integer getProductID() { return productID。 } public void setProductID(Integer productID) { = productID。 } public String getSalesDate() { return salesDate。 } public void setSalesDate(String salesDate) { = salesDate。 } public String getSalesVolumes() { return salesVolumes。 } public void setSalesVolumes(String salesVolumes) { = salesVolumes。 } public String getSalesPrice() { return salesPrice。 } public void setSalesPrice(String salesPrice) { = salesPrice。 } public Integer getSalesID() { return salesID。 } public void setSalesID(Integer salesID) { = salesID。 } }:package ProductSystemOne。import .*。import .*。public class SoldNoteDateDao { public List query() throws SQLException{ Connection conn=()。//鏈接數(shù)據(jù)庫(kù) Statement stmt =()。 String sql=select * from soldnotedate 。 ResultSet rs=(sql)。 List soldNoteList=new ArrayList()。 SoldNoteDate soldNoteDate=null。 while(()){ soldNoteDate =new SoldNoteDate()。 ((salesDate))。 ((salesID))。 ((salesPrice))。 ((salesVolumes))。 ((productID))。 (soldNoteDate)。 } return soldNoteList。 } public List queryEvery(int SID) throws SQLException{ Connection conn=()。 String sql=select * from soldnotedate where salesID=? 。 PreparedStatement pst=(sql)。 (1, SID)。 ResultSet rs=()。 List soldNoteList=new ArrayList()。 SoldNoteDate soldNoteDate=null。 while(()){ soldNoteDate =new SoldNoteDate()。 ((salesDate))。 ((productID))。 ((salesID))。 ((salesPrice))。 ((salesVolumes))。 (soldNoteDate)。 } return soldNoteList。 } //售出產(chǎn)品 public void sell(int SALESID,String salesPrice,String salesVolumes,int salesDate,int PID) throws SQLException{ Connection conn=()。 String sql=insert into soldnotedate values ( ?,?,?,?,?) 。 PreparedStatement pst=(sql)。 (1, SALESID)。 (2, salesVolumes)。 (3, salesPrice)。 (4,salesDate)。 (5, PID)。 ()。 } //更新銷售數(shù)據(jù)的銷售員信息 public void updateSalesperson(int PID,int SALESID) throws SQLException{ Connection conn=()。 String sql=update soldnotedate set salesID=? where productID=? 。 PreparedStatement pst=(sql)。 (1, SALESID)。 (2, PID)。 ()。 } //刪除銷售數(shù)據(jù)的信息 public void deleSalesDate(int PID) throws SQLException{ Connection conn=()。 String sql=delete from soldnotedate where productID=?。 PreparedStatement pst=(sql)。 (1, PID)。 ()。 }}:package ProductSystemOne。import 。import 。public class UpdateProductSystemAction { public UpdateProductSystemAction(){ ProductDao productDao=new ProductDao()。 (請(qǐng)你輸入要更新的產(chǎn)品的ID:)。 Scanner sc=new Scanner ()。 int PID=()。 (請(qǐng)你輸入要更新的產(chǎn)品的名稱:)。 String PNAME=()。 (請(qǐng)輸入更新產(chǎn)品的規(guī)格:)。 String PSPECIFICATIONS=()。 try { (PID, PNAME, PSPECIFICATIONS)。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } }}:package ProductSystemOne。import 。import 。public class UpdateSalepersonSystemAction { public UpdateSalepersonSystemAction() { SalespersonDateDao salespersonDateDao=new SalespersonDateDao()。 (請(qǐng)輸入 你要修改的銷售員的ID:)。 Scanner sc=new Scanner()。 int SID=()。 (請(qǐng)你輸入修改的銷售員的名字:)。 String SNAME=()。 (請(qǐng)你輸入修改銷售員的手機(jī)號(hào)碼:)。 int SPHONE=()。 try { (SID, SNAME, SPHONE)。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } }}:package ProductSystemOne。import 。import 。public class UpdateSoleNoteSalespersonSystemAction { public UpdateSoleNoteSalespersonSystemAction() { SoldNoteDateDao soldNoteDao=new SoldNoteDateDao()。 Scanner scanner=new Scanner()。 (請(qǐng)你輸入需要更新的產(chǎn)品的ID:)。 int PID=()。 (請(qǐng)你輸入更新之后的銷售該產(chǎn)品的銷售員的ID:)。 int SALESID=()。 try { (PID,SALESID )。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } }}
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1