コード例 #1
0
        /// <summary>
        /// 页面初始化
        /// </summary>
        /// <param name="id"></param>
        private void PageInit(string id)
        {
            BTour bll = new BTour();

            EyouSoft.Model.TourStructure.MTourBaseInfo model = bll.GetTourInfo(id);
            //lblTourCode.Text = bll.GenerateTourNo(SiteUserInfo.DeptId, SiteUserInfo.CompanyId, model.TourType, (DateTime)model.LDate);
            if (model != null)
            {
                if (model.TourService != null)
                {
                    //绑定内部信息
                    this.txtInsiderInfor.Text = model.TourService.InsiderInfor;
                }
                if (model.TourPlanItem != null)
                {
                    for (int i = 0; i < model.TourPlanItem.Count; i++)
                    {
                        //绑定原计调安排项
                        this.hidePlanItem.Value += ((int)model.TourPlanItem[i].PlanType).ToString() + ",";
                    }
                }
                if (model.TourPlaner != null && model.TourPlaner.Count > 0)
                {
                    for (int i = 0; i < model.TourPlaner.Count; i++)
                    {
                        this.SellsSelect1.SellsID   += model.TourPlaner[i].PlanerId + ",";
                        this.SellsSelect1.SellsName += model.TourPlaner[i].Planer + ",";
                    }
                    //绑定 计调员
                    this.SellsSelect1.SellsID   = this.SellsSelect1.SellsID.Remove(this.SellsSelect1.SellsID.Length - 1, 1);
                    this.SellsSelect1.SellsName = this.SellsSelect1.SellsName.Remove(this.SellsSelect1.SellsName.Length - 1, 1);
                }
            }
            bll = null;
        }
コード例 #2
0
ファイル: GuidPlanInfo.aspx.cs プロジェクト: windygu/XiaZhou
 /// <summary>
 /// 获取导游实体
 /// </summary>
 /// <param name="ID">计调项id</param>
 protected void GetGuidModel(string planId)
 {
     if (!string.IsNullOrEmpty(planId))
     {
         EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.导游, planId);
         EyouSoft.BLL.TourStructure.BTour           bll      = new EyouSoft.BLL.TourStructure.BTour();
         if (baseinfo != null)
         {
             this.LineSelect1.HideSelect = true;
             EyouSoft.Model.TourStructure.MTourBaseInfo model = bll.GetTourInfo(baseinfo.TourId);
             this.txttel.Text = baseinfo.ContactPhone;
             if (baseinfo.PlanGuide != null)
             {
                 this.txtStartAddress.Text = baseinfo.PlanGuide.OnLocation;
                 this.txtEndAddress.Text   = baseinfo.PlanGuide.NextLocation;
                 JobType = baseinfo.PlanGuide.TaskType.ToString();
             }
             this.GuidControl1.GuidID   = baseinfo.SourceId;
             this.GuidControl1.GuidName = baseinfo.SourceName;
             if (model != null)
             {
                 this.txtTourCode.Text     = model.TourCode;
                 this.LineSelect1.LineName = model.RouteName;
             }
             this.txtDate_Start.Text = UtilsCommons.GetDateString(baseinfo.StartDate, ProviderToDate);
             this.txtDate_End.Text   = UtilsCommons.GetDateString(baseinfo.EndDate, ProviderToDate);
             this.txttravel.Text     = baseinfo.ReceiveJourney;
             this.txtService.Text    = baseinfo.ServiceStandard;
             this.txtrmark.Text      = baseinfo.Remarks;
             this.txtCostDesc.Text   = baseinfo.CostDetail.ToString();
             this.txtPaidCost.Text   = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation);
             this.ddlState.Items.FindByValue(((int)baseinfo.Status).ToString()).Selected = true;
         }
     }
 }
