public void list(int hotelid) { hotel = hotelBll.GetModel(hotelid); if (hotel != 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.emailPws.Text = hotel.emailPws; this.coverPic.Text = hotel.coverPic; this.topPic.Text = hotel.topPic; this.orderLimit.Text = hotel.orderLimit.ToString(); this.listMode.SelectedValue = hotel.listMode.ToString(); this.messageNotice.SelectedValue = hotel.messageNotice.ToString(); this.pwd.Text = hotel.pwd; this.hotelIntroduct.Value = hotel.hotelIntroduct; this.orderRemark.Value = hotel.orderRemark; this.txtLatXPoint.Text = hotel.xplace.ToString(); this.txtLngYPoint.Text = hotel.yplace.ToString(); ClientScript.RegisterStartupScript(GetType(), "message", "<script language='javascript'> $(\"#baiduframe\").attr(\"src\", \"../lbs/MapSelectPoint.aspx?yjindu=" + hotel.yplace.Value.ToString() + "&xweidu=" + hotel.xplace.Value.ToString() + "\");</script>"); } IList <Model.wx_hotel_pic> itemlist = iBll.GetModelList("hotelid=" + hotelid + " order by id asc"); if (itemlist != null && itemlist.Count > 0) { int count = itemlist.Count; Model.wx_hotel_pic itemEntity = new Model.wx_hotel_pic(); for (int i = 1; i <= count; i++) { itemEntity = itemlist[(i - 1)]; title = this.FindControl("title" + i) as TextBox; sortid = this.FindControl("sortid" + i) as TextBox; picUrl = this.FindControl("picUrl" + i) as TextBox; picTiaozhuan = this.FindControl("picTiaozhuan" + i) as TextBox; title.Text = itemEntity.title; sortid.Text = itemEntity.sortid.ToString(); picUrl.Text = itemEntity.picUrl.ToString(); picTiaozhuan.Text = itemEntity.picTiaozhuan.ToString(); } } }
public void ShowInfo(int hotelid) { Model.wx_hotels_info hotel = hotelBll.GetModel(hotelid); if (hotel != null) { this.lblHotelCode.Text = hotel.HotelCode; this.lblHotelName.Text = hotel.hotelName; this.lblOperator.Text = hotel.Operator; this.hotelAddress.Text = hotel.hotelAddress; this.lblHotelPhone.Text = hotel.hotelPhone; this.mobilPhone.Text = hotel.mobilPhone; this.coverPic.Text = hotel.coverPic; this.topPic.Text = hotel.topPic; this.hotelIntroduct.Value = hotel.hotelIntroduct; this.txtLatXPoint.Text = hotel.xplace.ToString(); this.txtLngYPoint.Text = hotel.yplace.ToString(); if (hotel.xplace.HasValue && hotel.yplace.HasValue) { ClientScript.RegisterStartupScript(GetType(), "message", "<script language='javascript'> $(\"#baiduframe\").attr(\"src\", \"../../weixin/map/qqmap/qqmap_getLocation.html?lng=" + hotel.yplace.Value.ToString() + "&lat=" + hotel.xplace.Value.ToString() + "\");</script>"); } } IList <Model.wx_hotel_pic> itemlist = iBll.GetModelList("hotelid=" + hotelid + " order by id asc"); if (itemlist != null && itemlist.Count > 0) { int count = itemlist.Count; Model.wx_hotel_pic itemEntity = new Model.wx_hotel_pic(); for (int i = 1; i <= count; i++) { itemEntity = itemlist[(i - 1)]; title = this.FindControl("title" + i) as TextBox; sortid = this.FindControl("sortid" + i) as TextBox; picUrl = this.FindControl("picUrl" + i) as TextBox; picTiaozhuan = this.FindControl("picTiaozhuan" + i) as TextBox; title.Text = itemEntity.title; sortid.Text = itemEntity.sortid.ToString(); picUrl.Text = itemEntity.picUrl.ToString(); picTiaozhuan.Text = itemEntity.picTiaozhuan.ToString(); } } }
public void ShowInfo(int hotelid) { Model.wx_hotels_info hotel = hotelBll.GetModel(hotelid); if (hotel != null) { this.lblHotelCode.Text = hotel.HotelCode; this.lblHotelName.Text = hotel.hotelName; this.lblOperator.Text = hotel.Operator; this.hotelAddress.Text = hotel.hotelAddress; this.lblHotelPhone.Text = hotel.hotelPhone; this.mobilPhone.Text = hotel.mobilPhone; this.coverPic.Text = hotel.coverPic; this.topPic.Text = hotel.topPic; this.hotelIntroduct.Value = hotel.hotelIntroduct; this.txtLatXPoint.Text = hotel.xplace.ToString(); this.txtLngYPoint.Text = hotel.yplace.ToString(); if (hotel.xplace.HasValue && hotel.yplace.HasValue) { ClientScript.RegisterStartupScript(GetType(), "message", "<script language='javascript'> $(\"#baiduframe\").attr(\"src\", \"../../weixin/map/qqmap/qqmap_getLocation.html?lng=" + hotel.yplace.Value.ToString() + "&lat=" + hotel.xplace.Value.ToString() + "\");</script>"); } } IList<Model.wx_hotel_pic> itemlist = iBll.GetModelList("hotelid=" + hotelid + " order by id asc"); if (itemlist != null && itemlist.Count > 0) { int count = itemlist.Count; Model.wx_hotel_pic itemEntity = new Model.wx_hotel_pic(); for (int i = 1; i <= count; i++) { itemEntity = itemlist[(i - 1)]; title = this.FindControl("title" + i) as TextBox; sortid = this.FindControl("sortid" + i) as TextBox; picUrl = this.FindControl("picUrl" + i) as TextBox; picTiaozhuan = this.FindControl("picTiaozhuan" + i) as TextBox; title.Text = itemEntity.title; sortid.Text = itemEntity.sortid.ToString(); picUrl.Text = itemEntity.picUrl.ToString(); picTiaozhuan.Text = itemEntity.picTiaozhuan.ToString(); } } }