public ChinhSuaThongTinPhong(ConnectData conData, string maPhong)
        {
            InitializeComponent();
            connectData    = conData;
            maP            = maPhong;
            infoRoom       = connectData.GetDetailOfRoom(maPhong);
            infoTypeOfRoom = connectData.getTypeOfRoom();

            for (int i = 0; i < infoTypeOfRoom.Count; i++)
            {
                listTypeOfRoom.Add(infoTypeOfRoom[i].LoaiPhong);

                if (infoTypeOfRoom[i].LoaiPhong.Trim() == infoRoom.TenLP.Trim())
                {
                    typeOfRoom = i;
                }
            }

            lblMP.Content           = maPhong;
            lbldonGia.Content       = infoRoom.DonGia;
            lblsoKhachToiDa.Content = infoRoom.SoKhachToiDa;

            if (infoRoom.GhiChu != null)
            {
                txtghiChu.Text = infoRoom.GhiChu.Trim();
            }
        }
Exemplo n.º 2
0
        public RoomChecking(ConnectData conData, string maP)
        {
            InitializeComponent();
            connectData = conData;
            maPhong     = maP;
            item        = connectData.GetDetailOfRoom(maP);

            lblPhong.Content     = item.MaPhong;
            lblLoaiPhong.Content = item.TenLP;
            lblDonGia.Content    = item.DonGia + " VNĐ/đêm";
            lblTinhTrang.Content = item.TinhTrang.ToString();
            lblGhiChu.Content    = item.GhiChu;
        }