コード例 #1
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);
        }
コード例 #2
0
ファイル: SanpinList.aspx.cs プロジェクト: windygu/XiaZhou
        /// <summary>
        /// 通过收客状态返回html
        /// </summary>
        /// <param name="tourId"></param>
        /// <param name="state"></param>
        /// <param name="sourceId"></param>
        /// <param name="isCheck"></param>
        /// <returns></returns>
        protected string GetHtmlByShouKeState(object tourId, object state, object sourceId, object isCheck, object tourStatus, object tourType)
        {
            StringBuilder sb = new StringBuilder();
            bool          c  = isCheck == null ? false : (bool)isCheck;

            EyouSoft.Model.EnumType.TourStructure.TourShouKeStatus skState = (EyouSoft.Model.EnumType.TourStructure.TourShouKeStatus)state;
            EyouSoft.Model.EnumType.TourStructure.TourStatus       tStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)((int)tourStatus);
            EyouSoft.Model.EnumType.TourStructure.TourType         tType   = (EyouSoft.Model.EnumType.TourStructure.TourType)tourType;
            if (tStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.封团 && tStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.已取消)
            {
                switch (skState)
                {
                case EyouSoft.Model.EnumType.TourStructure.TourShouKeStatus.报名中:
                case EyouSoft.Model.EnumType.TourStructure.TourShouKeStatus.手动客满:
                case EyouSoft.Model.EnumType.TourStructure.TourShouKeStatus.手动停收:
                    if (tType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线)
                    {
                        if (sourceId != null && sourceId.ToString().Trim() != "" && c)
                        {
                            sb.Append("<a onclick='SanPinList.OpenBaoMing(this);return false;' href='/TeamCenter/ShortSanKeBaoMing.aspx?tourID=" + tourId.ToString() + "&sl=" + Utils.GetQueryStringValue("sl") + "'>" + skState.ToString() + "</a>");
                        }
                        if (sourceId == null || sourceId.ToString().Trim() == "")
                        {
                            sb.Append("<a onclick='SanPinList.OpenBaoMing(this);return false;' href='/TeamCenter/ShortSanKeBaoMing.aspx?tourID=" + tourId.ToString() + "&sl=" + Utils.GetQueryStringValue("sl") + "'>" + skState.ToString() + "</a>");
                        }
                    }
                    else
                    {
                        if (sourceId != null && sourceId.ToString().Trim() != "" && c)
                        {
                            sb.Append("<a onclick='SanPinList.OpenBaoMing(this);return false;' href='/TeamCenter/SanKeBaoMing.aspx?tourID=" + tourId.ToString() + "&sl=" + Utils.GetQueryStringValue("sl") + "'>" + skState.ToString() + "</a>");
                        }
                        if (sourceId == null || sourceId.ToString().Trim() == "")
                        {
                            sb.Append("<a onclick='SanPinList.OpenBaoMing(this);return false;' href='/TeamCenter/SanKeBaoMing.aspx?tourID=" + tourId.ToString() + "&sl=" + Utils.GetQueryStringValue("sl") + "'>" + skState.ToString() + "</a>");
                        }
                    }
                    break;

                default:
                    sb.Append("<b class='fontred' data-class='tingshou'>" + skState.ToString() + "</b>");
                    break;
                }
            }
            if (IsBaoMing)
            {
                return(sb.ToString());
            }
            else
            {
                return("无权报名");
            }
        }
