Example #1
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();
            }

            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);
                    }
                }
            }
        }
        protected void PageInit(string tourId)
        {
            //根据计划Id获取预设车型集合
            EyouSoft.BLL.TourStructure.BTour BLL  = new EyouSoft.BLL.TourStructure.BTour();
            IList <MTourCarType>             list = BLL.GetTourCarType(tourId);

            if (list != null && list.Count > 0)
            {
                this.PresetBusType1.PreSetTypeList = list;
            }
            this.PresetBusType1.TourId       = tourId;
            this.PresetBusType1.ContrloModel = "updateTrue";

            EyouSoft.Model.TourStructure.MTourBaseInfo baseModel = BLL.GetBasicTourInfo(tourId);

            if (baseModel != null && baseModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线)
            {
                if (baseModel.TourStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.封团)
                {
                    this.ph_Save.Visible = false;
                }
                if (baseModel.SaleInfo != null)
                {
                    this.OperateID.Value = baseModel.SaleInfo.SellerId;
                }
            }
        }
Example #3
0
        /// <summary>
        /// 保存
        /// </summary>
        void BaoCun()
        {
            if (!Privs_SetTourStatus)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "没有操作权限"));
            }

            var info = new EyouSoft.Model.TourStructure.MSetTourStatusInfo();

            info.CompanyId  = SiteUserInfo.CompanyId;
            info.OperatorId = SiteUserInfo.UserId;
            info.Status     = Utils.GetEnumValue <TourStatus>(Utils.GetFormValue("txtStatus"), TourStatus.封团);
            info.TourId     = TourId;
            info.TourType   = Utils.GetEnumValue <TourType>(Utils.GetFormValue(txtTourType.UniqueID), TourType.组团团队);
            info.YuanYin    = Utils.GetFormValue("txtYuanYin");

            if (info.Status == TourStatus.封团)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:不允许的状态变更。"));
            }

            int bllRetCode = new EyouSoft.BLL.TourStructure.BTour().SetTourStatus(info);

            if (bllRetCode == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功。"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:不允许的状态变更。"));
            }
        }
Example #4
0
        /// <summary>
        /// 全局计调配置
        /// </summary>
        /// <param name="tourID">团号</param>
        /// <param name="tourStatus">团队状态</param>
        /// <returns></returns>
        protected string GlobalOpConfig(string tourID)
        {
            string msg = string.Empty;

            if (!string.IsNullOrEmpty(tourID))
            {
                bool ret = new EyouSoft.BLL.PlanStructure.BPlan().IsExist(tourID);
                if (ret)
                {
                    msg = UtilsCommons.AjaxReturnJson("0", "还有未落实的计调项,请落实!");
                }
                else
                {
                    EyouSoft.Model.TourStructure.MTourStatusChange statusChangeModel = new EyouSoft.Model.TourStructure.MTourStatusChange();
                    statusChangeModel.CompanyId  = this.SiteUserInfo.CompanyId;
                    statusChangeModel.DeptId     = this.SiteUserInfo.DeptId;
                    statusChangeModel.IssueTime  = System.DateTime.Now;
                    statusChangeModel.Operator   = this.SiteUserInfo.Name;
                    statusChangeModel.OperatorId = this.SiteUserInfo.UserId;
                    statusChangeModel.TourId     = tourID;
                    statusChangeModel.TourStatus = EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕;
                    bool result = new EyouSoft.BLL.TourStructure.BTour().UpdateTourStatus(statusChangeModel);
                    if (result)
                    {
                        msg = UtilsCommons.AjaxReturnJson("1", "配置成功!");
                    }
                    else
                    {
                        msg = UtilsCommons.AjaxReturnJson("0", "配置失败!");
                    }
                }
            }
            return(msg);
        }
        /// <summary>
        /// toxls
        /// </summary>
        void ToXls()
        {
            int toXlsRecordCount = UtilsCommons.GetToXlsRecordCount();
            if (toXlsRecordCount < 1) ResponseToXls(string.Empty);

            int _recordCount = 0;
            var chaXun = GetChaXunInfo();
            var items = new EyouSoft.BLL.TourStructure.BTour().GetPlanBZList(this.SiteUserInfo.CompanyId, toXlsRecordCount, 1, ref _recordCount, chaXun, this.SiteUserInfo.DeptId);
            if (items == null || items.Count == 0) ResponseToXls(string.Empty);

            StringBuilder s = new StringBuilder();
            s.Append("团号\t线路名称\t出团日期\t人数\t导游\t计调\t销售员\t收入\t支出\t毛利\t状态\n");

            foreach (var item in items)
            {
                s.Append(item.TourCode + "\t");
                s.Append(item.RouteName + "\t");
                s.Append(item.LDate.ToString("yyyy-MM-dd") + "\t");
                s.Append(item.Adults.ToString() + "+" + item.Childs.ToString() + "\t");
                s.Append(GetGuidInfoHtml(item.MGuidInfo) + "\t");
                s.Append(GetOperaterList(item.MPlanerInfo) + "\t");
                s.Append(item.SellerName + "\t");
                s.Append(item.ZongShouRu.ToString("F2") + "\t");
                s.Append(item.TourPay.ToString("F2") + "\t");
                s.Append(item.Profit.ToString("F2") + "\t");
                s.Append(item.TourStatus + "\n");
            }

            ResponseToXls(s.ToString());
        }
