资源简介

餐厅订餐管理系统 UML课程设计 带文档

资源截图

代码片段和文件信息

package bookingsystem;

import java.awt.*;

import javax.swing.*;
import java.awt.BorderLayout;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.SimpleDateFormat;
import java.util.Vector;
import java.sql.SQLException;
import java.util.Date;

/**
 * 

title: 


 *
 * 

Description: 


 *
 * 

Copyright: Copyright (c) 2007


 *
 * 

Company: 


 *
 * @author not attributable
 * @version 1.0
 */
public class Addreservationframe extends myframe {

    private Reservationframe resframe;
    String tempArrivalDate = null;
    String tempArrivalTime = null;
    XYLayout xYLayout1 = new XYLayout();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JTextField RCOVERS = new JTextField();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    JTextField RCUSTOMERNAME = new JTextField();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JComboBox RARRIVALDATE = new JComboBox();
    JComboBox RTABLENO = new JComboBox();
    JComboBox RARRIVALTIME = new JComboBox();
    JButton inqury = new JButton();
    JLabel jLabel6 = new JLabel();
    JTextField RCUSTOMERPHONE = new JTextField();

    public Addreservationframe(Reservationframe resframe) {
        super();
        this.resframe = resframe;
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {

        String arrivalDate[] = {“today“ “tomorrow“ “the day after tomorrow“};
        String arrivalTime[] = {“10:00-12:00“ “18:00-20:00“ “20:00-22:00“};

        this.setDefaultCloseOperation(Jframe.DO_NOTHING_ON_CLOSE);
        for (int i = 0; i < 3; i++) {
            RARRIVALDATE.addItem(arrivalDate[i]);
            RARRIVALTIME.addItem(arrivalTime[i]);
        }

        getContentPane().setLayout(xYLayout1);
        jLabel2.setText(“人数“);
        jLabel3.setText(“预约时间“);
        jLabel4.setText(“可用餐桌“);
        jLabel5.setText(“顾客姓名“);
        jButton1.setText(“添加“);
        jButton1.addActionListener(new
                                   Addreservationframe_jButton1_actionAdapter(this));
        jButton2.setText(“取消“);
        jButton2.addActionListener(new
                                   Addreservationframe_jButton2_actionAdapter(this));
        RARRIVALDATE.setToolTipText(““);
        RARRIVALDATE.setSelectedItem(RARRIVALTIME);
        inqury.setText(“查询“);
        inqury.addActionListener(new Addreservationframe_inqury_actionAdapter(this));
        xYLayout1.setWidth(400);
        xYLayout1.setHeight(390);
        jLabel6.setText(“顾客电话“);
        this.getContentPane().add(jLabel1 new XYConstraints(148 25 103 42));
        jLabel1.

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

     文件       8213  2008-01-05 22:49  BookingSystem\bak\bookingsystem\Addreservationframe.java~43~

     文件       8232  2008-01-05 23:09  BookingSystem\bak\bookingsystem\Addreservationframe.java~44~

     文件       8341  2008-01-05 23:55  BookingSystem\bak\bookingsystem\Addreservationframe.java~45~

     文件       8341  2008-01-05 23:56  BookingSystem\bak\bookingsystem\Addreservationframe.java~46~

     文件       8341  2008-01-05 23:57  BookingSystem\bak\bookingsystem\Addreservationframe.java~47~

     文件       8373  2008-01-05 23:58  BookingSystem\bak\bookingsystem\Addreservationframe.java~48~

     文件       8382  2008-01-06 00:02  BookingSystem\bak\bookingsystem\Addreservationframe.java~49~

     文件       8418  2008-01-06 22:53  BookingSystem\bak\bookingsystem\Addreservationframe.java~50~

     文件       8931  2008-01-06 23:22  BookingSystem\bak\bookingsystem\Addreservationframe.java~51~

     文件       9100  2008-01-07 00:54  BookingSystem\bak\bookingsystem\Addreservationframe.java~52~

     文件       1133  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~1~

     文件       1145  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~2~

     文件       1147  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~3~

     文件       1145  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~4~

     文件       1147  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~5~

     文件       1742  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~6~

     文件       1748  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~7~

     文件       1749  2006-12-26 16:46  BookingSystem\bak\bookingsystem\Booking.java~8~

     文件       1757  2007-12-26 19:43  BookingSystem\bak\bookingsystem\Booking.java~9~

     文件       1610  2006-12-26 16:46  BookingSystem\bak\bookingsystem\BookingSystembegin.java~1~

     文件       1610  2006-12-26 16:46  BookingSystem\bak\bookingsystem\BookingSystembegin.java~2~

     文件       2419  2006-12-26 16:46  BookingSystem\bak\bookingsystem\ConnectionDB.java~1~

     文件       1900  2006-12-26 16:46  BookingSystem\bak\bookingsystem\ConnectionDB.java~2~

     文件       2732  2006-12-26 16:46  BookingSystem\bak\bookingsystem\ConnectionDB.java~3~

     文件       2550  2007-12-31 16:42  BookingSystem\bak\bookingsystem\Customer.java~15~

     文件       2559  2007-12-31 16:50  BookingSystem\bak\bookingsystem\Customer.java~16~

     文件       2562  2007-12-31 16:50  BookingSystem\bak\bookingsystem\Customer.java~17~

     文件       2589  2007-12-31 16:52  BookingSystem\bak\bookingsystem\Customer.java~18~

     文件       2584  2007-12-31 16:57  BookingSystem\bak\bookingsystem\Customer.java~19~

     文件       2580  2007-12-31 17:06  BookingSystem\bak\bookingsystem\Customer.java~20~

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

评论

共有 条评论