/// <summary>
        /// 权限判断
        /// </summary>
        protected void PowerControl()
        {
            string tourId = Utils.GetQueryStringValue("tourId");

            ret = UtilsCommons.GetTourPlanItemBytourID(tourId, this.SiteUserInfo.UserId);
            var tourType = new EyouSoft.BLL.TourStructure.BTour().GetTourType(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;
            }
        }
Exemple #2
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);
        }