Example #6
0
        /// <summary>
        /// 退回计调 提交财务
        /// </summary>
        /// <returns></returns>
        void ReturnOperaterCheck(EyouSoft.Model.EnumType.TourStructure.TourStatus status)
        {
            string msg = string.Empty;

            EyouSoft.Model.TourStructure.MTourStatusChange statusChange = new EyouSoft.Model.TourStructure.MTourStatusChange();
            statusChange.CompanyId  = this.SiteUserInfo.CompanyId;
            statusChange.DeptId     = this.SiteUserInfo.DeptId;
            statusChange.IssueTime  = System.DateTime.Now;
            statusChange.Operator   = this.SiteUserInfo.Name;
            statusChange.OperatorId = this.SiteUserInfo.UserId;
            statusChange.TourId     = TourId;
            statusChange.TourStatus = status;
            bool result = new EyouSoft.BLL.TourStructure.BTour().UpdateTourStatus(statusChange);

            if (result)
            {
                msg = UtilsCommons.AjaxReturnJson("1", "提交成功!");
            }
            else
            {
                msg = UtilsCommons.AjaxReturnJson("0", "提交失败!");
            }

            RCWE(msg);
        }
Example #7
0
 /// <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;
         }
     }
 }
Example #8
0
        /// <summary>
        /// 计划确认变更
        /// </summary>
        /// <param name="Id">主键id</param>
        /// <returns></returns>
        protected string ConfirmChange(string Id)
        {
            if (!CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_业务变更_确认变更))
            {
                return(UtilsCommons.AjaxReturnJson("0", "操作失败:无权限!"));
            }

            string ms = string.Empty;

            EyouSoft.Model.TourStructure.MTourPlanChange change = new EyouSoft.Model.TourStructure.MTourPlanChange();
            change.CompanyId = this.SiteUserInfo.CompanyId;
            change.Id        = Convert.ToInt32(Id);
            EyouSoft.Model.TourStructure.MTourPlanChange changeTour = new EyouSoft.BLL.TourStructure.BTour().GetTourChangeModel(this.SiteUserInfo.CompanyId, Convert.ToInt32(Id));
            if (changeTour != null)
            {
                change.Confirmer   = changeTour.Confirmer;
                change.ConfirmTime = changeTour.ConfirmTime;
                change.ConfirmerId = changeTour.ConfirmerId;
                change.State       = changeTour.State;
                change.TourId      = changeTour.TourId;
            }

            bool result = new EyouSoft.BLL.TourStructure.BTour().TourChangeSure(change);

            if (result)
            {
                ms = UtilsCommons.AjaxReturnJson("1", "确认成功!");
            }
            else
            {
                ms = UtilsCommons.AjaxReturnJson("0", "确认失败!");
            }
            return(ms);
        }
