Пример #1
0
        /// <summary>
        /// 绑定游客信息
        /// </summary>
        protected void InitVistorsList(int traffIcID, DateTime dt)
        {
            int adultNum    = 0;
            int childrenNum = 0;
            IList <EyouSoft.Model.TourStructure.SongJiJiHuaBiao> List = new EyouSoft.BLL.TourStructure.TourOrder(this.SiteUserInfo).GetSongJiJiHuaBiao(traffIcID, dt);

            if (List != null && List.Count > 0)
            {
                adultNum    = List.Sum(p => p.ChenRenShu);
                childrenNum = List.Sum(p => p.ErTongShu);
                this.repVisitorsList.DataSource = List;
                this.repVisitorsList.DataBind();
            }
            this.litAdultNum.Text    = adultNum.ToString();
            this.litChildRenNum.Text = childrenNum.ToString();
            this.litCountNum.Text    = (adultNum + childrenNum).ToString();
        }