/// <summary> /// 页面初始化方法 /// </summary> /// <param name="teamNumber">团队编号</param> /// <param name="teamName">团队名称</param> /// <param name="dayCount">天数</param> /// <param name="beginDate">开始日期</param> /// <param name="endDate">结束日期</param> protected void DataInit(string teamNumber, string routeName, int?dayCount, DateTime?beginDate, DateTime?endDate, int?areaId, int[] SellerId, int[] CoordinatorId, string orderName) { //声明查询对象 EyouSoft.Model.TourStructure.TourSearchInfo searchModel = new EyouSoft.Model.TourStructure.TourSearchInfo(); //团号查询 searchModel.TourCode = teamNumber; //线路名称 searchModel.RouteName = routeName; //游客姓名 searchModel.YouKeName = orderName; //团队天数 searchModel.TourDays = dayCount; //出团日期 searchModel.SDate = beginDate; //截止日期 searchModel.EDate = endDate; //线路区域编号 searchModel.AreaId = areaId; //销售员编号 searchModel.Sellers = SellerId; //计调员编号 searchModel.Coordinators = CoordinatorId; searchModel.TourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus?)Utils.GetEnumValue(typeof(EyouSoft.Model.EnumType.TourStructure.TourStatus), Utils.GetQueryStringValue("tourStatus"), null); //人数、团款合计 int peopleSum = 0; decimal paraSum = 0; //声明bll对象 EyouSoft.BLL.TourStructure.Tour bllOrder = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo); //获得团队计划集合 IList <EyouSoft.Model.TourStructure.LBTeamTourInfo> list = bllOrder.GetToursTeam(SiteUserInfo.CompanyID, pageSize, pageIndex, ref recordCount, searchModel); bllOrder.GetToursTeamHeJi(SiteUserInfo.CompanyID, searchModel, out peopleSum, out paraSum); //判断集合是否有数据 if (list != null && list.Count > 0) { lt_peopleNum.Text = peopleSum.ToString(); lt_paraSum.Text = "¥" + paraSum.ToString("0.00"); //页面控件数据绑定 this.rptList.DataSource = list; this.rptList.DataBind(); //设置分页 BindPage(); //不显示无数据提示 lblMsg.Visible = false; } else { lt_paraSum.Visible = false; lt_peopleNum.Visible = false; //没有数据隐藏分页控件 this.ExportPageInfo1.Visible = false; lblMsg.Visible = true; } }