Example #9
0
        /// <summary>
        /// 初始化团队信息
        /// </summary>
        void InitTourInfo()
        {
            EyouSoft.Model.TourStructure.MTourBaseInfo baseinfo = new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(TourId);

            if (baseinfo == null)
            {
                RCWE("异常请求");
            }

            this.litRouteName.Text = baseinfo.RouteName;
            this.litStartTime.Text = UtilsCommons.GetDateString(baseinfo.LDate, ProviderToDate);
            this.litTourCode.Text  = baseinfo.TourCode;
            this.litDays.Text      = baseinfo.TourDays.ToString();
            this.litAdults.Text    = baseinfo.Adults.ToString();
            this.litChilds.Text    = baseinfo.Childs.ToString();
            if (baseinfo.SaleInfo != null)
            {
                this.litSellersName.Text = baseinfo.SaleInfo.Name;
            }
            this.litOperaterName.Text = UtilsCommons.PingPlaner(baseinfo.TourPlaner);
            this.litGuidName.Text     = UtilsCommons.PingGuide(baseinfo.GuideList);

            TourType = baseinfo.TourType;

            if (baseinfo.TourStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.待终审)
            {
                this.panView.Visible = false;
            }
            else
            {
                this.panViewReturnOp.Visible  = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_计调终审_退回计调操作) && (baseinfo.TourStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.待终审);
                this.panViewSubmitFin.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_计调终审_提交财务操作) && (baseinfo.TourStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.待终审);
            }
        }
        /// <summary>
        /// 页面加载
        /// </summary>
        /// <param name="tourId"></param>
        protected void InitPage(string tourId, string type)
        {
            EyouSoft.BLL.TourStructure.BTour           BTour = new EyouSoft.BLL.TourStructure.BTour();
            EyouSoft.Model.TourStructure.MTourBaseInfo model = BTour.GetTourInfo(tourId);
            if (model != null)
            {
                this.lbRouteName.Text = model.RouteName;
                this.lbTourCode.Text  = model.TourCode;
            }
            EyouSoft.BLL.TourStructure.BTourOrder BLL = new EyouSoft.BLL.TourStructure.BTourOrder();
            IList <EyouSoft.Model.TourStructure.MTourOrderSummary> list = BLL.GetTourOrderSummaryByTourId(tourId);

            if (list != null && list.Count > 0)
            {
                if (type == "1")
                {
                    rpt_OrderList.DataSource = list.Where(i => i.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.已留位);
                }
                else
                {
                    rpt_OrderList.DataSource = list.Where(i => i.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.已成交);
                }
                rpt_OrderList.DataBind();
            }
        }
Example #11
0
        protected void PowerControl()
        {
            var tourType = new EyouSoft.BLL.TourStructure.BTour().GetTourType(Utils.GetQueryStringValue("tourid"));

            switch (tourType)
            {
            case EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼:
            case EyouSoft.Model.EnumType.TourStructure.TourType.出境团队:
                if (!CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_预付申请))
                {
                    Utils.ResponseNoPermit(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_预付申请, false);
                    return;
                }
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourType.地接散拼:
            case EyouSoft.Model.EnumType.TourStructure.TourType.地接团队:
                if (!CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_预付申请))
                {
                    Utils.ResponseNoPermit(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_预付申请, false);
                    return;
                }
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼:
            case EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线:
            case EyouSoft.Model.EnumType.TourStructure.TourType.组团团队:
                if (!CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_预付申请))
                {
                    Utils.ResponseNoPermit(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_预付申请, false);
                    return;
                }
                break;
            }
        }
