/// <summary> /// 初始化 /// </summary> private void InitPage() { if (Request.QueryString["TourID"] != null && !string.IsNullOrEmpty(Request.QueryString["TourID"])) { TourID = Utils.InputText(Request.QueryString["TourID"]); //获取批发商团队信息集合 EyouSoft.IBLL.TourStructure.ITourOrder Ibll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourOrder> lists = Ibll.GetOrderList(SellCompanyID, null, TourID, TourNo, "", null, null, null); if (lists != null && lists.Count > 0) { RouteName = lists[0].RouteName; LeaveTime = lists[0].LeaveDate.ToShortDateString(); if (!string.IsNullOrEmpty(Request.QueryString["OrderID"])) { ltrBookName.Text = "订单人员名单"; IList <EyouSoft.Model.TourStructure.TourOrder> bindList = ((List <EyouSoft.Model.TourStructure.TourOrder>)lists).FindAll(item => { return(item.ID == OrderID); }); rptBookingList.DataSource = bindList; rptBookingList.DataBind(); } else { rptBookingList.DataSource = lists; rptBookingList.DataBind(); } } lists = null; Ibll = null; } }
/// <summary> /// 绑定子Repeater数据 /// </summary> /// <param name="rptChild">Repeater</param> /// <param name="HavingModel">拥有订单的团队信息业务实体</param> private void Binding_OrderHistoryChild(Repeater rptChild, EyouSoft.Model.TourStructure.HavingOrderTourInfo HavingModel) { EyouSoft.IBLL.TourStructure.ITourOrder Ibll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourOrder> TourOrderlists = new List <EyouSoft.Model.TourStructure.TourOrder>(); TourOrderlists = Ibll.GetOrderList(CompanyId, UserId, HavingModel.ID, "", null, null, null, null); //绑定数据 rptChild.DataSource = TourOrderlists; rptChild.DataBind(); HavingModel = null; TourOrderlists = null; Ibll = null; }
/// <summary> /// 绑定子Repeater数据 /// </summary> /// <param name="rptChild">Repeater</param> /// <param name="HavingModel">拥有订单的团队信息业务实体</param> private void Binding_OrderProcessedChild(Repeater rptChild, EyouSoft.Model.TourStructure.HavingOrderTourInfo HavingModel) { EyouSoft.IBLL.TourStructure.ITourOrder Ibll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourOrder> TourOrderlists = new List <EyouSoft.Model.TourStructure.TourOrder>(); EyouSoft.Model.TourStructure.OrderState[] orderstate = new EyouSoft.Model.TourStructure.OrderState[] { EyouSoft.Model.TourStructure.OrderState.受理, EyouSoft.Model.TourStructure.OrderState.已成交, EyouSoft.Model.TourStructure.OrderState.已留位, EyouSoft.Model.TourStructure.OrderState.留位过期, EyouSoft.Model.TourStructure.OrderState.处理中 }; if (State != null) { EyouSoft.Model.TourStructure.OrderState[] orderstate2 = new EyouSoft.Model.TourStructure.OrderState[] { (EyouSoft.Model.TourStructure.OrderState)State }; TourOrderlists = Ibll.GetOrderList(CompanyId, UserId, HavingModel.ID, "", null, null, null, orderstate2); } else { TourOrderlists = Ibll.GetOrderList(CompanyId, UserId, HavingModel.ID, "", null, null, null, orderstate); } //绑定数据 rptChild.DataSource = TourOrderlists; rptChild.DataBind(); HavingModel = null; TourOrderlists = null; Ibll = null; }
/// <summary> /// 绑定子Repeater数据 /// </summary> /// <param name="rptChild">Repeater</param> /// <param name="HavingModel">拥有订单的团队信息业务实体</param> private void Binding_OrdersReceivedChild(Repeater rptChild, EyouSoft.Model.TourStructure.HavingOrderTourInfo HavingModel) { EyouSoft.IBLL.TourStructure.ITourOrder Ibll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourOrder> TourOrderlists = new List <EyouSoft.Model.TourStructure.TourOrder>(); EyouSoft.Model.TourStructure.OrderState[] orderstate = new EyouSoft.Model.TourStructure.OrderState[] { EyouSoft.Model.TourStructure.OrderState.未处理, EyouSoft.Model.TourStructure.OrderState.处理中 }; TourOrderlists = Ibll.GetOrderList(CompanyId, null, HavingModel.ID, "", null, null, null, orderstate); //绑定数据 rptChild.DataSource = TourOrderlists; rptChild.DataBind(); HavingModel = null; TourOrderlists = null; Ibll = null; }
private void InitPage() { string BuyCompanyID = Request.QueryString["BuyCompanyID"]; string CompanyId = this.SiteUserInfo.CompanyID; int RecordCount = 0; if (!string.IsNullOrEmpty(BuyCompanyID)) { EyouSoft.IBLL.TourStructure.ITourOrder Ibll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourOrder> TourOrderlists = new List <EyouSoft.Model.TourStructure.TourOrder>(); EyouSoft.Model.TourStructure.OrderState? Sate = null; if (!string.IsNullOrEmpty(Request.QueryString["OrderState"])) { Sate = (EyouSoft.Model.TourStructure.OrderState)Enum.Parse(typeof(EyouSoft.Model.TourStructure.OrderState), Request.QueryString["OrderState"]); ltrOrderSateText.Text = Sate.ToString() + "列表"; TradedState = Sate.ToString(); } TourOrderlists = Ibll.GetOrderList(PageSize, PageIndex, ref RecordCount, 1, CompanyId, BuyCompanyID, Sate); //绑定数据 rptHasTradedTeam.DataSource = TourOrderlists; rptHasTradedTeam.DataBind(); TourOrderlists = null; Ibll = null; if (rptHasTradedTeam.Items.Count < 1) { NoData.Visible = true; } this.ExportPageInfo1.intPageSize = PageSize; this.ExportPageInfo1.CurrencyPage = PageIndex; this.ExportPageInfo1.intRecordCount = RecordCount; this.ExportPageInfo1.PageLinkURL = Request.Url.ToString() + "&"; } else { NoData.Visible = true; } }
/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; BindRouteCompany(); #region 初始化查询条件 EyouSoft.Model.TourStructure.OrderState?State = null; if (Request.QueryString["ContionType"] != null) { ContionType = Utils.GetQueryStringValue("ContionType"); switch (ContionType.ToLower()) { case "transaction": //已成交订单 State = EyouSoft.Model.TourStructure.OrderState.已成交; break; case "untreated": //未处理订单 State = EyouSoft.Model.TourStructure.OrderState.未处理; break; case "reservation": //已留位订单 State = EyouSoft.Model.TourStructure.OrderState.已留位; break; case "notaccepted": //不受理 State = EyouSoft.Model.TourStructure.OrderState.受理; break; case "reservationdue": //留位过期 State = EyouSoft.Model.TourStructure.OrderState.留位过期; break; default: State = null; break; } } intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1); BeginDate = Utils.GetDateTimeNullable(Request.QueryString["BeginDate"]); if (!string.IsNullOrEmpty(Request.QueryString["BeginDate"])) { ShowBeginDate = Utils.GetDateTime(Request.QueryString["BeginDate"]).ToShortDateString(); } EndDate = Utils.GetDateTimeNullable(Request.QueryString["EndDate"]); if (!string.IsNullOrEmpty(Request.QueryString["EndDate"])) { ShowEndDate = Utils.GetDateTime(Request.QueryString["EndDate"]).ToShortDateString(); } OrderBeginDate = Utils.GetDateTimeNullable(Request.QueryString["OrderBeginDate"]); if (!string.IsNullOrEmpty(Request.QueryString["OrderBeginDate"])) { ShowOrderBeginDate = Utils.GetDateTime(Request.QueryString["OrderBeginDate"]).ToShortDateString(); } OrderEndDate = Utils.GetDateTimeNullable(Request.QueryString["OrderEndDate"]); if (!string.IsNullOrEmpty(Request.QueryString["OrderEndDate"])) { ShowOrderEndDate = Utils.GetDateTime(Request.QueryString["OrderEndDate"]).ToShortDateString(); } RouteName = Utils.InputText(Request.QueryString["RouteName"]); RouteName = Server.UrlDecode(RouteName).Trim(); //专线供应商 if (Request.QueryString["RouteCompany"] != null && !string.IsNullOrEmpty(Request.QueryString["RouteCompany"])) { SellCompanyId = Utils.InputText(Request.QueryString["RouteCompany"]); dplRouteCompany.SelectedValue = SellCompanyId; } AreaId = Utils.GetInt(Request.QueryString["AreaId"], 0); #endregion EyouSoft.IBLL.TourStructure.ITourOrder Ibll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourOrder> TourOrderlists = new List <EyouSoft.Model.TourStructure.TourOrder>(); TourOrderlists = Ibll.GetOrderList(intPageSize, intPageIndex, ref intRecordCount, 1, SellCompanyId, BuyCompanyId, RouteName, AreaId, BeginDate, EndDate, State, OrderBeginDate, OrderEndDate); rptAllOrders.DataSource = TourOrderlists; rptAllOrders.DataBind(); if (rptAllOrders.Items.Count < 1) { NoData.Visible = true; } Ibll = null; TourOrderlists = null; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; }
/// <summary> /// 初始化 /// </summary> private void InitPage() { BindRouteCompany(); int intRecordCount = 0; EyouSoft.Model.TourStructure.OrderState?State = null; #region 初始化查询条件 if (!string.IsNullOrEmpty(Request.QueryString["ContionType"])) { ContionType = Request.QueryString["ContionType"].ToLower(); switch (ContionType) { case "transaction": //已成交订单 State = EyouSoft.Model.TourStructure.OrderState.已成交; break; case "untreated": //未处理订单 State = EyouSoft.Model.TourStructure.OrderState.未处理; break; case "reservation": //已留位订单 State = EyouSoft.Model.TourStructure.OrderState.已留位; break; default: State = null; break; } } //筛选时间:下单日期 if (Request.QueryString["QueryTime"] != null && !string.IsNullOrEmpty(Request.QueryString["QueryTime"])) { int days = Utils.GetInt(Request.QueryString["QueryTime"], 0); if (days < 1) { OrderBeginDate = null; OrderEndDate = null; } else { OrderBeginDate = DateTime.Now.AddDays(-days); OrderEndDate = DateTime.Now; } dplselect_Time.SelectedValue = Utils.GetInt(Request.QueryString["QueryTime"], 30).ToString(); } else { OrderBeginDate = DateTime.Now.AddDays(-30); OrderEndDate = DateTime.Now; } intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1); BeginDate = Utils.GetDateTimeNullable(Request.QueryString["BeginDate"]); if (!string.IsNullOrEmpty(Request.QueryString["BeginDate"])) { ShowBeginDate = Utils.GetDateTime(Request.QueryString["BeginDate"]).ToShortDateString(); } EndDate = Utils.GetDateTimeNullable(Request.QueryString["EndDate"]); if (!string.IsNullOrEmpty(Request.QueryString["EndDate"])) { ShowEndDate = Utils.GetDateTime(Request.QueryString["EndDate"]).ToShortDateString(); } if (Request.QueryString["OrderBeginDate"] != null) { OrderBeginDate = Utils.GetDateTimeNullable(Request.QueryString["OrderBeginDate"]); } if (!string.IsNullOrEmpty(Request.QueryString["OrderBeginDate"])) { ShowOrderBeginDate = Utils.GetDateTime(Request.QueryString["OrderBeginDate"]).ToShortDateString(); } if (Request.QueryString["OrderEndDate"] != null) { OrderEndDate = Utils.GetDateTimeNullable(Request.QueryString["OrderEndDate"]); } if (!string.IsNullOrEmpty(Request.QueryString["OrderEndDate"])) { ShowOrderEndDate = Utils.GetDateTime(Request.QueryString["OrderEndDate"]).ToShortDateString(); } RouteName = Utils.GetQueryStringValue("RouteName"); RouteName = Server.UrlDecode(RouteName).Trim(); //专线供应商 SellCompanyId = Utils.GetQueryStringValue("RouteCompany"); dplRouteCompany.SelectedValue = SellCompanyId; #endregion EyouSoft.IBLL.TourStructure.ITourOrder Ibll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourOrder> TourOrderlists = new List <EyouSoft.Model.TourStructure.TourOrder>(); //最近交易订单 TourOrderlists = Ibll.GetOrderList(intPageSize, intPageIndex, ref intRecordCount, 1, SellCompanyId, BuyCompanyId, RouteName, 0, BeginDate, EndDate, State, OrderBeginDate, OrderEndDate); rpt_OrdersOutSource.DataSource = TourOrderlists; rpt_OrdersOutSource.DataBind(); //是否有订单信息 if (rpt_OrdersOutSource.Items.Count < 1) { this.NoData.Visible = true; } this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; Ibll = null; TourOrderlists = null; }