Exemplo n.º 1
0
        /// <summary>
        /// 绑定订单信息列表
        /// </summary>
        protected void BindLineInfo(string OrderID, string LineName, DateTime?StarTime, DateTime?EndTime, DateTime?OrderStartDate, DateTime?OrderEndDate, int?xlid)
        {
            EyouSoft.Model.TourStructure.TourOrderSearchInfo TourOrderSearchInfo = new EyouSoft.Model.TourStructure.TourOrderSearchInfo();
            //当前页数
            PageIndex = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetQueryStringValue("Page"), 1);
            //订单编号
            TourOrderSearchInfo.OrderNo = OrderID;
            //线路名称
            TourOrderSearchInfo.RouteName = LineName;
            //出团开始日期
            TourOrderSearchInfo.LeaveDateFrom = StarTime;
            //出团结束日期
            TourOrderSearchInfo.LeaveDateTo = EndTime;
            //订单开始时间
            TourOrderSearchInfo.CreateDateFrom = OrderStartDate;
            //订单结束时间
            TourOrderSearchInfo.CreateDateTo = OrderEndDate;
            //线路区域ID
            TourOrderSearchInfo.AreaId = xlid;
            //订单信息业务逻辑类
            EyouSoft.BLL.TourStructure.TourOrder BllTourOrder = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo);
            //订单信息实体类
            IList <EyouSoft.Model.TourStructure.TourOrder> TourOrderlist = new List <EyouSoft.Model.TourStructure.TourOrder>();

            //获取组团端订单中心订单信息集合
            TourOrderlist = BllTourOrder.GetTourOrderList(PageSize, PageIndex, ref RecordCount, SiteUserInfo.TourCompany.TourCompanyId, TourOrderSearchInfo);
            if (TourOrderlist != null && TourOrderlist.Count > 0)
            {
                this.rep_List.DataSource = TourOrderlist;
                this.rep_List.DataBind();
            }
            else
            {
                this.ExporPageInfoSelect1.Visible = false;
                this.rep_List.EmptyText           = "<tr><td height='30px' bgcolor='#e3f1fc' colspan='11' align='center'>暂时没有数据!</td></tr>";
            }
            TourOrderSearchInfo = null;
            BllTourOrder        = null;
            TourOrderlist       = null;
            BinPage();
        }