コード例 #3
0
        /// <summary>
        /// 团队下面的游客信息汇总
        /// </summary>
        /// <param name="tourId">团队编号</param>
        protected void InitPageForTour(string tourId, string type)
        {
            EyouSoft.BLL.TourStructure.BTour           BTour = new EyouSoft.BLL.TourStructure.BTour();
            EyouSoft.Model.TourStructure.MTourBaseInfo model = BTour.GetBasicTourInfo(tourId);
            if (model != null)
            {
                this.lbRouteName.Text = model.RouteName;
                this.lbTourCode.Text  = model.TourCode;
                this.lbName.Text      = model.OperatorInfo.Name + (string.IsNullOrEmpty(model.OperatorInfo.Mobile) ? "" : "/" + model.OperatorInfo.Mobile);
                if (model.GuideList != null && model.GuideList.Count > 0)
                {
                    this.lbGuid.Text = model.GuideList.First().Name + (string.IsNullOrEmpty(model.GuideList.First().Phone) ? "" : "/" + model.GuideList.First().Phone);
                }
                if (model.TourPlaner != null && model.TourPlaner.Count > 0)
                {
                    this.lbTourPlaner.Text = model.TourPlaner.First().Planer + (string.IsNullOrEmpty(model.TourPlaner.First().Phone) ? "" : "/" + model.TourPlaner.First().Phone);
                }
            }
            EyouSoft.BLL.TourStructure.BTourOrder BLL = new EyouSoft.BLL.TourStructure.BTourOrder();
            IList <EyouSoft.Model.TourStructure.BuyCompanyTraveller> list = new List <EyouSoft.Model.TourStructure.BuyCompanyTraveller>();

            int[] arry = null;
            switch (type)
            {
            case "1":
                arry = new int[] { (int)OrderStatus.已留位 };
                list = BLL.GetTourOrderBuyCompanyTravellerById(tourId, arry);
                break;

            case "2":
                arry = new int[] { (int)OrderStatus.已成交 };
                list = BLL.GetTourOrderBuyCompanyTravellerById(tourId, arry);
                break;

            default:
                list = BLL.GetTourOrderBuyCompanyTravellerById(tourId, new int[] { (int)OrderStatus.已成交 });
                break;
            }
            if (list != null && list.Count > 0)
            {
                this.rpt_CustomerList.DataSource = list.Where(i => i.TravellerStatus == EyouSoft.Model.EnumType.TourStructure.TravellerStatus.在团).ToList();
                this.rpt_CustomerList.DataBind();
            }
        }
コード例 #4
0
        /// <summary>
        /// 订单下面的游客信息汇总
        /// </summary>
        /// <param name="orderId">订单编号</param>
        /// <param name="tourId">团队编号</param>
        protected void InitPageForOrder(string orderId)
        {
            EyouSoft.BLL.TourStructure.BTourOrder BLL = new EyouSoft.BLL.TourStructure.BTourOrder();
            IList <EyouSoft.Model.TourStructure.BuyCompanyTraveller> list = BLL.GetTourOrderBuyCompanyTravellerByOrderId(orderId);

            if (list != null && list.Count > 0)
            {
                this.rpt_CustomerList.DataSource = list.Where(p => p.TravellerStatus == TravellerStatus.在团);
                this.rpt_CustomerList.DataBind();
            }
            else
            {
                this.rpt_CustomerList.DataSource = null;
                this.rpt_CustomerList.DataBind();
            }

            EyouSoft.Model.TourStructure.MTourOrderExpand model = BLL.GetTourOrderExpandByOrderId(orderId);
            EyouSoft.BLL.TourStructure.BTour BTour = new EyouSoft.BLL.TourStructure.BTour();

            if (model != null)
            {
                EyouSoft.Model.TourStructure.MTourBaseInfo tourModel = BTour.GetBasicTourInfo(model.TourId);
                if (tourModel != null)
                {
                    this.lbRouteName.Text = tourModel.RouteName;
                    this.lbTourCode.Text  = tourModel.TourCode;
                    this.lbName.Text      = tourModel.OperatorInfo.Name + (string.IsNullOrEmpty(tourModel.OperatorInfo.Mobile) ? "" : "/" + tourModel.OperatorInfo.Mobile);
                    if (tourModel.GuideList != null && tourModel.GuideList.Count > 0)
                    {
                        this.lbGuid.Text = tourModel.GuideList.First().Name + (string.IsNullOrEmpty(tourModel.GuideList.First().Phone) ? "" : "/" + tourModel.GuideList.First().Phone);
                    }
                    if (tourModel.TourPlaner != null && tourModel.TourPlaner.Count > 0)
                    {
                        this.lbTourPlaner.Text = tourModel.TourPlaner.First().Planer + (string.IsNullOrEmpty(tourModel.TourPlaner.First().Phone) ? "" : "/" + tourModel.TourPlaner.First().Phone);
                    }
                }
            }
        }