コード例 #3
0
        /// <summary>
        /// 根据团队状态判断计调操作
        /// </summary>
        /// <param name="state"></param>
        /// <param name="tourid"></param>
        /// <param name="tourQType">对外报价类型 分项 整团</param>
        /// <param name="tourType">团队类型 组团 散拼</param>
        /// <returns></returns>
        protected string GetOperate(EyouSoft.Model.EnumType.TourStructure.TourStatus state, string tourid, EyouSoft.Model.EnumType.TourStructure.TourType tourType, EyouSoft.Model.EnumType.TourStructure.TourQuoteType tourQType)
        {
            string str = string.Empty;
            string sl  = Utils.GetQueryStringValue("sl");

            //string tour_Type = string.Empty;
            //计调类型 组团,地接,出境

            /*string type = string.Empty;
             * if (sl == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_组团计调).ToString())
             * {
             *  type = "Team";
             * }
             * if (sl == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_出境计调).ToString())
             * {
             *  type = "Departure";
             * }
             * if (sl == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_地接计调).ToString())
             * {
             *  type = "Agency";
             * }*/
            //团队类型

            /*if (tourType == EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼 || tourType == EyouSoft.Model.EnumType.TourStructure.TourType.地接散拼 || tourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼)
             * {
             *  tour_Type = "sanping";
             * }
             * if (tourType == EyouSoft.Model.EnumType.TourStructure.TourType.出境团队 || tourType == EyouSoft.Model.EnumType.TourStructure.TourType.地接团队 || tourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团团队)
             * {
             *  tour_Type = "zutuan";
             *  //团队报价类型
             *  if (tourQType == EyouSoft.Model.EnumType.TourStructure.TourQuoteType.整团)
             *  {
             *      tour_Type += "&TourQType=" + ((int)EyouSoft.Model.EnumType.TourStructure.TourQuoteType.整团) + "";
             *  }
             *  else
             *  {
             *      tour_Type += "&TourQType=" + ((int)EyouSoft.Model.EnumType.TourStructure.TourQuoteType.分项) + "";
             *  }
             * }*/

            //计调未接收的显示接收任务,计调已接收的显示安排
            if (state == EyouSoft.Model.EnumType.TourStructure.TourStatus.计调未接收)
            {
                str = "<a data-class=\"receiveOp\" data-TourId=" + tourid + " data-teamPlaner=\"" + UtilsCommons.GetTourPlanItemBytourID(tourid, this.SiteUserInfo.UserId) + "\" href=\"javascript:void(0);\">接收任务</a>";
            }
            else
            {
                str = "<a href=\"/OperaterCenter/OperaterConfigPage.aspx?&sl=" + sl + "&tourId=" + tourid + "\">安排</a>";
            }
            return(str);
        }
コード例 #4
0
        /// <summary>
        /// 获取收入的颜色
        /// </summary>
        /// <param name="tourStatus">团队状态</param>
        /// <returns></returns>
        protected string GetShouRuYanSe(object tourStatus)
        {
            if (tourStatus == null) return "fontred";
            var _tourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)tourStatus;
            var _status = 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.销售待审};

            if (_status.Contains(_tourStatus)) return string.Empty;

            return "fontred";
        }
コード例 #5
0
        /// <summary>
        /// 获取计划状态
        /// </summary>
        /// <param name="tourType">团队类型</param>
        /// <param name="tourStatus">状态</param>
        /// <returns></returns>
        protected string GetTourStatus(object tourType, object tourStatus)
        {
            string s = string.Empty;

            if (tourType == null || tourStatus == null)
            {
                return(string.Empty);
            }

            EyouSoft.Model.EnumType.TourStructure.TourType   _tourType   = (EyouSoft.Model.EnumType.TourStructure.TourType)tourType;
            EyouSoft.Model.EnumType.TourStructure.TourStatus _tourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)tourStatus;

            if (_tourType != EyouSoft.Model.EnumType.TourStructure.TourType.单项服务)
            {
                return(_tourStatus.ToString());
            }

            switch (_tourStatus)
            {
            case EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划:
                s = "操作中";
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕:
                s = "已落实";
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourStatus.待终审:
                s = "待终审";
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourStatus.财务核算:
                s = "财务核算";
                break;

            case EyouSoft.Model.EnumType.TourStructure.TourStatus.封团:
                s = "核算结束";
                break;

            default:
                s = _tourStatus.ToString();
                break;
            }

            return(s);
        }
