资源简介

数据库课程课程设计中的客房管理系统,实现了客房的预定、入住、结算、客房的查询,账单收入统计

资源截图

代码片段和文件信息

package anotherui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.Jframe;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JScrollPane;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.Layoutstyle.ComponentPlacement;
import javax.swing.JTable;
import javax.swing.border.titledBorder;
import javax.swing.table.DefaultTableModel;

import ComplexobjectClass.EmptyRoomInformationTable;
import ComplexobjectClass.EmptyRoomInformationTableDao;
import ComplexobjectClass.EmptyRoomInformationTableDaoImp;
import objectClass.Customer;
import objectClass.CustomerDao;
import objectClass.CustomerDaoImp;
import objectClass.Room;
import objectClass.RoomDao;
import objectClass.RoomDaoImp;
import UI.MessageAndShowNewsWindow;

import javax.swing.UIManager;
import java.awt.Color;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import java.awt.event.ActionEvent;

public class CuReserveRoom extends Jframe {

private JPanel contentPane;
private JTable emptyRoomTable;
private JTable reserveCustomerTable;
private JTextField customerNoText;
private JTextField customerNameText;
private JTextField customerPhoneText;
private JTextField customerCardText;
private JTextField roomNoText;
private JTextField searchCustomerNoText;



Vector columnNames=new Vector<>();
Vector allRows=new Vector<>();

Vector customerColumnNames=new Vector<>();
Vector allCustomerRow=new Vector<>();

String customerSex=“男“;
String customerPayStatus=“未结账未付定金“;
private JTextField reserveTimeText;
private JTextField reserveTimeLongText;

MessageAndShowNewsWindow messageAndShowNewsWindow;


/**
 * Launch the application.
 */
/*public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
ReserveRoom frame = new ReserveRoom();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}*/

/**
 * Create the frame.
 */
public CuReserveRoom(MessageAndShowNewsWindow messageAndShowNewsWindow1) {
messageAndShowNewsWindow=messageAndShowNewsWindow1;



settitle(“\u9884\u5B9A\u623F\u95F4“);
setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
setBounds(100 100 855 504);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5 5 5 5));
setContentPane(contentPane);
JPanel panel = new JPanel();
panel.setBounds(5 5 824 143);

JLabel label = new JLabel(“\u987E\u5BA2\u53F7\uFF1A“);
label.setBounds(24 20 58 15);

customerNoText = new JTextField();
cus

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-01 22:36  客房管理系统\
     目录           0  2018-07-01 22:40  客房管理系统\客房管理系统\
     目录           0  2018-07-01 21:25  客房管理系统\客房管理系统\housesystem数据库\
     文件      180224  2018-06-29 14:54  客房管理系统\客房管理系统\housesystem数据库\customer.ibd
     文件      114688  2018-06-29 11:07  客房管理系统\客房管理系统\housesystem数据库\food.ibd
     文件      114688  2018-07-01 20:41  客房管理系统\客房管理系统\housesystem数据库\housebill.ibd
     文件      114688  2018-06-28 10:42  客房管理系统\客房管理系统\housesystem数据库\housenews.ibd
     文件      114688  2018-06-28 11:45  客房管理系统\客房管理系统\housesystem数据库\message.ibd
     文件      114688  2018-06-29 11:32  客房管理系统\客房管理系统\housesystem数据库\nowuser.ibd
     文件      114688  2018-07-01 20:41  客房管理系统\客房管理系统\housesystem数据库\outedroomthing.ibd
     文件      114688  2018-06-29 14:54  客房管理系统\客房管理系统\housesystem数据库\pastcustomer.ibd
     文件      131072  2018-06-29 14:54  客房管理系统\客房管理系统\housesystem数据库\room.ibd
     文件      114688  2018-06-19 23:23  客房管理系统\客房管理系统\housesystem数据库\roomstatus.ibd
     文件      114688  2018-07-01 20:40  客房管理系统\客房管理系统\housesystem数据库\roomthing.ibd
     文件      114688  2018-06-23 16:56  客房管理系统\客房管理系统\housesystem数据库\roomtype.ibd
     文件      131072  2018-06-23 12:11  客房管理系统\客房管理系统\housesystem数据库\user.ibd
     目录           0  2018-07-01 21:26  客房管理系统\客房管理系统\HouseSystem程序\
     文件         466  2018-06-25 14:58  客房管理系统\客房管理系统\HouseSystem程序\.classpath
     文件         387  2018-06-19 22:56  客房管理系统\客房管理系统\HouseSystem程序\.project
     目录           0  2018-07-01 21:25  客房管理系统\客房管理系统\HouseSystem程序\.settings\
     文件         670  2018-06-22 11:27  客房管理系统\客房管理系统\HouseSystem程序\.settings\org.eclipse.jdt.core.prefs
     目录           0  2018-07-01 21:26  客房管理系统\客房管理系统\HouseSystem程序\bin\
     目录           0  2018-07-01 21:25  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\
     文件        1104  2018-06-28 14:35  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom$1.class
     文件         705  2018-06-28 14:35  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom$2.class
     文件        2417  2018-06-28 14:35  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom$3.class
     文件        2373  2018-06-29 14:41  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom$4.class
     文件        2214  2018-06-28 14:35  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom$5.class
     文件         950  2018-06-28 14:35  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom$6.class
     文件         883  2018-06-28 14:35  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom$7.class
     文件        6476  2018-06-28 14:35  客房管理系统\客房管理系统\HouseSystem程序\bin\anotherui\CuReserveRoom.class
............此处省略252个文件信息

评论

共有 条评论