public LimitTimeBuyController(
     ILimitTimeBuyService iLimitTimeBuyService,
     ISlideAdsService iSlideAdsService,
     IShopService iShopService,
     IProductService iProductService,
     IProductDescriptionTemplateService iProductDescriptionTemplateService,
     IShopCategoryService iShopCategoryService,
     ICommentService iCommentService,
     IConsultationService iConsultationService,
     ICouponService iCouponService,
     ICashDepositsService iCashDepositsService, ITypeService iTypeService
     )
 {
     _iLimitTimeBuyService = iLimitTimeBuyService;
     _iSlideAdsService     = iSlideAdsService;
     _iShopService         = iShopService;
     _iProductService      = iProductService;
     _iProductDescriptionTemplateService = iProductDescriptionTemplateService;
     _iShopCategoryService = iShopCategoryService;
     _iCommentService      = iCommentService;
     _iConsultationService = iConsultationService;
     _iCouponService       = iCouponService;
     _iCashDepositsService = iCashDepositsService;
     _iTypeService         = iTypeService;
 }
Example #2
0
        public JsonResult GetItemList(int page, int rows)
        {
            ILimitTimeBuyService limitTimeBuyService = ServiceHelper.Create <ILimitTimeBuyService>();
            LimitTimeQuery       limitTimeQuery      = new LimitTimeQuery()
            {
                ShopId   = new long?(base.CurrentSellerManager.ShopId),
                PageSize = rows,
                PageNo   = page
            };
            PageModel <LimitTimeMarketInfo> itemList = limitTimeBuyService.GetItemList(limitTimeQuery);
            List <LimitTimeMarketModel>     limitTimeMarketModels = new List <LimitTimeMarketModel>();

            foreach (LimitTimeMarketInfo model in itemList.Models)
            {
                if (model.EndTime < DateTime.Now)
                {
                    model.AuditStatus = LimitTimeMarketInfo.LimitTimeMarketAuditStatus.Ended;
                }
                LimitTimeMarketModel limitTimeMarketModel = new LimitTimeMarketModel()
                {
                    Id             = model.Id,
                    StartTime      = model.StartTime.ToString("yyyy-MM-dd HH:mm"),
                    EndTime        = model.EndTime.ToString("yyyy-MM-dd HH:mm"),
                    ProductId      = model.ProductId,
                    SaleCount      = model.SaleCount,
                    ProductName    = model.ProductName,
                    AuditStatusNum = (int)model.AuditStatus,
                    AuditStatus    = model.AuditStatus.ToDescription(),
                    CancelReson    = model.CancelReson,
                    MaxSaleCount   = model.MaxSaleCount
                };
                limitTimeMarketModels.Add(limitTimeMarketModel);
            }
            return(Json(new { rows = limitTimeMarketModels, total = itemList.Total }));
        }
Example #3
0
 public FightGroupController(ILimitTimeBuyService iLimitTimeBuyService)
 {
     //退出登录后,直接进入controller异常处理
     if (CurrentSellerManager != null)
     {
         CurShopId = CurrentSellerManager.ShopId;
     }
     _iLimitTimeBuyService = iLimitTimeBuyService;
 }
 public ProductConsultationController(
     ICommentService iCommentService,
     IConsultationService iConsultationService,
     IProductService iProductService,
     ILimitTimeBuyService iLimitTimeBuyService
     )
 {
     _iCommentService      = iCommentService;
     _iConsultationService = iConsultationService;
     _iProductService      = iProductService;
     _iLimitTimeBuyService = iLimitTimeBuyService;
 }
 public SearchController(
     IBrandService iBrandService,
     ICategoryService iCategoryService,
     IProductService iProductService,
     ILimitTimeBuyService iLimitTimeBuyService,
     ISearchProductService iSearchProductService)
 {
     _iBrandService         = iBrandService;
     _iCategoryService      = iCategoryService;
     _iProductService       = iProductService;
     _iLimitTimeBuyService  = iLimitTimeBuyService;
     _iSearchProductService = iSearchProductService;
 }