コード例 #6
0
        protected string GetTourStatus(object obj, object yuanYin)
        {
            EyouSoft.Model.EnumType.TourStructure.TourStatus status = (EyouSoft.Model.EnumType.TourStructure.TourStatus)obj;
            string s = string.Empty;

            switch (status)
            {
            case EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕: s = "已落实"; break;

            case EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划: s = "操作中"; break;

            case EyouSoft.Model.EnumType.TourStructure.TourStatus.封团: s = "核算结束"; break;

            case EyouSoft.Model.EnumType.TourStructure.TourStatus.已取消:
                s = "<a data-class='QuXiaoYuanYin'><span class='fontgray' data-class='QuXiaoYuanYin' data-state='0'>已取消</span></a><div style='display: none'><b>取消原因</b>:" + yuanYin.ToString();
                break;

            default: s = status.ToString(); break;
            }

            return(s);
        }
コード例 #7
0
ファイル: Default.aspx.cs プロジェクト: windygu/bbl
 /// <summary>
 /// 状态
 /// </summary>
 /// <param name="ticketState"></param>
 /// <param name="tourState"></param>
 /// <returns></returns>
 public string getStatus(EyouSoft.Model.EnumType.PlanStructure.TicketState ticketState, EyouSoft.Model.EnumType.TourStructure.TourStatus tourState)
 {
     if (ticketState == PlanStructure.TicketState.机票申请)
     {
         return("机票申请");
     }
     else
     {
         if (ticketState == PlanStructure.TicketState.审核通过)
         {
             return("未出票");
         }
         else
         {
             return(tourState.ToString());
         }
     }
 }
コード例 #8
0
        /// <summary>
        /// 获取供应商安排数据源
        /// </summary>
        /// <returns></returns>
        private IList <EyouSoft.Model.PlanStructure.MPlanBaseInfo> GetSourcePlanList()
        {
            string[] SourceId     = Utils.GetFormValues("ShowID");
            string[] Sourcetype   = Utils.GetFormValues("Sourcetype");
            string[] SourceName   = Utils.GetFormValues("SourceName");
            string[] GuideNotes   = Utils.GetFormValues("GuideNotes");
            string[] PlanCost     = Utils.GetFormValues("PlanCost");
            string[] remarkSource = Utils.GetFormValues("remarkSource");
            string[] PayType      = Utils.GetFormValues("PayType");
            string[] Count        = Utils.GetFormValues("Count");
            string[] ContactName  = Utils.GetFormValues("ContactName");
            string[] ContactTel   = Utils.GetFormValues("ContactPhone");
            string[] ContactFax   = Utils.GetFormValues("ContactFax");
            string[] PlanId       = Utils.GetFormValues("PlanId");
            EyouSoft.Model.PlanStructure.MPlanBaseInfo         model;
            IList <EyouSoft.Model.PlanStructure.MPlanBaseInfo> list = new List <EyouSoft.Model.PlanStructure.MPlanBaseInfo>();

            if (Sourcetype.Length > 0 && SourceName.Length > 0 && GuideNotes.Length > 0 && PlanCost.Length > 0 && remarkSource.Length > 0)
            {
                string errorMsg = string.Empty;
                for (int i = 0; i < SourceName.Length; i++)
                {
                    model = new EyouSoft.Model.PlanStructure.MPlanBaseInfo();
                    if (!String.IsNullOrEmpty(PlanCost[i]) && !String.IsNullOrEmpty(SourceName[i]) && !string.IsNullOrEmpty(SourceId[i]))
                    {
                        model.GuideNotes = GuideNotes[i];
                        model.PlanCost   = Utils.GetDecimal(PlanCost[i]);
                        //model.Remarks = remarkSource[i];
                        model.CostDetail   = remarkSource[i];
                        model.SourceName   = SourceName[i];
                        model.Confirmation = Utils.GetDecimal(PlanCost[i]);
                        model.PaymentType  = (EyouSoft.Model.EnumType.PlanStructure.Payment)(Utils.GetInt(PayType[i]));
                        model.Num          = Utils.GetInt(Count[i]);
                        EyouSoft.Model.EnumType.TourStructure.TourStatus tourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)Utils.GetInt(Utils.GetFormValue(status.UniqueID));
                        model.ContactName  = ContactName[i];
                        model.ContactPhone = ContactTel[i];
                        model.ContactFax   = ContactFax[i];
                        model.SourceId     = SourceId[i];
                        model.PlanId       = PlanId[i];
                        if (tourStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划)
                        {
                            model.Status = EyouSoft.Model.EnumType.PlanStructure.PlanState.未落实;
                        }
                        if (tourStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕 || tourStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.待终审)
                        {
                            model.Status = EyouSoft.Model.EnumType.PlanStructure.PlanState.已落实;
                        }
                        model.Type = Utils.GetEnumValue <EyouSoft.Model.EnumType.PlanStructure.PlanProject>(Sourcetype[i], EyouSoft.Model.EnumType.PlanStructure.PlanProject.其它);
                        list.Add(model);
                        SourcePlanCount = list.Count;
                    }
                }
                if (String.IsNullOrEmpty(errorMsg))
                {
                    this.SetSourcePlan = list;
                    return(list);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                return(null);
            }
        }
