/// <summary> /// 根据会议室查询该会议室的使用情况 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ddlRoomName_SelectedIndexChanged(object sender, EventArgs e) { RoomInfo room = RoomInfoManager.SearchRoomInfoById(Convert.ToInt32(ddlRoomName.SelectedValue)); string roomName = ddlRoomName.SelectedItem.Value; lblRoomName.Text = roomName; lblRemark.Text = room.RomeCondition; dlRoomArrage.DataSourceID = null; dlRoomArrage.DataSource = RoomArrageManager.SearchRoomArrageStateByRoomName(roomName); if (dlRoomArrage.DataSource == null) { lblRoomState.Text = "空闲中.."; } else { lblRoomState.Text = "占用中.."; } dlRoomArrage.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //判断会场ID是否为空,为空则跳转到会场列表页面 if (Request.QueryString["RoomId"] == null) { Response.Redirect("SelMeetingRome.aspx"); } else { //绑定会场信息 RoomId = Convert.ToInt32(Request.QueryString["RoomId"]); RoomInfo roomInfo = RoomInfoManager.SearchRoomInfoById(RoomId); txtRomeName.Value = roomInfo.RoomName; txtContainNum.Value = roomInfo.ContainNum.ToString(); txtEquip.Text = roomInfo.Equip; txtAddress.Value = roomInfo.RomeAddr; txtRomeCondition.Text = roomInfo.RomeCondition; } } }