Example #12
0
        /// <summary>
        /// 获取列表
        /// </summary>
        private void GetList()
        {
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            EyouSoft.Model.TourStructure.MBZSearch Search = new EyouSoft.Model.TourStructure.MBZSearch();
            Search.TourCode  = Utils.GetQueryStringValue("txtTourCode");
            Search.RouteName = Utils.GetQueryStringValue("txtRouteName");
            Search.SLDate    = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStarTime"));
            Search.LLDate    = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime"));
            Search.IsDealt   = false;
            IList <EyouSoft.Model.TourStructure.MBZInfo> list = new EyouSoft.BLL.TourStructure.BTour().GetGuidBZList(this.SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, Search, this.SiteUserInfo.DeptId);

            if (list != null && list.Count > 0)
            {
                this.replist.DataSource = list;
                this.replist.DataBind();
                if (recordCount > pageSize)
                {
                    //绑定分页
                    BindPage();
                }
                else
                {
                    this.ExporPageInfoSelect1.Visible = false;
                }
            }
            else
            {
                this.ExporPageInfoSelect1.Visible = false;
                this.lblMsg.Text = "未搜索到相关线路!";
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
            EyouSoft.Model.TourStructure.MPlanListSearch Search = new EyouSoft.Model.TourStructure.MPlanListSearch();
            Search.CompanyInfo             = new EyouSoft.Model.TourStructure.MCompanyInfo();
            Search.CompanyInfo.CompanyId   = this.Customer1.CustomerUnitId;
            Search.CompanyInfo.CompanyName = this.Customer1.CustomerUnitName;
            Search.SaleInfo          = new EyouSoft.Model.TourStructure.MSaleInfo();
            Search.SaleInfo.SellerId = this.Seller1.SellsID;
            Search.SaleInfo.Name     = this.Seller1.SellsName;
            Search.SLDate            = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("TxtmeetTeamTime"));
            Search.TourCode          = Utils.GetQueryStringValue("txtTourCode");
            IList <EyouSoft.Model.TourStructure.MPlanList> Agencylist = new EyouSoft.BLL.TourStructure.BTour().GetDJPlanList(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, Search);

            if (Agencylist != null && Agencylist.Count > 0)
            {
                this.AgOperaterList.DataSource = Agencylist;
                this.AgOperaterList.DataBind();
                //绑定分页
                BindPage();
            }
            else
            {
                this.lab_text.Text = "对不起,没有相关数据!";
                this.ExporPageInfoSelect1.Visible = false;
                this.ExporPageInfoSelect2.Visible = false;
            }
        }
Example #14
0
        /// <summary>
        /// 初始化行程信息(行程内容,行程特色)
        /// </summary>
        void InitXingCheng()
        {
            this.Title   = "游客确认单";
            ltr3.Visible = false;

            if (string.IsNullOrEmpty(TourId))
            {
                return;
            }

            var info = new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(TourId);

            if (info == null)
            {
                return;
            }

            //行程特色
            if (!string.IsNullOrEmpty(info.PlanFeature))
            {
                phXingChengTeSe.Visible = true;
                ltrXingChengTeSe.Text   = info.PlanFeature;
            }

            if (info.TourPlan != null && info.TourPlan.Count > 0)
            {
                InitXingChengNeiRong(info.TourPlan);
            }
            InitFuWuBiaoZhun(info);
        }
Example #15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TourId = Utils.GetQueryStringValue("tourid");

            var tourType = new EyouSoft.BLL.TourStructure.BTour().GetTourType(TourId);

            var bll = new EyouSoft.BLL.ComStructure.BComSetting();

            Print_DaoYouRenWuDan = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.导游任务单);
            if (tourType == TourType.出境团队 ||
                tourType == TourType.地接团队 ||
                tourType == TourType.组团团队)
            {
                Print_XingChengDan = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.团队行程单);
            }
            else
            {
                Print_XingChengDan = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.散拼行程单);
            }
            Print_YouKeMingDan             = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.游客名单);
            Print_DingDanXingXiHuiZongBiao = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.订单信息汇总表);

            if (!string.IsNullOrEmpty(Print_DaoYouRenWuDan) && Print_DaoYouRenWuDan != "javascript:void(0)")
            {
                Print_DaoYouRenWuDan += "?tourid=" + TourId;
            }
            else
            {
                Print_DaoYouRenWuDan = "javascript:void(0)";
            }

            if (!string.IsNullOrEmpty(Print_XingChengDan) && Print_XingChengDan != "javascript:void(0)")
            {
                Print_XingChengDan += "?tourid=" + TourId;
            }
            else
            {
                Print_XingChengDan = "javascript:void(0)";
            }

            if (!string.IsNullOrEmpty(Print_YouKeMingDan) && Print_YouKeMingDan != "javascript:void(0)")
            {
                Print_YouKeMingDan += "?tourid=" + TourId;
            }
            else
            {
                Print_YouKeMingDan = "javascript:void(0)";
            }

            if (!string.IsNullOrEmpty(Print_DingDanXingXiHuiZongBiao) && Print_DingDanXingXiHuiZongBiao != "javascript:void(0)")
            {
                Print_DingDanXingXiHuiZongBiao += "?type=2&tourid=" + TourId;
            }
            else
            {
                Print_DingDanXingXiHuiZongBiao = "javascript:void(0)";
            }
        }
 protected string GetOperaterInfo(string tourid)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     EyouSoft.Model.TourStructure.MTourBaoInfo info = new EyouSoft.BLL.TourStructure.BTour().GetTourBaoInfo(tourid);
     if (info != null)
     {
         sb.Append("<b>" + info.TourCode + "</b><br />发布人:" + info.Operator + "<br />发布时间:" + info.IssueTime.ToString("yyyy-MM-dd") + "");
     }
     return(sb.ToString());
 }
