public CollocationController(IMarketService iMarketService, ICollocationService iCollocationService, IProductService iProductService) { _iMarketService = iMarketService; settings = _iMarketService.GetServiceSetting(MarketType.Collocation); _iProductService = iProductService; _iCollocationService = iCollocationService; }
public JsonResult List(int page, int rows, string collName) { ICollocationService collocationService = ServiceHelper.Create <ICollocationService>(); CollocationQuery collocationQuery = new CollocationQuery() { Title = collName, ShopId = new long?(base.CurrentSellerManager.ShopId), PageSize = rows, PageNo = page }; PageModel <CollocationInfo> collocationList = collocationService.GetCollocationList(collocationQuery); var list = from item in collocationList.Models.ToList() select new { Id = item.Id, StartTime = item.StartTime.ToString("yyyy/MM/dd"), EndTime = item.EndTime.ToString("yyyy/MM/dd"), Title = item.Title, ShopName = item.ShopName, ProductId = item.ProductId, Status = item.Status }; return(Json(new { rows = list, total = collocationList.Total })); }
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(); }