public void ShowInfo(int roomid) { Model.wx_hotel_room room = roomBll.GetModel(roomid); if (room != null) { this.lblRoomCode.Text = room.RoomCode; this.roomType.Text = room.roomType; this.indroduce.InnerText = room.indroduce; this.roomPrice.Text = room.roomPrice.ToString(); this.salePrice.Text = room.salePrice.ToString(); this.facilities.Value = room.facilities; this.txtUsueIntroduction.Value = room.UseInstruction; this.txtRefundRule.Value = room.RefundRule; //this.txtExpiryDate_Begin.Text = room.ExpiryDate_Begin.HasValue ? room.ExpiryDate_Begin.Value.ToString("yyyy-MM-dd") : ""; //this.txtExpiryDate_End.Text = room.ExpiryDate_End.HasValue ? room.ExpiryDate_End.Value.ToString("yyyy-MM-dd") : ""; if (room.Status != Model.RoomStatus.Submit) { //获取审核意见 var manageBll = new BLL.wx_hotel_room_manage(); txtComment.Text = manageBll.GetComment(roomid); } } IList<Model.wx_hotel_roompic> itemlist = iBll.GetModelList("roomid=" + roomid + " order by id asc"); if (itemlist != null && itemlist.Count > 0) { int count = itemlist.Count; Model.wx_hotel_roompic itemEntity = new Model.wx_hotel_roompic(); for (int i = 1; i <= count; i++) { itemEntity = itemlist[(i - 1)]; title = this.FindControl("title" + i) as TextBox; sortpicid = this.FindControl("sortpicid" + i) as TextBox; roomPic = this.FindControl("roomPic" + i) as TextBox; roomPictz = this.FindControl("roomPictz" + i) as TextBox; title.Text = itemEntity.title; sortpicid.Text = itemEntity.sortpicid.ToString(); roomPic.Text = itemEntity.roomPic.ToString(); roomPictz.Text = itemEntity.roomPictz.ToString(); } } }
public void ShowInfo(int roomid) { Model.wx_hotel_room room = roomBll.GetModel(roomid); if (room != null) { this.lblRoomCode.Text = room.RoomCode; this.roomType.Text = room.roomType; this.indroduce.InnerText = room.indroduce; this.roomPrice.Text = room.roomPrice.ToString(); this.salePrice.Text = room.salePrice.ToString(); this.facilities.Value = room.facilities; this.txtUsueIntroduction.Value = room.UseInstruction; this.txtRefundRule.Value = room.RefundRule; //this.txtExpiryDate_Begin.Text = room.ExpiryDate_Begin.HasValue ? room.ExpiryDate_Begin.Value.ToString("yyyy-MM-dd") : ""; //this.txtExpiryDate_End.Text = room.ExpiryDate_End.HasValue ? room.ExpiryDate_End.Value.ToString("yyyy-MM-dd") : ""; if (room.Status != Model.RoomStatus.Submit) { //获取审核意见 var manageBll = new BLL.wx_hotel_room_manage(); txtComment.Text = manageBll.GetComment(roomid); } } IList <Model.wx_hotel_roompic> itemlist = iBll.GetModelList("roomid=" + roomid + " order by id asc"); if (itemlist != null && itemlist.Count > 0) { int count = itemlist.Count; Model.wx_hotel_roompic itemEntity = new Model.wx_hotel_roompic(); for (int i = 1; i <= count; i++) { itemEntity = itemlist[(i - 1)]; title = this.FindControl("title" + i) as TextBox; sortpicid = this.FindControl("sortpicid" + i) as TextBox; roomPic = this.FindControl("roomPic" + i) as TextBox; roomPictz = this.FindControl("roomPictz" + i) as TextBox; title.Text = itemEntity.title; sortpicid.Text = itemEntity.sortpicid.ToString(); roomPic.Text = itemEntity.roomPic.ToString(); roomPictz.Text = itemEntity.roomPictz.ToString(); } } }
public void list(int roomid) { room = roomBll.GetModel(roomid); if (room != null) { //this.hotelName.Text = hotel.hotelName; //this.hotelAddress.Text = hotel.hotelAddress; //this.hotelPhone.Text = hotel.hotelPhone; //this.mobilPhone.Text = hotel.mobilPhone; //this.noticeEmail.Text = hotel.noticeEmail; this.roomType.Text = room.roomType; this.indroduce.InnerText = room.indroduce; this.roomPrice.Text = room.roomPrice.ToString(); this.salePrice.Text = room.salePrice.ToString(); this.sortid.Text = room.sortid.ToString(); this.facilities.Value = room.facilities; } IList <Model.wx_hotel_roompic> itemlist = iBll.GetModelList("roomid=" + roomid + " order by id asc"); if (itemlist != null && itemlist.Count > 0) { int count = itemlist.Count; Model.wx_hotel_roompic itemEntity = new Model.wx_hotel_roompic(); for (int i = 1; i <= count; i++) { itemEntity = itemlist[(i - 1)]; title = this.FindControl("title" + i) as TextBox; sortpicid = this.FindControl("sortpicid" + i) as TextBox; roomPic = this.FindControl("roomPic" + i) as TextBox; roomPictz = this.FindControl("roomPictz" + i) as TextBox; title.Text = itemEntity.title; sortpicid.Text = itemEntity.sortpicid.ToString(); roomPic.Text = itemEntity.roomPic.ToString(); roomPictz.Text = itemEntity.roomPictz.ToString(); } } }