Example #17
0
 /// <summary>
 /// 操作人信息
 /// </summary>
 /// <param name="tourid">团号</param>
 /// <returns></returns>
 protected string GetOperaterInfo(string tourid)
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     EyouSoft.Model.TourStructure.MTourBaoInfo info = new EyouSoft.BLL.TourStructure.BTour().GetTourBaoInfo(tourid);
     if (info != null)
     {
         sb.Append("<b>" + info.TourCode + "</b><br />发布人:" + info.Operator + "<br />发布时间:" + EyouSoft.Common.UtilsCommons.GetDateString(info.IssueTime, ProviderToDate) + "");
     }
     info = null;
     return(sb.ToString());
 }
Example #18
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            PageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
            EyouSoft.Model.TourStructure.MPlanListSearch Search = new EyouSoft.Model.TourStructure.MPlanListSearch();
            //团号
            Search.TourCode = Utils.GetQueryStringValue("txtTourCode");
            //客源单位
            Search.CompanyInfo             = new EyouSoft.Model.TourStructure.MCompanyInfo();
            Search.CompanyInfo.CompanyId   = Utils.GetQueryStringValue(this.Customer1.ClientNameKHBH);
            Search.CompanyInfo.CompanyName = Utils.GetQueryStringValue(this.Customer1.ClientNameKHMC);
            //出团时间
            DateTime?startTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStartTime"));
            DateTime?endTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime"));

            Search.SLDate = startTime;
            Search.LLDate = endTime;
            //销售员
            Search.SaleInfo          = new EyouSoft.Model.TourStructure.MSaleInfo();
            Search.SaleInfo.SellerId = Utils.GetQueryStringValue(this.Seller1.SellsIDClient);
            Search.SaleInfo.Name     = Utils.GetQueryStringValue(this.Seller1.SellsNameClient);
            //计调员
            Search.PlanerId = Utils.GetQueryStringValue(this.seller2.SellsIDClient);
            Search.Planer   = Utils.GetQueryStringValue(this.seller2.SellsNameClient);
            //团队状态
            string tourState = Utils.GetQueryStringValue("tourState");

            if (!string.IsNullOrEmpty(tourState) && tourState != "-1")
            {
                Search.TourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)Utils.GetInt(tourState);
            }

            //组团计调列表
            if (Utils.GetQueryStringValue("sl") == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_组团计调).ToString())
            {
                IList <EyouSoft.Model.TourStructure.MPlanList> TeamOplist = new EyouSoft.BLL.TourStructure.BTour().GetZTPlanList(SiteUserInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search);
                GetListSource(TeamOplist);
                Search = null;
            }
            //地接计调列表
            if (Utils.GetQueryStringValue("sl") == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_地接计调).ToString())
            {
                IList <EyouSoft.Model.TourStructure.MPlanList> TeamOplist = new EyouSoft.BLL.TourStructure.BTour().GetDJPlanList(SiteUserInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search);
                GetListSource(TeamOplist);
                Search = null;
            }
            //出境计调列表
            if (Utils.GetQueryStringValue("sl") == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_出境计调).ToString())
            {
                IList <EyouSoft.Model.TourStructure.MPlanList> TeamOplist = new EyouSoft.BLL.TourStructure.BTour().GetCJPlanList(SiteUserInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search);
                GetListSource(TeamOplist);
                Search = null;
            }
        }
