/// <summary> /// 绑定数据 /// </summary> /// <param name="tourId"></param> private void PageInit(string tourId, string type) { EyouSoft.BLL.TourStructure.BTour bTour = new EyouSoft.BLL.TourStructure.BTour(); EyouSoft.Model.TourStructure.MTourSanPinInfo tour = bTour.GetTourInfo(tourId) as EyouSoft.Model.TourStructure.MTourSanPinInfo; if (tour != null) { if (tour.IsCheck && type.Equals("DoUpdate")) { this.phMsg.Visible = true; this.phSave.Visible = false; this.phBack.Visible = true; //发班周期 this.phdSelectDate.Visible = false; //this.lblLeaveDate.Text = UtilsCommons.GetDateString(tour.LDate.Value, this.ProviderToDate); //this.hideLeaveDate.Value = UtilsCommons.GetDateString(tour.LDate.Value, this.ProviderToDate); } //线路区域 this.litArea.Text = GetArea(tour.AreaId); this.txtRouteName.Text = tour.RouteName; this.txtTourDays.Text = tour.TourDays.ToString(); this.txtPlanPeopleNumber.Text = tour.PlanPeopleNumber.ToString(); //发班周期 //copy可选择法班周期 //this.phdSelectDate.Visible = false; this.lblLeaveDate.Text = UtilsCommons.GetDateString(tour.LDate.Value, this.ProviderToDate); this.hideLeaveDate.Value = UtilsCommons.GetDateString(tour.LDate.Value, this.ProviderToDate); //停收提前的天数 this.txtStopDays.Text = tour.StopDays.ToString(); this.txtLTraffic.Text = tour.LTraffic; this.txtRTraffic.Text = tour.RTraffic; this.txtGather.Text = tour.Gather; //附件 if (!string.IsNullOrEmpty(tour.FilePath)) { System.Text.StringBuilder agreement = new System.Text.StringBuilder(); agreement.AppendFormat("<span class='upload_filename'><a href='{0}' target='_blank'>查看附件</a><a href=\"javascript:void(0)\" onclick=\"AddSupplierPlan.DelFile(this)\" title='删除附件'><img style='vertical-align:middle' src='/images/cha.gif'></a><input type=\"hidden\" name=\"hideagreement\" value='{0}'/></span>", tour.FilePath); this.lblFile.Text = agreement.ToString(); } this.txtPlanFeature.Text = tour.PlanFeature; this.txtPeerAdultPrice.Text = Utils.FilterEndOfTheZeroDecimal(tour.MSupplierPublishPrice.SettleAdultPrice); this.txtPeerChildPrice.Text = Utils.FilterEndOfTheZeroDecimal(tour.MSupplierPublishPrice.SettleChildPrice); //行程安排 this.Journey1.SetPlanList = tour.TourPlan; //购物安排 this.txtServiceStandard.Text = tour.TourService.ServiceStandard; this.txtNoNeedItem.Text = tour.TourService.NoNeedItem; this.txtShoppingItem.Text = tour.TourService.ShoppingItem; this.txtChildServiceItem.Text = tour.TourService.ChildServiceItem; this.txtOwnExpense.Text = tour.TourService.OwnExpense; this.txtNeedAttention.Text = tour.TourService.NeedAttention; this.txtWarmRemind.Text = tour.TourService.WarmRemind; this.txtInsiderInfor.Text = tour.TourService.InsiderInfor; } }
private string PageSave(string type) { string msg = string.Empty; EyouSoft.Model.TourStructure.MTourSanPinInfo tour = new EyouSoft.Model.TourStructure.MTourSanPinInfo(); //供应商信息 tour.CompanyId = SiteUserInfo.CompanyId; tour.SourceId = SiteUserInfo.SourceCompanyInfo.CompanyId; tour.SourceCompanyName = SiteUserInfo.SourceCompanyInfo.CompanyName; //销售员为null // tour.SaleInfo = new EyouSoft.Model.TourStructure.MSaleInfo(); tour.IsShowDistribution = true; tour.OperatorInfo = new EyouSoft.Model.TourStructure.MOperatorInfo(); tour.OperatorInfo.OperatorId = SiteUserInfo.UserId; tour.OperatorInfo.Name = SiteUserInfo.Name; tour.OperatorInfo.Mobile = SiteUserInfo.Mobile; tour.AreaId = Utils.GetInt(Utils.GetFormValue("sltArea")); if (tour.AreaId <= 0) { msg += "请选择线路区域 </br>"; } tour.RouteName = Utils.GetFormValue(this.txtRouteName.UniqueID); if (string.IsNullOrEmpty(tour.RouteName)) { msg += "请填写线路名称 </br>"; } tour.TourDays = Utils.GetInt(Utils.GetFormValue(this.txtTourDays.UniqueID)); if (tour.TourDays <= 0) { msg += "请填写团队天数 </br>"; } string leaveDate = Utils.GetFormValue(this.hideLeaveDate.UniqueID); if (string.IsNullOrEmpty(leaveDate)) { msg += "请选择发班周期 </br>"; } //预控人数 tour.PlanPeopleNumber = Utils.GetInt(Utils.GetFormValue(this.txtPlanPeopleNumber.UniqueID), 0); if (tour.PlanPeopleNumber < 0) { msg += "请填写预控人数 </br>"; } tour.StopDays = Utils.GetInt(Utils.GetFormValue(this.txtStopDays.UniqueID)); if (tour.StopDays < 0) { msg += "请选填写停收提前天数 </br>"; } decimal adultPrice = Utils.GetDecimal(Utils.GetFormValue(this.txtPeerAdultPrice.UniqueID), 0); if (adultPrice <= 0) { msg += "请填写正确的成人结算价格 </br>"; } decimal childPrice = Utils.GetDecimal(Utils.GetFormValue(this.txtPeerChildPrice.UniqueID), 0); if (childPrice <= 0) { msg += "请填写正确的儿童结算价格 </br>"; } tour.MSupplierPublishPrice = new EyouSoft.Model.TourStructure.MSupplierPublishPrice(); tour.MSupplierPublishPrice.SettleAdultPrice = adultPrice; tour.MSupplierPublishPrice.SettleChildPrice = childPrice; tour.LTraffic = Utils.GetFormValue(this.txtLTraffic.UniqueID); tour.RTraffic = Utils.GetFormValue(this.txtRTraffic.UniqueID); tour.Gather = Utils.GetFormValue(this.txtGather.UniqueID); tour.PlanFeature = Utils.GetFormValue(this.txtPlanFeature.UniqueID); //附件 string file = Utils.GetFormValue(this.UploadControl1.ClientHideID); if (!string.IsNullOrEmpty(file)) { tour.FilePath = file.Split('|')[1]; } else { tour.FilePath = Utils.GetFormValue("hideagreement"); } //行程安排 tour.TourPlan = UtilsCommons.GetPlanList(); //购物安排 tour.TourService = new EyouSoft.Model.TourStructure.MTourService(); tour.TourService.ServiceStandard = Utils.GetFormValue(this.txtServiceStandard.UniqueID); tour.TourService.NoNeedItem = Utils.GetFormValue(this.txtNoNeedItem.UniqueID); tour.TourService.ShoppingItem = Utils.GetFormValue(this.txtShoppingItem.UniqueID); tour.TourService.ChildServiceItem = Utils.GetFormValue(this.txtChildServiceItem.UniqueID); tour.TourService.OwnExpense = Utils.GetFormValue(this.txtOwnExpense.UniqueID); tour.TourService.NeedAttention = Utils.GetFormValue(this.txtNeedAttention.UniqueID); tour.TourService.WarmRemind = Utils.GetFormValue(this.txtWarmRemind.UniqueID); tour.TourService.InsiderInfor = Utils.GetFormValue(this.txtInsiderInfor.UniqueID); tour.TourType = EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼; //未审核的线路才能修改,在此之前线路状态:销售未派计划 tour.TourStatus = EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划; if (msg.Length <= 0) { //选择发班周期 var selLdateCount = Utils.GetFormValue(this.hideLeaveDate.UniqueID).Split(','); switch (type) { case "DoAdd": //发班周期、添加子团 tour.TourDays = Utils.GetInt(Utils.GetFormValue("txtTourDays"), 0); string[] successDateBegin = string.IsNullOrEmpty(Utils.GetFormValue(this.hideLeaveDate.UniqueID)) ? null : selLdateCount; if (successDateBegin != null) { tour.TourChildrenInfo = new List <EyouSoft.Model.TourStructure.MTourChildrenInfo>(); for (int i = 0; i < successDateBegin.Length; i++) { EyouSoft.Model.TourStructure.MTourChildrenInfo childModel = new EyouSoft.Model.TourStructure.MTourChildrenInfo(); childModel.LDate = Utils.GetDateTime(successDateBegin[i]); childModel.RDate = Utils.GetDateTime(successDateBegin[i]).AddDays(tour.TourDays); tour.TourChildrenInfo.Add(childModel); } } EyouSoft.BLL.TourStructure.BTour bTourA = new EyouSoft.BLL.TourStructure.BTour(); if (bTourA.AddTourSanPin(tour)) { msg = UtilsCommons.AjaxReturnJson("1", "产品投放 成功,正在跳转.."); } else { msg = UtilsCommons.AjaxReturnJson("0", "产品投放 失败!"); } break; case "DoUpdate": tour.TourId = Utils.GetQueryStringValue("TourId"); tour.TourDays = Utils.GetInt(Utils.GetFormValue(this.txtTourDays.UniqueID), 0); if (selLdateCount.Count() > 1) { msg = UtilsCommons.AjaxReturnJson("0", "请选择一个出团日期!"); return(msg); } tour.LDate = Utils.GetDateTime(selLdateCount[0]); tour.RDate = tour.LDate.Value.AddDays(tour.TourDays); EyouSoft.BLL.TourStructure.BTour bTourU = new EyouSoft.BLL.TourStructure.BTour(); if (bTourU.UpdateTourSanPin(tour)) { msg = UtilsCommons.AjaxReturnJson("1", "产品修改 成功,正在跳转.."); } else { msg = UtilsCommons.AjaxReturnJson("0", "产品修改 失败!"); } break; case "DoCopy": tour.TourDays = Utils.GetInt(Utils.GetFormValue("txtTourDays"), 0); if (selLdateCount.Count() > 1) { msg = UtilsCommons.AjaxReturnJson("0", "请选择一个出团日期!"); return(msg); } tour.LDate = Utils.GetDateTime(selLdateCount[0]); tour.RDate = tour.LDate.Value.AddDays(tour.TourDays); EyouSoft.BLL.TourStructure.BTour bTourC = new EyouSoft.BLL.TourStructure.BTour(); if (bTourC.AddTourSanPin(tour)) { msg = UtilsCommons.AjaxReturnJson("1", "产品复制 成功,正在跳转.."); } else { msg = UtilsCommons.AjaxReturnJson("0", "产品复制 失败!"); } break; default: msg = UtilsCommons.AjaxReturnJson("0", "未执行任何操作!"); break; } } else { msg = UtilsCommons.AjaxReturnJson("0", msg); } return(msg); }
/// <summary> /// 初始化信息 /// </summary> private void InitInfo() { string orderid = string.Empty; EyouSoft.BLL.TourStructure.BTour bll = new EyouSoft.BLL.TourStructure.BTour(); EyouSoft.Model.TourStructure.MTourBaseInfo baseModel = bll.GetTourInfo(TourId); if (baseModel == null) { RCWE("异常请求"); } EyouSoft.Model.TourStructure.MTourTeamInfo teamModel = null; EyouSoft.Model.TourStructure.MTourSanPinInfo sanpinModel = null; switch (baseModel.TourType) { case EyouSoft.Model.EnumType.TourStructure.TourType.出境团队: case EyouSoft.Model.EnumType.TourStructure.TourType.地接团队: case EyouSoft.Model.EnumType.TourStructure.TourType.组团团队: teamModel = (EyouSoft.Model.TourStructure.MTourTeamInfo)baseModel; break; case EyouSoft.Model.EnumType.TourStructure.TourType.单项服务: this.TGuideNote.Visible = false; this.TReceiveJourney.Visible = false; this.TService.Visible = false; this.ph_rpt_OrderinfoList.Visible = false; return; default: sanpinModel = (EyouSoft.Model.TourStructure.MTourSanPinInfo)baseModel; break; } #region 订单信息 EyouSoft.BLL.TourStructure.BTourOrder bllorder = new EyouSoft.BLL.TourStructure.BTourOrder(); EyouSoft.Model.TourStructure.MOrderSum ordersum = new EyouSoft.Model.TourStructure.MOrderSum(); IList <EyouSoft.Model.TourStructure.MTourOrder> MtourOrder = bllorder.GetTourOrderListById(TourId, ref ordersum).Where(c => c.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.已成交).ToList(); if (MtourOrder != null && MtourOrder.Count > 0) { this.rpt_OrderinfoList.DataSource = MtourOrder; this.rpt_OrderinfoList.DataBind(); } else { this.ph_rpt_OrderinfoList.Visible = false; } #endregion #region 团队信息 if (teamModel != null) { this.lbRouteName.Text = teamModel.RouteName; this.lbTourCode.Text = teamModel.TourCode; this.lbdayCount.Text = teamModel.TourDays.ToString(); this.lbstarttime.Text = UtilsCommons.GetDateString(teamModel.LDate, ProviderToDate); this.lbendtime.Text = UtilsCommons.GetDateString(teamModel.RDate, ProviderToDate); if (teamModel.GuideList != null && teamModel.GuideList.Count > 0) { string guidelist = string.Empty; for (int i = 0; i < teamModel.GuideList.Count; i++) { if (i == teamModel.GuideList.Count - 1) { guidelist += teamModel.GuideList[i].Name; } else { guidelist += teamModel.GuideList[i].Name + "、"; } } this.lbguidename.Text = guidelist; } this.lbpeoplecount.Text = teamModel.PlanPeopleNumber.ToString(); if (teamModel.TourPlaner != null && teamModel.TourPlaner.Count > 0) { string planerlist = string.Empty; for (int i = 0; i < teamModel.TourPlaner.Count; i++) { if (i == teamModel.TourPlaner.Count - 1) { planerlist += teamModel.TourPlaner[i].Planer; } else { planerlist += teamModel.TourPlaner[i].Planer + "、"; } } var jiDiaoInfo = new EyouSoft.BLL.ComStructure.BComUser().GetModel(teamModel.TourPlaner[0].PlanerId, CurrentUserCompanyID); if (jiDiaoInfo != null) { planerlist += " " + jiDiaoInfo.ContactMobile + " " + jiDiaoInfo.ContactTel; } this.lbplander.Text = planerlist; } if (teamModel.SaleInfo != null) { var xiaoShouYuanInfo = new EyouSoft.BLL.ComStructure.BComUser().GetModel(teamModel.SaleInfo.SellerId, CurrentUserCompanyID); if (xiaoShouYuanInfo != null) { teamModel.SaleInfo.Mobile = xiaoShouYuanInfo.ContactMobile; teamModel.SaleInfo.Phone = xiaoShouYuanInfo.ContactTel; } this.lbsellerinfo.Text = teamModel.SaleInfo.Name + " " + teamModel.SaleInfo.Mobile + " " + teamModel.SaleInfo.Phone; } } else if (sanpinModel != null) { this.lbRouteName.Text = baseModel.RouteName; this.lbTourCode.Text = baseModel.TourCode; this.lbdayCount.Text = baseModel.TourDays.ToString(); this.lbstarttime.Text = UtilsCommons.GetDateString(baseModel.LDate, ProviderToDate); this.lbendtime.Text = UtilsCommons.GetDateString(baseModel.RDate, ProviderToDate); if (baseModel.GuideList != null && baseModel.GuideList.Count > 0) { string guidelist = string.Empty; for (int i = 0; i < baseModel.GuideList.Count; i++) { if (i == baseModel.GuideList.Count - 1) { guidelist += baseModel.GuideList[i].Name; } else { guidelist += baseModel.GuideList[i].Name + "、"; } } this.lbguidename.Text = guidelist; } this.lbpeoplecount.Text = baseModel.PlanPeopleNumber.ToString(); if (baseModel.TourPlaner != null && baseModel.TourPlaner.Count > 0) { string planerlist = string.Empty; for (int i = 0; i < baseModel.TourPlaner.Count; i++) { if (i == baseModel.TourPlaner.Count - 1) { planerlist += baseModel.TourPlaner[i].Planer; } else { planerlist += baseModel.TourPlaner[i].Planer + "、"; } } var jiDiaoInfo = new EyouSoft.BLL.ComStructure.BComUser().GetModel(baseModel.TourPlaner[0].PlanerId, CurrentUserCompanyID); if (jiDiaoInfo != null) { planerlist += " " + jiDiaoInfo.ContactMobile + " " + jiDiaoInfo.ContactTel; } this.lbplander.Text = planerlist; } if (baseModel.SaleInfo != null) { var xiaoShouYuanInfo = new EyouSoft.BLL.ComStructure.BComUser().GetModel(baseModel.SaleInfo.SellerId, CurrentUserCompanyID); if (xiaoShouYuanInfo != null) { baseModel.SaleInfo.Mobile = xiaoShouYuanInfo.ContactMobile; baseModel.SaleInfo.Phone = xiaoShouYuanInfo.ContactTel; } this.lbsellerinfo.Text = baseModel.SaleInfo.Name + " " + baseModel.SaleInfo.Mobile + " " + baseModel.SaleInfo.Phone; } } else { return; } #endregion #region 计调信息 EyouSoft.BLL.PlanStructure.BPlan bllPlan = new EyouSoft.BLL.PlanStructure.BPlan(); EyouSoft.Model.PlanStructure.MPlanBaseInfo planinfo = bllPlan.GetGuidePrint(TourId); #region 导游安排接待行程 if (!string.IsNullOrEmpty(planinfo.ReceiveJourney)) { TReceiveJourney.Visible = true; this.lbReceiveJourney.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(planinfo.ReceiveJourney); } else { TReceiveJourney.Visible = false; } #endregion #region 导游安排服务标准 if (!string.IsNullOrEmpty(planinfo.ServiceStandard)) { TService.Visible = true; this.lbServiceStandard.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(planinfo.ServiceStandard); } else { TService.Visible = false; } #endregion #region 导游须知 if (!string.IsNullOrEmpty(planinfo.GuideNotes)) { TGuideNote.Visible = true; this.lbGuidNote.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(planinfo.GuideNotes); } else { this.TGuideNote.Visible = false; } #endregion #region 团队支付详单 #region 导游 IList <EyouSoft.Model.PlanStructure.MPlan> GuidePlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.导游, null, null, false, null, TourId, PlanState.已落实); GuidePlanList = GetZhiChus(GuidePlanList); if (GuidePlanList != null && GuidePlanList.Count > 0) { this.guid = GuidePlanList.Count; this.rpt_guid.DataSource = GuidePlanList; this.rpt_guid.DataBind(); } else { this.ph_guid.Visible = false; } #endregion #region 地接 IList <EyouSoft.Model.PlanStructure.MPlan> groundPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.地接, null, null, false, null, TourId, PlanState.已落实); groundPlanList = GetZhiChus(groundPlanList); if (groundPlanList != null && groundPlanList.Count > 0) { this.dijie = groundPlanList.Count; this.rpt_dijie.DataSource = groundPlanList; this.rpt_dijie.DataBind(); } else { this.ph_dijie.Visible = false; } #endregion #region 飞机 IList <EyouSoft.Model.PlanStructure.MPlan> phanePlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.飞机, null, null, false, null, TourId, PlanState.已落实); phanePlanList = GetZhiChus(phanePlanList); if (phanePlanList != null && phanePlanList.Count > 0) { this.plane = phanePlanList.Count; this.rpt_plane.DataSource = phanePlanList; this.rpt_plane.DataBind(); } else { this.ph_plane.Visible = false; } #endregion #region 购物 IList <EyouSoft.Model.PlanStructure.MPlan> shopPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.购物, null, null, false, null, TourId, PlanState.已落实); shopPlanList = GetZhiChus(shopPlanList); if (shopPlanList != null && shopPlanList.Count > 0) { this.gouwu = shopPlanList.Count; this.rpt_gouwu.DataSource = shopPlanList; this.rpt_gouwu.DataBind(); } else { this.ph_gouwu.Visible = false; } #endregion #region 国内游轮 IList <EyouSoft.Model.PlanStructure.MPlan> InshipPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.国内游轮, null, null, false, null, TourId, PlanState.已落实); InshipPlanList = GetZhiChus(InshipPlanList); if (InshipPlanList != null && InshipPlanList.Count > 0) { this.guoneichuan = InshipPlanList.Count; this.rpt_guoneichuan.DataSource = InshipPlanList; this.rpt_guoneichuan.DataBind(); } else { this.ph_guoneichuan.Visible = false; } #endregion #region 涉外游轮 IList <EyouSoft.Model.PlanStructure.MPlan> OutshipPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.涉外游轮, null, null, false, null, TourId, PlanState.已落实); OutshipPlanList = GetZhiChus(OutshipPlanList); if (OutshipPlanList != null && OutshipPlanList.Count > 0) { this.shewaichuan = OutshipPlanList.Count; this.rpt_shewaichuan.DataSource = OutshipPlanList; this.rpt_shewaichuan.DataBind(); } else { this.ph_shewaichuan.Visible = false; } #endregion #region 火车 IList <EyouSoft.Model.PlanStructure.MPlan> trainPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.火车, null, null, false, null, TourId, PlanState.已落实); trainPlanList = GetZhiChus(trainPlanList); if (trainPlanList != null && trainPlanList.Count > 0) { this.train = trainPlanList.Count; this.rpt_train.DataSource = trainPlanList; this.rpt_train.DataBind(); } else { this.ph_train.Visible = false; } #endregion #region 景点 IList <EyouSoft.Model.PlanStructure.MPlan> scenicPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.景点, null, null, false, null, TourId, PlanState.已落实); scenicPlanList = GetZhiChus(scenicPlanList); if (scenicPlanList != null && scenicPlanList.Count > 0) { this.jingdian = scenicPlanList.Count; this.rpt_jingdian.DataSource = scenicPlanList; this.rpt_jingdian.DataBind(); } else { this.ph_jingdian.Visible = false; } #endregion #region 酒店 IList <EyouSoft.Model.PlanStructure.MPlan> hotelPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.酒店, null, null, false, null, TourId, PlanState.已落实); hotelPlanList = GetZhiChus(hotelPlanList); if (hotelPlanList != null && hotelPlanList.Count > 0) { this.hotel = hotelPlanList.Count; this.rpt_hotellistk.DataSource = hotelPlanList; this.rpt_hotellistk.DataBind(); } else { this.ph_hotel.Visible = false; } #endregion #region 领料 IList <EyouSoft.Model.PlanStructure.MPlan> lingliaolPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.领料, null, null, false, null, TourId, PlanState.已落实); lingliaolPlanList = GetZhiChus(lingliaolPlanList); if (lingliaolPlanList != null && lingliaolPlanList.Count > 0) { this.lingliao = lingliaolPlanList.Count; this.rpt_lingliao.DataSource = lingliaolPlanList; this.rpt_lingliao.DataBind(); } else { this.ph_lingliao.Visible = false; } #endregion #region 其它 IList <EyouSoft.Model.PlanStructure.MPlan> otherlPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.其它, null, null, false, null, TourId, PlanState.已落实); otherlPlanList = GetZhiChus(otherlPlanList); if (otherlPlanList != null && otherlPlanList.Count > 0) { this.qita = otherlPlanList.Count; this.rpt_qita.DataSource = otherlPlanList; this.rpt_qita.DataBind(); } else { this.ph_qita.Visible = false; } #endregion #region 汽车 IList <EyouSoft.Model.PlanStructure.MPlan> busPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.汽车, null, null, false, null, TourId, PlanState.已落实); busPlanList = GetZhiChus(busPlanList); if (busPlanList != null && busPlanList.Count > 0) { this.bus = busPlanList.Count; this.rpt_bus.DataSource = busPlanList; this.rpt_bus.DataBind(); } else { this.ph_bus.Visible = false; } #endregion #region 用餐 IList <EyouSoft.Model.PlanStructure.MPlan> yongcanPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.用餐, null, null, false, null, TourId, PlanState.已落实); yongcanPlanList = GetZhiChus(yongcanPlanList); if (yongcanPlanList != null && yongcanPlanList.Count > 0) { this.yongcan = yongcanPlanList.Count; this.rpt_yongcan.DataSource = yongcanPlanList; this.rpt_yongcan.DataBind(); } else { this.ph_yongcan.Visible = false; } #endregion #region 用车 IList <EyouSoft.Model.PlanStructure.MPlan> carPlanList = bllPlan.GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.用车, null, null, false, null, TourId, PlanState.已落实); carPlanList = GetZhiChus(carPlanList); if (carPlanList != null && carPlanList.Count > 0) { this.chedui = carPlanList.Count; this.rpt_chedui.DataSource = carPlanList; this.rpt_chedui.DataBind(); } else { this.ph_chedui.Visible = false; } #endregion #endregion #endregion }
protected void PageInitForOrder(string orderID) { EyouSoft.BLL.TourStructure.BTourOrder bll = new EyouSoft.BLL.TourStructure.BTourOrder(); EyouSoft.Model.TourStructure.MTourOrderExpand orderModel = bll.GetTourOrderExpandByOrderId(orderID); if (orderModel != null) { if (orderModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线) { Utils.ResponseGoBack(); return; } this.lblOrderNum.Text = orderModel.OrderCode; this.SellsSelect1.SellsID = orderModel.SellerId; this.SellsSelect1.SellsName = orderModel.SellerName; this.hideDeptID.Value = orderModel.DeptId.ToString(); this.CountryID = orderModel.BuyCountryId.ToString(); this.ProvinceID = orderModel.BuyProvincesId.ToString(); this.CustomerUnitSelect1.CustomerUnitId = orderModel.BuyCompanyId; this.CustomerUnitSelect1.CustomerUnitName = orderModel.BuyCompanyName; this.txtContact.Text = orderModel.ContactName; this.txtContactTel.Text = orderModel.ContactTel; this.hideContactDeptId.Value = orderModel.ContactDepartId; this.lblOrderMan.Text = orderModel.Operator; this.txtAdultCount.Text = orderModel.Adults.ToString(); this.txtChildCount.Text = orderModel.Childs.ToString(); this.hideTourId.Value = orderModel.TourId; this.hideOldAdultCount.Value = orderModel.Adults.ToString() + "|" + orderModel.Childs.ToString(); txtHeTongHao.HeTongId = orderModel.ContractId; txtHeTongHao.HeTongCode = orderModel.ContractCode; this.hideSourceID.Value = orderModel.SourceId; if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单) { phKeHuKeYuanDanWei.Visible = true; ltrKeHuKeYuanDanWeiName.Text = orderModel.DCompanyName; ltrKeHuKeYuanDanWeiLxrName.Text = orderModel.DContactName; ltrKeHuKeYuanDanWeiLxrTelephone.Text = orderModel.DContactTel; } txtNeiBuXinXi.Text = orderModel.NeiBuXinXi; #region 销售价与报价等级 this.hideLevelID.Value = orderModel.LevId.ToString(); this.hidePriceStandID.Value = orderModel.PriceStandId.ToString(); this.hideAdultPrice.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.AdultPrice); this.hideChildPrcie.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.ChildPrice); #endregion #region 结算价与报价等级 this.hideSettAdultPrice.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.PeerAdultPrice); this.hideSettChildPrice.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.PeerChildPrice); #endregion EyouSoft.Model.TourStructure.MTourSanPinInfo tourModel = (EyouSoft.Model.TourStructure.MTourSanPinInfo) new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(orderModel.TourId); if (tourModel != null) { //权限控制 PowerControl(tourModel.TourType); this.hideTourType.Value = ((int)tourModel.TourType).ToString(); this.PriceStand1.SetPriceStandard = tourModel.MTourPriceStandard; if (orderModel.MTourOrderTravellerList != null) { switch (tourModel.TourType) { case EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼: case EyouSoft.Model.EnumType.TourStructure.TourType.出境团队: this.pnlTravelFrist.Visible = false; this.TravelControlS1.SetTravelList = orderModel.MTourOrderTravellerList.Where(p => p.TravellerStatus == EyouSoft.Model.EnumType.TourStructure.TravellerStatus.在团).ToList(); break; default: this.pnlTravelSecond.Visible = false; this.TravelControl1.SetTravelList = orderModel.MTourOrderTravellerList.Where(p => p.TravellerStatus == EyouSoft.Model.EnumType.TourStructure.TravellerStatus.在团).ToList(); break; } IList <EyouSoft.Model.TourStructure.MTourOrderTraveller> outTraveller = orderModel.MTourOrderTravellerList.Where(p => p.TravellerStatus == EyouSoft.Model.EnumType.TourStructure.TravellerStatus.退团).ToList(); if (outTraveller != null && outTraveller.Count > 0) { this.rptOutTraveller.DataSource = outTraveller; this.rptOutTraveller.DataBind(); } } } this.txtAddPrice.Text = Utils.FilterEndOfTheZeroDecimal(orderModel.SaleAddCost); this.txtRemarksFrist.Text = orderModel.SaleAddCostRemark; this.txtReducePrice.Text = Utils.FilterEndOfTheZeroDecimal(orderModel.SaleReduceCost); this.txtRemarksSecond.Text = orderModel.SaleReduceCostRemark; this.txtTotalPrice.Text = Utils.FilterEndOfTheZeroDecimal(orderModel.SumPrice); this.hideOldSumMoney.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.SumPrice); this.txtGuidePrice.Text = Utils.FilterEndOfTheZeroDecimal(orderModel.GuideIncome); this.lblSellPrice.Text = Utils.FilterEndOfTheZeroDecimal(orderModel.SalerIncome); this.txtSaveSeatDate.Text = orderModel.SaveSeatDate.HasValue ? orderModel.SaveSeatDate.Value.ToString("yyyy-MM-dd HH:mm") : ""; this.txtRemarksOrder.Text = orderModel.OrderRemark; this.hideOrderFrom.Value = ((int)orderModel.OrderType).ToString(); this.pdhJiXuLiuWei.Visible = false; this.phdQueRenYuLiu.Visible = false; this.pdhBaoCun.Visible = false; this.phdQuXiao.Visible = false; this.phdBuShouLi.Visible = false; this.phsQueRenChengJiao.Visible = false; #region 获得该订单的计划状态 EyouSoft.BLL.TourStructure.BTour btour = new EyouSoft.BLL.TourStructure.BTour(); EyouSoft.Model.EnumType.TourStructure.TourStatus tourStatus = btour.GetTourStatus(SiteUserInfo.CompanyId, orderModel.TourId); if (tourStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划) { //该团已派计调 this.hideOrderBianGeng.Value = "true"; } else { this.hideOrderBianGeng.Value = "false"; } #endregion //必须是下单人或者是销售员才可以修改订单 或者拥有修改所有数据的权限 bool isUpdate = false; if (!SiteUserInfo.IsHandleElse) { if (orderModel.SellerId == SiteUserInfo.UserId || orderModel.OperatorId == SiteUserInfo.UserId || orderModel.TourSellerId == SiteUserInfo.UserId) { isUpdate = true; } if (isUpdate == false) { if (orderModel.TourPlanerList != null && orderModel.TourPlanerList.Count > 0) { for (int i = 0; i < orderModel.TourPlanerList.Count; i++) { if (orderModel.TourPlanerList[i].PlanerId == SiteUserInfo.UserId) { isUpdate = true; } } } } } if (isUpdate) { this.hideOrderState.Value = ((int)orderModel.OrderStatus).ToString(); if (!string.IsNullOrEmpty(orderModel.SourceId) && orderModel.SourceId.Trim() != "") { if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单) { if (orderModel.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.未处理) { this.pdhBaoCun.Visible = true; } else { this.pdhAllBtns.Visible = false; } } else { if ((orderModel.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.未处理 || orderModel.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核成功) && orderModel.TourStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.封团 && orderModel.TourStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.已取消) { this.pdhBaoCun.Visible = true; this.phdQuXiao.Visible = true; } else { this.pdhAllBtns.Visible = false; } } } else { var _tourStatus = new EyouSoft.Model.EnumType.TourStructure.TourStatus[] { EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划 , EyouSoft.Model.EnumType.TourStructure.TourStatus.计调未接收 , EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置 , EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕 , EyouSoft.Model.EnumType.TourStructure.TourStatus.导游带团 , EyouSoft.Model.EnumType.TourStructure.TourStatus.导游报帐 }; switch (orderModel.OrderStatus) { case EyouSoft.Model.EnumType.TourStructure.OrderStatus.受理: this.litOrderMsg.Text = "<div class='tishi_info'>该订单不受理,无法操作!</div>"; break; case EyouSoft.Model.EnumType.TourStructure.OrderStatus.已取消: this.litOrderMsg.Text = "<div class='tishi_info'>该订单已取消,无法操作!</div>"; break; case EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核: this.litOrderMsg.Text = "<div class='tishi_info'>该订单正在垫付申请审核中,无法操作!</div>"; break; case EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核失败: if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单) { this.phdBuShouLi.Visible = true; } else { this.phdQuXiao.Visible = true; } break; case EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核成功: case EyouSoft.Model.EnumType.TourStructure.OrderStatus.未处理: if (_tourStatus.Contains(orderModel.TourStatus)) { this.pdhBaoCun.Visible = true; this.phdQueRenYuLiu.Visible = true; this.phsQueRenChengJiao.Visible = true; if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单) { this.phdBuShouLi.Visible = true; } else { this.phdQuXiao.Visible = true; } } break; case EyouSoft.Model.EnumType.TourStructure.OrderStatus.留位过期: case EyouSoft.Model.EnumType.TourStructure.OrderStatus.已留位: if (_tourStatus.Contains(orderModel.TourStatus)) { if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单) { this.phdBuShouLi.Visible = true; } else { this.phdQuXiao.Visible = true; } this.pdhJiXuLiuWei.Visible = true; this.phsQueRenChengJiao.Visible = true; } break; case EyouSoft.Model.EnumType.TourStructure.OrderStatus.已成交: if (_tourStatus.Contains(orderModel.TourStatus)) { this.pdhBaoCun.Visible = true; this.phdQuXiao.Visible = true; } break; case EyouSoft.Model.EnumType.TourStructure.OrderStatus.资金超限: if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单) { this.phdBuShouLi.Visible = true; } else { this.phdQuXiao.Visible = true; } break; } } } } else { Utils.ResponseGoBack(); } }
/// <summary> /// 页面初始化 /// </summary> /// <param name="id">操作tourID</param> protected void PageInitForTour(string tourID) { EyouSoft.BLL.TourStructure.BTour bll = new EyouSoft.BLL.TourStructure.BTour(); EyouSoft.Model.TourStructure.MTourSanPinInfo tourBaseModel = (EyouSoft.Model.TourStructure.MTourSanPinInfo)bll.GetTourInfo(tourID); if (tourBaseModel != null) { //权限控制 PowerControl(tourBaseModel.TourType); //根据计划类型显示 if (tourBaseModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼) { this.pnlTravelFrist.Visible = false; } else { this.pnlTravelSecond.Visible = false; } this.hideTourType.Value = ((int)tourBaseModel.TourType).ToString(); this.hideSourceID.Value = tourBaseModel.SourceId; this.PriceStand1.ShowModel = true; this.PriceStand1.SetPriceStandard = tourBaseModel.MTourPriceStandard; this.SellsSelect1.SellsID = SiteUserInfo.UserId; this.SellsSelect1.SellsName = SiteUserInfo.Name; this.hideDeptID.Value = SiteUserInfo.DeptId.ToString(); this.hideDeptName.Value = SiteUserInfo.DeptName; this.lblOrderMan.Text = SiteUserInfo.Name; this.pdhJiXuLiuWei.Visible = false; this.pdhBaoCun.Visible = false; this.phdQuXiao.Visible = false; this.phdBuShouLi.Visible = false; this.phdQueRenYuLiu.Visible = false; this.phsQueRenChengJiao.Visible = false; //如果是供应商的团 if (tourBaseModel.SourceId != null && tourBaseModel.SourceId.Trim() != "") { var _status = new EyouSoft.Model.EnumType.TourStructure.TourStatus[] { EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划, EyouSoft.Model.EnumType.TourStructure.TourStatus.计调未接收, EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置 }; if (_status.Contains(tourBaseModel.TourStatus)) { this.pdhBaoCun.Visible = true; } else { this.litOrderMsg.Text = "<div class='tishi_info'>该计划已经配置完毕,不可报名。</div>"; } } else { var _status = new EyouSoft.Model.EnumType.TourStructure.TourStatus[] { EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划, EyouSoft.Model.EnumType.TourStructure.TourStatus.计调未接收, EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置 }; if (_status.Contains(tourBaseModel.TourStatus)) { this.phdQueRenYuLiu.Visible = true; this.phsQueRenChengJiao.Visible = true; } else { this.litOrderMsg.Text = "<div class='tishi_info'>该计划已经配置完毕,不可报名。</div>"; } } } else { Utils.ResponseGoBack(); } }
/// <summary> /// 初始化团队信息 /// </summary> /// <param name="tourID"></param> protected void DataInitTourInfo(string tourID) { if (!string.IsNullOrEmpty(tourID)) { EyouSoft.Model.TourStructure.MTourBaseInfo tourInfo = new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(tourID); if (tourInfo != null) { TourType = (int)tourInfo.TourType; this.litTourCode.Text = tourInfo.TourCode; EyouSoft.Model.ComStructure.MComArea AreaModel = new EyouSoft.BLL.ComStructure.BComArea().GetModel(tourInfo.AreaId, SiteUserInfo.CompanyId); if (AreaModel != null) { this.litAreaName.Text = AreaModel.AreaName; } AreaModel = null; this.litRouteName.Text = tourInfo.RouteName; this.litDays.Text = tourInfo.TourDays.ToString(); this.litStartDate.Text = EyouSoft.Common.UtilsCommons.GetDateString(tourInfo.LDate, ProviderToDate); this.litEndDate.Text = EyouSoft.Common.UtilsCommons.GetDateString(tourInfo.RDate, ProviderToDate); //人数 this.litPeoples.Text = tourInfo.PlanPeopleNumber.ToString(); //导游人数 if (tourInfo.GuideList != null && tourInfo.GuideList.Count > 0) { this.litGuidNames.Text = UtilsCommons.PingGuide(tourInfo.GuideList); } //需安排计调项 if (tourInfo.TourPlanItem != null && tourInfo.TourPlanItem.Count > 0) { for (int i = 0; i < tourInfo.TourPlanItem.Count; i++) { if (i == tourInfo.TourPlanItem.Count - 1) { strOperaterPlanHtml += "" + tourInfo.TourPlanItem[i].PlanType.ToString(); } else { strOperaterPlanHtml += "" + tourInfo.TourPlanItem[i].PlanType.ToString() + "、"; } } } else { this.planItemView.Visible = false; } //销售员 if (tourInfo.SaleInfo != null) { this.litSellers.Text = tourInfo.SaleInfo.Name; } //计调员 if (tourInfo.TourPlaner != null && tourInfo.TourPlaner.Count > 0) { this.litOperaters.Text = UtilsCommons.PingPlaner(tourInfo.TourPlaner); } if (tourInfo.TourService != null) { //内部信息 this.LitInterInfo.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.TourService.InsiderInfor); //服务标准 //this.litCostAccount.Text = tourInfo.TourService.ServiceStandard; //不含项目 this.litObjectItem.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.TourService.NoNeedItem); //购物安排 this.litShoppPlan.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.TourService.ShoppingItem); //儿童安排 this.litChildrenPlan.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.TourService.ChildServiceItem); //自费项目 this.litExpenceObj.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.TourService.OwnExpense); //注意事项 this.litAttenTion.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.TourService.NeedAttention); //温馨提醒 this.litWenxinTix.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.TourService.WarmRemind); } //成本核算 this.litCostCalculation.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(tourInfo.CostCalculation); //行程安排 this.dt = tourInfo.LDate.HasValue ? tourInfo.LDate.Value : DateTime.Now; if (tourInfo.TourPlan != null && tourInfo.TourPlan.Count > 0) { this.repSchedulePlan.DataSource = tourInfo.TourPlan; this.repSchedulePlan.DataBind(); } //团队类型 散拼 组团 if (tourInfo.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼 || tourInfo.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.地接散拼 || tourInfo.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼) { //价格组成 EyouSoft.Model.TourStructure.MTourSanPinInfo SanpinInfo = (EyouSoft.Model.TourStructure.MTourSanPinInfo)tourInfo; if (SanpinInfo != null) { if (SanpinInfo.MTourPriceStandard != null && SanpinInfo.MTourPriceStandard.Count > 0) { //客户等级列 System.Text.StringBuilder priceLeaveCols = new System.Text.StringBuilder(); priceLeaveCols.Append("<tr>"); //标价标准表头 TourPriceStandardHtml.Append("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"jd-table01\" style=\"border-bottom: 1px solid #A9D7EC;\">"); TourPriceStandardHtml.Append("<tr><th width=\"100\" rowspan=\"2\" align=\"center\" class=\"border-l\">标准</th>"); if (SanpinInfo.MTourPriceStandard[0].PriceLevel != null && SanpinInfo.MTourPriceStandard[0].PriceLevel.Count > 0) { for (int i = 0; i < SanpinInfo.MTourPriceStandard[0].PriceLevel.Count; i++) { TourPriceStandardHtml.Append("<th colspan=\"2\" align=\"center\">" + SanpinInfo.MTourPriceStandard[0].PriceLevel[i].LevelName + "</th>"); priceLeaveCols.Append("<th align=\"center\">成人</th><th align=\"center\">儿童</th>"); } TourPriceStandardHtml.Append("</tr>"); priceLeaveCols.Append("</tr>"); } TourPriceStandardHtml.Append("" + priceLeaveCols.ToString() + ""); //报价标准价格 for (int j = 0; j < SanpinInfo.MTourPriceStandard.Count; j++) { TourPriceStandardHtml.Append("<tr><td align=\"center\" class=\"border-l\">" + SanpinInfo.MTourPriceStandard[j].StandardName + "</td>"); for (int k = 0; k < SanpinInfo.MTourPriceStandard[j].PriceLevel.Count; k++) { TourPriceStandardHtml.Append("<th align=\"center\">" + Utils.FilterEndOfTheZeroDecimal(SanpinInfo.MTourPriceStandard[j].PriceLevel[k].AdultPrice) + "</th><th align=\"center\">" + Utils.FilterEndOfTheZeroDecimal(SanpinInfo.MTourPriceStandard[j].PriceLevel[k].ChildPrice) + "</th>"); } } TourPriceStandardHtml.Append("</tr></table>"); } if (SanpinInfo.TourService != null) { litCostAccount.Text = SanpinInfo.TourService.ServiceStandard; phFWBZ.Visible = true; } } SanpinInfo = null; } if (tourInfo.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.出境团队 || tourInfo.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.地接团队 || tourInfo.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团团队) { //对外报价 整团 分项 EyouSoft.Model.TourStructure.MTourTeamInfo TeamInfo = (EyouSoft.Model.TourStructure.MTourTeamInfo)tourInfo; if (TeamInfo != null) { if (TeamInfo.OutQuoteType == EyouSoft.Model.EnumType.TourStructure.TourQuoteType.分项) { //分项报价 if (TeamInfo.TourTeamPrice != null && TeamInfo.TourTeamPrice.Count > 0) { this.repQuoteList.DataSource = TeamInfo.TourTeamPrice; this.repQuoteList.DataBind(); } } else { this.litServerStandard.Text = TeamInfo.TourService != null?EyouSoft.Common.Function.StringValidate.TextToHtml(TeamInfo.TourService.ServiceStandard) : ""; } BaoJiaType = (int)TeamInfo.OutQuoteType; //成人价 this.litAdultPrices.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(TeamInfo.AdultPrice, ProviderToMoney); //儿童价 this.litChilrenPrices.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(TeamInfo.ChildPrice, ProviderToMoney); //其它费用 this.litOtherPrices.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(TeamInfo.OtherCost, ProviderToMoney); //合计费用 this.litAccountPrices.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(TeamInfo.SumPrice, ProviderToMoney); } TeamInfo = null; } } tourInfo = null; } }