public HomeController(IUserService userService, IEmailService emailService, IGoodsService goodsService) { this.userService = userService; this.emailService = emailService; this.goodsService = goodsService; emailService.TimerSendEmail(); }
public BasketService(IGoodsService goodsService, ICapPublisher capPublisher, ILogger <BasketService> logger, IOrderService orderService) { GoodsService = goodsService; CapBus = capPublisher; Logger = logger; OrderService = orderService; }
public GoodsCategoryController(ICurrencyService currencyService, IGoodsService goodsService, IGoodsCategoryService goodsCategoryService, IStorageFileService storageFileService) { _currencyService = currencyService; _goodsService = goodsService; _goodsCategoryService = goodsCategoryService; _storageFileService = storageFileService; }
public GoodsShortageController(ICurrencyService currencyService, IConfigService configService, IGoodsService goodsService) { _currencyService = currencyService; _configService = configService; _goodsService = goodsService; Logger = NullLogger.Instance; }
/// <summary> /// 获取商品信息 /// </summary> /// <param name="dicParas">参数字典</param> /// <returns>商品信息</returns> public object goodsInfo(Dictionary <string, object> dicParas) { string errMsg = string.Empty; string destroyDate = string.Empty; string pageIndexStr = string.Empty; string pageSizeStr = string.Empty; int pageIndex = 0; int pageSize = 0; if (!checkGoodsParams(dicParas, out pageIndex, out pageSize, out errMsg)) { ResponseModel responseModel = new ResponseModel(Return_Code.T, "", Result_Code.F, errMsg); return(responseModel); } else { int recordCount = 0; IGoodsService goodsService = BLLContainer.Resolve <IGoodsService>(); List <t_goods> goods = goodsService.GetModelsByPage <string>(pageSize, pageIndex, false, p => p.UpdateTime, p => p.UserID == 1, out recordCount).ToList <t_goods>(); List <GoodsInfoResponseModel> goodsResponse = Utils.GetCopyList <GoodsInfoResponseModel, t_goods>(goods); GoodsInfoPageResponseModel model = new GoodsInfoPageResponseModel(goodsResponse, new Page(pageIndex, pageSize, recordCount)); ResponseModel <GoodsInfoPageResponseModel> responseModel = new ResponseModel <GoodsInfoPageResponseModel>(model); return(responseModel); } }
public Products(IUnityContainer container) { InitializeComponent(); _goodsService = container.Resolve <IGoodsService>(); _categoryService = container.Resolve <ICategoryService>(); LoadData(); }
public GoodsController(IGoodsService GoodsService, IBusinessInfoService businessService, IBaseImageService baseImgInfoService) { _GoodsService = GoodsService; _businessService = businessService; _baseImgInfoService = baseImgInfoService; }
public GoodsRecycleController(ICurrencyService currencyService, IGoodsService goodsService) { _currencyService = currencyService; _goodsService = goodsService; Logger = NullLogger.Instance; }
public UsersService(IServiceProvider serviceProvider) { _repository = serviceProvider.GetRequiredService <IRepository <Users, int> >(); _unitOfWork = serviceProvider.GetRequiredService <IUnitOfWork>(); _goodsService = serviceProvider.GetRequiredService <IGoodsService>(); _roleRepository = serviceProvider.GetRequiredService <IRepository <Role, int> >(); }
public OderController(IAreaInfoService areaInfoService, IOrderIdInfoService orderIdInfoService, IShopInfoService shopInfoService, IGoodsService goodsService, IOrderInfoService orderInfoService) { this.areaInfoService = areaInfoService; this.orderIdInfoService = orderIdInfoService; this.shopInfoService = shopInfoService; this.goodsService = goodsService; this.orderInfoService = orderInfoService; }
public OrderCalculationController(IGoodsService goodsService, ICurrencyService currencyService, IShippingAreaService shippingAreaService, IWalletService walletService, IConfigService configService) { _goodsService = goodsService; _currencyService = currencyService; _shippingAreaService = shippingAreaService; _walletService = walletService; _configService = configService; }
public DemoController(ICustomerService customerService, IOrderService orderService, IGoodsService goodsService) { _customerService = customerService; _orderService = orderService; _goodsService = goodsService; }
public GoodsController( IGoodsService goodsService, IMeasuresService measuresService, UserManager <ApplicationUser> userManager) { this.goodsService = goodsService; this.measuresService = measuresService; this.userManager = userManager; }
public GoodsController(IGoodsService goodsService, ICurrencyService currencyService, IGoodsCategoryService goodsCategoryServices, IStorageFileService storageFileService, IMarkupService markupService, IShippingAreaService shippingAreaService) { _goodsService = goodsService; _currencyService = currencyService; _goodsCategoryServices = goodsCategoryServices; _storageFileService = storageFileService; _markupService = markupService; _shippingAreaService = shippingAreaService; }
public HomeService(IServiceProvider serviceProvider) { _goodsService = serviceProvider.GetRequiredService <IGoodsService>(); _regionService = serviceProvider.GetRequiredService <IRegionService>(); _storageService = serviceProvider.GetRequiredService <IStorageService>(); _usersService = serviceProvider.GetRequiredService <IUsersService>(); _goodsStorageService = serviceProvider.GetRequiredService <IGoodsStorageService>(); _storageRegionService = serviceProvider.GetRequiredService <IStorageRegionService>(); }
public ProductQuantitiesService(IGoodsService goods, IStoreService store, IGoodGroupsService goodGroups, IObjectsService objectsService, IFlagService flagService) { _flagService = flagService; this.Goods = goods; this.ObjectsService = objectsService; this.GoodGroups = goodGroups; this.Store = store; _publicHighCostVisible = flagService.GetFlagValue(FlagType.ShowOnlyHighCostGroups); }
public GoodsController( IGoodsService service, IHttpContextAccessor httpContextAccessor ) : base(service) { _service = service; _httpContextAccessor = httpContextAccessor; }
public OrderService(IDapper dapper, ILogger <OrderService> logger, IGoodsService goodsService, ICapPublisher capBus, IFluentEmail email, IIdentityService identityService) { Dapper = dapper; Logger = logger; GoodsService = goodsService; CapBus = capBus; Email = email; IdentityService = identityService; }
public OrderController(IOrderService orderService, IGoodsService goodsService, ICurrencyService currencyService, IStorageFileService storageFileService, IShippingAreaService shippingAreaService, IWalletService walletService, IConfigService configService) { _orderService = orderService; _goodsService = goodsService; _currencyService = currencyService; _storageFileService = storageFileService; _shippingAreaService = shippingAreaService; _walletService = walletService; _configService = configService; }
public GoodsController(IGoodsService goodsService, IExceptionService exceptionService, ILocationService locationService, IUserService userService, IArticleService articleService, IMapper mapper) : base(userService, exceptionService) { _goodsService = goodsService; _mapper = mapper; }
public GoodsController(ICurrencyService currencyService, IGoodsService goodsService, IGoodsCategoryService goodsCategoryService, IStorageFileService storageFileService, IConfigService configService) { _currencyService = currencyService; _goodsService = goodsService; _goodsCategoryService = goodsCategoryService; _storageFileService = storageFileService; _configService = configService; Logger = NullLogger.Instance; }
public GoodWindow(MainWindow.Fetch fetch) { _goodsService = new GoodsService(); _categoryService = new CategoryService(); _fetch = fetch; InitializeComponent(); CategorySelect.ItemsSource = _categoryService.GetCategories(); }
public LidlViewModel() { _goodsService = DependencyService.Resolve <IGoodsService>(); var task = DataWatchDog.CheckLidlPrices(); task.Wait(); AddUrlCommand = new Command(AddWatchDogAsync); DeleteCommand = new Command(Delete); }
public LeaveService(IServiceProvider serviceProvider) { _goodsStorageService = serviceProvider.GetRequiredService <IGoodsStorageService>(); _unitOfWork = serviceProvider.GetRequiredService <IUnitOfWork>(); _goodsService = serviceProvider.GetRequiredService <IGoodsService>(); _regionService = serviceProvider.GetRequiredService <IRegionService>(); _storageService = serviceProvider.GetRequiredService <IStorageService>(); _goodsTypeService = serviceProvider.GetRequiredService <IGoodsTypeService>(); _usersService = serviceProvider.GetRequiredService <IUsersService>(); _repository = serviceProvider.GetRequiredService <IRepository <GoodsLeave, int> >(); }
public TransfersController( UserManager <ApplicationUser> userManager, ITransfersService transfersService, IWarehousesService warehousesService, IGoodsService goodsService) { this.userManager = userManager; this.transfersService = transfersService; this.warehousesService = warehousesService; this.goodsService = goodsService; }
public GoodsPage(IGoodsService goodsService, ICategoryService categoryService, IProducerService producerService, IOptions <AppSettings> settings, IMapper mapper) { _goodsService = goodsService; _categoryService = categoryService; _producerService = producerService; _mapper = mapper; _settings = settings.Value; InitializeComponent(); }
public DeliveryOrderWindow(IConsignmentService consignmentService, IDeliveryContentsService deliveryContentsService, IMapper mapper, IOptions <AppSettings> settings, IGoodsService goodsService, IDeliveryService deliveryService) { _consignmentService = consignmentService; _deliveryContentsService = deliveryContentsService; _mapper = mapper; _goodsService = goodsService; _deliveryService = deliveryService; _settings = settings.Value; InitializeComponent(); }
public GoodsController(IGoodsService goodsService, IGoodsSearchService goodsSearchService, IGoodsCategoryService goodsCategoryService, IGoodsPropertyService goodsPropertyService, IExcelDataHaveColumnExporter dataExporter, ICommandPipeProvider commandPipeProvider) { _goodsService = goodsService; _goodsSearchService = goodsSearchService; _goodsCategoryService = goodsCategoryService; _dataExporter = dataExporter; _goodsPropertyService = goodsPropertyService; base.CommandPipeProvider = commandPipeProvider; }
public OrderOptionsPresenter(OrderOptionsView view, IGoodsService goodsService, IWarehouseService warehouseService, IStaffService staffService) { _goodsService = goodsService; _warehouseService = warehouseService; _staffService = staffService; _view = view; SubscribeOnViewEvents(); NotifyPresenterLoaded(); }
public DeliveryContentsPage(IDeliveryContentsService deliveryContentsService, IConsignmentService consignmentService, IDeliveryService deliveryService, IOptions <AppSettings> settings, IMapper mapper, IProviderService providerService, SimpleNavigationService navigationService, IGoodsService goodsService) { _deliveryContentsService = deliveryContentsService; _consignmentService = consignmentService; _deliveryService = deliveryService; _mapper = mapper; _providerService = providerService; _navigationService = navigationService; _goodsService = goodsService; _settings = settings.Value; InitializeComponent(); }