Example #6
0
 // Methods
 public LimitTimeBuyController(IShopCategoryService iShopCategoryService, ILimitTimeBuyService iLimitTimeBuyService, IShopService iShopService, IProductService iProductService, ICommentService iCommentService, IVShopService iVShopService, IConsultationService iConsultationService, IProductDescriptionTemplateService iProductDescriptionTemplateService, ICustomerService iCustomerService, ITypeService iTypeService)
 {
     this._iShopCategoryService = iShopCategoryService;
     this._iLimitTimeBuyService = iLimitTimeBuyService;
     this._iShopService         = iShopService;
     this._iProductService      = iProductService;
     this._iCommentService      = iCommentService;
     this._iVShopService        = iVShopService;
     this._iProductDescriptionTemplateService = iProductDescriptionTemplateService;
     this._iConsultationService = iConsultationService;
     this._iCustomerService     = iCustomerService;
     this._iTypeService         = iTypeService;
 }
 public LimitTimeBuyController(ILimitTimeBuyService iLimitTimeBuyService,
                               IMarketService iMarketService,
                               IOrderService iOrderService,
                               IShopService iShopService,
                               IProductService iProductService,
                               IFightGroupService iFightGroupService
                               )
 {
     _iLimitTimeBuyService = iLimitTimeBuyService;
     _iOrderService        = iOrderService;
     _iShopService         = iShopService;
     _iProductService      = iProductService;
     _iMarketService       = iMarketService;
     _iFightGroupService   = iFightGroupService;
 }
 public TemplateVisualizationAjaxController(
     IBonusService iBonusService,
     ITopicService iTopicService,
     ICouponService iCouponService,
     ILimitTimeBuyService iLimitTimeBuyService,
     IProductService iProductService,
     IPhotoSpaceService iPhotoSpaceService)
 {
     _iBonusService        = iBonusService;
     _iTopicService        = iTopicService;
     _iCouponService       = iCouponService;
     _iLimitTimeBuyService = iLimitTimeBuyService;
     _iProductService      = iProductService;
     _iPhotoSpaceService   = iPhotoSpaceService;
 }
Example #9
0
 public WXApiController(
     IWXCardService iWXCardService,
     IBonusService iBonusService,
     IVShopService iVShopService,
     IWXApiService iWXApiService,
     ILimitTimeBuyService iLimitTimeBuyService,
     IWXMsgTemplateService iWXMsgTemplateService
     )
 {
     _iWXCardService        = iWXCardService;
     _iBonusService         = iBonusService;
     _iVShopService         = iVShopService;
     _iWXApiService         = iWXApiService;
     _iLimitTimeBuyService  = iLimitTimeBuyService;
     _iWXMsgTemplateService = iWXMsgTemplateService;
 }
        public WXApiController(
            ISiteSettingService iSiteSettingService,
            IWXCardService iWXCardService,
            IBonusService iBonusService,
            IVShopService iVShopService,
            IWXApiService iWXApiService,
            ILimitTimeBuyService iLimitTimeBuyService
            )
        {
            _iSiteSettingService = iSiteSettingService;
            _iWXCardService = iWXCardService;
            _iBonusService = iBonusService;
            _iVShopService = iVShopService;
            _iWXApiService = iWXApiService;
            _iLimitTimeBuyService = iLimitTimeBuyService;

        }
Example #11
0
 public HomeController(
     IMemberService iMemberService,
     ISlideAdsService iSlideAdsService,
     IFloorService iFloorService,
     IArticleCategoryService iArticleCategoryService,
     IArticleService iArticleService,
     IBrandService iBrandService,
     ILimitTimeBuyService iLimitTimeBuyService,
     IShopBonusService iShopBonusService)
 {
     _iMemberService          = iMemberService;
     _iSlideAdsService        = iSlideAdsService;
     _iFloorService           = iFloorService;
     _iArticleCategoryService = iArticleCategoryService;
     _iArticleService         = iArticleService;
     _iBrandService           = iBrandService;
     _iLimitTimeBuyService    = iLimitTimeBuyService;
     _iShopBonusService       = iShopBonusService;
 }
