Пример #1
0
        private void RefreshDataBinding_ChuyenPhong()
        {
            PhongDTO phongDto = PhongBUS.LayThongTinPhong(phongCu.MaPhong);

            txtLoaiPhong_Old.EditValue = LoaiPhongBUS.LayLoaiPhong(phongDto).TenLoaiPhong;
            txtMaPhong_Old.EditValue   = phongDto.MaPhong;
            txtTang_Old.EditValue      = phongDto.Tang;
            txtTenPhong_Old.EditValue  = phongDto.TenPhong;
            txtGhiChu_Old.EditValue    = phongDto.GhiChu;

            txtPhong.Properties.DataSource    = dtPhong = PhongBUS.LayTatCaPhong_TinhTrangPhong_LoaiPhong_CoSan();
            txtPhong.Properties.DisplayMember = "TenPhong";
            txtPhong.Properties.ValueMember   = "MaPhong";
        }
Пример #2
0
        void RefreshDataBinding_ChuyenDatPhong()
        {
            PhongDTO phongDto = PhongBUS.LayThongTinPhong(chiTietDatPhong.MaPhong);

            txtLoaiPhong_Old.EditValue = LoaiPhongBUS.LayLoaiPhong(phongDto).TenLoaiPhong;
            txtMaPhong_Old.EditValue   = phongDto.MaPhong;
            txtTang_Old.EditValue      = phongDto.Tang;
            txtTenPhong_Old.EditValue  = phongDto.TenPhong;
            txtGhiChu_Old.EditValue    = phongDto.GhiChu;

            txtPhong.Properties.DataSource    = dtPhong = DatPhongBUS.LayCacPhongConTrongTrongThoiGian(DatPhongBUS.LayThongTinDatPhong(chiTietDatPhong.MaDatPhong).ThoiGianDatPhong, ThamSoBUS.LayKhoangThoiGianToiThieuGiuaHaiLanThue());
            txtPhong.Properties.DisplayMember = "TenPhong";
            txtPhong.Properties.ValueMember   = "MaPhong";
        }
Пример #3
0
        internal void RefreshDataBinding(ChiTietDatPhongDTO chiTiet)
        {
            chiTietDatPhong = chiTiet;

            phong = PhongBUS.LayThongTinPhong(chiTiet.MaPhong);
            txtMaPhong.EditValue        = phong.MaPhong;
            txtTenPhong.EditValue       = phong.TenPhong;
            txtLoaiPhong.EditValue      = LoaiPhongBUS.LayLoaiPhong(phong).TenLoaiPhong;
            txtTang.EditValue           = phong.Tang;
            txtTinhTrangPhong.EditValue = PhongBUS.LayTinhTrangPhong(phong.MaTinhTrangPhong).TinhTrangPhong;
            txtGhiChu.EditValue         = phong.GhiChu;

            RefreshDataBindingDichVuPhong();
        }