Example #19
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            var info = new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(TourId);

            if (info == null)
            {
                RCWE("异常请求");
            }

            ltrTourCode.Text = info.TourCode;
            TourType         = info.TourType;
        }
Example #20
0
        /// <summary>
        /// 权限判断
        /// </summary>
        private void PowerControl()
        {
            var tourType = new EyouSoft.BLL.TourStructure.BTour().GetTourType(Utils.GetQueryStringValue("tourid"));

            switch (tourType)
            {
            case EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼:
            case EyouSoft.Model.EnumType.TourStructure.TourType.出境团队:
                //this.holerView1.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排酒店);
                //this.holerView2.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排用车);
                //this.holerView3.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排景点);
                //this.holerView4.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排游轮);
                //this.holerView5.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排地接);
                //this.holerView6.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排用餐);
                //this.holerView7.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排购物);
                //this.holerView8.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排领料);
                //this.holerView9.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排大交通);
                //this.holerView10.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排导游);
                //this.holerView11.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_出境计调_安排其它);
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourType.地接散拼:
            case EyouSoft.Model.EnumType.TourStructure.TourType.地接团队:
                //this.holerView1.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排酒店);
                //this.holerView2.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排用车);
                //this.holerView3.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排景点);
                //this.holerView4.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排游轮);
                //this.holerView5.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排地接);
                //this.holerView6.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排用餐);
                //this.holerView7.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排购物);
                //this.holerView8.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排领料);
                //this.holerView9.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排大交通);
                //this.holerView10.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排导游);
                //this.holerView11.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_地接计调_安排其它);
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼:
            case EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线:
            case EyouSoft.Model.EnumType.TourStructure.TourType.组团团队:
                //this.holerView1.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排酒店);
                //this.holerView2.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排用车);
                //this.holerView3.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排景点);
                //this.holerView4.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排游轮);
                //this.holerView5.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排地接);
                //this.holerView6.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排用餐);
                //this.holerView7.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排购物);
                //this.holerView8.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排领料);
                //this.holerView9.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排大交通);
                //this.holerView10.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排导游);
                //this.holerView11.Visible = CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.计调中心_组团计调_安排其它);
                break;
            }
        }
Example #21
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            IList <MKeyTour> list = new EyouSoft.BLL.TourStructure.BTour().GetKeyTour(SiteUserInfo.CompanyId);

            if (list != null && list.Count > 0)
            {
                this.rptList.DataSource = list;
                this.DataBind();
            }
            else
            {
                this.licMsg.Text = "";
            }
        }
Example #22
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            var items = new EyouSoft.BLL.TourStructure.BTour().GetTourStatusXXs(TourId);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();
            }
            else
            {
                phEmpty.Visible = true;
            }
        }
        private string PageSave(string tourId)
        {
            string OperaterID = this.OperateID.Value;

            if (SiteUserInfo.UserId != OperaterID)
            {
                return(EyouSoft.Common.UtilsCommons.AjaxReturnJson("0", "你不是该计划的销售员,无法修改车型!"));
            }
            string msg = string.Empty;

            string[] CarTypeId     = Utils.GetFormValues(PresetBusType1.hidCarTypeIdClientID);
            string[] CarTypeName   = Utils.GetFormValues(PresetBusType1.hidCarTypeNameClientID);
            string[] Desc          = Utils.GetFormValues(PresetBusType1.hidDescClientID);
            string[] SeatNum       = Utils.GetFormValues(PresetBusType1.hidSeatNumClientID);
            string[] TourCarTypeId = Utils.GetFormValues(PresetBusType1.hideTourCarTypeIdClientID);
            EyouSoft.BLL.TourStructure.BTour bll  = new EyouSoft.BLL.TourStructure.BTour();
            IList <MTourCarType>             list = new List <MTourCarType>();

            if (CarTypeId.Length > 0)
            {
                for (int i = 0; i < CarTypeId.Length; i++)
                {
                    if (CarTypeName[i].ToString() != "")
                    {
                        MTourCarType model = new MTourCarType();
                        model.TourCarTypeId = TourCarTypeId[i].ToString();
                        model.SeatNum       = Utils.GetInt(SeatNum[i].ToString());
                        model.Desc          = Desc[i].ToString();
                        model.CarTypeName   = CarTypeName[i].ToString();
                        model.CarTypeId     = CarTypeId[i].ToString();
                        list.Add(model);
                    }
                }
            }
            if (!string.IsNullOrEmpty(msg))
            {
                return(EyouSoft.Common.UtilsCommons.AjaxReturnJson("0", msg));
            }
            else
            {
                if (bll.UpdateTourCarType(tourId, SiteUserInfo.Username, SiteUserInfo.UserId, list))
                {
                    return(EyouSoft.Common.UtilsCommons.AjaxReturnJson("1", "修改成功!"));
                }
                else
                {
                    return(EyouSoft.Common.UtilsCommons.AjaxReturnJson("0", "修改失败!"));
                }
            }
        }
