91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 182KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-07-10
  • 語言: 其他
  • 標簽: java??swing??mysql??

資源簡介

簡單的數據庫課程設計,在管理員方面,可以添加車輛,按照編號查詢車輛、刪除車輛、修改車輛信息,可以顯示可租用的車輛和所有車輛信息,并且可以按照租金進行升序或者降序排列,對車牌可以進行查詢;按照編號查詢用戶、修改用戶信息、刪除用戶,按照用戶的姓名進行模糊查詢;可以添加供應商,按照編號查詢供應商、修改供應商信息、刪除供應商;查看所有購買車輛的信息;查看所有用戶租用車輛的信息;按照車牌分類對租用次數進行統計。 在用戶方面,可以顯示可租用的車輛和所有車輛信息,并且可以按照租金進行升序或者降序排列,對車牌可以進行查詢;租用車輛;歸還車輛;查看自己的訂單。

資源截圖

代碼片段和文件信息

package?JDBCUtil;

import?java.sql.Connection;
import?java.sql.PreparedStatement;
import?java.sql.SQLException;

public?class?Add?{
/**
?*?
?*?@param?c_id
?*?@param?model
?*?@param?color
?*?@param?cost
?*?@param?rent_count
?*?@param?buy_count
?*?@param?s_id
?*/
public?static?void?AddCar(int?c_idString?modelString?colorint?costint?buy_countint?s_id)?{
Connection?Conn=null;
String?sql=“insert?into?bmi.車輛?values(??????)“;
String?sql2=“insert?into?bmi.購買?(車輛編號供應商編號數量)values(???)“;
Conn=jdbcutil.getConn();
try?{
PreparedStatement?pstCar=Conn.prepareStatement(sql);
int?rent_count=0;
pstCar.setInt(1?c_id);
pstCar.setString(2?model);
pstCar.setString(3?color);
pstCar.setInt(4?cost);
pstCar.setInt(5?buy_count);
pstCar.setInt(6?rent_count);
????????????pstCar.executeUpdate();
????????????
????????????PreparedStatement?pstSup=Conn.prepareStatement(sql2);
????????????pstSup.setInt(1?c_id);
????????????pstSup.setInt(2?s_id);
????????????pstSup.setInt(3?buy_count);
????????????pstSup.executeUpdate();
????????????System.out.println(“增加車輛信息成功!“);

}?catch?(SQLException?e)?{
//?TODO?Auto-generated?catch?block
e.printStackTrace();
}?finally{
jdbcutil.release(Conn);
}
}
/**
?*?用戶租車,對租用表進行更新
?*?@param?c_id
?*?@param?u_id
?*?@param?rent_day
?*?@param?rent_dopsit
?*/
public?static?void?AddRent(int?c_idint?u_idint?rent_dayint?rent_dopsit)?{
Connection?Conn=null;
String?sql=“insert?into?bmi.租用?(車輛編號用戶編號租用天數押金)values(????)“;
Conn=jdbcutil.getConn();
try?{
PreparedStatement?pstCar=Conn.prepareStatement(sql);
pstCar.setInt(1?c_id);
pstCar.setInt(2?u_id);
pstCar.setInt(3?rent_day);
pstCar.setInt(4?rent_dopsit);
????????????pstCar.executeUpdate();
??
????????????System.out.println(“車輛租用成功!“);

}?catch?(SQLException?e)?{
//?TODO?Auto-generated?catch?block
e.printStackTrace();
}?finally{
jdbcutil.release(Conn);
}
}
/**
?*?
?*?@param?s_id
?*?@param?s_name
?*?@param?tel
?*?@param?city
?*/
public?static?void?AddSupplier(int?s_idString?s_nameString?telString?city)?{
Connection?Conn=null;
String?sql=“insert?into?bmi.供應商?values(????)“;
Conn=jdbcutil.getConn();
try?{
PreparedStatement?aSup=Conn.prepareStatement(sql);
aSup.setInt(1?s_id);
aSup.setString(2?s_name);
aSup.setString(3?tel);
aSup.setString(4?city);
????????????aSup.executeUpdate();
????????????System.out.println(“增加供應商信息成功!“);

}?catch?(SQLException?e)?{
//?TODO?Auto-generated?catch?block
e.printStackTrace();
}?finally{
jdbcutil.release(Conn);
}
}
/**
?*?
?*?@param?u_id
?*?@param?u_name
?*?@param?sex
?*?@param?tel
?*?@param?address
?*?@param?password
?*/
public?static?void?AddUser(int?u_idString?u_nameString?sexString?telString?addressString?password)?{
Connection?Conn=null;
String?sql=“in

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-09-10?13:47??汽車租賃系統\
?????文件?????????574??2019-09-05?20:02??汽車租賃系統\.classpath
?????文件?????????394??2019-08-27?09:20??汽車租賃系統\.project
?????目錄???????????0??2019-09-10?13:47??汽車租賃系統\.settings\
?????文件?????????598??2019-08-27?09:20??汽車租賃系統\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2019-09-10?13:47??汽車租賃系統\bin\
?????目錄???????????0??2019-09-10?13:47??汽車租賃系統\bin\JDBCUtil\
?????文件????????4102??2019-09-05?20:02??汽車租賃系統\bin\JDBCUtil\Add.class
?????文件????????1752??2019-09-06?14:05??汽車租賃系統\bin\JDBCUtil\Check.class
?????文件????????2457??2019-09-05?20:02??汽車租賃系統\bin\JDBCUtil\Delete.class
?????文件????????2803??2019-09-05?20:02??汽車租賃系統\bin\JDBCUtil\Find.class
?????文件????????4576??2019-09-05?20:41??汽車租賃系統\bin\JDBCUtil\Show.class
?????文件????????2998??2019-09-05?20:02??汽車租賃系統\bin\JDBCUtil\Update.class
?????文件?????????688??2019-09-06?12:40??汽車租賃系統\bin\JDBCUtil\jdbc.class
?????文件????????2331??2019-09-05?20:02??汽車租賃系統\bin\JDBCUtil\jdbcutil.class
?????目錄???????????0??2019-09-10?13:47??汽車租賃系統\bin\otherutil\
?????文件????????3229??2019-09-05?21:07??汽車租賃系統\bin\otherutil\TEST.class
?????文件????????4118??2019-09-05?20:02??汽車租賃系統\bin\otherutil\ValidCode.class
?????目錄???????????0??2019-09-10?13:47??汽車租賃系統\bin\view\
?????文件????????2378??2019-09-05?22:20??汽車租賃系統\bin\view\addcar$1.class
?????文件?????????728??2019-09-05?22:20??汽車租賃系統\bin\view\addcar$2.class
?????文件????????3654??2019-09-05?22:20??汽車租賃系統\bin\view\addcar.class
?????文件????????2115??2019-09-05?22:20??汽車租賃系統\bin\view\addsupplier$1.class
?????文件?????????755??2019-09-05?22:20??汽車租賃系統\bin\view\addsupplier$2.class
?????文件????????3041??2019-09-05?22:20??汽車租賃系統\bin\view\addsupplier.class
?????文件????????2080??2019-09-05?22:20??汽車租賃系統\bin\view\backcar$1.class
?????文件????????1361??2019-09-05?22:20??汽車租賃系統\bin\view\backcar$2.class
?????文件?????????731??2019-09-05?22:20??汽車租賃系統\bin\view\backcar$3.class
?????文件????????4121??2019-09-05?22:20??汽車租賃系統\bin\view\backcar.class
?????文件????????1080??2019-09-06?14:12??汽車租賃系統\bin\view\login$1.class
?????文件????????2230??2019-09-06?14:12??汽車租賃系統\bin\view\login$LoginListener.class
............此處省略113個文件信息

評論

共有 條評論