Пример #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            Utils.GetCompanyChildAccount(dplUserList, CompanyId);

            int intRecordCount = 0;

            intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            UserId       = Request.QueryString["UserID"];
            dplUserList.SelectedValue = UserId;
            //switch (OrderState)
            //{
            //    case "0":
            //        State = EyouSoft.Model.TourStructure.OrderState.已成交;
            //        break;
            //    case "1":
            //        State = EyouSoft.Model.TourStructure.OrderState.已留位;
            //        break;
            //    case "2":
            //        State = EyouSoft.Model.TourStructure.OrderState.留位过期;
            //        break;
            //    case "3":
            //        State = EyouSoft.Model.TourStructure.OrderState.处理中;
            //        break;
            //    case "4":
            //        State = EyouSoft.Model.TourStructure.OrderState.不受理;
            //        break;
            //    default:
            //        State = null;
            //        break;
            //}
            EyouSoft.IBLL.TourStructure.ITour Tourbll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            HavingOrderLists = new List <EyouSoft.Model.TourStructure.HavingOrderTourInfo>();
            //获取已处理订单的团队信息集合
            HavingOrderLists = Tourbll.GetHandledOrderTours(intPageSize, intPageIndex, ref intRecordCount, CompanyId, UserId, State);
            this.rpt_OrderProcessed.DataSource = HavingOrderLists;
            this.rpt_OrderProcessed.DataBind();
            this.ExportPageInfo1.intPageSize    = intPageSize;
            this.ExportPageInfo1.CurrencyPage   = intPageIndex;
            this.ExportPageInfo1.intRecordCount = intRecordCount;
            this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
            Tourbll          = null;
            HavingOrderLists = null;
            if (rpt_OrderProcessed.Items.Count <= 0)
            {
                this.NoData.Visible = true;
            }
        }