/// <summary> /// 初始化 /// </summary> private void InitPage() { BindingPriceCustomerLeaveDetail(); #region 预订 EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo Model = new EyouSoft.Model.TourStructure.TourInfo(); Model = Ibll.GetTourInfo(TourID); if (Model != null) { FromCompanyID = Model.CompanyID; RouteName = Model.RouteName; LeaveDate = Model.LeaveDate.ToShortDateString(); leaveDateDay = Utils.ConvertWeekDayToChinese(Model.LeaveDate); RemnantNumber = Model.RealRemnantNumber; Traffic = Model.LeaveTraffic; if (Model.ServiceStandard != null) { SpecialContent = Model.ServiceStandard.SpeciallyNotice; } int HasIn = Model.CollectAdultNumber + Model.CollectChildrenNumber; if (HasIn >= Model.PlanPeopleCount) { EyouSoft.Common.Function.MessageBox.ResponseScript(this.Page, "alert('实收人数已经等于或者大于实际计划人数!');closeWin()"); Ibll = null; Model = null; return; } } Ibll = null; Model = null; #endregion }
protected void Page_Load(object sender, EventArgs e) { if (!IsLogin)//是否登录 { EyouSoft.Security.Membership.UserProvider.RedirectLoginOpenTopPage("/Default.aspx"); return; } if (!IsCompanyCheck) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), "<script>;alert('尚未审核通过!');if(window.parent.Boxy){window.parent.Boxy.getIframeDialog('" + Request.QueryString["iframeId"] + "').hide();}else{window.close();}</script>"); return; } //是否开通组团服务 if (!SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.组团)) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), "<script>;alert('你尚未开通组团服务!');if(window.parent.Boxy){window.parent.Boxy.getIframeDialog('" + Request.QueryString["iframeId"] + "').hide();}else{window.close();}</script>"); return; } tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); tourId = Utils.GetQueryStringValue("tourid"); //初始化团队信息 if (tourId != "") { adultNum = Utils.GetInt(Request.QueryString["adultnum"], 0); //获取成人数 childNum = Utils.GetInt(Request.QueryString["childnum"], 0); //获取儿童数 LoadRouteOrder(tourId); } //下订单 if (Page.IsPostBack) { SaveOrder(); } }
/// <summary> /// 删除团队 /// </summary> private void Delete() { if (!IsGrantDelete) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]"); Response.End(); } string TourID = Utils.GetQueryStringValue("TourID").Trim(','); if (!string.IsNullOrEmpty(TourID)) { EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); bool isTrue = Ibll.DeleteByVirtual(TourID); Ibll = null; if (isTrue) { Response.Clear(); Response.Write("[{isSuccess:true,ErrorMessage:'操作成功!'}]"); Response.End(); } else { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'操作失败!'}]"); Response.End(); } } }
/// <summary> /// 设置剩余人数 /// </summary> private void SetTourRemnantNumber() { if (!IsGrantUpdate) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]"); Response.End(); } EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); string ItemTourID = Utils.GetQueryStringValue("SingleTourID"); int RemnantNumber = Utils.GetInt(Utils.GetQueryStringValue("RemnantNumber")); bool isTrue = Ibll.SetTourRemnantNumber(ItemTourID, RemnantNumber); Ibll = null; if (isTrue) { Response.Clear(); Response.Write("[{isSuccess:true,ErrorMessage:'操作成功!'}]"); Response.End(); } else { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'操作失败!'}]"); Response.End(); } }
protected void BindTour() { if (!CheckGrant(TravelPermission.组团_线路散客订单管理)) { Utils.ResponseNoPermit(); return; } pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); //获取当前页 string companyId = Utils.GetQueryStringValue("companyid"); //专线商ID EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(companyId); //获取公司名,许可证,负责人 if (companyModel != null) { companyName = companyModel.CompanyName; cer = companyModel.License; admin = companyModel.ContactInfo.ContactName; } //获取产品列表 EyouSoft.IBLL.TourStructure.ITour tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourBasicInfo> tourInfoList = tourBll.GetNotStartingTours(pageSize, pageIndex, ref recordCount, companyId, null); if (tourInfoList != null && tourInfoList.Count > 0) { rl_rpt_TourList.DataSource = tourInfoList; rl_rpt_TourList.DataBind(); BindPage();//设置分页 } else { rl_rpt_TourList.EmptyText = "暂无团队信息"; this.ExportPageInfo1.Visible = false; } tourInfoList = null; }
/// <summary> /// 设置团队类型,即推广状态 /// </summary> private void SetTourMarkerNote() { if (!IsGrantUpdate) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]"); Response.End(); } EyouSoft.Model.TourStructure.TourSpreadState SpreadState = EyouSoft.Model.TourStructure.TourSpreadState.None; switch (Utils.GetFormValue("TourMarkerNote")) { case "1": //推荐精品 SpreadState = EyouSoft.Model.TourStructure.TourSpreadState.推荐精品; break; case "2": //促销 SpreadState = EyouSoft.Model.TourStructure.TourSpreadState.促销; break; case "3": //最新 SpreadState = EyouSoft.Model.TourStructure.TourSpreadState.最新; break; case "4": //品质 SpreadState = EyouSoft.Model.TourStructure.TourSpreadState.品质; break; case "5": //纯玩 SpreadState = EyouSoft.Model.TourStructure.TourSpreadState.纯玩; break; default: //none SpreadState = EyouSoft.Model.TourStructure.TourSpreadState.None; break; } string[] TourIDs = Utils.GetFormValue("TourID").Trim(',').Split(','); //推广说明 string Description = Utils.GetFormValue("Description"); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); bool isTrue = Ibll.SetTourSpreadState(SpreadState, Description, TourIDs); Ibll = null; if (isTrue) { Response.Clear(); Response.Write("[{isSuccess:true,ErrorMessage:'操作成功!'}]"); Response.End(); } else { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'操作失败!'}]"); Response.End(); } }
/// <summary> /// 初始化 /// </summary> private void InitPage() { if (!string.IsNullOrEmpty(TourID)) { EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = new EyouSoft.Model.TourStructure.TourInfo(); model = Ibll.GetTourInfo(TourID); if (model != null) { TemplateTourID = model.ParentTourID; RouteName = model.RouteName; RouteArea = model.AreaId; AreaName = EyouSoft.BLL.SystemStructure.SysArea.CreateInstance().GetSysAreaModel(model.AreaId).AreaName; LeaveDate = model.LeaveDate.ToShortDateString(); LeaveTime = model.LeaveDate; LeaveDateDayOfWeek = model.LeaveDate.DayOfWeek.ToString(); PeerAdultPrice = string.Format("{0:F2}", model.TravelAdultPrice); PeerChildrenPrice = string.Format("{0:F2}", model.TravelChildrenPrice); StoreAdultPrice = string.Format("{0:F2}", model.RetailAdultPrice); StoreChildrenPrice = string.Format("{0:F2}", model.RetailChildrenPrice); RemnantNumber = model.RemnantNumber; #region 报价等级 List <EyouSoft.Model.TourStructure.TourPriceDetail> priceList = new List <EyouSoft.Model.TourStructure.TourPriceDetail>(); priceList = (List <EyouSoft.Model.TourStructure.TourPriceDetail>)model.TourPriceDetail; AddTourAgain_tourpricestand.TourPriceDetails = model.TourPriceDetail; IList <EyouSoft.Model.TourStructure.ChildrenTourInfo> list = Ibll.GetChildrenTours(TemplateTourID); if (list != null && list.Count > 0) { DateTime[] TimeList = new DateTime[list.Count]; TimeList = (from c in list where true select c.LeaveDate).ToArray(); string[] TourCodeList = new string[list.Count]; TourCodeList = (from c in list where true select c.TourCode).ToArray(); IsoDateTimeConverter iso = new IsoDateTimeConverter(); iso.DateTimeFormat = "yyyy-M-d"; this.AddTourAgain_hidChildLeaveDateList.Value = JsonConvert.SerializeObject(TimeList, iso); this.AddTourAgain_hidChildTourCodeList.Value = JsonConvert.SerializeObject(TourCodeList); } priceList = null; #endregion if (model.ReleaseType == 0) { ltrAddNewPlan.Text = string.Format("<a href=\"{0}\" rel='TapAddTourAgain'>增加发布{1}计划</a>", "/routeagency/addstandardtour.aspx", model.AreaName); } else { ltrAddNewPlan.Text = string.Format("<a href=\"{0}\" rel='TapAddTourAgain'>增加发布{1}计划</a>", "/routeagency/addquicktour.aspx", model.AreaName); } } Ibll = null; model = null; } }
/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; #region 初始化查询条件 if (Request.Form[dplArea.UniqueID] == null) { intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1); } CompanyID = this.SiteUserInfo.CompanyID; string StrBeginDate = Request.Form[txtBeginDate.UniqueID] == null ? Request.QueryString["BeginDate"] : Request.Form[txtBeginDate.UniqueID]; string StrEndDate = Request.Form[txtEndDate.UniqueID] == null ? Request.QueryString["EndDate"] : Request.Form[txtEndDate.UniqueID]; BeginDate = Utils.GetDateTimeNullable(StrBeginDate); EndDate = Utils.GetDateTimeNullable(StrEndDate); TourNumber = Utils.InputText(Request.Form[txtTourNumber.UniqueID] == null ? Request.QueryString["TourNumber"] : Request.Form[txtTourNumber.UniqueID]); RouteName = Utils.InputText(Request.Form[txtRouteName.UniqueID] == null ? Request.QueryString["RouteName"] : Request.Form[txtRouteName.UniqueID]); int?AreaId = Utils.GetIntNull(Request.Form[dplArea.UniqueID] == null ? Request.QueryString["AreaId"] : Request.Form[dplArea.UniqueID]); txtBeginDate.Value = StrBeginDate; txtEndDate.Value = StrEndDate; txtRouteName.Value = RouteName; this.txtTourNumber.Value = TourNumber; if (AreaId != null) { dplArea.Items.FindByValue(AreaId.ToString()).Selected = true; } #endregion IList <EyouSoft.Model.TourStructure.TourInfo> TourList = new List <EyouSoft.Model.TourStructure.TourInfo>(); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); TourList = Ibll.GetTours(intPageSize, intPageIndex, ref intRecordCount, CompanyID, TourNumber, RouteName, AreaId, BeginDate, EndDate); rpt_SelectTour.DataSource = TourList; rpt_SelectTour.DataBind(); //是否有出发团队信息信息 if (TourList == null || TourList.Count == 0) { this.NoData.Visible = true; } Ibll = null; TourList = null; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.UrlParams.Add("BeginDate", StrBeginDate); this.ExportPageInfo1.UrlParams.Add("EndDate", StrEndDate); this.ExportPageInfo1.UrlParams.Add("TourNumber", TourNumber); this.ExportPageInfo1.UrlParams.Add("RouteName", RouteName); this.ExportPageInfo1.UrlParams.Add("AreaId", AreaId.ToString()); this.ExportPageInfo1.UrlParams.Add("NeedId", Request.QueryString["NeedId"]); this.ExportPageInfo1.UrlParams.Add("iframeId", Request.QueryString["iframeId"]); this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; }
/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; EyouSoft.Model.TourStructure.SearchTourState SearchState = new EyouSoft.Model.TourStructure.SearchTourState(); dplSearchTourState.DataSource = Enum.GetNames(typeof(EyouSoft.Model.TourStructure.SearchTourState)); dplSearchTourState.DataBind(); #region 初始化查询条件 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(); } TourNumber = Utils.GetQueryStringValue("TourNumber"); string TourSate = Utils.GetQueryStringValue("TourState"); if (!string.IsNullOrEmpty(TourSate)) { SearchState = (EyouSoft.Model.TourStructure.SearchTourState)Enum.Parse(typeof(EyouSoft.Model.TourStructure.SearchTourState), TourSate); dplSearchTourState.Items.FindByText(TourSate).Selected = true; } else { dplSearchTourState.Items.FindByText(EyouSoft.Model.TourStructure.SearchTourState.全部.ToString()).Selected = true; SearchState = EyouSoft.Model.TourStructure.SearchTourState.全部; } #endregion EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); IList <EyouSoft.Model.TourStructure.TourBasicInfo> TourList = new List <EyouSoft.Model.TourStructure.TourBasicInfo>(); TourList = Ibll.GetNotStartingTours(intPageSize, intPageIndex, ref intRecordCount, TemplateTourID, TourNumber, SearchState, BeginDate, EndDate); this.rpt_NotStartingTeamsDetail.DataSource = TourList; this.rpt_NotStartingTeamsDetail.DataBind(); //是否有订单信息 if (rpt_NotStartingTeamsDetail.Items.Count <= 0) { this.NoData.Visible = true; } Ibll = null; TourList = null; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; }
/// <summary> /// 初始化 /// </summary> private void InitPage() { Utils.GetCompanyChildAccount(dplUserList, CompanyId); int intRecordCount = 0; #region 查询条件 intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1); if (Request.QueryString["UserID"] != null && !string.IsNullOrEmpty(Request.QueryString["UserID"])) { UserId = Utils.GetQueryStringValue("UserID");// Request.QueryString["UserID"]; } else { UserId = null; } dplUserList.SelectedValue = UserId; TourDays = Utils.GetIntNull(Request.QueryString["TourDays"]); TourCode = Utils.GetQueryStringValue("TourCode"); RouteName = Utils.GetQueryStringValue("RouteName"); RouteName = Server.UrlDecode(RouteName).Trim(); 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(); } #endregion EyouSoft.IBLL.TourStructure.ITour Tourbll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); HavingOrderLists = new List <EyouSoft.Model.TourStructure.HavingOrderTourInfo>(); //获取历史订单的团队信息集合 HavingOrderLists = Tourbll.GetHistorOrderTours(intPageSize, intPageIndex, ref intRecordCount, CompanyId, UserId, TourCode, RouteName, TourDays, BeginDate, EndDate); this.rpt_OrderHistory.DataSource = HavingOrderLists; this.rpt_OrderHistory.DataBind(); this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.intRecordCount = intRecordCount; Tourbll = null; HavingOrderLists = null; if (rpt_OrderHistory.Items.Count <= 0) { this.NoData.Visible = true; } this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; }
/// <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; } }
/// <summary> /// 出发子团队删除 /// </summary> private void Delete() { //出发团队删除 if (Request.QueryString["TourID"] != null && !string.IsNullOrEmpty(Request.QueryString["TourID"])) { string TourID = Utils.InputText(Request.QueryString["TourID"]); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); bool isTrue = Ibll.DeleteByVirtual(TourID); Ibll = null; if (isTrue) { Response.Clear(); Response.Write("1"); Response.End(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsLogin)//是否登录 { EyouSoft.Security.Membership.UserProvider.RedirectLoginOpenTopPage(Request.UrlReferrer.ToString()); } //if (!CheckGrant(TravelPermission.组团_管理栏目)) //{ // Utils.ResponseNoPermit(); // return; //} favorBll = EyouSoft.BLL.CompanyStructure.CompanyFavor.CreateInstance(); //获取当前页 pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); companyCheckedList = favorBll.GetListByCompanyId(SiteUserInfo.CompanyID); //获取收藏的批发商Id tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); BindCompany(); //绑定所有批发商 }
protected void Page_Load(object sender, EventArgs e) { if (!IsLogin)//是否登录 { EyouSoft.Security.Membership.UserProvider.RedirectLoginOpenTopPage("/Default.aspx"); return; } //if (!CheckGrant(TravelPermission.客户管理_管理栏目)) //{ // Utils.ResponseNoPermit(); // return; //} EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel1 = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID); //是否开通收费MQ //if (!companyModel1.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ)) //{ // Server.Transfer("/SystemSet/ApplyMQ.aspx?iscustomer=yes&urltype=tab", false); // return; //} companyId = Utils.GetQueryStringValue("companyid");//专线商 EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(companyId); companyName = companyModel.CompanyName; cer = companyModel.License; admin = companyModel.ContactInfo.ContactName; //获取当前页 pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); EyouSoft.IBLL.TourStructure.ITour tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); areaBll = EyouSoft.BLL.SystemStructure.SysArea.CreateInstance(); //绑定产品列表 IList <EyouSoft.Model.TourStructure.TourBasicInfo> tourInfoList = tourBll.GetNotStartingTours(pageSize, pageIndex, ref recordCount, companyId, null); if (tourInfoList != null && tourInfoList.Count > 0) { tl_rpt_TourList.DataSource = tourInfoList; tl_rpt_TourList.DataBind(); BindPage(); } else { tl_rpt_TourList.EmptyText = "暂无团队信息"; this.ExportPageInfo1.Visible = false; } tourInfoList = null; }
/// <summary> /// 设置收客状态 /// </summary> private void ChangeState() { if (!IsGrantUpdate) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]"); Response.End(); } EyouSoft.Model.TourStructure.TourState TourState = new EyouSoft.Model.TourStructure.TourState(); switch (Utils.GetQueryStringValue("TourState")) { case "1": TourState = EyouSoft.Model.TourStructure.TourState.手动客满; break; case "2": TourState = EyouSoft.Model.TourStructure.TourState.手动停收; break; default: TourState = EyouSoft.Model.TourStructure.TourState.收客; break; } EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); string[] TourIDs = Utils.GetQueryStringValue("TourID").Trim(',').Split(','); bool isTrue = Ibll.SetTourState(TourState, TourIDs); Ibll = null; if (isTrue) { Response.Clear(); Response.Write("[{isSuccess:true,ErrorMessage:'操作成功!'}]"); Response.End(); } else { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'操作失败!'}]"); Response.End(); } }
/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1); EyouSoft.IBLL.TourStructure.ITour Tourbll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); HavingOrderLists = new List <EyouSoft.Model.TourStructure.HavingOrderTourInfo>(); //获取未处理订单的团队信息集合 HavingOrderLists = Tourbll.GetUndisposedOrderTours(intPageSize, intPageIndex, ref intRecordCount, CompanyId, null); this.rpt_OrdersReceived.DataSource = HavingOrderLists; this.rpt_OrdersReceived.DataBind(); if (rpt_OrdersReceived.Items.Count <= 0) { this.NoData.Visible = true; } Tourbll = null; HavingOrderLists = null; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; }
protected void Page_Load(object sender, EventArgs e) { if (!CheckGrant(TravelPermission.组团_线路采购预定)) { Utils.ResponseNoPermit(); return; } //是否设置目录 if (EyouSoft.BLL.CompanyStructure.CompanyFavor.CreateInstance().GetAllFavorCount(SiteUserInfo.CompanyID) < 1) { rs_rpt_tourList.EmptyText = "<tr><td style='text-align:center'>您尚未添加任何产品供应商,请先<a href='javascript:void(0);' onclick='javascript:$(\"#divDirectoryset\").find(\"a\").click();return false'>挑选专线</a>!</td></tr>"; ListItem cityItem = new ListItem("选择全部出港城市", ""); rs_selCity.Items.Insert(0, cityItem); this.rs_ExportPageInfo1.Visible = false; return; } method = Utils.GetQueryStringValue("method"); cityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); pageIndex = Utils.GetInt(Request.QueryString["Page"], 1); BindTourData(); //绑定团队列表 LoadAreaTypeStateInfo(); //加载筛选条件信息 BindPage(); //设置分页 //恢复搜索条件 if (method == "cityfilt") { rs_selCity.Value = Utils.GetQueryStringValue("cityid");// 出港城市 } else if (method == "search") { rs_selRouteCompany.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["companyid"] ?? "")); rs_txtEndTime.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["endtime"] ?? "")); rs_txtRouteName.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["routename"] ?? "")); rs_txtStartTime.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["starttime"] ?? "")); rs_selRouteArea.Value = Utils.InputText(Server.UrlDecode(Request.QueryString["routearea"] ?? "")); } }
/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; #region 初始化查询条件 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(); } TourNumber = Utils.InputText(Request.QueryString["TourNumber"]); RouteName = Utils.InputText(Request.QueryString["RouteName"]); RouteName = Server.UrlDecode(RouteName).Trim(); Days = Utils.GetIntNull(Request.QueryString["Days"]); #endregion IList <EyouSoft.Model.TourStructure.TourBasicInfo> TourList = new List <EyouSoft.Model.TourStructure.TourBasicInfo>(); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); TourList = Ibll.GetStartingTours(intPageSize, intPageIndex, ref intRecordCount, CompanyID, TourNumber, RouteName, Days, BeginDate, EndDate); rpt_AlreadyStartingTeams.DataSource = TourList; rpt_AlreadyStartingTeams.DataBind(); Ibll = null; TourList = null; //是否有出发团队信息信息 if (rpt_AlreadyStartingTeams.Items.Count <= 0) { this.NoData.Visible = true; } this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; }
/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; string TourID = string.Empty; if (Request.QueryString["TourID"] != null && !string.IsNullOrEmpty(Request.QueryString["TourID"])) { TourID = Utils.InputText(Request.QueryString["TourID"]); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); this.rptRecords.DataSource = Ibll.GetTourVisitedHistorys(intPageSize, intPageIndex, ref intRecordCount, TourID); this.rptRecords.DataBind(); Ibll = null; } this.ExportPageInfo1.LinkType = 4; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; if (rptRecords.Items.Count <= 0) { this.NoData.Visible = true; } }
private void InitPage() { EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID); if (model != null) { TemplateTourID = model.ParentTourID; #region 获取所属公司信息 if (this.IsLogin) { TourContactTel = this.SiteUserInfo.ContactInfo.Tel; TourContact = this.SiteUserInfo.ContactInfo.ContactName; EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID); CompanyName = companyInfoModel.CompanyName; CompanyAddress = companyInfoModel.CompanyAddress; License = companyInfoModel.License; ICompanyInfobll = null; companyInfoModel = null; } else { tbl_Header.Visible = false; //EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); //EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID); //CompanyName = companyInfoModel.CompanyName; //CompanyAddress = companyInfoModel.CompanyAddress; //License = companyInfoModel.License; //TourContactTel = companyInfoModel.ContactInfo.Tel; //TourContact = companyInfoModel.ContactInfo.ContactName; //ICompanyInfobll = null; //companyInfoModel = null; } #endregion #region 获取地接社信息 if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0) { rptTourLocalityInfo.DataSource = model.LocalTravelAgency; rptTourLocalityInfo.DataBind(); } else { HasLocalCompanyInfo = false; } #endregion #region 价格等级信息 IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID); List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>(); UserBackCenter.RouteAgency.CompanyPriceDetail cpModel = null; if (PriceLists != null && PriceLists.Count > 0) { ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item => { cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail(); cpModel.PriceStandName = item.PriceStandName; ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem => { switch (childItem.CustomerLevelType) { case EyouSoft.Model.CompanyStructure.CustomerLevelType.行: cpModel.AdultPrice1 = childItem.AdultPrice; cpModel.ChildrenPrice1 = childItem.ChildrenPrice; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市: cpModel.AdultPrice2 = childItem.AdultPrice; cpModel.ChildrenPrice2 = childItem.ChildrenPrice; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差: cpModel.SingleRoom1 = childItem.AdultPrice; cpModel.SingleRoom2 = childItem.ChildrenPrice; break; } }); newLists.Add(cpModel); cpModel = null; }); this.rptTourPriceDetail.DataSource = newLists; this.rptTourPriceDetail.DataBind(); newLists = null; } PriceLists = null; #endregion #region 团队相关信息 RouteName = model.RouteName; LeaveDate = model.LeaveDate; BackDate = model.ComeBackDate; TourDays = model.TourDays; TourCode = model.TourNo; if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布 { Traffic = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic.Trim()); MeetTourContect = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect.Trim()); CollectionContect = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect.Trim()); //行程信息及相关 rptStandardPlan.DataSource = model.StandardPlan; rptStandardPlan.DataBind(); //服务标准及说明 List <EyouSoft.Model.TourStructure.ServiceStandard> serviceList = new List <EyouSoft.Model.TourStructure.ServiceStandard>(); if (model.ServiceStandard != null) { serviceList.Add(model.ServiceStandard); NotContainService = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.NotContainService); SpeciallyNotice = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice); this.rptServiceStandard.DataSource = serviceList; this.rptServiceStandard.DataBind(); } } else//快速发布 { isStadardType = false; pnlQuickPlan.Visible = true; QuickPlanContent = model.QuickPlan; } #endregion } Ibll = null; model = null; }
protected void btnWordPrint_Click(object sender, EventArgs e) { string PrintTopHtml = Request.Form["hidPrintTopHTML"]; string PrintFooterHtml = Request.Form["hidPrintFooterHTML"]; string PrintMiddleHtml = string.Empty; string saveFileName = HttpUtility.UrlEncode("行程单.doc"); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID); if (model != null) { this.TemplateTourID = model.ParentTourID; #region 价格等级信息 IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID); List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>(); if (PriceLists != null && PriceLists.Count > 0) { PrintMiddleHtml += "<table width=\"720\" border=\"0\" align=\"center\" cellspacing=\"1\" bgcolor=\"#FFFFFF\">"; ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item => { ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem => { switch (childItem.CustomerLevelType) { case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市: PrintMiddleHtml += "<tr><td width=\"70\" align=\"left\" bgcolor=\"#eeeeee\">" + item.PriceStandName + ":</td>"; PrintMiddleHtml += "<td bgcolor=\"#eeeeee\">成人价:<span class=\"bottow_side2\">" + childItem.AdultPrice.ToString("F2") + "</span>元/人"; PrintMiddleHtml += " <td align=\"right\" bgcolor=\"#eeeeee\">儿童价: "; PrintMiddleHtml += "<span class=\"bottow_side2\">" + childItem.ChildrenPrice.ToString("F2") + "</span>元/人</td>"; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差: PrintMiddleHtml += "<td align=\"right\" bgcolor=\"#eeeeee\">单房差:"; PrintMiddleHtml += "<span class=\"bottow_side2\">" + childItem.AdultPrice.ToString("F2") + "</span>元/人</td></tr>"; break; } }); }); newLists = null; PrintMiddleHtml += "</table>"; } PriceLists = null; #endregion } model = null; Ibll = null; Response.ClearContent(); Response.AddHeader("content-disposition", string.Format("attachment;filename={0}", saveFileName)); Response.ContentType = "application/ms-word"; Response.Charset = "utf-8"; Response.ContentEncoding = System.Text.Encoding.UTF8; string wordTemplate = @" <html> <head> <title>打印预览</title> <style type=""text/css""> body {{color:#000000;font-size:12px;font-family:""宋体"";background:#fff; margin:0px;}} img {{border: thin none;}} table {{border-collapse:collapse;width:720px;}} .headertitle {{font-family:""黑体""; font-size:25px; line-height:120%; font-weight:bold;}} .bottow_side2{{background: #EEEEEE none repeat scroll 0 0; border-color: -moz-use-text-color -moz-use-text-color #000000; border-style: none none solid; border-width: 0 0 1px; }} </style> </head> <body> <div id=""divPrintPreview"">{0}{1}{2}</div> </body> </html>"; Response.Write(string.Format(wordTemplate, PrintTopHtml, PrintMiddleHtml, PrintFooterHtml)); Response.End(); }
private void InitPage() { EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID); if (model != null) { TemplateTourID = model.ParentTourID; #region 获取所属公司信息 EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID); CompanyName = companyInfoModel.CompanyName; CompanyAddress = companyInfoModel.CompanyAddress; License = companyInfoModel.License; TourContactFax = companyInfoModel.ContactInfo.Fax; ICompanyInfobll = null; companyInfoModel = null; #endregion #region 获取地接社信息 if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0) { //EyouSoft.Model.TourStructure.TourLocalityInfo localMode = ((List<EyouSoft.Model.TourStructure.TourLocalityInfo>)model.LocalTravelAgency).First(LocalAgency => //{ // return LocalAgency.TourId == TourID; //}); //if (localMode != null) //{ ltrLocalCompanyName.Text = model.LocalTravelAgency[0].LocalCompanyName; ltrLicenseNumber.Text = model.LocalTravelAgency[0].LicenseNumber; //} } #endregion #region 价格等级信息 IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID); List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>(); UserBackCenter.RouteAgency.CompanyPriceDetail cpModel = null; if (PriceLists != null && PriceLists.Count > 0) { ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item => { cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail(); cpModel.PriceStandName = item.PriceStandName; ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem => { switch (childItem.CustomerLevelType) { case EyouSoft.Model.CompanyStructure.CustomerLevelType.行: cpModel.AdultPrice1 = childItem.AdultPrice; cpModel.ChildrenPrice1 = childItem.ChildrenPrice; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市: cpModel.AdultPrice2 = childItem.AdultPrice; cpModel.ChildrenPrice2 = childItem.ChildrenPrice; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差: cpModel.SingleRoom1 = childItem.AdultPrice; cpModel.SingleRoom2 = childItem.ChildrenPrice; break; } }); newLists.Add(cpModel); cpModel = null; }); this.rptTourPriceDetail.DataSource = newLists; this.rptTourPriceDetail.DataBind(); newLists = null; } PriceLists = null; #endregion #region 团队相关信息 RouteName = model.RouteName; LeaveDate = model.LeaveDate; BackDate = model.ComeBackDate; TourDays = model.TourDays; TourCode = model.TourNo; if (((int)model.ReleaseType) == 0)//标注发布 { ltrTraffic.Text = model.LeaveTraffic; ltrMeetTourContect.Text = model.MeetTourContect; ltrCollectionContect.Text = model.CollectionContect; //行程信息及相关 rptStandardPlan.DataSource = model.StandardPlan; rptStandardPlan.DataBind(); //服务标准及说明 List <EyouSoft.Model.TourStructure.ServiceStandard> serviceList = new List <EyouSoft.Model.TourStructure.ServiceStandard>(); if (model.ServiceStandard != null) { serviceList.Add(model.ServiceStandard); this.rptServiceStandard.DataSource = serviceList; this.rptServiceStandard.DataBind(); } } else//快速发布 { pnlServiceStandard.Visible = false; Tr_CollectionContect.Visible = false; Tr_Traffic.Visible = false; QuickPlanContent = model.QuickPlan; } #endregion } Ibll = null; model = null; }
private void InitPage() { EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID); if (model != null) { #region 获取所属公司信息 EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID); CompanyName = companyInfoModel.CompanyName; CompanyAddress = companyInfoModel.CompanyAddress; License = companyInfoModel.License; ICompanyInfobll = null; companyInfoModel = null; #endregion List <EyouSoft.Model.TourStructure.TourPriceDetail> priceList = new List <EyouSoft.Model.TourStructure.TourPriceDetail>(); priceList = (List <EyouSoft.Model.TourStructure.TourPriceDetail>)model.TourPriceDetail; #region 团队报价等级处理 //用于数据绑定 List <CPriceDetail> BindPriceList = new List <CPriceDetail>(); CPriceDetail cModel = null; //该团队的报价等级明细 priceList.ForEach(delegate(EyouSoft.Model.TourStructure.TourPriceDetail item) { cModel = new CPriceDetail(); cModel.PriceStandName = item.PriceStandName; ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>) item.PriceDetail).ForEach(delegate(EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail itemPriceLeave) { switch (itemPriceLeave.CustomerLevelType) { case EyouSoft.Model.CompanyStructure.CustomerLevelType.行: cModel.AdultPrice = itemPriceLeave.AdultPrice; cModel.ChildrenPrice = itemPriceLeave.AdultPrice; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差: cModel.SingleRoom = itemPriceLeave.ChildrenPrice; break; } ; }); BindPriceList.Add(cModel); }); BindPriceList = null; cModel = null; this.rptTourPriceDetail.DataSource = BindPriceList; this.rptTourPriceDetail.DataBind(); #endregion if (((int)model.ReleaseType) == 0) { rptStandardPlan.DataSource = model.StandardPlan; rptStandardPlan.DataBind(); } else { QuickPlanContent = model.QuickPlan; } } Ibll = null; model = null; }
/// <summary> /// 初始化基础信息 /// </summary> private void InitBasicInfo() { if (UserInfoModel != null) { EyouSoft.Model.CompanyStructure.CompanyInfo comModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(UserInfoModel.CompanyID); if (comModel != null) { this.lblLoginUser.Text = "您好," + UserInfoModel.UserName + Utils.GetCompanyLevImg(comModel.CompanyLev) + " 欢迎登录同业114。信息完整度:<a class=\"ff0000\" href='javascript:void(0);' onclick='topTab.open(\"/systemset/companyinfoset.aspx\",\"单位信息\");return false;' >" + (comModel.InfoFull * 100).ToString("00") + "%</a>"; } else { this.lblLoginUser.Text = "您好," + UserInfoModel.UserName + " 欢迎登录同业114。"; } } EyouSoft.IBLL.CompanyStructure.ICompanySetting CSetBll = EyouSoft.BLL.CompanyStructure.CompanySetting.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanySetting CSetModel = CSetBll.GetModel(UserInfoModel.CompanyID); if (CSetModel != null) { switch (CSetModel.FirstMenu) { case EyouSoft.Model.CompanyStructure.MenuSection.专线服务: FirstMenu = "0"; break; case EyouSoft.Model.CompanyStructure.MenuSection.组团服务: FirstMenu = "1"; break; case EyouSoft.Model.CompanyStructure.MenuSection.地接服务: FirstMenu = "2"; break; case EyouSoft.Model.CompanyStructure.MenuSection.景区服务: FirstMenu = "3"; break; default: FirstMenu = "1"; break; } } #region 公告区 EyouSoft.IBLL.SystemStructure.ISummaryCount SummaryBll = EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance(); EyouSoft.Model.SystemStructure.SummaryCount SummaryModel = SummaryBll.GetSummary(); if (SummaryModel != null) { this.lblRouteAgencyCount.Text = (SummaryModel.TravelAgency + SummaryModel.TravelAgencyVirtual).ToString(); this.lblHotelCount.Text = (SummaryModel.Hotel + SummaryModel.HotelVirtual).ToString(); this.lblSightCount.Text = (SummaryModel.Sight + SummaryModel.SightVirtual).ToString(); this.lblCarCount.Text = (SummaryModel.Car + SummaryModel.CarVirtual).ToString(); this.lblShoppingCount.Text = (SummaryModel.Shop + SummaryModel.ShopVirtual).ToString(); } SummaryModel = null; SummaryBll = null; #endregion #region 业114提醒 EyouSoft.Model.CompanyStructure.CompanyRole RoleModel = UserInfoModel.CompanyRole; EyouSoft.Model.CompanyStructure.CompanyType[] enumType = RoleModel.RoleItems; #region 专线和组团显示控制 if (enumType != null && enumType.Length > 0) { foreach (EyouSoft.Model.CompanyStructure.CompanyType type in enumType) { if (type == EyouSoft.Model.CompanyStructure.CompanyType.专线) { IsRouteAgency = true; } else if (type == EyouSoft.Model.CompanyStructure.CompanyType.组团 || type == EyouSoft.Model.CompanyStructure.CompanyType.其他采购商) { IsTourAgency = true; } else if (type == EyouSoft.Model.CompanyStructure.CompanyType.地接) { IsLocalAgency = true; } else if (type == EyouSoft.Model.CompanyStructure.CompanyType.景区) { IsSightAgency = true; } else { IsOther = true; } } if (IsRouteAgency) // 仅为专线 { this.span_RouteAgency.Visible = true; this.ul_RouteAgency.Visible = true; } if (IsTourAgency) // 仅为组团 { this.span_TourAgency.Visible = true; this.ul_TourAgency.Visible = true; } if (IsLocalAgency) //仅为地接 { this.span_ErAgency.Visible = true; this.ul_ErAgency.Visible = true; } if (IsSightAgency) //景区 { this.span_Scenic.Visible = true; this.ul_Scenic.Visible = true; } //if (IsOther) //{ // Utils.ShowError("对不起,您不是旅行社账户!", ""); // this.span_RouteAgency.Visible = false; // this.ul_RouteAgency.Visible = false; // this.span_TourAgency.Visible = false; // this.ul_TourAgency.Visible = false; // this.span_ErAgency.Visible = false; // this.ul_ErAgency.Visible = false; // this.span_Scenic.Visible = true; // this.ul_Scenic.Visible = true; // divNoLocalAgency.Visible = false; //} } #endregion EyouSoft.IBLL.TourStructure.ITour TourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.IBLL.NewTourStructure.ITourList iorderBll = EyouSoft.BLL.NewTourStructure.BTourList.CreateInstance(); EyouSoft.IBLL.NewTourStructure.IPowderList powderBll = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance(); EyouSoft.IBLL.NewTourStructure.IRoute routeBll = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance(); Dictionary <string, int> dic = null; #region 组团提醒 if (IsTourAgency) // 组团提醒 { //获得线路数和团队数 EyouSoft.IBLL.SystemStructure.ISysCity CityBll = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance(); EyouSoft.Model.SystemStructure.SysCity CityModel = CityBll.GetSysCityModel(UserInfoModel.CityId); if (CityModel != null) { this.lblCity.Text = CityModel.CityName; this.lblTemplateTourCount.Text = CityModel.ParentTourCount.ToString(); this.lblChildTourCount.Text = CityModel.TourCount.ToString(); } CityModel = null; CityBll = null; //获得组团订单信息 dic = iorderBll.GetOrderTravelCount(UserInfoModel.CompanyID); if (dic != null) { if (dic.ContainsKey("未发团散客预订单") && dic.ContainsKey("散客订单未处理") && dic.ContainsKey("散客订单预留待付款") && dic.ContainsKey("散客订单已确认")) { this.lblTourOrderFrist.Text = string.Format( " 未发团散客预订单:<a class=\"ff0000\" href=\"/teamservice/fitorders.aspx?goTimeS={0}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString()) + dic["未发团散客预订单"].ToString() + "单</b></a>,"; this.lblTourOrderFrist.Text += string.Format( "其中未处理<a class=\"ff0000\" href=\"/teamservice/fitorders.aspx?goTimeS={3}&status={0},{1},{2}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.组团社待处理, (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.组团社已阅, (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商待处理, DateTime.Now.ToShortDateString()) + dic["散客订单未处理"].ToString() + "单</b></a>,"; this.lblTourOrderFrist.Text += string.Format( "预留待付款<a class=\"ff0000\" href=\"/teamservice/fitorders.aspx?goTimeS={0}&status={1}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString(), (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商预留) + dic["散客订单预留待付款"].ToString() + "单</b></a>,"; this.lblTourOrderFrist.Text += string.Format( "已确认<a href=\"/teamservice/fitorders.aspx?goTimeS={0}&status={1},{2}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString(), (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商已确定, (int)EyouSoft.Model.NewTourStructure.PowderOrderStatus.结单) + dic["散客订单已确认"].ToString() + "单</b></a>"; } if (dic.ContainsKey("未发团团队预订单") && dic.ContainsKey("团队未确认") && dic.ContainsKey("团队已确认")) { this.lblTourOrderSecond.Text = string.Format( "未发团团队预订单:<a class=\"ff0000\" href=\"/teamservice/teamorders.aspx?ref=0&goTimeS={0}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", DateTime.Now.ToShortDateString()) + dic["未发团团队预订单"].ToString() + "单</b></a>,"; this.lblTourOrderSecond.Text += string.Format( "未确认订单<a class=\"ff0000\" href=\"/teamservice/teamorders.aspx?ref=0&goTimeS={1}&status={0}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", (int)EyouSoft.Model.NewTourStructure.TourOrderStatus.未确认, DateTime.Now.ToShortDateString()) + dic["团队未确认"].ToString() + "单</b></a>,"; this.lblTourOrderSecond.Text += string.Format( "已确认<a href=\"/teamservice/teamorders.aspx?ref=0&goTimeS={2}&status={0},{1}\" onclick=\"topTab.open($(this).attr('href'),'我的散拼订单');return false;\"><b>", (int)EyouSoft.Model.NewTourStructure.TourOrderStatus.已确认, (int)EyouSoft.Model.NewTourStructure.TourOrderStatus.结单, DateTime.Now.ToShortDateString()) + dic["团队已确认"].ToString() + "单</b></a>"; } } } #endregion #region 专线提醒 if (IsRouteAgency) { int ComingLeaveTourNumber = TourBll.GetComingExpireTourNumber(); if (ComingLeaveTourNumber > 0) { this.lblComingExpireToursCount.Text = "<img src='" + ImageServerPath + "/images/gantanhao.gif' />您当前共有<a href='/routeagency/notstartingteams.aspx' onclick=\"topTab.open($(this).attr('href'),'未出发团队');return false;\">" + ComingLeaveTourNumber + "个团</a>将于1周后到期,请及时更新计划,以方便组团社查询"; } //获得专线下线路区域和团的数量 IList <EyouSoft.Model.TourStructure.AreaStatInfo> TourByAreaCount = powderBll.GetCurrentUserTourByAreaStats(); if (TourByAreaCount != null && TourByAreaCount.Count > 0) { StringBuilder strTour = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.AreaStatInfo AreaStaModel in TourByAreaCount) { strTour.Append("<a class=\"lan14\" href=\"/routeagency/scatteredfightplan.aspx?lineId=" + AreaStaModel.AreaId.ToString() + "\" onclick=\"topTab.open($(this).attr('href'),'我的散拼计划');return false;\">" + AreaStaModel.AreaName + "(" + AreaStaModel.Number.ToString() + ")</a>"); } this.lblRoutePlanCount.Text = strTour.ToString(); } dic = iorderBll.GetOrderBusinessCount(UserInfoModel.CompanyID); if (dic != null) { //获得专线订单信息 if (dic.ContainsKey("有效散客订单") && dic.ContainsKey("散客订单未处理") && dic.ContainsKey("散客预留待付款") && dic.ContainsKey("散客订单已确认")) { this.lblRouteOrderFrist.Text = "有效散客订单:<a href=\"/routeagency/allfitorders.aspx\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["有效散客订单"].ToString() + "单</b></a>,"; this.lblRouteOrderFrist.Text += "其中未处理<a href=\"/routeagency/allfitorders.aspx?statue=2\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["散客订单未处理"].ToString() + "单</b></a>,"; this.lblRouteOrderFrist.Text += "预留待付款<a href=\"/routeagency/allfitorders.aspx?statue=3\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["散客预留待付款"].ToString() + "单</b></a>,"; this.lblRouteOrderFrist.Text += "已确认:<a href=\"/routeagency/allfitorders.aspx?statue=6\" onclick=\"topTab.open($(this).attr('href'),'所有散拼订单');return false;\"><b>" + dic["散客订单已确认"].ToString() + "单</b></a>"; } if (dic.ContainsKey("团队订单") && dic.ContainsKey("团队订单未处理") && dic.ContainsKey("团队订单已确认")) { this.lblRouteOrderSecond.Text = "有效团队订单:共有<a href=\"/teamservice/teamorders.aspx?routeSource=1\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单"].ToString() + "单</b></a>,"; this.lblRouteOrderSecond.Text += "其中未处理<a href=\"/teamservice/teamorders.aspx?routeSource=1&status=0\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单未处理"].ToString() + "单</b></a>,"; this.lblRouteOrderSecond.Text += " 已确认:<a href=\"/teamservice/teamorders.aspx?routeSource=1&status=1\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单已确认"] + "单</b></a>"; } if (dic.ContainsKey("历史订单") && dic.ContainsKey("成人数") && dic.ContainsKey("儿童数")) { this.lblRouteOrderThird.Text = "历史订单:共计<a class=\"ff0000\"><b>" + dic["历史订单"].ToString() + "单</b></a>,人数" + dic["成人数"].ToString() + "大" + dic["儿童数"].ToString() + "小"; } } //获得专线商的访问数量 this.lblBrowseUserCount.Text = TourBll.GetVisitedNumberByCompany(UserInfoModel.CompanyID).ToString(); } #endregion #region 地接提醒 if (IsLocalAgency) { //获得地接线路区域信息 IList <EyouSoft.Model.TourStructure.AreaStatInfo> routeByAreaCount = routeBll.GetCurrentUserRouteByAreaStats(); if (routeByAreaCount != null && routeByAreaCount.Count > 0) { StringBuilder strTour = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.AreaStatInfo AreaStaModel in routeByAreaCount) { strTour.Append("<a href='/routeagency/routemanage/routeview.aspx?routeSource=2' onclick=\"topTab.open($(this).attr('href'),'我的线路库',{isRefresh:false,data:{AreaId:" + AreaStaModel.AreaId + "}});return false;\" class='lan14'>" + AreaStaModel.AreaName + "(" + AreaStaModel.Number + ")</a><br />"); } this.lblLocalRoute.Text = strTour.ToString(); } dic = iorderBll.GetOrderGroundCount(UserInfoModel.CompanyID); if (dic != null) { //获得地接团队订单信息 if (dic.ContainsKey("有效团队订单") && dic.ContainsKey("团队订单未处理") && dic.ContainsKey("团队订单已处理")) { this.lblLocalOrderCount.Text = "有效团队订单:共有<a href=\"/teamservice/teamorders.aspx?routeSource=2\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["有效团队订单"].ToString() + "单</b></a>,"; this.lblLocalOrderCount.Text += "其中未处理<a href=\"/teamservice/teamorders.aspx?routeSource=2&status=0\" class=\"ff0000\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单未处理"].ToString() + "单</b></a>,"; this.lblLocalOrderCount.Text += "已确认:<a href=\"/teamservice/teamorders.aspx?routeSource=2&status=1\" onclick=\"topTab.open($(this).attr('href'),'团队订单管理');return false;\"><b>" + dic["团队订单已处理"].ToString() + "单</b></a>"; } } } #endregion #region 景区提醒 if (IsSightAgency) { //获得将过期景点门票 this.lblScenicCountOver.Text = "您当前共有<a href=\"/ScenicManage/MyScenice.aspx\" onclick=\"topTab.open($(this).attr('href'),'我的景区');return false;\">" + EyouSoft.BLL.ScenicStructure.BScenicTickets.CreateInstance().GetExpireTickets(UserInfoModel.CompanyID).ToString() + "个景区门票</a>将于1周后到期,请及时更新计划,以方便旅行社查询"; int recordCount = 0; IList <EyouSoft.Model.ScenicStructure.MScenicArea> scenicList = EyouSoft.BLL.ScenicStructure.BScenicArea.CreateInstance().GetListAndTickets(3, 1, ref recordCount, null); if (scenicList != null && scenicList.Count > 0) { string sbScenic = ""; for (int i = 0; i < scenicList.Count; i++) { sbScenic += "<a class=\"lan14\" href=\"/ScenicManage/MyScenice.aspx\" onclick=\"topTab.open($(this).attr('href'),'我的景区');return false;\">" + scenicList[i].ScenicName + "</a> "; } this.lblScenicCount.Text = sbScenic; } } #endregion #endregion }
/// <summary> /// 代客预订 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void LeaveBook() { if (!IsCompanyCheck) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的账户还未审核,没有权限执行该操作!'}]"); Response.End(); } string ReturnString = string.Empty; EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo tourModel = new EyouSoft.Model.TourStructure.TourInfo(); tourModel = Ibll.GetTourInfo(TourID); PriceStandId = Utils.GetFormValue("hidPriceStandId"); EyouSoft.IBLL.TourStructure.ITourOrder Orderbll = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance(); EyouSoft.Model.TourStructure.TourOrder orderModel = new EyouSoft.Model.TourStructure.TourOrder(); if (Utils.GetQueryStringValue("action") == "LeaveBook") { orderModel.OrderState = EyouSoft.Model.TourStructure.OrderState.已留位; orderModel.SaveSeatDate = Utils.GetDateTime(Utils.GetFormValue("txtEndTime$dateTextBox")); if (Utils.GetDateTime(Utils.GetFormValue("txtEndTime$dateTextBox")) < DateTime.Now) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'留位时间不能小于当前时间!'}]"); Response.End(); } } else { orderModel.SaveSeatDate = DateTime.Now; orderModel.OrderState = EyouSoft.Model.TourStructure.OrderState.未处理; } orderModel.AreaId = tourModel.AreaId; orderModel.SeatList = SeatList.Trim(','); orderModel.LeaveTraffic = Utils.GetFormValue("Traffic"); orderModel.AdultNumber = Utils.GetInt(Utils.GetFormValue(PriceStandId + "AdultNumber")); orderModel.ChildNumber = Utils.GetInt(Utils.GetFormValue(PriceStandId + "ChildNumber")); orderModel.ChildPrice = decimal.Parse(Utils.GetFormValue(PriceStandId + "ChildrenPrice1")); orderModel.MarketPrice = Utils.GetDecimal(Utils.GetFormValue(PriceStandId + "MarketPrice")); orderModel.BuyCompanyID = Utils.GetFormValue("BuyCompanyID"); orderModel.BuyCompanyName = Utils.GetFormValue("BuyCompanyName"); orderModel.CompanyID = SiteUserInfo.CompanyID; orderModel.ContactFax = Utils.GetFormValue("BuyCompanyFax"); orderModel.ContactMQ = Utils.GetFormValue("BuyCompanyMQ"); orderModel.ContactName = Utils.GetFormValue("BuyCompanyContactName"); orderModel.ContactQQ = Utils.GetFormValue("BuyCompanyQQ"); orderModel.ContactTel = Utils.GetFormValue("BuyCompanyTel"); orderModel.LastOperatorID = SiteUserInfo.ID; orderModel.MarketNumber = Utils.GetInt(Utils.GetFormValue(PriceStandId + "MarketNumber")); orderModel.OperatorID = SiteUserInfo.ID; orderModel.OperatorName = SiteUserInfo.ContactInfo.ContactName; orderModel.OrderType = 1; orderModel.OtherPrice = Utils.GetDecimal(Utils.GetFormValue(PriceStandId + "OtherPrice")); orderModel.PersonalPrice = Utils.GetDecimal(Utils.GetFormValue(PriceStandId + "PersonalPrice")); orderModel.SumPrice = orderModel.AdultNumber * orderModel.PersonalPrice + orderModel.ChildNumber * orderModel.ChildPrice + orderModel.MarketNumber * orderModel.MarketPrice + orderModel.OtherPrice; orderModel.PeopleNumber = orderModel.ChildNumber + orderModel.AdultNumber; orderModel.PriceStandId = PriceStandId; orderModel.RouteName = Utils.GetFormValue("RouteName"); orderModel.LeaveDate = Utils.GetDateTime(Utils.GetFormValue("LeaveDate")); orderModel.SpecialContent = Utils.GetFormValue("SpecialContent"); orderModel.TourCompanyId = SiteUserInfo.CompanyID; orderModel.TourCompanyName = SiteUserInfo.CompanyName; orderModel.TourDays = tourModel.TourDays; orderModel.TourId = Utils.GetFormValue("TourId"); orderModel.TourNo = tourModel.TourNo; orderModel.TourType = EyouSoft.Model.TourStructure.TourType.组团散拼; orderModel.IssueTime = DateTime.Now; orderModel.OrderSource = EyouSoft.Model.TourStructure.TourOrderOperateType.代客预定; orderModel.TourOrderCustomer = TourOrderCustomer(); if (orderModel.TourOrderCustomer == null || orderModel.TourOrderCustomer.Count == 0) { ReturnString = "[{isSuccess:false,ErrorMessage:'游客总人数必须大于0,否则将不能保存,请填写正确的游客人数及信息!'}]"; Response.Clear(); Response.Write(ReturnString); Response.End(); } if (orderModel.PeopleNumber > Utils.GetInt(Utils.GetFormValue("RemnantNumber"))) { ReturnString = "[{isSuccess:false,ErrorMessage:'游客总人数大于剩余人数,不能保存请重新填写游客资料!'}]"; Response.Clear(); Response.Write(ReturnString); Response.End(); } int ReturnValue = Orderbll.AddTourOrder(orderModel); Ibll = null; tourModel = null; Orderbll = null; orderModel = null; switch (ReturnValue) { case -1: ReturnString = "[{isSuccess:false,ErrorMessage:'写入订单信息失败!'}]"; break; case 0: ReturnString = "[{isSuccess:false,ErrorMessage:'订单实体为空!'}]"; break; default: ReturnString = "[{isSuccess:true,ErrorMessage:'订单代客预订成功!'}]"; break; } Response.Clear(); Response.Write(ReturnString); Response.End(); }
/// <summary> /// 提交发布 /// </summary> private void Update() { string hidTourNo = Utils.GetFormValue("hidTourLeaveDate").Trim(','); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = new EyouSoft.Model.TourStructure.TourInfo(); model = Ibll.GetTourInfo(TourID);; EyouSoft.IBLL.TourStructure.ITour TourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); IList <EyouSoft.Model.TourStructure.ChildrenTourInfo> ChildrensTourList = new List <EyouSoft.Model.TourStructure.ChildrenTourInfo>(); string[] tmpLeaveDate = hidTourNo.Split(','); if (string.IsNullOrEmpty(hidTourNo.Trim(','))) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'请选择出团日期!'}]"); Response.End(); } PlanPeopleCount = Utils.GetInt(Utils.GetFormValue("VistorNum")); if (PlanPeopleCount <= 0) { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'计划人数必须大于0!'}]"); Response.End(); } DateTime[] LeaveDate = new DateTime[tmpLeaveDate.Length]; if (!String.IsNullOrEmpty(hidTourNo)) { for (int i = 0; i < tmpLeaveDate.Length; i++) { LeaveDate[i] = Utils.GetDateTime(tmpLeaveDate[i]); } } //IList<EyouSoft.Model.TourStructure.TourPriceDetail> InputLists = InsertTourPriceDetail(); if (model != null) { RouteArea = model.AreaId; #region 子团信息 IList <EyouSoft.Model.TourStructure.AutoTourCodeInfo> TourCodeList = new List <EyouSoft.Model.TourStructure.AutoTourCodeInfo>(); foreach (DateTime LeaveDateItem in LeaveDate) { EyouSoft.Model.TourStructure.ChildrenTourInfo ChildTour = new EyouSoft.Model.TourStructure.ChildrenTourInfo(); ChildTour.TourCode = ""; ChildTour.ChildrenId = ""; ChildTour.LeaveDate = LeaveDateItem; ChildrensTourList.Add(ChildTour); ChildTour = null; } #endregion model.PlanPeopleCount = PlanPeopleCount; model.TourPriceDetail = InsertTourPriceDetail(); model.Childrens = ChildrensTourList; model.ID = model.ParentTourID; model.CompanyID = SiteUserInfo.CompanyID; model.CompanyName = SiteUserInfo.CompanyName; int RowEffect = Ibll.AppendTemplateTourInfo(model); LeaveDate = null; model = null; Ibll = null; TourBll = null; ChildrensTourList = null; if (RowEffect > 0) { Response.Clear(); Response.Write("[{isSuccess:true,ErrorMessage:'发布成功!'}]"); Response.End(); } else { Response.Clear(); Response.Write("[{isSuccess:false,ErrorMessage:'发布失败!'}]"); Response.End(); } } }
/// <summary> /// 添加团队信息 /// </summary> /// <returns></returns> private bool InsertTourInfo() { bool IsResult = false; // 团队基本信息 string hidTourID = Utils.GetFormValue(this.AddQuickTour_hidTourID.UniqueID); // 用于判断是添加还是修改 string TemplateTourID = Utils.GetFormValue(this.AddQuickTour_TemplateTourID.UniqueID); // 需要修改的模板团ID string hidTourLeaveDate = Utils.GetFormValue(this.hidTourLeaveDate.UniqueID); string RouteArea = Utils.GetFormValue(this.AddQuickTour_RouteArea.UniqueID); string RouteName = Utils.GetFormValue(this.AddQuickTour_RouteName.UniqueID); string TourDays = Utils.GetFormValue(this.AddQuickTour_TourDays.UniqueID); string PeopleNumber = Utils.GetFormValue(this.AddQuickTour_PeopleNumber.UniqueID); string RouteTopic = Utils.GetFormValue("AddQuickTour_chkRouteTopic"); string LeaveCity = Utils.GetFormValue("AddQuickTour_radPortCity"); string SaleCity = Utils.GetFormValue("AddQuickTour_chkSaleCity"); if (LeaveCity == null || LeaveCity == string.Empty) { LeaveCity = "0"; } // 快速发布团队行程信息 string QuickPlan = Utils.EditInputText(Server.UrlDecode(Request.Form["AddQuickTour_divFCK"])); if (QuickPlan == string.Empty || QuickPlan == "点击添加行程信息") { QuickPlan = string.Empty; } // 自动停收时间 string AutoOffDays = Utils.GetFormValue(this.AddQuickTour_AutoOffDays.UniqueID); #region 线路区域处理 string AreaName = string.Empty; int AreaID = 0; EyouSoft.Model.SystemStructure.AreaType Areatype = EyouSoft.Model.SystemStructure.AreaType.国内短线; if (!String.IsNullOrEmpty(RouteArea)) { EyouSoft.IBLL.SystemStructure.ISysArea AreaBll = EyouSoft.BLL.SystemStructure.SysArea.CreateInstance(); EyouSoft.Model.SystemStructure.SysArea AreaModel = AreaBll.GetSysAreaModel(int.Parse(RouteArea.Split('|')[0])); if (AreaModel != null) { AreaID = AreaModel.AreaId; AreaName = AreaModel.AreaName; Areatype = AreaModel.RouteType; } AreaModel = null; AreaBll = null; } #endregion #region 线路主题 IList <int> RouteThemeList = new List <int>(); if (!String.IsNullOrEmpty(RouteTopic)) { string[] strRouteTopic = RouteTopic.Split(','); foreach (string str in strRouteTopic) { RouteThemeList.Add(int.Parse(str)); } } #endregion #region 销售城市 IList <int> SaleCityList = new List <int>(); if (!String.IsNullOrEmpty(SaleCity)) { string[] strSaleCity = SaleCity.Split(','); foreach (string str in strSaleCity) { SaleCityList.Add(int.Parse(str)); } } #endregion if (this.AddQuickTour_AddToRoute.Checked) { #region 回写线路信息 try { EyouSoft.Model.TourStructure.RouteBasicInfo RouteModel = new EyouSoft.Model.TourStructure.RouteBasicInfo(); RouteModel.ID = Guid.NewGuid().ToString(); RouteModel.AreaId = AreaID; RouteModel.AreaType = Areatype; RouteModel.CompanyID = UserInfoModel.CompanyID; RouteModel.CompanyName = UserInfoModel.CompanyName; RouteModel.ContactMQID = ContactMQID; RouteModel.ContactName = ContactName; RouteModel.ContactTel = ContactTel; RouteModel.ContactUserName = UserInfoModel.UserName; RouteModel.IsAccept = false; RouteModel.IssueTime = DateTime.Now; RouteModel.LeaveCityId = int.Parse(LeaveCity); RouteModel.OperatorID = UserInfoModel.ID; RouteModel.PriceDetails = InsertRoutePriceDetail(); RouteModel.QuickPlan = QuickPlan; RouteModel.ReleaseType = EyouSoft.Model.TourStructure.ReleaseType.Quick; RouteModel.RouteName = RouteName; RouteModel.RouteTheme = RouteThemeList; RouteModel.SaleCity = SaleCityList; RouteModel.ServiceStandard = null; RouteModel.StandardPlans = null; RouteModel.TourDays = int.Parse(TourDays); EyouSoft.IBLL.TourStructure.IRouteBasicInfo RouteBll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); RouteBll.InsertRouteInfo(RouteModel); RouteModel = null; RouteBll = null; } catch { return(false); } #endregion } EyouSoft.IBLL.TourStructure.ITour TourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); #region 写入团队信息 if (!String.IsNullOrEmpty(hidTourID) || !String.IsNullOrEmpty(TemplateTourID)) // 修改 { if (!String.IsNullOrEmpty(TemplateTourID)) // 修改模板团 { EyouSoft.Model.TourStructure.TourInfo TourModel = new EyouSoft.Model.TourStructure.TourInfo(); TourModel.ID = TemplateTourID; TourModel.AreaId = AreaID; TourModel.AreaName = AreaName; TourModel.AreaType = Areatype; TourModel.AutoOffDays = int.Parse(AutoOffDays); TourModel.CompanyID = CompanyId; TourModel.CompanyName = UserInfoModel.CompanyName; TourModel.LeaveCity = int.Parse(LeaveCity); TourModel.OperatorID = UserID; TourModel.PlanPeopleCount = int.Parse(PeopleNumber); TourModel.QuickPlan = QuickPlan; TourModel.ReleaseType = EyouSoft.Model.TourStructure.ReleaseType.Quick; TourModel.RouteName = RouteName; TourModel.RouteTheme = RouteThemeList; TourModel.SaleCity = SaleCityList; // 服务标准 TourModel.ServiceStandard = null; TourModel.StandardPlan = null; TourModel.TourContacMQ = ContactMQID; TourModel.TourContact = ContactName; TourModel.TourContactTel = ContactTel; TourModel.TourContacUserName = UserInfoModel.UserName; TourModel.TourDays = int.Parse(TourDays); TourModel.TourNo = string.Empty; TourModel.TourPriceDetail = InsertTourPriceDetail(); TourModel.TourState = EyouSoft.Model.TourStructure.TourState.收客; TourModel.TourType = EyouSoft.Model.TourStructure.TourType.组团散拼; if (TourBll.UpdateTemplateTourInfo(TourModel) > 0) { IsResult = true; } TourModel = null; } else { // 修改子团 #region EyouSoft.Model.TourStructure.TourInfo TourModel = new EyouSoft.Model.TourStructure.TourInfo(); TourModel.ID = hidTourID; TourModel.AreaId = AreaID; TourModel.AreaName = AreaName; TourModel.AreaType = Areatype; TourModel.AutoOffDays = int.Parse(AutoOffDays); TourModel.CompanyID = CompanyId; TourModel.CompanyName = UserInfoModel.CompanyName; TourModel.LeaveCity = int.Parse(LeaveCity); TourModel.OperatorID = UserID; TourModel.ParentTourID = TemplateTourID; TourModel.PlanPeopleCount = int.Parse(PeopleNumber); TourModel.QuickPlan = QuickPlan; TourModel.ReleaseType = EyouSoft.Model.TourStructure.ReleaseType.Quick; TourModel.RouteName = RouteName; TourModel.RouteTheme = RouteThemeList; TourModel.SaleCity = SaleCityList; // 服务标准 TourModel.ServiceStandard = null; TourModel.StandardPlan = null; TourModel.TourContacMQ = ContactMQID; TourModel.TourContact = ContactName; TourModel.TourContactTel = ContactTel; TourModel.TourContacUserName = UserInfoModel.UserName; TourModel.TourDays = int.Parse(TourDays); TourModel.TourNo = string.Empty; TourModel.TourPriceDetail = InsertTourPriceDetail(); TourModel.TourState = EyouSoft.Model.TourStructure.TourState.收客; TourModel.TourType = EyouSoft.Model.TourStructure.TourType.组团散拼; if (TourBll.UpdateTourInfo(TourModel) > 0) { IsResult = true; } TourModel = null; #endregion } } else { // 添加 #region 添加团队 #region 子团信息 IList <EyouSoft.Model.TourStructure.ChildrenTourInfo> ChildrensTourList = new List <EyouSoft.Model.TourStructure.ChildrenTourInfo>(); if (!String.IsNullOrEmpty(hidTourLeaveDate)) { string[] tmpLeaveDate = hidTourLeaveDate.Split(','); for (int i = 0; i < tmpLeaveDate.Length; i++) { if (!String.IsNullOrEmpty(tmpLeaveDate[i])) { EyouSoft.Model.TourStructure.ChildrenTourInfo ChildTour = new EyouSoft.Model.TourStructure.ChildrenTourInfo(); ChildTour.ChildrenId = Guid.NewGuid().ToString(); ChildTour.LeaveDate = Utils.GetDateTime(tmpLeaveDate[i]); ChildTour.TourState = EyouSoft.Model.TourStructure.TourState.收客; ChildrensTourList.Add(ChildTour); ChildTour = null; } } } #endregion EyouSoft.Model.TourStructure.TourInfo TourModel = new EyouSoft.Model.TourStructure.TourInfo(); TourModel.ID = Guid.NewGuid().ToString(); TourModel.AreaId = AreaID; TourModel.AreaName = AreaName; TourModel.AreaType = Areatype; TourModel.AutoOffDays = int.Parse(AutoOffDays); TourModel.Childrens = ChildrensTourList; TourModel.CompanyID = CompanyId; TourModel.CompanyName = UserInfoModel.CompanyName; TourModel.LeaveCity = int.Parse(LeaveCity); TourModel.OperatorID = UserID; TourModel.PlanPeopleCount = int.Parse(PeopleNumber); TourModel.QuickPlan = QuickPlan; TourModel.ReleaseType = EyouSoft.Model.TourStructure.ReleaseType.Quick; TourModel.RouteName = RouteName; TourModel.RouteTheme = RouteThemeList; TourModel.SaleCity = SaleCityList; // 服务标准 TourModel.ServiceStandard = null; TourModel.StandardPlan = null; TourModel.TourContacMQ = ContactMQID; TourModel.TourContact = ContactName; TourModel.TourContactTel = ContactTel; TourModel.TourContacUserName = UserInfoModel.UserName; TourModel.TourDays = int.Parse(TourDays); TourModel.TourNo = string.Empty; TourModel.TourPriceDetail = InsertTourPriceDetail(); TourModel.TourState = EyouSoft.Model.TourStructure.TourState.收客; TourModel.TourType = EyouSoft.Model.TourStructure.TourType.组团散拼; if (TourBll.InsertTemplateTourInfo(TourModel) > 0) { IsResult = true; } TourModel = null; #endregion } #endregion return(IsResult); }
/// <summary> /// 修改初始化团队信息 /// </summary> /// <param name="TourID"></param> private void InitTourInfo(string TourID) { EyouSoft.IBLL.TourStructure.ITour bll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = bll.GetTourInfo(TourID); if (model != null) { if (!String.IsNullOrEmpty(Utils.GetQueryStringValue("type")) && Utils.GetQueryStringValue("type") == "edit") { //初始化当前计划的模板团ID templateTourId = model.ParentTourID; this.spanSelectDate.Visible = false; this.spanSetTourNo.Visible = false; if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Quick) { this.TabAddStandardTour.Visible = false; this.TabAddQuickTour.Visible = true; } else { this.TabAddStandardTour.Visible = true; this.TabAddQuickTour.Visible = false; } if (model.ParentTourID.Trim() == string.Empty) { this.AddQuickTour_TemplateTourID.Value = TourID; this.spanAlreadyDate.Visible = true; this.lblEditText.Text = "<a href=\"javascript:void(0);\" onclick=\"TourModule.OpenDateDialog('" + tblID + "');return false;\">点此查看</a> "; } else { this.AddQuickTour_hidTourID.Value = TourID; this.spanAlreadyDate.Visible = false; this.lblEditText.Text = model.LeaveDate.ToString("yyyy-MM-dd"); } IList <EyouSoft.Model.TourStructure.ChildrenTourInfo> list = bll.GetChildrenTours(TourID); if (list != null && list.Count > 0) { this.AddQuickTour_ChildTourCount.Text = list.Count.ToString(); DateTime[] TimeList = new DateTime[list.Count]; TimeList = (from c in list where true select c.LeaveDate).ToArray(); string[] TourCodeList = new string[list.Count]; TourCodeList = (from c in list where true select c.TourCode).ToArray(); IsoDateTimeConverter iso = new IsoDateTimeConverter(); iso.DateTimeFormat = "yyyy-M-d"; this.AddQuickTour_hidChildLeaveDateList.Value = JsonConvert.SerializeObject(TimeList, iso); this.AddQuickTour_hidChildTourCodeList.Value = JsonConvert.SerializeObject(TourCodeList); this.hidTourLeaveDate.Value = JsonConvert.SerializeObject(TimeList, iso); } else { this.hidTourLeaveDate.Value = "0"; } } for (int i = 0; i < this.AddQuickTour_RouteArea.Items.Count; i++) { if (!String.IsNullOrEmpty(this.AddQuickTour_RouteArea.Items[i].Value)) { if (model.AreaId == int.Parse(this.AddQuickTour_RouteArea.Items[i].Value.Split('|')[0].ToString())) { this.AddQuickTour_RouteArea.Items[i].Selected = true; } } } this.AddQuickTour_RouteName.Value = model.RouteName; this.AddQuickTour_TourDays.Value = model.TourDays.ToString(); this.AddQuickTour_PeopleNumber.Value = model.PlanPeopleCount.ToString(); strRouteTheme = InitRouteTopic(model.RouteTheme); strSaleCity = InitSaleCity(model.SaleCity); strLeaveCity = InitLeaveCity(model.LeaveCity); // 报价等级 this.AddQuickTour_tourpricestand.TourPriceDetails = model.TourPriceDetail; QuickPlan = model.QuickPlan; this.AddQuickTour_AutoOffDays.Value = model.AutoOffDays.ToString(); } model = null; bll = null; }
/// <summary> /// 初始化 /// </summary> private void InitPage() { EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID); if (model != null) { #region 获取所属公司信息 if (this.IsLogin) { CompanyID = this.SiteUserInfo.CompanyID; TourContactTel = this.SiteUserInfo.ContactInfo.Tel; TourContact = this.SiteUserInfo.ContactInfo.ContactName; EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID); CompanyName = companyInfoModel.CompanyName; CompanyAddress = companyInfoModel.CompanyAddress; License = companyInfoModel.License; ICompanyInfobll = null; companyInfoModel = null; } else { EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID); CompanyName = companyInfoModel.CompanyName; CompanyAddress = companyInfoModel.CompanyAddress; License = companyInfoModel.License; TourContactTel = companyInfoModel.ContactInfo.Tel; TourContact = companyInfoModel.ContactInfo.ContactName; ICompanyInfobll = null; companyInfoModel = null; } #endregion #region 获取地接社信息 if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0) { rptTourLocalityInfo.DataSource = model.LocalTravelAgency; rptTourLocalityInfo.DataBind(); } else { localInfo.Visible = false; } #endregion #region 团队相关信息 TourDays = model.TourDays; RouteName = model.RouteName; if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布 { if (!string.IsNullOrEmpty(model.LeaveTraffic)) { ltrTraffic.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic); } else { Tr_Traffic.Visible = false; } if (!string.IsNullOrEmpty(model.CollectionContect)) { ltrCollectionContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect); } else { CollectionContect.Visible = false; } if (!string.IsNullOrEmpty(model.MeetTourContect)) { ltrMeetTourContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect); } else { MeetTourContect.Visible = false; } ResideContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.ResideContent); //住宿 DinnerContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.DinnerContent); //用餐 SightContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SightContent); //景点 CarContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.CarContent); //用车 GuideContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.GuideContent); //导游 TrafficContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.TrafficContent); //往返交通 IncludeOtherContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它 NotContainService = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它说明 //备注 SpeciallyNotice = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice); rptTeamNotice.DataSource = model.StandardPlan; rptTeamNotice.DataBind(); } else//快速发布 { pnlQuickPlan.Visible = true; Tr_Traffic.Visible = false; CollectionContect.Visible = false; MeetTourContect.Visible = false; pnlNotQuickPlan.Visible = false; QuickPlanContent = model.QuickPlan; } #region 盖章信息 //if(this.SiteUserInfo.CompanyID==model.se) if (!string.IsNullOrEmpty(OrderID)) { string BuyCompanyID = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance().GetOrderModel(OrderID).BuyCompanyID; if (this.SiteUserInfo.CompanyID == BuyCompanyID) { string imgPath = EyouSoft.BLL.TourStructure.CompanyContractSignet.CreateInstance().GetGroupAdviceSignet(OrderID); if (!string.IsNullOrEmpty(imgPath)) { imgBuyCompany.Visible = true; imgBuyCompany.ImageUrl = Domain.FileSystem + imgPath; btnCancelStamp.Visible = true; btnToStamp.Visible = false; } } else { this.btnCancelStamp.Visible = false; this.btnToStamp.Visible = false; } } else {//无订单号传入时,盖章隐藏 this.btnCancelStamp.Visible = false; this.btnToStamp.Visible = false; } //if (!this.CheckGrant(EyouSoft.Common.TravelPermission.系统设置_盖章) && this.SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.组团)) if (this.SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.组团)) { this.btnCancelStamp.Visible = false; this.btnToStamp.Visible = false; } #endregion #endregion } Ibll = null; model = null; }
private void InitPage() { EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID); if (model != null) { TemplateTourID = model.ParentTourID; #region 新增浏览记录 string currentCompanyId = string.Empty; if (this.IsLogin) { currentCompanyId = SiteUserInfo.CompanyID; } if (model.CompanyID != currentCompanyId && !string.IsNullOrEmpty(currentCompanyId)) { EyouSoft.Model.TourStructure.TourVisitInfo TourModel = new EyouSoft.Model.TourStructure.TourVisitInfo(); TourModel.TourId = TourID; TourModel.VisitedCompanyId = model.CompanyID; TourModel.VisitedCompanyName = model.CompanyName; TourModel.VisitedTime = DateTime.Today; TourModel.VisitTourCode = model.TourNo; TourModel.VisitTourRouteName = model.RouteName; if (IsLogin) { TourModel.ClientCompanyId = SiteUserInfo.CompanyID; TourModel.ClientCompanyName = SiteUserInfo.CompanyName; TourModel.ClientUserContactMobile = SiteUserInfo.ContactInfo.Mobile; TourModel.ClientUserContactName = SiteUserInfo.ContactInfo.ContactName; TourModel.ClientUserContactTelephone = SiteUserInfo.ContactInfo.Tel; TourModel.ClientUserId = SiteUserInfo.ID; TourModel.ClinetUserContactQQ = SiteUserInfo.ContactInfo.QQ; } else { TourModel.ClientCompanyId = ""; } EyouSoft.BLL.TourStructure.Tour.CreateInstance().InsertTourVisitedInfo(TourModel); TourModel = null; } else if (!IsLogin) { EyouSoft.BLL.TourStructure.Tour.CreateInstance().IncreaseClicks(TourID); } #endregion #region 获取所属公司信息 if (this.IsLogin) { TourContactTel = this.SiteUserInfo.ContactInfo.Tel; TourContact = this.SiteUserInfo.ContactInfo.ContactName; EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID); CompanyName = companyInfoModel.CompanyName; CompanyAddress = companyInfoModel.CompanyAddress; License = companyInfoModel.License; ICompanyInfobll = null; companyInfoModel = null; } else { tbl_Header.Visible = false; //EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance(); //EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID); //CompanyName = companyInfoModel.CompanyName; //CompanyAddress = companyInfoModel.CompanyAddress; //License = companyInfoModel.License; //TourContactTel = companyInfoModel.ContactInfo.Tel; //TourContact = companyInfoModel.ContactInfo.ContactName; //ICompanyInfobll = null; //companyInfoModel = null; } #endregion #region 获取地接社信息 rptTourLocalityInfo.DataSource = model.LocalTravelAgency; rptTourLocalityInfo.DataBind(); if (rptTourLocalityInfo.Items.Count < 1) { isNotLocalCompany = false; } #endregion #region 价格等级信息 IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID); List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>(); UserBackCenter.RouteAgency.CompanyPriceDetail cpModel = null; if (PriceLists != null && PriceLists.Count > 0) { ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item => { cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail(); cpModel.PriceStandName = item.PriceStandName; ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem => { switch (childItem.CustomerLevelType) { case EyouSoft.Model.CompanyStructure.CustomerLevelType.行: cpModel.AdultPrice1 = childItem.AdultPrice; cpModel.ChildrenPrice1 = childItem.ChildrenPrice; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市: cpModel.AdultPrice2 = childItem.AdultPrice; cpModel.ChildrenPrice2 = childItem.ChildrenPrice; break; case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差: cpModel.SingleRoom1 = childItem.AdultPrice; cpModel.SingleRoom2 = childItem.ChildrenPrice; break; } }); newLists.Add(cpModel); cpModel = null; }); this.rptTourPriceDetail.DataSource = newLists; this.rptTourPriceDetail.DataBind(); newLists = null; } PriceLists = null; #endregion #region 团队相关信息 RouteName = model.RouteName; LeaveDate = model.LeaveDate; BackDate = model.ComeBackDate; TourDays = model.TourDays; TourCode = model.TourNo; if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布 { if (!string.IsNullOrEmpty(model.LeaveTraffic)) { ltrTraffic.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic); } else { Tr_Traffic.Visible = false; } if (!string.IsNullOrEmpty(model.MeetTourContect)) { ltrMeetTourContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect); } else { Tr_MeetTourContect.Visible = false; } if (!string.IsNullOrEmpty(model.CollectionContect)) { ltrCollectionContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect); } else { Tr_CollectionContect.Visible = false; } //行程信息及相关 rptStandardPlan.DataSource = model.StandardPlan; rptStandardPlan.DataBind(); //服务标准及说明 if (model.ServiceStandard != null) { ResideContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.ResideContent); //住宿 DinnerContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.DinnerContent); //用餐 SightContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SightContent); //景点 CarContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.CarContent); //用车 GuideContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.GuideContent); //导游 TrafficContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.TrafficContent); //往返交通 IncludeOtherContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它 if (!string.IsNullOrEmpty(model.ServiceStandard.NotContainService)) { NotContainService = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.NotContainService); } else { Tr_NotContainService.Visible = false; } if (!string.IsNullOrEmpty(model.ServiceStandard.SpeciallyNotice)) { SpeciallyNotice = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice); } else { Tr_SpeciallyNotice.Visible = false; } } } else//快速发布 { pnlServiceStandard.Visible = false; Tr_CollectionContect.Visible = false; Tr_MeetTourContect.Visible = false; Tr_Traffic.Visible = false; QuickPlanContent = model.QuickPlan; } #endregion } Ibll = null; model = null; }