Example #24
0
        /// <summary>
        /// 初始化团队信息
        /// </summary>
        /// <param name="tourID">团号</param>
        /// <param name="souceName">供应商名称</param>
        protected void DateInit()
        {
            string tourID    = Utils.GetQueryStringValue("tourId");
            string planID    = Utils.GetQueryStringValue("PlanId");
            string souceName = Utils.GetQueryStringValue("souceName");

            this.txtPayDate.Text = System.DateTime.Now.ToString("yyyy-MM-dd");
            if (!string.IsNullOrEmpty(tourID))
            {
                EyouSoft.Model.TourStructure.MTourBaseInfo tourInfo = new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(tourID);
                if (tourInfo != null)
                {
                    _isPlaner             = tourInfo.TourPlaner.Where(m => m.PlanerId == this.SiteUserInfo.UserId).Count() > 0;
                    this.panView.Visible  = !UtilsCommons.GetTourStatusByTourID(tourInfo.TourStatus) && _isPlaner;
                    this.litTourCode.Text = tourInfo.TourCode;
                    if (tourInfo.SaleInfo != null)
                    {
                        this.litSellers.Text = tourInfo.SaleInfo.Name;
                    }
                }
                else
                {
                    this.panView.Visible = false;
                }
            }
            else
            {
                this.panView.Visible = false;
            }

            if (planID != "")
            {
                EyouSoft.BLL.FinStructure.BFinance bll = new EyouSoft.BLL.FinStructure.BFinance();
                //支出项目基本信息
                EyouSoft.Model.FinStructure.MPayRegister model = bll.GetPayRegisterBaseByPlanId(planID);
                if (model != null)
                {
                    if (model.PaymentType == EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付)
                    {
                        this.panView.Visible = false;
                    }
                }
            }

            if (!string.IsNullOrEmpty(souceName))
            {
                this.litPrepaidCompany.Text = souceName;
            }
        }
Example #25
0
        /// <summary>
        /// 获取游客资料
        /// </summary>
        /// <param name="tourID">团号</param>
        /// <returns></returns>
        protected string GetCustomerList()
        {
            string tourId = Utils.GetQueryStringValue("tourId");

            System.Text.StringBuilder sbCustomerlist = new System.Text.StringBuilder();
            if (!string.IsNullOrEmpty(tourId))
            {
                IList <EyouSoft.Model.TourStructure.MTourOrderTraveller> OrderCustomerlist = new EyouSoft.BLL.TourStructure.BTour().GetTourTravellerList(tourId);
                if (OrderCustomerlist != null && OrderCustomerlist.Count > 0)
                {
                    sbCustomerlist.Append("姓名:" + OrderCustomerlist[0].CnName + ", 性别:" + OrderCustomerlist[0].Gender.ToString() + ", 证件号码:" + OrderCustomerlist[0].CardNumber + "");
                }
            }
            return(sbCustomerlist.ToString());
        }
