protected void rsvnobtn_Click(object sender, EventArgs e) { string reservationnum = rsvnotbx.Text; Reservation r = SWENDbmanager.GetReservationByNum(reservationnum); Paymentdetails p = SWENDbmanager.GetPaymentdetailsByNum(reservationnum); gfnametbx.Text = r.Firstname; glnametbx.Text = r.Lastname; nrictbx.Text = r.Nric; roomtbx.Text = Convert.ToString(r.Roomnum); classtbx.Text = r.Roomclass; cntbx.Text = r.Contactnum; emailtbx.Text = r.Emailadd; ctbx.Text = r.Country; hometbx.Text = r.Homeadd; postaltbx.Text = Convert.ToString(r.Postalcode); citbx.Text = r.Checkindate; cotbx.Text = r.Checkoutdate; paymentddl.Text = r.Paymentmeth; indtbx.Text = r.Indicationlate; addrtbx.Text = r.Addremarks; childtbx.Text = r.Numofchild; adulttbx.Text = r.Numofadult; cardnotbx.Text = p.Creditcardnum; holdertbx.Text = p.Creditholdername; exptbx.Text = p.Expirydate; }
protected void shgbtn_Click(object sender, EventArgs e) { string reservationnum = shgtbx.Text; Reservation r = SWENDbmanager.GetReservationByNum(reservationnum); Paymentdetails p = SWENDbmanager.GetPaymentdetailsByNum(reservationnum); lblrmno.Text = r.Roomnum; string roomnum = lblrmno.Text; Room r1 = SWENDbmanager.GetRoomByNum(roomnum); lblrmtype.Text = r1.Roomtype; lblgname.Text = r.Firstname; lblgnamel.Text = r.Lastname; lblnric.Text = r.Nric; lblagno.Text = r.Numofadult; lblcgno.Text = r.Numofchild; lblcno.Text = r.Contactnum; lblem.Text = r.Emailadd; lblhma.Text = r.Homeadd; lblpc.Text = Convert.ToString(r.Postalcode); lblc.Text = r.Country; lblpm.Text = p.Paymentmeth; lblcrno.Text = p.Creditcardnum; lblcrname.Text = p.Creditholdername; lblexp.Text = p.Expirydate; lblcid.Text = r.Checkindate; lblcod.Text = r.Checkoutdate; lblrr.Text = r1.Roomrate; }