Esempio n. 1
0
        /// <summary>
        /// 设置线路类型,即推广状态
        /// </summary>
        private void SetTourMarkerNote()
        {
            //权限判断
            if (!IsGrantUpdate)
            {
                Response.Clear();
                Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]");
                Response.End();
            }

            #region 获取推广状态 且转换成枚举
            RecommendType        SpreadState = new RecommendType();
            List <RecommendType> listPowder  = new List <RecommendType>();
            foreach (EnumObj item in EnumObj.GetList(typeof(RecommendType)))
            {
                if (item.Value == Utils.GetQueryStringValue("TourMarkerNote"))
                {
                    SpreadState = ((RecommendType)Utils.GetInt(item.Value));
                }
            }
            #endregion

            #region 获取线路ID列表
            string   TemplateTourID = Utils.GetQueryStringValue("TemplateTourID");
            string[] LineIdList     = { "" };
            if (!string.IsNullOrEmpty(TemplateTourID))
            {
                TemplateTourID = TemplateTourID.TrimEnd('$');
                if (TemplateTourID.Contains('$'))
                {
                    LineIdList = TemplateTourID.Split('$');
                }
                else
                {
                    LineIdList[0] = TemplateTourID;
                }
            }
            #endregion

            EyouSoft.IBLL.NewTourStructure.IRoute Ibll = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
            bool isTrue = Ibll.UpdateRouteRecommend(SpreadState, LineIdList);
            Ibll = null;
            Response.Clear();
            if (isTrue)
            {
                Response.Write("1");
            }
            else
            {
                Response.Write("error");
            }
            Response.End();
        }
Esempio n. 2
0
        /// <summary>
        /// 批量修改线路推荐类型
        /// </summary>
        /// <param name="type">推荐类型</param>
        /// <param name="routes">线路编号</param>
        /// <returns></returns>
        public bool UpdateRouteRecommend(RecommendType type, params string[] routes)
        {
            bool result = false;

            if (routes.Length > 0)
            {
                if (dal.UpdateRouteRecommend(type, ArrayToStr(routes)) > 0)
                {
                    result = true;
                }
            }
            return(result);
        }
Esempio n. 3
0
        /// <summary>
        /// 批量修改散拼团推荐类型
        /// </summary>
        /// <param name="type">推荐类型</param>
        /// <param name="tourId">团队编号</param>
        /// <returns></returns>
        public bool UpdatePowderRecommend(RecommendType type, params string[] tourId)
        {
            bool result = false;

            if (tourId != null && tourId.Length > 0)
            {
                if (dal.UpdatePowderRecommend(type, BRoute.ArrayToStr(tourId)) > 0)
                {
                    result = true;
                }
            }
            return(result);
        }
        public List <int> GetHeroList(RecommendType type)
        {
            switch (type)
            {
            case RecommendType.NewKinds:
                return(heroSortByNewKind);

            case RecommendType.HotBuy:
                return(heroSortByHotKind);

            case RecommendType.Discounts:
                return(heroSortByDiscounts);
            }
            return(null);
        }
Esempio n. 5
0
 // Token: 0x06000AEF RID: 2799 RVA: 0x00008C59 File Offset: 0x00006E59
 private void OnRecomListSelectionChange(IUnityItem item, RecommendType type)
 {
     this._playerListGui.ClearSelection();
     this._playerDetailGui.StopBadgeShow();
 }
Esempio n. 6
0
        /// <summary>
        /// 设置线路类型,即推广状态
        /// </summary>
        private void SetTourMarkerNote()
        {
            if (!IsGrantUpdate)
            {
                Response.Clear();
                Response.Write("[{isSuccess:false,ErrorMessage:'对不起,你当前登录的帐号没有权限执行该操作!'}]");
                Response.End();
            }
            RecommendType SpreadState = RecommendType.无;

            switch (Utils.GetQueryStringValue("TourMarkerNote"))
            {
            case "0":    //无
                SpreadState = RecommendType.无;
                break;

            case "1":    //推荐
                SpreadState = RecommendType.推荐;
                break;

            case "2":    //特价
                SpreadState = RecommendType.特价;
                break;

            case "3":    //豪华
                SpreadState = RecommendType.豪华;
                break;

            case "4":    //热门
                SpreadState = RecommendType.热门;
                break;

            case "5":    //新品
                SpreadState = RecommendType.新品;
                break;

            case "6":    //纯玩
                SpreadState = RecommendType.纯玩;
                break;

            case "7":    //经典
                SpreadState = RecommendType.经典;
                break;
            }
            string TemplateTourID = Utils.GetQueryStringValue("TemplateTourID");

            EyouSoft.IBLL.NewTourStructure.IPowderList Ibll = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance();
            if (TemplateTourID.EndsWith("$"))
            {
                TemplateTourID = TemplateTourID.TrimEnd('$');
            }
            bool isTrue = Ibll.UpdatePowderRecommend(SpreadState, TemplateTourID.Split('$'));

            Ibll = null;
            if (isTrue)
            {
                Response.Clear();
                Response.Write("1");
                Response.End();
            }
        }