public register_Restaurant(Sign_up s_u, making_reservation f, string source)
 {
     InitializeComponent();
     temp_past = s_u;
     past3     = f;
     s         = source;
 }
        private void button2_Click(object sender, EventArgs e)
        {
            //MessageBox.Show(res_name + " " + date + " " + time);
            making_reservation m = new making_reservation("Restaurants", past, res_name, date, time, number_of_people, dining_points);

            m.Show();
            past.Hide();
        }
 public Restaurant_admin(making_reservation f, string s, string res_name)
 {
     InitializeComponent();
     past2            = f;
     source           = s;
     resname          = res_name;
     button6.Visible  = true;
     button7.Visible  = false;
     button8.Visible  = false;
     button2.Visible  = false;
     button12.Visible = false;
     button13.Visible = false;
     button14.Visible = false;
 }
Example #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            connection = new OracleConnection(con);
            connection.Open();
            cmd             = new OracleCommand();
            cmd.Connection  = connection;
            cmd.CommandText = "select diningpoints from schedule where resname='" + res_name + "' and specificdate='" + bunifuDatepicker1.Value.ToShortDateString().Split(' ')[0] + "' and specificdateandtime=to_date('" + bunifuDatepicker1.Value.ToShortDateString().Split(' ')[0] + " " + bunifuDropdown2.selectedValue + "','mm/dd/yyyy hh24:mi') and to_date('" + bunifuDatepicker1.Value.ToShortDateString().Split(' ')[0] + " " + bunifuDropdown2.selectedValue + "','mm/dd/yyyy hh24:mi')>sysdate and numoftables>0";
            cmd.CommandType = CommandType.Text;
            OracleDataReader dr = cmd.ExecuteReader();

            if (dr.Read())
            {
                making_reservation m_r = new making_reservation("Restaurant_profile", this, res_name, bunifuDatepicker1.Value.ToShortDateString().Split(' ')[0], bunifuDropdown2.selectedValue, Convert.ToInt32(bunifuDropdown1.selectedValue.Split(' ')[0]), Convert.ToInt32(dr[0]));
                m_r.Show();
                this.Hide();
            }
            else
            {
                label4.Visible = true;
            }
        }
Example #5
0
 public Sign_up(making_reservation f, string source)
 {
     InitializeComponent();
     s     = source;
     past2 = f;
 }
 public My_Profile(making_reservation _past, string source)
 {
     InitializeComponent();
     past1 = _past;
     s     = source;
 }
Example #7
0
 public Form1(making_reservation a)
 {
     InitializeComponent();
     past2 = a;
 }