示例#1
0
        // Tab 02: Room Lease
        public void ReLoadAvailableRoom()
        {
            this.cbLeaseRoomID.Items.Clear();
            this.deLeaseRoomDate.Text = DateTime.Now.ToString();

            var dt = RoomBUS.GetAvailableRoomList();

            if (dt.Rows.Count != 0)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    this.cbLeaseRoomID.Items.Add(dr["MaPhong"]);
                }
                this.cbLeaseRoomID.SelectedIndex = 0;
            }
        }