Exemple #1
0
    protected void ShowDetail(int lineID)
    {
        List <LineDetailInfo> details = LineBLL.GetLineDetails(lineID);

        ltDetail.Text = "";
        foreach (LineDetailInfo model in details)
        {
            string title   = "<p style='color:#333333;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/>";
        }
    }
Exemple #2
0
    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/>";
        }
    }