Esempio n. 1
0
 private void Frm_Bill_Load(object sender, EventArgs e)
 {
     T_Num.Focus();
     hotelEntities = new HotelEntities();
     bill          = new Bill();
     billRow       = new BillRow();
     T_Date.Text   = DateTime.Now.ToString();
     T_An.Text     = DateTime.Now.Year.ToString();;
 }
 private void Frm_Guest_Load(object sender, EventArgs e)
 {
     hotelEntities   = new HotelEntities();
     guest           = new Guest();
     T_DateNais.Text = DateTime.Now.Year.ToString();;
     data            = new BindingList <string>();
     this.data.Add("M.");
     this.data.Add("Mme");
     this.data.Add("Mlle");
     T_State.DataSource = this.data;
     T_State.Text       = "M.";
     T_Num.Focus();
 }
 private void Frm_Reservation_Load(object sender, EventArgs e)
 {
     T_Num.Focus();
     hotelEntities   = new HotelEntities();
     reservation     = new Reservation();
     reservationRow  = new ReservationRow();
     T_Checkin.Text  = DateTime.Now.ToString();
     T_Checkout.Text = DateTime.Now.ToString();
     T_An.Text       = DateTime.Now.Year.ToString();;
     //verifRoomChechIn();
     //switchRoomCheckout();
     //switchRoomAvailable();
 }
Esempio n. 4
0
 private void Frm_Payement_Load(object sender, EventArgs e)
 {
     hotelEntities = new HotelEntities();
     payement      = new Payement();
     T_Num.Focus();
     T_An.Text = DateTime.Now.Year.ToString();;
     this.data = new BindingList <string>();
     this.data.Add("Espece");
     this.data.Add("Cheque");
     this.data.Add("Credit Cart");
     T_PatType.DataSource = this.data;
     T_PatType.Text       = "Espece";
 }
Esempio n. 5
0
 private void Frm_Room_Load(object sender, EventArgs e)
 {
     T_Num.Focus();
     hotelEntities = new HotelEntities();
     room          = new Room();
     data          = new BindingList <string>();
     this.data.Add("Reserved");
     this.data.Add("Occupied");
     this.data.Add("Available");
     this.data.Add("CheckOut");
     T_Dispo.DataSource = this.data;
     T_Dispo.Text       = "Available";
     T_Num.Focus();
 }
Esempio n. 6
0
 private void radButton5_Click(object sender, EventArgs e)
 {
     refreshForm();
     T_Num.Focus();
 }
 private void Frm_Service_Load(object sender, EventArgs e)
 {
     hotelEntities = new HotelEntities();
     service       = new Service();
     T_Num.Focus();
 }