• 大小: 6.49MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-01
  • 语言: Java
  • 标签: NetBean  Java  订座系统  

资源简介

我在学校的一个大项目,感觉还不错,分享给大家!可视化操作界面。要先把包里的DB.txt的语句在MySQL里执行,然后运行main.java。登录用户名是test,密码123

资源截图

代码片段和文件信息

package Booking;

import JDBC.MySQLAccess;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Date; 
import java.text.SimpleDateFormat;   


public class Booking {

private int bookingID;
private String date;
private String time;
private String name;
private String peopleAmount;
private String phone;
private String tableID;

MySQLAccess SQL = new MySQLAccess();



public Booking() throws Exception
{
            
}

public Booking(int bookingID) throws Exception
{
this.bookingID = bookingID;
this.date = SQL.getBookingInfo(bookingID “date“);
this.time = SQL.getBookingInfo(bookingID “time“);
this.name = SQL.getBookingInfo(bookingID “name“);
this.peopleAmount = SQL.getBookingInfo(bookingID “peopleamount“);
this.phone = SQL.getBookingInfo(bookingID “phone“);
this.tableID = SQL.getBookingInfo(bookingID “table_id“);
}

public int getBookingID()
{
return bookingID;
}

public void setBookingID(int bookingID)
{
this.bookingID = bookingID;
}

public String getDate()
{
return this.date;
}

public void setDate(String date)
{
this.date = date;
}

public String getTime()
{
return this.time;
}

public void setTime(String time)
{
this.time = time;
}

public String getName()
{
return this.name;
}

public void setName(String name)
{
this.name = name;
}

public String getPeopleAmount()
{
return this.peopleAmount;
}

public void setPeopleAmount(String peopleAmount)
{
this.peopleAmount = peopleAmount;
}

public String getPhone()
{
return this.phone;
}

public void setPhone(String phone)
{
this.phone = phone;
}

public String getTableID()
{
return this.tableID;
}

public void setTableID(String tableID)
{
this.tableID = tableID;
}

public void assignToBooking(int bookingID String date String time int tableID String name int peopleAmount int phone)
{

}



//public boolean checkTimeout(int tableID)  //do it later
//{

//}

public void tableSettle(int bookingID)
{

}

public String toString()
{
return “BookingID=“+bookingID+“ Name=“+name+“ Covers=“+peopleAmount+“ Phone=“+phone+“ Date=“+date+“ Time=“+time+“ TableID=“+tableID;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件          0  2010-05-28 02:18  MyTable\build\classes\.netbeans_automatic_build

     文件       2839  2010-12-14 17:42  MyTable\build\classes\Booking\Booking.class

     文件       3341  2010-05-28 02:14  MyTable\build\classes\image\AddressBook-Black-icon.png

     文件       5911  2010-05-28 02:14  MyTable\build\classes\image\administrator-icon.png

     文件      14214  2010-05-28 02:14  MyTable\build\classes\image\Administrator_Keys.png

     文件       6198  2010-05-28 02:14  MyTable\build\classes\image\cross-icon.png

     文件      23190  2010-05-28 02:14  MyTable\build\classes\image\emptytable.png

     文件      10995  2010-05-28 02:14  MyTable\build\classes\image\error.png

     文件      12014  2010-05-28 02:14  MyTable\build\classes\image\Journal_Red copy.png

     文件       2206  2010-05-28 02:14  MyTable\build\classes\image\Key-icon.png

     文件     281633  2010-05-28 02:14  MyTable\build\classes\image\logo.png

     文件     316709  2010-05-28 02:14  MyTable\build\classes\image\logo2.png

     文件     315348  2010-05-28 02:14  MyTable\build\classes\image\logo6.png

     文件      60677  2010-05-28 02:14  MyTable\build\classes\image\mac.png

     文件      68256  2010-05-28 02:14  MyTable\build\classes\image\maclogo.png

     文件      48800  2010-05-28 02:14  MyTable\build\classes\image\Magnifying_Glass.png

     文件       3982  2010-05-28 02:14  MyTable\build\classes\image\Male-User-Help-icon.png

     文件       5736  2010-05-28 02:14  MyTable\build\classes\image\minus-icon.png

     文件      72528  2010-05-28 02:14  MyTable\build\classes\image\Negative-icon.png

     文件       6029  2010-05-28 02:14  MyTable\build\classes\image\ok-icon.png

     文件      55863  2010-05-28 02:14  MyTable\build\classes\image\Ordinateur.png

     文件      53586  2010-05-28 02:14  MyTable\build\classes\image\Osx09.png

     文件      43639  2010-05-28 02:14  MyTable\build\classes\image\Osx10.png

     文件      58083  2010-05-28 02:14  MyTable\build\classes\image\Osx12.png

     文件      43418  2010-05-28 02:14  MyTable\build\classes\image\Osx13.png

     文件      58349  2010-05-28 02:14  MyTable\build\classes\image\Osx34.png

     文件      18194  2010-05-28 02:14  MyTable\build\classes\image\Osx39.png

     文件      45956  2010-05-28 02:14  MyTable\build\classes\image\Osx44.png

     文件       5813  2010-05-28 02:14  MyTable\build\classes\image\plus-icon.png

     文件      16041  2010-05-28 02:14  MyTable\build\classes\image\Table.png

............此处省略169个文件信息

评论

共有 条评论