Exemple #1
0
        private void frmCheckIn_Load(object sender, EventArgs e)
        {
            TaoTieuDeCot(lvwDSNhanPhong);
            clsHonLoan honLoan = new clsHonLoan();
            var        dsNP    = honLoan.GetDSNhanPhong();

            DuaDataVaoLvwDSNhanPhong(lvwDSNhanPhong, dsNP);
            txtTim.AutoCompleteMode   = AutoCompleteMode.Suggest;
            txtTim.AutoCompleteSource = AutoCompleteSource.CustomSource;
        }
        private void frmBookRoom_Load(object sender, EventArgs e)
        {
            b = new clsBookRoom();
            IEnumerable <BookRoom> br = b.getListBookRoom();

            c       = new clsCustomer();
            r       = new clsRoom();
            jBR     = new clsJoinBRandRom();
            honLoan = new clsHonLoan();
            createTitle(lvwDSDatPhong);
            loadRoomListView(lvwDSDatPhong, br);

            TaoDayGhe(n);
        }
Exemple #3
0
        private void btnNhanPhong_Click(object sender, EventArgs e)
        {
            clsRoom Room   = new clsRoom();
            Room    roomUp = Room.LayThongTinPhong(_idRoom);

            roomUp.Note = txtGhiChu.Text;
            Room.CapNhatTinhTrangPhong(_idRoom, roomUp);
            DuaDataRoomVaoTextBox(Room.LayThongTinPhong(_idRoom));

            clsBookRoom BookRoom = new clsBookRoom();
            BookRoom    bRoomUp  = BookRoom.GetThongTinBookRoom(_idRoom);

            bRoomUp.dateBooking  = dTimeNgayDat.Value;
            bRoomUp.Checkin_Date = dTimeNgayNhan.Value;
            BookRoom.SuaThongTinBookRoomCuaKH(bRoomUp, _idCustomer);

            clsHonLoan honLoan = new clsHonLoan();
            var        dsNP    = honLoan.GetDSNhanPhong();

            DuaDataVaoLvwDSNhanPhong(lvwDSNhanPhong, dsNP);
        }