Example #12
0
 public BranchOrderController()
 {
     _iOrderService = new OrderService();
     _iCartService = new CartService();
     _iMemberService = new MemberService();
     _iProductService = new ProductService();
     _iPaymentConfigService = new PaymentConfigService();
     _iCashDepositsService = new CashDepositsService();
     _iShopService = ServiceProvider.Instance<IShopService>.Create;
     _iLimitTimeBuyService = new LimitTimeBuyService();
     _iCouponService = new CouponService();
     _iShopBonusService = new ShopBonusService();
     _iCollocationService = new CollocationService();
     _iMemberCapitalService = new MemberCapitalService();
     _iShippingAddressService = new ShippingAddressService();
     _iMemberIntegralService = new MemberIntegralService();
     _iRegionService = new RegionService();
     _iVShopService = new VShopService();
     _iRefundService = new RefundService();
     _iFightGroupService = new FightGroupService();
 }
 public BranchOrderController()
 {
     this._iOrderService           = (IOrderService) new OrderService();
     this._iCartService            = (ICartService) new CartService();
     this._iMemberService          = (IMemberService) new MemberService();
     this._iProductService         = (IProductService) new ProductService();
     this._iPaymentConfigService   = (IPaymentConfigService) new PaymentConfigService();
     this._iCashDepositsService    = (ICashDepositsService) new CashDepositsService();
     this._iSiteSettingService     = (ISiteSettingService) new SiteSettingService();
     this._iShopService            = (IShopService) new ShopService();
     this._iLimitTimeBuyService    = (ILimitTimeBuyService) new LimitTimeBuyService();
     this._iCouponService          = (ICouponService) new CouponService();
     this._iShopBonusService       = (IShopBonusService) new ShopBonusService();
     this._iCollocationService     = (ICollocationService) new CollocationService();
     this._iMemberCapitalService   = (IMemberCapitalService) new MemberCapitalService();
     this._iShippingAddressService = (IShippingAddressService) new ShippingAddressService();
     this._iMemberIntegralService  = (IMemberIntegralService) new MemberIntegralService();
     this._iRegionService          = (IRegionService) new RegionService();
     this._iVShopService           = (IVShopService) new VShopService();
     this._iRefundService          = (IRefundService) new RefundService();
     this._iFightGroupService      = (IFightGroupService) new FightGroupService();
 }
        public JsonResult AddMarketCategory(string name)
        {
            Result result = new Result();

            try
            {
                ILimitTimeBuyService limitTimeBuyService = ServiceHelper.Create <ILimitTimeBuyService>();
                limitTimeBuyService.AddServiceCategory(name.Replace(",", "").Replace(",", ""));
                result.success = true;
                result.msg     = "添加分类成功!";
            }
            catch (HimallException himallException)
            {
                result.msg = himallException.Message;
            }
            catch (Exception exception)
            {
                Log.Error("添加分类出错", exception);
                result.msg = "添加分类出错!";
            }
            return(Json(result));
        }
 public LimitTimeBuyController(ILimitTimeBuyService iLimitTimeBuyService, IMarketService iMarketService, ISlideAdsService iSlideAdsService)
 {
     _iLimitTimeBuyService = iLimitTimeBuyService;
     _iMarketService       = iMarketService;
     _iSlideAdsService     = iSlideAdsService;
 }
Example #16
0
 public TopicController(ITopicService iTopicService, IProductService iProductService, ILimitTimeBuyService iLimitTimeBuyService)
 {
     _iProductService      = iProductService;
     _iTopicService        = iTopicService;
     _iLimitTimeBuyService = iLimitTimeBuyService;
 }
Example #17
0
 public ShopBranchController(ILimitTimeBuyService iLimitTimeBuyService)
 {
     _iLimitTimeBuyService = iLimitTimeBuyService;
 }