コード例 #5
0
        /// <summary>
        /// 初始化服务标准
        /// </summary>
        /// <param name="info"></param>
        void InitFuWuBiaoZhun(EyouSoft.Model.TourStructure.MTourBaseInfo info)
        {
            TPlanService.Visible = true;

            if (info == null || info.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.单项服务 || info.TourService == null)
            {
                TPlanService.Visible = false;
                return;
            }

            #region  务标准
            if (info.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.出境团队 ||
                info.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.地接团队 ||
                info.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团团队)
            {
                var info1 = (EyouSoft.Model.TourStructure.MTourTeamInfo)info;
                if (info1.OutQuoteType == EyouSoft.Model.EnumType.TourStructure.TourQuoteType.整团)
                {
                    divTuanDuiFenXiangBaoJia.Visible = false;

                    if (string.IsNullOrEmpty(info.TourService.ServiceStandard))
                    {
                        this.TService.Visible = false;
                    }
                    else
                    {
                        this.lbService.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.ServiceStandard);
                    }
                }
                else
                {
                    TService.Visible = false;
                    StringBuilder s = new StringBuilder();
                    foreach (var item in info1.TourTeamPrice)
                    {
                        if (!string.IsNullOrEmpty(item.ServiceType.ToString()))
                        {
                            s.AppendFormat("<tr><td width='9%' align='left'><b class='font14'>{0}</b></td><td align='left'>{1}</td><td align='center' width='13%'>{2}</td>", item.ServiceType.ToString(), EyouSoft.Common.Function.StringValidate.TextToHtml(item.ServiceStandard), EyouSoft.Common.UtilsCommons.GetMoneyString(item.Quote, ProviderToMoney) + "/" + item.Unit.ToString());
                        }
                    }
                    this.lboptionservice.Text = s.ToString();
                }
            }
            else
            {
                divTuanDuiFenXiangBaoJia.Visible = false;

                if (string.IsNullOrEmpty(info.TourService.ServiceStandard))
                {
                    this.TService.Visible = false;
                }
                else
                {
                    this.lbService.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.ServiceStandard);
                }
            }
            #endregion

            #region  务不含
            if (string.IsNullOrEmpty(info.TourService.NoNeedItem))
            {
                this.TNoService.Visible = false;
            }
            else
            {
                this.lbnoService.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.NoNeedItem);
            }
            #endregion

            #region 购物安排
            if (string.IsNullOrEmpty(info.TourService.ShoppingItem))
            {
                this.TShopping.Visible = false;
            }
            else
            {
                this.lbshopping.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.ShoppingItem);
            }
            #endregion

            #region 儿童安排
            if (string.IsNullOrEmpty(info.TourService.ChildServiceItem))
            {
                this.TChildren.Visible = false;
            }
            else
            {
                this.lbchildren.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.ChildServiceItem);
            }
            #endregion

            #region 自费项目
            if (string.IsNullOrEmpty(info.TourService.OwnExpense))
            {
                this.TSelfProject.Visible = false;
            }
            else
            {
                this.lbselfproject.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.OwnExpense);
            }
            #endregion

            #region 温馨提醒
            if (string.IsNullOrEmpty(info.TourService.WarmRemind))
            {
                this.TWarmRemind.Visible = false;
            }
            else
            {
                this.lbwarmremind.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.WarmRemind);
            }
            #endregion

            #region 注意事项
            if (string.IsNullOrEmpty(info.TourService.NeedAttention))
            {
                this.TNeedAttention.Visible = false;
            }
            else
            {
                this.lbneedattention.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(info.TourService.NeedAttention);
            }
            #endregion
        }
