示例#1
0
        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;
        }
示例#2
0
        protected void rmnobtn_Click(object sender, EventArgs e)
        {
            string roomnum = rmnotbx.Text;
            Room   r       = SWENDbmanager.GetRoomByNum(roomnum);

            lblroomid.Text   = Convert.ToString(r.Roomid);
            lblroomno.Text   = r.Roomnum;
            lblroomtype.Text = r.Roomtype;
            lblnumbed.Text   = Convert.ToString(r.Numofbed);
            lblbedtype.Text  = r.Bedtype;
            lblclass.Text    = r.Roomclass;
            lblroomrate.Text = r.Roomrate;
            roomstattbx.Text = r.Roomstatus;
        }