Exemplo n.º 1
0
 public HomeController(IUserService userService, IEmailService emailService, IGoodsService goodsService)
 {
     this.userService  = userService;
     this.emailService = emailService;
     this.goodsService = goodsService;
     emailService.TimerSendEmail();
 }
Exemplo n.º 2
0
 public BasketService(IGoodsService goodsService, ICapPublisher capPublisher, ILogger <BasketService> logger, IOrderService orderService)
 {
     GoodsService = goodsService;
     CapBus       = capPublisher;
     Logger       = logger;
     OrderService = orderService;
 }
Exemplo n.º 3
0
 public GoodsCategoryController(ICurrencyService currencyService, IGoodsService goodsService, IGoodsCategoryService goodsCategoryService, IStorageFileService storageFileService)
 {
     _currencyService      = currencyService;
     _goodsService         = goodsService;
     _goodsCategoryService = goodsCategoryService;
     _storageFileService   = storageFileService;
 }
Exemplo n.º 4
0
 public GoodsShortageController(ICurrencyService currencyService, IConfigService configService, IGoodsService goodsService)
 {
     _currencyService = currencyService;
     _configService   = configService;
     _goodsService    = goodsService;
     Logger           = NullLogger.Instance;
 }
Exemplo n.º 5
0
        /// <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);
            }
        }
Exemplo n.º 6
0
 public Products(IUnityContainer container)
 {
     InitializeComponent();
     _goodsService    = container.Resolve <IGoodsService>();
     _categoryService = container.Resolve <ICategoryService>();
     LoadData();
 }
Exemplo n.º 7
0
 public GoodsController(IGoodsService GoodsService,
                        IBusinessInfoService businessService, IBaseImageService baseImgInfoService)
 {
     _GoodsService       = GoodsService;
     _businessService    = businessService;
     _baseImgInfoService = baseImgInfoService;
 }
Exemplo n.º 8
0
        public GoodsRecycleController(ICurrencyService currencyService, IGoodsService goodsService)
        {
            _currencyService = currencyService;
            _goodsService    = goodsService;

            Logger = NullLogger.Instance;
        }
Exemplo n.º 9
0
 public UsersService(IServiceProvider serviceProvider)
 {
     _repository     = serviceProvider.GetRequiredService <IRepository <Users, int> >();
     _unitOfWork     = serviceProvider.GetRequiredService <IUnitOfWork>();
     _goodsService   = serviceProvider.GetRequiredService <IGoodsService>();
     _roleRepository = serviceProvider.GetRequiredService <IRepository <Role, int> >();
 }
Exemplo n.º 10
0
 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;
 }
Exemplo n.º 11
0
 public OrderCalculationController(IGoodsService goodsService, ICurrencyService currencyService, IShippingAreaService shippingAreaService, IWalletService walletService, IConfigService configService)
 {
     _goodsService        = goodsService;
     _currencyService     = currencyService;
     _shippingAreaService = shippingAreaService;
     _walletService       = walletService;
     _configService       = configService;
 }
Exemplo n.º 12
0
 public DemoController(ICustomerService customerService,
                       IOrderService orderService,
                       IGoodsService goodsService)
 {
     _customerService = customerService;
     _orderService    = orderService;
     _goodsService    = goodsService;
 }
Exemplo n.º 13
0
 public GoodsController(
     IGoodsService goodsService,
     IMeasuresService measuresService,
     UserManager <ApplicationUser> userManager)
 {
     this.goodsService    = goodsService;
     this.measuresService = measuresService;
     this.userManager     = userManager;
 }
Exemplo n.º 14
0
 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;
 }
Exemplo n.º 15
0
 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>();
 }
Exemplo n.º 16
0
 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);
 }
Exemplo n.º 17
0
 public GoodsController(
     IGoodsService service,
     IHttpContextAccessor httpContextAccessor
     )
     : base(service)
 {
     _service             = service;
     _httpContextAccessor = httpContextAccessor;
 }
Exemplo n.º 18
0
 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;
 }
Exemplo n.º 19
0
 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;
 }
Exemplo n.º 20
0
 public GoodsController(IGoodsService goodsService,
                        IExceptionService exceptionService,
                        ILocationService locationService,
                        IUserService userService,
                        IArticleService articleService,
                        IMapper mapper) : base(userService, exceptionService)
 {
     _goodsService = goodsService;
     _mapper       = mapper;
 }
Exemplo n.º 21
0
        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;
        }
Exemplo n.º 22
0
        public GoodWindow(MainWindow.Fetch fetch)
        {
            _goodsService    = new GoodsService();
            _categoryService = new CategoryService();
            _fetch           = fetch;

            InitializeComponent();

            CategorySelect.ItemsSource = _categoryService.GetCategories();
        }
Exemplo n.º 23
0
        public LidlViewModel()
        {
            _goodsService = DependencyService.Resolve <IGoodsService>();

            var task = DataWatchDog.CheckLidlPrices();

            task.Wait();

            AddUrlCommand = new Command(AddWatchDogAsync);
            DeleteCommand = new Command(Delete);
        }
Exemplo n.º 24
0
 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> >();
 }
Exemplo n.º 25
0
 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();
        }
Exemplo n.º 28
0
 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();
        }