コード例 #6
0
        /// <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
        }
コード例 #7
0
        /// <summary>
        /// 初始化界面
        /// </summary>
        /// <param name="orderId"></param>
        private void PageInit(string orderId, string type)
        {
            EyouSoft.BLL.TourStructure.BTourOrder         bOrder = new EyouSoft.BLL.TourStructure.BTourOrder();
            EyouSoft.Model.TourStructure.MTourOrderExpand order  = bOrder.GetTourOrderExpandByOrderId(orderId);
            if (order != null)
            {
                this.LtOrderCode.Text    = order.OrderCode;
                this.LtDCompanyName.Text = order.DCompanyName;
                this.LtDContactName.Text = order.DContactName;
                this.LtDContactTel.Text  = order.DContactTel;

                this.LtSellerName.Text           = order.SellerName;
                this.LtOperator.Text             = order.Operator;
                this.LtAdults.Text               = order.Adults.ToString();
                this.LtChilds.Text               = order.Childs.ToString();
                this.LtAdultPrice.Text           = EyouSoft.Common.UtilsCommons.GetMoneyString(order.AdultPrice, this.ProviderToMoney);
                this.LtChildPrice.Text           = EyouSoft.Common.UtilsCommons.GetMoneyString(order.ChildPrice, this.ProviderToMoney);
                this.LtSaleAddCost.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SaleAddCost, this.ProviderToMoney);
                this.LtSaleAddCostRemark.Text    = order.SaleAddCostRemark;
                this.LtSaleReduceCost.Text       = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SaleReduceCost, this.ProviderToMoney);
                this.LtSaleReduceCostRemark.Text = order.SaleReduceCostRemark;
                this.LtSumPrice.Text             = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SumPrice, this.ProviderToMoney);
                this.LtGuideIncome.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.GuideIncome, this.ProviderToMoney);
                this.LtSalerIncome.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SalerIncome, this.ProviderToMoney);
                this.LtSaveSeatDate.Text         = order.SaveSeatDate.HasValue ? order.SaveSeatDate.Value.ToString() : string.Empty;
                this.LtOrderRemark.Text          = order.OrderRemark;

                EyouSoft.BLL.TourStructure.BTour           bll   = new EyouSoft.BLL.TourStructure.BTour();
                EyouSoft.Model.TourStructure.MTourBaseInfo model = bll.GetTourInfo(Convert.ToString(tourID));
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线)
                {
                    string CarLocation = string.Empty;
                    if (order.TourOrderCarLocation != null)
                    {
                        CarLocation = order.TourOrderCarLocation.Location;
                    }
                    if (!string.IsNullOrEmpty(CarLocation))
                    {
                        this.setCarLocation.Text = CarLocation;
                    }
                    else
                    {
                        this.setCarLocation.Text = "<font class='fontred'>未设置上车地点</font>";
                    }
                    string carInfo = string.Empty;
                    if (order.TourCarTypeList != null && order.TourCarTypeList.Count > 0)
                    {
                        for (int i = 0; i < order.TourCarTypeList.Count; i++)
                        {
                            if (i == order.TourCarTypeList.Count - 1)
                            {
                                carInfo += order.TourCarTypeList[i].CarTypeName;
                            }
                            else
                            {
                                carInfo += order.TourCarTypeList[i].CarTypeName + "、";
                            }
                        }
                    }
                    if (!string.IsNullOrEmpty(carInfo))
                    {
                        this.carInfo.Text = carInfo;
                    }
                    else
                    {
                        this.carInfo.Text = "<font class='fontred'>未设置车型</font>";
                    }
                }
                else
                {
                    this.PhCarLocation.Visible = false;
                }

                if (order.MTourOrderTravellerList != null && order.MTourOrderTravellerList.Count != 0)
                {
                    this.RpTravller.DataSource = order.MTourOrderTravellerList;
                    this.RpTravller.DataBind();
                }
                else
                {
                    this.phTraveller.Visible = false;
                }
            }
        }