Example #26
0
        /// <summary>
        /// 计划变更信息
        /// </summary>
        /// <param name="Id">主键id</param>
        protected void GetTourChangeListById(string Id)
        {
            EyouSoft.Model.TourStructure.MTourPlanChange changeTour = new EyouSoft.BLL.TourStructure.BTour().GetTourChangeModel(this.SiteUserInfo.CompanyId, Convert.ToInt32(Id));
            if (changeTour != null)
            {
                this.litChangeTitle.Text   = changeTour.Title;
                this.litChangeName.Text    = changeTour.Operator;
                this.litChangeTime.Text    = EyouSoft.Common.UtilsCommons.GetDateString(changeTour.IssueTime, ProviderToDate);
                this.litChangeContect.Text = changeTour.Content;

                if (changeTour.State)
                {
                    btnCheckView.Visible = false;
                }
            }
        }
Example #27
0
        /// <summary>
        /// 删除操作
        /// </summary>
        /// <returns></returns>
        private string DoDelete()
        {
            string msg = UtilsCommons.AjaxReturnJson("0", "计划删除 失败!");
            string id  = Utils.GetFormValue("id");

            if (!string.IsNullOrEmpty(id))
            {
                string[] ids = id.Split('|');
                EyouSoft.BLL.TourStructure.BTour bTour = new EyouSoft.BLL.TourStructure.BTour();
                if (bTour.DeleteTour(SiteUserInfo.CompanyId, ids))
                {
                    msg = UtilsCommons.AjaxReturnJson("1", "计划删除 成功!");
                }
            }
            return(msg);
        }
Example #28
0
        /// <summary>
        /// init rpt
        /// </summary>
        void InitRpt()
        {
            MOrderSum orderSum = new MOrderSum();
            IList <EyouSoft.Model.TourStructure.MTourOrder> list = null;

            var model = new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(Convert.ToString(TourId));

            if (model != null)
            {
                tourtype = model.TourType == TourType.组团散拼短线 ? "短线" : "";
            }

            if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("plan")))//计调订单查询的订单为已成交订单
            {
                list = new EyouSoft.BLL.TourStructure.BTourOrder().GetTourOrderListById(ref orderSum, TourId);
            }
            else
            {
                list = new EyouSoft.BLL.TourStructure.BTourOrder().GetTourOrderListById(TourId, ref orderSum);
            }

            if (list != null && list.Count > 0)
            {
                RecordCount             = list.Count;
                this.rptList.DataSource = list;
                this.rptList.DataBind();
                this.litMsg.Visible = false;
            }
            else
            {
                this.litMsg.Visible = true;
                if (tourtype == "短线")
                {
                    this.litMsg.Text = "<tr><td align='center' colspan='11'>没有订单!</td></tr>";
                }
                else
                {
                    this.litMsg.Text     = "<tr><td align='center' colspan='10'>没有订单!</td></tr>";
                    this.phUnset.Visible = false;
                }
            }

            list     = null;
            orderSum = null;
        }
Example #29
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();
            }
        }
Example #30
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = UtilsCommons.GetPadingIndex();

            string quoteId = Utils.GetQueryStringValue("quoteId");
            string tourId  = Utils.GetQueryStringValue("tourId");

            if (quoteId != "")
            {
                EyouSoft.BLL.TourStructure.BQuote           bll   = new EyouSoft.BLL.TourStructure.BQuote();
                EyouSoft.Model.TourStructure.MTourQuoteInfo model = bll.GetQuoteInfo(quoteId);
                if (model != null)
                {
                    if (model.VisaFileList != null && model.VisaFileList.Count > 0)
                    {
                        this.rptList.DataSource = model.VisaFileList;
                        this.rptList.DataBind();
                    }
                }

                this.ExporPageInfoSelect1.Visible = false;
            }

            if (tourId != "")
            {
                IList <EyouSoft.Model.ComStructure.MComAttach> visaFileList = new EyouSoft.BLL.TourStructure.BTour().GetVisaFileList(tourId, pageSize, pageIndex, ref recordCount);
                if (visaFileList != null && visaFileList.Count > 0)
                {
                    this.rptList.DataSource = visaFileList;
                    this.rptList.DataBind();
                    BindPage();
                    if (visaFileList.Count <= 10)
                    {
                        //绑定分页
                        this.ExporPageInfoSelect1.Visible = false;
                    }
                }
                else
                {
                    this.ExporPageInfoSelect1.Visible = false;
                }
            }
        }