package 宾馆客房管理系统;
import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class kefangsystem extends JFrame
{
private JMenu menu8;
private JMenuItem m81;
private JMenuItem m82;
private JMenuItem m83;
private JMenuItem m84;
private JMenuItem m85;
public kefangsystem()
{
super();
this.setSize(800,500);
this.setTitle("宾馆客房管理系统-管理人员");
this.setLocationRelativeTo(getOwner());
JMenuBar menubar;
JMenu menu1;
JMenuItem m11;
JMenuItem m12;
JMenuItem m13;
JMenu menu2;
JMenuItem m21;
JMenuItem m22;
JMenuItem m23;
JMenuItem m24;
JMenu menu3;
JMenuItem m31;
JMenuItem m32;
JMenu menu4;
JMenuItem m41;
JMenuItem m42;
JMenuItem m43;
JMenu menu5;
JMenuItem m51;
JMenuItem m52;
JMenuItem m53;
JMenuItem m54;
JMenu menu6;
JMenuItem m61;
JMenuItem m62;
JMenuItem m63;
JMenuItem m64;
JMenu menu7;
JMenuItem m71;
JMenuItem m72;
JMenuItem m73;
JMenuItem m74;
JMenuItem m75;
JMenuItem m76;
JMenuItem m77;
JMenu menu8;
JMenuItem m81;
JMenuItem m82;
JMenuItem m83;
JMenuItem m84;
JMenuItem m85;
JMenuItem m86;
menu1=new JMenu("入住和退房管理");
m11=new JMenuItem("预定确认");
// m12=new JMenuItem("退房确认");
m13=new JMenuItem("入住确认");
menu1.add(m11);
// menu1.add(m12);
menu1.add(m13);
menu2=new JMenu("客户信息管理");
m21=new JMenuItem("客户信息查询");
m23=new JMenuItem("客户信息删除");
menu2.add(m21);
menu2.add(m23);
menu3=new JMenu("价目信息管理");
m31=new JMenuItem("价目查询");
m32=new JMenuItem("价目修改");
menu3.add(m31);
menu3.add(m32);
menu4=new JMenu("客房类型管理");
m41=new JMenuItem("查看类型");
m42=new JMenuItem("修改类型");
m43=new JMenuItem("删除类型");
menu4.add(m41);
menu4.add(m42);
menu4.add(m43);
menu5=new JMenu("客房信息管理");
m51=new JMenuItem("客房信息查询");
m52=new JMenuItem("客房信息修改");
m53=new JMenuItem("客房信息删除");
m54=new JMenuItem("客房信息添加");
menu5.add(m51);
menu5.add(m52);
menu5.add(m53);
menu5.add(m54);
menu6=new JMenu("费用信息管理");
m61=new JMenuItem("费用信息查询");
m62=new JMenuItem("费用信息修改");
m63=new JMenuItem("费用信息删除");
m64=new JMenuItem("费用信息添加");
menu6.add(m61);
menu6.add(m62);
menu6.add(m63);
menu6.add(m64);
menu7=new JMenu("物品信息管理");
m71=new JMenuItem("物品信息查询");
m72=new JMenuItem("物品信息修改");
m73=new JMenuItem("物品信息删除");
m74=new JMenuItem("物品信息添加");
m75=new JMenuItem("存量查询");
m76=new JMenuItem("入库登记");
m77=new JMenuItem("出库登记");
menu7.add(m71);
menu7.add(m72);
menu7.add(m73);
menu7.add(m74);
menu7.add(m75);
menu7.add(m76);
menu7.add(m77);
menu8=new JMenu("系统安全管理");
// m81=new JMenuItem("系统数据库备份");
// m82=new JMenuItem("系统数据库恢复");
m83=new JMenuItem("用户权限更改");
m84=new JMenuItem("用户权限添加");
m85=new JMenuItem("用户权限删除");
m86=new JMenuItem("用户权限查看");
// menu8.add(m81);
// menu8.add(m82);
menu8.add(m83);
menu8.add(m84);
menu8.add(m85);
menu8.add(m86);
menubar=new JMenuBar();
menubar.add(menu1);
menubar.add(menu2);
menubar.add(menu3);
menubar.add(menu4);
menubar.add(menu5);
menubar.add(menu6);
menubar.add(menu7);
menubar.add(menu8);
setJMenuBar(menubar);
setVisible(true);
m11.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Quein p=new Quein();
}
});
/* m12.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Queout p=new Queout();
}
});*/
m13.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Queinner p=new Queinner();
}
});
m21.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
SelectTravellers p=new SelectTravellers();
}
});
m23.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
DeleteTravellers p=new DeleteTravellers();
}
});
m31.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
SelectRprice p=new SelectRprice();
}
});
m32.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
UpdateRprice p=new UpdateRprice();
}
});
m41.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
//SerchRstyle p=new SerchRstyle();
SelectRstyle p=new SelectRstyle();
}
});
m42.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
UpdateRstyle p=new UpdateRstyle();
}
});
m43.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
DeleteRstyle p=new DeleteRstyle();
}
});
m51.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
SelectRooms p=new SelectRooms();
}
});
m52.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
UpdateRooms p=new UpdateRooms();
}
});
m53.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
DeleteRooms p=new DeleteRooms();
}
});
m54.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
InsertRooms p=new InsertRooms();
}
});
m61.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
SelectLiving p=new SelectLiving();
}
});
m62.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
UpdateLiving p=new UpdateLiving();
}
});
m63.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
DeleteLiving p=new DeleteLiving();
}
});
m64.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
InsertLiving p=new InsertLiving();
}
});
m71.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
SelectWuping p=new SelectWuping();
}
});
m72.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
UpdateWuping p=new UpdateWuping();
}
});
m73.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
DeleteWuping p=new DeleteWuping();
}
});
m74.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
InsertWuping p=new InsertWuping();
}
});
m75.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Selectcunliang p=new Selectcunliang();
}
});
m76.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Checkru p=new Checkru();
}
});
m77.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Checkchu p=new Checkchu();
}
});
m83.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Updateyong p=new Updateyong();
}
});
m84.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Insertyong p=new Insertyong();
}
});
m85.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
Del
评论2
最新资源