コード例 #8
0
        /// <summary>
        /// 保存按钮点击事件执行方法
        /// </summary>
        private string PageSave()
        {
            string msg = string.Empty;

            //获取表单
            string[] sellsArray = Utils.GetFormValue(this.SellsSelect1.SellsIDClient).Split(',');
            //string[] sellsNameArray = Utils.GetFormValue(this.SellsSelect1.SellsNameClient).Split(',');
            //string[] sellsDeptArray = Utils.GetFormValue(this.hideDeptId.UniqueID).Split(',');
            string[] item         = Utils.GetFormValues("chk_item");
            string   tourId       = Utils.GetQueryStringValue("tourID");
            string   insiderInfor = Utils.GetFormValue(this.txtInsiderInfor.UniqueID);

            //验证
            if (sellsArray.Length == 0)
            {
                return(UtilsCommons.AjaxReturnJson("0", "请选择计调员!"));
            }
            if (item.Length == 0)
            {
                return(UtilsCommons.AjaxReturnJson("0", "请选择计调安排项目!"));
            }

            BTour bll = new BTour();

            IList <EyouSoft.Model.TourStructure.MTourPlaner> TourPlaner = new List <EyouSoft.Model.TourStructure.MTourPlaner>();

            for (int i = 0; i < sellsArray.Length; i++)
            {
                EyouSoft.Model.TourStructure.MTourPlaner planerModel = new EyouSoft.Model.TourStructure.MTourPlaner();
                planerModel.PlanerId = sellsArray[i];
                //planerModel.Planer = sellsNameArray[i];
                //planerModel.DeptId = Utils.GetInt(sellsDeptArray[i]);
                planerModel.TourId = tourId;
                TourPlaner.Add(planerModel);
            }

            IList <EyouSoft.Model.TourStructure.MTourPlanItem> TourPlanItem = new List <EyouSoft.Model.TourStructure.MTourPlanItem>();

            for (int i = 0; i < item.Length; i++)
            {
                EyouSoft.Model.TourStructure.MTourPlanItem tpiModel = new EyouSoft.Model.TourStructure.MTourPlanItem();
                tpiModel.TourId   = tourId;
                tpiModel.PlanType = (EyouSoft.Model.EnumType.PlanStructure.PlanProject)Utils.GetInt(item[i]);
                TourPlanItem.Add(tpiModel);
            }



            EyouSoft.Model.TourStructure.MTourBaseInfo tourModel = bll.GetTourInfo(tourId);
            if (tourModel != null)
            {
                EyouSoft.Model.TourStructure.MSendTour sendTourModel = new EyouSoft.Model.TourStructure.MSendTour();
                sendTourModel.CompanyId    = SiteUserInfo.CompanyId;
                sendTourModel.DeptId       = SiteUserInfo.DeptId;
                sendTourModel.InsiderInfor = insiderInfor;
                sendTourModel.LDate        = Convert.ToDateTime(tourModel.LDate);
                sendTourModel.Operator     = SiteUserInfo.Name;
                sendTourModel.OperatorId   = SiteUserInfo.UserId;

                sendTourModel.Planer   = TourPlaner;
                sendTourModel.PlanItem = TourPlanItem;
                //sendTourModel.TourCode = bll.GenerateTourNo(SiteUserInfo.DeptId, SiteUserInfo.CompanyId, tourModel.TourType, sendTourModel.LDate);
                sendTourModel.TourId   = tourId;
                sendTourModel.TourType = tourModel.TourType;

                bool result = false;

                lock (PaiTuanXuHaoLockHelper)
                {
                    result = bll.SendTour(sendTourModel);
                }

                if (result)
                {
                    msg = UtilsCommons.AjaxReturnJson("1", "安排计调成功!");
                }
                else
                {
                    msg = UtilsCommons.AjaxReturnJson("0", "安排计调失败!");
                }
            }



            return(msg);
        }