protected void BindData() { if (MyLine == null) { return; } ltNotice.Text = MyLine.SignUpNotice; ltDesc.Text = MyLine.LineDesc; ltImage.Text = SiteUtility.ShowImage(MyLine.CoverPath, 200, 200, true); ltLineName.Text = MyLine.Name; ltGoTravel.Text = MyLine.GoTravel; ltBackTravel.Text = MyLine.BackTravel; TravelGroupInfo group = MyGroups.Find(s => s.ID == ddlGroup.SelectedValue.ToArrowInt()); if (group == null) { return; } ltBackDate.Text = group.BackDate.ToDateOnlyString(); ltPrice.Text = CurrentMember == null?group.OuterPrice.ToString() : group.InnerPrice.ToString(); ltNum.Text = group.TotalNum.ToString(); ltRemain.Text = group.RemainNum.ToString(); ltTime.Text = group.GatheringTime; ltPlace.Text = group.GatheringPlace; List <LineDetailInfo> details = LineBLL.GetLineDetails(MyLine.ID); ltDetail.Text = ""; foreach (LineDetailInfo model in details) { string title = "<p style='color:red;font-weight:bold;font-size:14px'>第" + model.SortOrder + "天:" + model.Title + "</p>"; string pic = "<p>" + SiteUtility.ShowAllImage(model.DayPics, 150, 150) + "</p>"; string content = "<p>" + model.DayDesc.NewLineCharToBr() + "</p>"; string notice = "<p>温馨提示:" + model.WarmTips + "</p>"; ltDetail.Text += title + pic + content + notice + "<hr/>"; } }
/// <summary> /// 显示默认图片 /// </summary> /// <param name="coverPath"></param> /// <param name="width"></param> /// <param name="height"></param> /// <returns></returns> public string getCoverFullPath(string coverPath, int width, int height) { return(SiteUtility.ShowImage(coverPath, width, height)); }