Ejemplo n.º 1
0
        /// <summary>
        /// 根据消费情况获取VIP的升级详情
        /// </summary>
        public VIPUpgradeInfo GetVIPUpgradeInfo()
        {
            var tactics = this.GetVIPUpTacticsWhenCash();

            if (tactics != null && tactics.Count() > 0)
            {
                var kinds = VMGlobal.DistributionQuery.LinqOP.Search <VIPKind>().ToList();
                List <VIPUpTacticForCheck> cktactics = new List <VIPUpTacticForCheck>();
                foreach (var t in tactics)
                {
                    cktactics.Add(new VIPUpTacticForCheck
                    {
                        BrandID        = t.BrandID,
                        FormerKindID   = t.FormerKindID,
                        AfterKindID    = t.AfterKindID,
                        CutPoint       = t.CutPoint,
                        FormerKindName = kinds.Find(o => o.ID == t.FormerKindID).Name,
                        AfterKindName  = kinds.Find(o => o.ID == t.AfterKindID).Name,
                        BrandName      = VMGlobal.PoweredBrands.Find(o => o.ID == t.BrandID).Name
                    });
                }
                _vipUpgradeInfo = new VIPUpgradeInfo {
                    VIPInfo = _vipInfo.CustomerName + (_vipInfo.Sex ? "先生" : "女士") + ",您的VIP卡可以升级啦!", UpTactics = cktactics
                };
                return(_vipUpgradeInfo);
            }
            return(null);
        }
Ejemplo n.º 2
0
 public override void Init()
 {
     VipBO                 = null;
     _vipUpgradeInfo       = null;
     VIPMessage            = "";
     _couponBrandIDs       = null;
     _beforeDiscountCoupon = 0;
     _afterDiscountCoupon  = 0;
     base.Init();
 }
Ejemplo n.º 3
0
        public override void Init()
        {
            _vipInfo              = null;
            _vipUpgradeInfo       = null;
            VIPMessage            = "";
            _couponBrandIDs       = null;
            _beforeDiscountCoupon = 0;
            _afterDiscountCoupon  = 0;
            List <DiscountTacticProductMapping> _discountTacticProductMapping = new List <DiscountTacticProductMapping>();

            _retailTacticRemark = "";//零售策略备注
            base.Init();
        }