コード例 #9
0
        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();
            }
        }
コード例 #10
0
        /// <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();
            }
        }
コード例 #11
0
        /// <summary>
        /// 根据团号获取团队信息
        /// </summary>
        /// <param name="toutID">团号</param>
        protected void DataInitByTourId(string tourID)
        {
            if (!string.IsNullOrEmpty(tourID))
            {
                EyouSoft.Model.TourStructure.MTourBaseInfo tourInfo = new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(tourID);
                if (tourInfo != null)
                {
                    //团号
                    tourStatus            = tourInfo.TourStatus;
                    this.litTourCode.Text = tourInfo.TourCode;
                    tourCode = tourInfo.TourCode;
                    //线路名称
                    this.litRouteName.Text = tourInfo.RouteName;
                    //天数
                    this.litDays.Text = tourInfo.TourDays.ToString();
                    //人数
                    this.litNums.Text = tourInfo.PlanPeopleNumber.ToString();
                    //出团时间
                    this.litStartDate.Text = EyouSoft.Common.UtilsCommons.GetDateString(tourInfo.LDate, ProviderToDate);
                    //销售员
                    if (tourInfo.SaleInfo != null)
                    {
                        this.litSellers.Text = tourInfo.SaleInfo.Name;
                    }
                }

                //总金额统计
                decimal totalPrices = 0;
                int     indexCount  = 0;

                //地接
                IList <EyouSoft.Model.PlanStructure.MPlan> ayencylist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.地接, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (ayencylist != null && ayencylist.Count > 0)
                {
                    this.tabAyencyView.Visible = true;
                    indexCount  += 1;
                    totalPrices += ayencylist.Sum(p => p.Confirmation);
                    this.repayencyList.DataSource = ayencylist;
                    this.repayencyList.DataBind();
                }


                IList <EyouSoft.Model.PlanStructure.MPlan> guidlist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.导游, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (guidlist != null && guidlist.Count > 0)
                {
                    this.tabGuidView.Visible = true;
                    indexCount  += 1;
                    totalPrices += guidlist.Sum(p => p.Confirmation);
                    this.repGuidList.DataSource = guidlist;
                    this.repGuidList.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> hotellist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.酒店, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (hotellist != null && hotellist.Count > 0)
                {
                    indexCount += 1;
                    this.tabHotelView.Visible = true;
                    totalPrices += hotellist.Sum(p => p.Confirmation);
                    this.rephotellist.DataSource = hotellist;
                    this.rephotellist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> carslist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.用车, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (carslist != null && carslist.Count > 0)
                {
                    indexCount += 1;
                    this.tabCarsView.Visible = true;
                    totalPrices += carslist.Sum(p => p.Confirmation);
                    this.repcarslist.DataSource = carslist;
                    this.repcarslist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> airlist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.飞机, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (airlist != null && airlist.Count > 0)
                {
                    indexCount += 1;
                    this.tabAirView.Visible    = true;
                    totalPrices               += airlist.Sum(p => p.Confirmation);
                    this.repairlist.DataSource = airlist;
                    this.repairlist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> trainlist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.火车, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (trainlist != null && trainlist.Count > 0)
                {
                    indexCount += 1;
                    this.tabtrainView.Visible = true;
                    totalPrices += trainlist.Sum(p => p.Confirmation);
                    this.reptrainlist.DataSource = trainlist;
                    this.reptrainlist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> buslist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.汽车, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (buslist != null && buslist.Count > 0)
                {
                    indexCount += 1;
                    this.tabbusView.Visible    = true;
                    totalPrices               += buslist.Sum(p => p.Confirmation);
                    this.repbuslist.DataSource = buslist;
                    this.repbuslist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> attrlist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.景点, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (attrlist != null && attrlist.Count > 0)
                {
                    indexCount += 1;
                    this.tabAttrView.Visible = true;
                    totalPrices += attrlist.Sum(p => p.Confirmation);
                    this.repattrlist.DataSource = attrlist;
                    this.repattrlist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> foreignshiplist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.涉外游轮, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (foreignshiplist != null && foreignshiplist.Count > 0)
                {
                    indexCount += 1;
                    this.tabForeignShipView.Visible = true;
                    totalPrices += foreignshiplist.Sum(p => p.Confirmation);
                    this.repforeignshiplist.DataSource = foreignshiplist;
                    this.repforeignshiplist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> chinashiplist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.国内游轮, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (chinashiplist != null && chinashiplist.Count > 0)
                {
                    indexCount += 1;
                    this.tabchinashipView.Visible = true;
                    totalPrices += chinashiplist.Sum(p => p.Confirmation);
                    this.repchinashiplist.DataSource = chinashiplist;
                    this.repchinashiplist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> dinlist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.用餐, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (dinlist != null && dinlist.Count > 0)
                {
                    indexCount += 1;
                    this.tabDinView.Visible    = true;
                    totalPrices               += dinlist.Sum(p => p.Confirmation);
                    this.repDinlist.DataSource = dinlist;
                    this.repDinlist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> shoplist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.购物, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (shoplist != null && shoplist.Count > 0)
                {
                    indexCount += 1;
                    this.tabshopView.Visible = true;
                    totalPrices += shoplist.Sum(p => p.Confirmation);
                    this.repshoplist.DataSource = shoplist;
                    this.repshoplist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> picklist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.领料, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (picklist != null && picklist.Count > 0)
                {
                    indexCount += 1;
                    this.tabpickView.Visible = true;
                    totalPrices += picklist.Sum(p => p.Confirmation);
                    this.reppicklist.DataSource = picklist;
                    this.reppicklist.DataBind();
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> otherlist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.其它, EyouSoft.Model.EnumType.PlanStructure.Payment.导游现付, null, false, null, tourID);
                if (otherlist != null && otherlist.Count > 0)
                {
                    indexCount += 1;
                    this.tabotherView.Visible = true;
                    totalPrices += otherlist.Sum(p => p.Confirmation);
                    this.repotherlist.DataSource = otherlist;
                    this.repotherlist.DataBind();
                }
                //总金额统计
                this.littotalPrices.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(totalPrices, ProviderToMoney);
            }
        }
コード例 #12
0
        /// <summary>
        /// 财务状态
        /// </summary>
        /// <param name="status"></param>
        /// <returns></returns>
        protected string GetFinStatus(EyouSoft.Model.EnumType.FinStructure.FinStatus?status, EyouSoft.Model.EnumType.TourStructure.TourStatus tStatus, string id)
        {
            string str = "";

            if ((status != EyouSoft.Model.EnumType.FinStructure.FinStatus.财务待审批 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.封团) && id != "")
            {
                return(str);
            }
            if (id != "")
            {
                str = "<a href='javascript:' data-class='savePreApp'><img src='/images/y-delupdateicon.gif' border='0' data-id='" + id + "' />修改</a> <a href='javascript:' data-class='deletePreApp'><img src='/images/y-delicon.gif' alt='' data-id='" + id + "' />删除</a>";
            }
            else
            {
                if (tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未结算 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.销售待审 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.计调待审 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.待终审 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.财务核算 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.封团 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.已取消 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.垫付申请 || tStatus == EyouSoft.Model.EnumType.TourStructure.TourStatus.审核失败)
                {
                    ret = true;
                    str = "";
                }
                else
                {
                    str = "<a data-class=\"savePreApp\" href=\"javascript:void(0);\"><img border=\"0\"  src=\"/images/addicon.gif\">申请</a>";
                }
            }
            return(str);
        }