/// <summary> /// 修改初始化线路信息 /// </summary> /// <param name="TourID"></param> private void InitRouteInfo(string RouteID) { EyouSoft.IBLL.TourStructure.IRouteBasicInfo bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); EyouSoft.Model.TourStructure.RouteBasicInfo model = bll.GetRouteInfo(RouteID); if (model != null) { if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Quick) { this.TabLocalQuickRoute.Visible = true; this.TabLocalStandardRoute.Visible = false; } else { this.TabLocalQuickRoute.Visible = false; this.TabLocalStandardRoute.Visible = true; } if (!String.IsNullOrEmpty(Utils.InputText(Request.QueryString["type"])) && Utils.InputText(Request.QueryString["type"]) == "edit") { this.LocalQuickRoute_hidRouteID.Value = model.ID; } this.LocalQuickRoute_RouteName.Value = model.RouteName; this.LocalQuickRoute_TourDays.Value = model.TourDays.ToString(); // 报价等级 this.LocalQuickRoute_tourpricestand.RoutePriceDetails = model.PriceDetails; QuickPlan = model.QuickPlan; } model = null; bll = null; }
/// <summary> /// 修改初始化线路信息 /// </summary> /// <param name="TourID"></param> private void InitRouteInfo(string RouteID) { EyouSoft.IBLL.TourStructure.IRouteBasicInfo bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); EyouSoft.Model.TourStructure.RouteBasicInfo model = bll.GetRouteInfo(RouteID); if (model != null) { if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Quick) { this.TabAddQuickRoute.Visible = true; this.TabAddStandardRoute.Visible = false; } else { this.TabAddQuickRoute.Visible = false; this.TabAddStandardRoute.Visible = true; } for (int i = 0; i < this.AddStandardRoute_RouteArea.Items.Count; i++) { if (!String.IsNullOrEmpty(this.AddStandardRoute_RouteArea.Items[i].Value)) { if (model.AreaId == int.Parse(this.AddStandardRoute_RouteArea.Items[i].Value.Split('|')[0].ToString())) { this.AddStandardRoute_RouteArea.Items[i].Selected = true; } } } if (!String.IsNullOrEmpty(Utils.InputText(Request.QueryString["type"])) && Utils.InputText(Request.QueryString["type"]) == "edit") { this.AddStandardRoute_hidRouteID.Value = model.ID; } this.AddStandardRoute_RouteName.Value = model.RouteName; this.AddStandardRoute_txtTourDays.Value = model.TourDays.ToString(); strRouteTheme = InitRouteTopic(model.RouteTheme); strSaleCity = InitSaleCity(model.SaleCity); strLeaveCity = InitLeaveCity(model.LeaveCityId); // 报价等级 this.AddStandardRoute_tourpricestand.RoutePriceDetails = model.PriceDetails; // 行程安排 this.AddStandardRoute_StandardPlan.RouteStandardPlanInfo = model.StandardPlans; // 包含项目 //this.AddStandardRoute_ServiceStandard.RouteServiceStandardInfo = model.ServiceStandard; // 服务标准 this.AddStandardRoute_Remark.Value = model.ServiceStandard.SpeciallyNotice; this.AddStandardRoute_Service.Value = model.ServiceStandard.NotContainService; // 线路负责人 this.AddStandardRoute_TourContactInfo.ContactName = model.ContactName; this.AddStandardRoute_TourContactInfo.ContactTel = model.ContactTel; this.AddStandardRoute_TourContactInfo.ContactMQID = model.ContactMQID; this.AddStandardRoute_TourContactInfo.CompanyID = UserInfoModel.CompanyID; } model = null; bll = null; }
protected string SelectRoute() { string RouteID = Server.UrlDecode(Utils.InputText(Request.QueryString["RouteID"])); string str = string.Empty; EyouSoft.IBLL.TourStructure.IRouteBasicInfo bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); EyouSoft.Model.TourStructure.RouteBasicInfo model = bll.GetRouteInfo(RouteID); // 根据线路编号获取线路信息 if (model != null) { str = JsonConvert.SerializeObject(model); } model = null; bll = null; return(str); }
/// <summary> /// 修改初始化线路信息 /// </summary> /// <param name="TourID"></param> private void InitRouteInfo(string RouteID) { EyouSoft.IBLL.TourStructure.IRouteBasicInfo bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); EyouSoft.Model.TourStructure.RouteBasicInfo model = bll.GetRouteInfo(RouteID); if (model != null) { if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Quick) { this.TabAddQuickRoute.Visible = true; this.TabAddStandardRoute.Visible = false; } else { this.TabAddQuickRoute.Visible = false; this.TabAddStandardRoute.Visible = true; } for (int i = 0; i < this.AddQuickRoute_RouteArea.Items.Count; i++) { if (!String.IsNullOrEmpty(this.AddQuickRoute_RouteArea.Items[i].Value)) { if (model.AreaId == int.Parse(this.AddQuickRoute_RouteArea.Items[i].Value.Split('|')[0].ToString())) { this.AddQuickRoute_RouteArea.Items[i].Selected = true; } } } if (!String.IsNullOrEmpty(Utils.InputText(Request.QueryString["type"])) && Utils.InputText(Request.QueryString["type"]) == "edit") { this.AddQuickRoute_hidRouteID.Value = model.ID; } this.AddQuickRoute_RouteName.Value = model.RouteName; this.AddQuickRoute_TourDays.Value = model.TourDays.ToString(); strRouteTheme = InitRouteTopic(model.RouteTheme); strSaleCity = InitSaleCity(model.SaleCity); strLeaveCity = InitLeaveCity(model.LeaveCityId); // 报价等级 this.AddQuickRoute_tourpricestand.RoutePriceDetails = model.PriceDetails; QuickPlan = model.QuickPlan; //this.td_AddFCK.Visible = false; //this.td_EditFCK.Visible = true; //this.AddQuickRoute_divFCK.Value = model.QuickPlan; } model = null; bll = null; }
/// <summary> /// 修改初始化线路信息 /// </summary> /// <param name="TourID"></param> private void InitRouteInfo(string RouteID) { EyouSoft.IBLL.TourStructure.IRouteBasicInfo bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); EyouSoft.Model.TourStructure.RouteBasicInfo model = bll.GetRouteInfo(RouteID); if (model != null) { if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Quick) { this.TabLocalQuickRoute.Visible = true; this.TabLocalStandardRoute.Visible = false; } else { this.TabLocalQuickRoute.Visible = false; this.TabLocalStandardRoute.Visible = true; } if (!String.IsNullOrEmpty(Utils.InputText(Request.QueryString["type"])) && Utils.InputText(Request.QueryString["type"]) == "edit") { this.LocalStandardRoute_hidRouteID.Value = model.ID; } this.LocalStandardRoute_RouteName.Value = model.RouteName; this.LocalStandardRoute_TourDays.Value = model.TourDays.ToString(); // 报价等级 this.LocalStandardRoute_tourpricestand.RoutePriceDetails = model.PriceDetails; // 行程安排 this.LocalStandardRoute_StandardPlan.RouteStandardPlanInfo = model.StandardPlans; // 包含项目 //this.LocalStandardRoute_ServiceStandard.RouteServiceStandardInfo = model.ServiceStandard; // 服务标准 this.LocalStandardRoute_Remark.Value = model.ServiceStandard.SpeciallyNotice; this.LocalStandardRoute_Service.Value = model.ServiceStandard.NotContainService; // 线路负责人 this.LocalStandardRoute_TourContactInfo.ContactName = model.ContactName; this.LocalStandardRoute_TourContactInfo.ContactTel = model.ContactTel; this.LocalStandardRoute_TourContactInfo.ContactMQID = model.ContactMQID; this.LocalStandardRoute_TourContactInfo.CompanyID = UserInfoModel.CompanyID; } model = null; bll = null; }
/// <summary> /// 初始化线路信息 /// </summary> private void InitRouteInfo(string RouteID) { EyouSoft.IBLL.TourStructure.IRouteBasicInfo bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); EyouSoft.Model.TourStructure.RouteBasicInfo model = bll.GetRouteInfo(RouteID); if (model != null) { this.Page.Title = model.RouteName; this.lblRouteName.Text = model.RouteName; this.lblTourDays.Text = model.TourDays.ToString(); #region 报价信息 IList <EyouSoft.Model.TourStructure.RoutePriceDetail> priceList = model.PriceDetails; if (priceList != null && priceList.Count > 0) { StringBuilder str = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.RoutePriceDetail priceModel in priceList) { string priceName = string.Empty; IList <EyouSoft.Model.CompanyStructure.CompanyPriceStand> priceStandList = EyouSoft.BLL.CompanyStructure.CompanyPriceStand.CreateInstance().GetList(UserInfoModel.CompanyID); if (priceStandList != null && priceStandList.Count > 0) { foreach (EyouSoft.Model.CompanyStructure.CompanyPriceStand priceStandModel in priceStandList) { if (priceStandModel.ID == priceModel.PriceStandId) { priceName = priceStandModel.PriceStandName; } } } priceStandList = null; str.Append("<tr>"); str.AppendFormat("<td width=\"120\" align=\"right\" bgcolor=\"#eeeeee\"> {0}:", priceName); IList <EyouSoft.Model.TourStructure.RoutePriceCustomerLeaveDetail> detailList = priceModel.PriceDetail; if (detailList != null && detailList.Count > 0) { foreach (EyouSoft.Model.TourStructure.RoutePriceCustomerLeaveDetail detailModel in detailList) { if (detailModel.CustomerLevelType == EyouSoft.Model.CompanyStructure.CustomerLevelType.门市) { str.Append("成人价格:</td>"); str.AppendFormat("<td width=\"155\" bgcolor=\"#eeeeee\"><input name=\"txtPeoplePrice\" type=\"text\" value=\"{0}\" id=\"txtPeoplePrice\" class=\"bottow_side2\" style=\"width:45px;\" />元/人 </td>", detailModel.AdultPrice.ToString("F0")); str.Append("<td width=\"92\" align=\"right\" bgcolor=\"#eeeeee\"> 儿童价格:</td>"); str.AppendFormat("<td width=\"143\" bgcolor=\"#eeeeee\"><input name=\"txtChildPrice\" type=\"text\" value=\"{0}\" id=\"txtChildPrice\" class=\"bottow_side2\" style=\"width:45px;\" />元/人</td>", detailModel.ChildrenPrice.ToString("F0")); } else if (detailModel.CustomerLevelType == EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差) { str.Append("<td width=\"83\" align=\"right\" bgcolor=\"#eeeeee\">单房差:</td>"); str.AppendFormat("<td width=\"163\" bgcolor=\"#eeeeee\"><input name=\"txtChildPrice\" type=\"text\" value=\"{0}\" id=\"txtChildPrice\" class=\"bottow_side2\" style=\"width:45px;\" />元/人</td>", detailModel.ChildrenPrice.ToString("F0")); } } str.Append("<td width=\"26\" bgcolor=\"#eeeeee\"><img src=\"" + ImageServerPath + "/images/deleiption.gif\" width=\"13\" height=\"13\" onclick=\"printConfig.deletePriceInfo(this);\" /></td>"); } str.Append("</tr>"); detailList = null; } priceList = null; this.ltrPriceDetail.Text = str.ToString(); str = null; } #endregion #region 行程安排 if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Quick) { if (!String.IsNullOrEmpty(model.QuickPlan)) { this.plhItinerary.Visible = false; this.plhPlan.Visible = true; this.pnlServeice.Visible = false; this.pnlRemark.Visible = false; this.ltrTourPlan1.Text = "<tr><td align=\"left\" bgcolor=\"#E8FFFF\" style=\"line-height: 15px;\">" + model.QuickPlan + "</td></tr>"; } else { //this.pnlPlan.Visible = false; } } else { IList <EyouSoft.Model.TourStructure.RouteStandardPlan> standardPlanList = model.StandardPlans; if (standardPlanList != null && standardPlanList.Count > 0) { StringBuilder strPlan = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.RouteStandardPlan standardPlanModel in standardPlanList) { strPlan.Append("<tr>"); strPlan.Append("<td width=\"61\" rowspan=\"2\" align=\"center\" bgcolor=\"#E8FFFF\" style=\"line-height: 15px;\">"); strPlan.AppendFormat("<strong>第{0}天 <br /></strong><br /></td>", standardPlanModel.PlanDay.ToString().ToUpper()); strPlan.AppendFormat("<td width=\"649\" align=\"left\" valign=\"bottom\" bgcolor=\"#E8FFFF\"><img src=\"" + ImageServerPath + "/images/xing.gif\" width=\"8\" height=\"11\" />行:{0},{1}[{2}]", standardPlanModel.PlanInterval, standardPlanModel.Vehicle, standardPlanModel.TrafficNumber); strPlan.AppendFormat("<img src=\"" + ImageServerPath + "/images/zhu.gif\" width=\"15\" height=\"11\" />住:{0}", standardPlanModel.House); strPlan.AppendFormat("<img src=\"" + ImageServerPath + "/images/chi.gif\" width=\"10\" height=\"11\" />餐:{0}</td>", standardPlanModel.Dinner); strPlan.Append("</tr>"); strPlan.Append("<tr>"); strPlan.AppendFormat("<td align=\"left\" class=\"padding30\" style=\"height:25px;\">{0}</td>", StringValidate.TextToHtml(standardPlanModel.PlanContent)); strPlan.Append("</tr>"); } standardPlanList = null; this.ltrTourPlan.Text = strPlan.ToString(); strPlan = null; } else { //this.pnlPlan.Visible = false; } } #endregion #region 包含项目及服务标准 EyouSoft.Model.TourStructure.RouteServiceStandard ServiceStandard = model.ServiceStandard; StringBuilder strService = new StringBuilder(); if (ServiceStandard != null) { if (!String.IsNullOrEmpty(ServiceStandard.ResideContent)) { strService.AppendFormat("住宿:{0};", StringValidate.TextToHtml(ServiceStandard.ResideContent)); } if (!String.IsNullOrEmpty(ServiceStandard.DinnerContent)) { strService.AppendFormat("用餐:{0};", StringValidate.TextToHtml(ServiceStandard.DinnerContent)); } if (!String.IsNullOrEmpty(ServiceStandard.SightContent)) { strService.AppendFormat("景点:{0};", StringValidate.TextToHtml(ServiceStandard.SightContent)); } if (!String.IsNullOrEmpty(ServiceStandard.CarContent)) { strService.AppendFormat("用车:{0};", StringValidate.TextToHtml(ServiceStandard.CarContent)); } if (!String.IsNullOrEmpty(ServiceStandard.GuideContent)) { strService.AppendFormat("导游:{0};>", StringValidate.TextToHtml(ServiceStandard.GuideContent)); } if (!String.IsNullOrEmpty(ServiceStandard.TrafficContent)) { strService.AppendFormat("往返交通:{0};", StringValidate.TextToHtml(ServiceStandard.TrafficContent)); } if (!String.IsNullOrEmpty(ServiceStandard.IncludeOtherContent)) { strService.AppendFormat("其它:{0};", StringValidate.TextToHtml(ServiceStandard.IncludeOtherContent)); } this.ltrContainContent.Text = strService.ToString(); this.ltrStandardService.Text = StringValidate.TextToHtml(ServiceStandard.NotContainService); this.ltrRemark.Text = StringValidate.TextToHtml(ServiceStandard.SpeciallyNotice); } if (strService.ToString() == string.Empty && (ServiceStandard.NotContainService == string.Empty || ServiceStandard.NotContainService == null) && (ServiceStandard.SpeciallyNotice == string.Empty || ServiceStandard.SpeciallyNotice == null)) { this.pnlServeice.Visible = false; } ServiceStandard = null; #endregion } model = null; bll = null; }
/// <summary> /// 初始化线路信息 /// </summary> private void InitRouteInfo(string RouteID) { EyouSoft.IBLL.TourStructure.IRouteBasicInfo bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance(); EyouSoft.Model.TourStructure.RouteBasicInfo model = bll.GetRouteInfo(RouteID); if (model != null) { this.Page.Title = model.RouteName; this.lblRouteName.Text = model.RouteName; this.lblTourDays.Text = model.TourDays.ToString(); #region 报价信息 IList <EyouSoft.Model.TourStructure.RoutePriceDetail> priceList = model.PriceDetails; if (priceList != null && priceList.Count > 0) { StringBuilder str = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.RoutePriceDetail priceModel in priceList) { string priceName = string.Empty; IList <EyouSoft.Model.CompanyStructure.CompanyPriceStand> priceStandList = EyouSoft.BLL.CompanyStructure.CompanyPriceStand.CreateInstance().GetList(UserInfoModel.CompanyID); str.Append("<tr>"); if (priceStandList != null && priceStandList.Count > 0) { foreach (EyouSoft.Model.CompanyStructure.CompanyPriceStand priceStandModel in priceStandList) { if (priceStandModel.ID == priceModel.PriceStandId) { priceName = priceStandModel.PriceStandName; } } } priceStandList = null; str.AppendFormat("<td width=\"110\" align=\"right\" bgcolor=\"#eeeeee\"> {0}:", priceName); IList <EyouSoft.Model.TourStructure.RoutePriceCustomerLeaveDetail> detailList = priceModel.PriceDetail; if (detailList != null && detailList.Count > 0) { foreach (EyouSoft.Model.TourStructure.RoutePriceCustomerLeaveDetail detailModel in detailList) { if (detailModel.CustomerLevelType == EyouSoft.Model.CompanyStructure.CustomerLevelType.门市) { str.Append("成人价格:</td>"); str.AppendFormat("<td width=\"155\" bgcolor=\"#eeeeee\"><input name=\"txtPeoplePrice\" type=\"text\" value=\"{0}\" id=\"txtPeoplePrice\" class=\"bottow_side2\" style=\"width:45px;\" />元/人 </td>", detailModel.AdultPrice.ToString("F0")); str.Append("<td width=\"92\" align=\"right\" bgcolor=\"#eeeeee\"> 儿童价格:</td>"); str.AppendFormat("<td width=\"143\" bgcolor=\"#eeeeee\"><input name=\"txtChildPrice\" type=\"text\" value=\"{0}\" id=\"txtChildPrice\" class=\"bottow_side2\" style=\"width:45px;\" />元/人</td>", detailModel.ChildrenPrice.ToString("F0")); } else if (detailModel.CustomerLevelType == EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差) { str.Append("<td width=\"83\" align=\"right\" bgcolor=\"#eeeeee\">单房差:</td>"); str.AppendFormat("<td width=\"163\" bgcolor=\"#eeeeee\"><input name=\"txtChildPrice\" type=\"text\" value=\"{0}\" id=\"txtChildPrice\" class=\"bottow_side2\" style=\"width:45px;\" />元/人</td>", detailModel.ChildrenPrice.ToString("F0")); } } } str.Append("</tr>"); detailList = null; } priceList = null; this.ltrPriceDetail.Text = str.ToString(); str = null; } #endregion #region 行程安排 if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Quick) { if (!String.IsNullOrEmpty(model.QuickPlan)) { this.ltrTourPlan.Text = "<tr><td align=\"left\" style=\"border-bottom:1px dashed #cccccc;\">" + model.QuickPlan + "</td></tr>"; } else { this.pnlPlan.Visible = false; } } else { IList <EyouSoft.Model.TourStructure.RouteStandardPlan> standardPlanList = model.StandardPlans; if (standardPlanList != null && standardPlanList.Count > 0) { StringBuilder strPlan = new StringBuilder(); foreach (EyouSoft.Model.TourStructure.RouteStandardPlan standardPlanModel in standardPlanList) { strPlan.Append("<tr>"); strPlan.Append("<td style=\"border-bottom:1px dashed #cccccc;\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">"); strPlan.Append("<tr>"); strPlan.AppendFormat("<td width=\"30%\" height=\"20\" align=\"left\">第{0}天 </td>", standardPlanModel.PlanDay.ToString().ToUpper()); strPlan.AppendFormat("<td width=\"30%\" align=\"left\" class=\"zi\">行:{0}[{1}]</td>", standardPlanModel.Vehicle, standardPlanModel.TrafficNumber); strPlan.AppendFormat("<td width=\"19%\" align=\"left\" class=\"red\">住:{0}</td>", standardPlanModel.House); strPlan.AppendFormat("<td width=\"21%\" align=\"left\" class=\"lv\">餐:{0}</td>", standardPlanModel.Dinner); strPlan.Append("</tr>"); strPlan.Append("<tr>"); strPlan.AppendFormat("<td colspan=\"4\" align=\"left\" class=\"padding30\">{0}</td>", StringValidate.TextToHtml(standardPlanModel.PlanContent)); strPlan.Append("</tr></table></td></tr>"); } standardPlanList = null; this.ltrTourPlan.Text = strPlan.ToString(); strPlan = null; } else { this.pnlPlan.Visible = false; } } #endregion #region 包含项目及服务标准 EyouSoft.Model.TourStructure.RouteServiceStandard ServiceStandard = model.ServiceStandard; StringBuilder strService = new StringBuilder(); if (ServiceStandard != null) { if (!String.IsNullOrEmpty(ServiceStandard.ResideContent)) { strService.AppendFormat("住宿:{0};<br/>", StringValidate.TextToHtml(ServiceStandard.ResideContent)); } if (!String.IsNullOrEmpty(ServiceStandard.DinnerContent)) { strService.AppendFormat("用餐:{0};<br/>", StringValidate.TextToHtml(ServiceStandard.DinnerContent)); } if (!String.IsNullOrEmpty(ServiceStandard.SightContent)) { strService.AppendFormat("景点:{0};<br/>", StringValidate.TextToHtml(ServiceStandard.SightContent)); } if (!String.IsNullOrEmpty(ServiceStandard.CarContent)) { strService.AppendFormat("用车:{0};<br/>", StringValidate.TextToHtml(ServiceStandard.CarContent)); } if (!String.IsNullOrEmpty(ServiceStandard.GuideContent)) { strService.AppendFormat("导游:{0};<br/>", StringValidate.TextToHtml(ServiceStandard.GuideContent)); } if (!String.IsNullOrEmpty(ServiceStandard.TrafficContent)) { strService.AppendFormat("往返交通:{0};<br/>", StringValidate.TextToHtml(ServiceStandard.TrafficContent)); } if (!String.IsNullOrEmpty(ServiceStandard.IncludeOtherContent)) { strService.AppendFormat("其它:{0};<br/>", StringValidate.TextToHtml(ServiceStandard.IncludeOtherContent)); } this.ltrContainContent.Text = strService.ToString(); this.ltrStandardService.Text = StringValidate.TextToHtml(ServiceStandard.NotContainService); this.ltrRemark.Text = StringValidate.TextToHtml(ServiceStandard.SpeciallyNotice); } if (strService.ToString() == string.Empty && (ServiceStandard.NotContainService == string.Empty || ServiceStandard.NotContainService == null) && (ServiceStandard.SpeciallyNotice == string.Empty || ServiceStandard.SpeciallyNotice == null)) { this.pnlServeice.Visible = false; } ServiceStandard = null; #endregion } }