コード例 #1
0
        protected void ButtonCreateReservation_Click(object sender, EventArgs e)
        {
            string customerFirstName = TextBoxFirstName.Text.ToString();
            string customerLastname  = TextBoxLastName.Text.ToString();
            string customerAddress   = TextBoxAddress.Text.ToString();
            string customerZipCode   = TextBoxPostal.Text.ToString();
            string customerCity      = TextBoxCity.Text.ToString();
            string customerTelephone = TextBoxTelephone.Text.ToString();
            string customerEmail     = TextBoxEmail.Text.ToString();
            string roomChoice        = DropDownListRoom.SelectedIndex.ToString();
            string checkIn           = CalendarCheckIn.SelectedDate.ToShortDateString();

            //string checkInDate;
            //string checkOutDate;
            //bm.checkInDate = CalendarCheckIn.SelectedDate.ToString("yyyy-MM-dd hh:mm:ss");
            //bm.checkOutDate = CalendarCheckOut.SelectedDate.ToString("yyyy-MM-dd hh:mm:ss");
            //string checkOut = CalendarCheckOut.SelectedDate.ToShortDateString();

            bm.CreateCustomer(customerFirstName, customerLastname, customerAddress, customerZipCode, customerCity, customerTelephone, customerEmail);

            //bm.CreateBooking(checkIn, checkOut, roomID, customerID);
        }