public AdministrationController(IInventoryService inventoryService,
     ISalesService salesService,
     IAdministrationService administrationService)
 {
     _inventoryService = inventoryService;
     _salesService = salesService;
     _administrationService = administrationService;
 }
 public ReportsController(ISalesService salesService,
     IInventoryService inventoryService,
     IFinancialService financialService)
 {
     _salesService = salesService;
     _inventoryService = inventoryService;
     _financialService = financialService;
 }
 public SalesViewModelBuilder(IInventoryService inventoryService,
     IFinancialService financialService,
     ISalesService salesService)
 {
     _inventoryService = inventoryService;
     _financialService = financialService;
     _salesService = salesService;
 }
Example #4
0
 public ReferenceController(
     IInventoryService service, IFinancialService financialService, IPurchasingService purchasingService, ISalesService salesService,
     ILogger <ReferenceController> log)
 {
     _service           = service;
     _financialService  = financialService;
     _purchasingService = purchasingService;
     _log         = log;
     _saleService = salesService;
 }
Example #5
0
 public HomeController(IInventoryService inventoryService,
                       ISalesService salesService,
                       IOrderService orderService,
                       ICustomerService customerService)
 {
     this._inventoryService = inventoryService;
     this._salesService     = salesService;
     this._orderService     = orderService;
     this._customerService  = customerService;
 }
Example #6
0
        public SalesController(IInventoryService inventoryService,
                               IFinancialService financialService,
                               ISalesService salesService)
        {
            _inventoryService = inventoryService;
            _financialService = financialService;
            _salesService     = salesService;

            _viewModelBuilder = new Web.Models.ViewModels.Sales.SalesViewModelBuilder(inventoryService, financialService, salesService);
        }
Example #7
0
        public SalesController(IInventoryService inventoryService,
            IFinancialService financialService,
            ISalesService salesService)
        {
            _inventoryService = inventoryService;
            _financialService = financialService;
            _salesService = salesService;

            _viewModelBuilder = new Web.Models.ViewModels.Sales.SalesViewModelBuilder(inventoryService, financialService, salesService);
        }
Example #8
0
        public SalesTabViewModel(ISalesService salesService,
                                 ISalesStatisticsPrinter salesStatisticsPrinter
                                 )
        {
            _salesService           = salesService;
            _salesStatisticsPrinter = salesStatisticsPrinter;
            Sales = new ObservableCollection <SaleEntityViewModel>();

            ReloadToysCategoriesAsync()
            .Wait();
        }
Example #9
0
        public SalesViewModel()
        {
            var Scope = Startup.Instance.provider.CreateScope();

            _repository = Scope.ServiceProvider.GetRequiredService <ISalesService>();


            MasterData = _repository.GetInitilizeSales();
            WireCommands();
            Init();
        }
Example #10
0
 public HomeController(
     ISalesService salesService,
     UserManager <ApplicationUser> userManager,
     ILogger <HomeController> logger,
     ICountriesService countriesService)
 {
     this.salesService     = salesService;
     this.userManager      = userManager;
     this.logger           = logger;
     this.countriesService = countriesService;
 }
Example #11
0
 public SalesController(
     ISalesService salesService,
     INotificationsService notificationsService,
     IEmployeesManagerService employeesManagerService,
     UserManager <ApplicationUser> userManager)
 {
     this.salesService            = salesService;
     this.notificationsService    = notificationsService;
     this.employeesManagerService = employeesManagerService;
     this.userManager             = userManager;
 }
Example #12
0
 public ManagerPageViewModel(IToysService toysService,
                             ISalesService salesService,
                             ICustomersService customersService,
                             IPreOrdersService preOrdersService,
                             ISalesStatisticsPrinter printer
                             )
 {
     ToysContext      = new ToysTabViewModel(toysService);
     SalesContext     = new SalesTabViewModel(salesService, printer);
     CustomersContext = new CustomersTabViewModel(customersService);
     PreOrdersContext = new PreOrdersTabViewModel(preOrdersService);
 }
Example #13
0
 public SalesController(
     ISalesService salesService,
     IResellerService resellerService,
     IMapper mapper,
     ILogger <SalesController> logger
     )
 {
     this.salesService    = salesService;
     this.resellerService = resellerService;
     this.mapper          = mapper;
     this.logger          = logger;
 }
Example #14
0
 public CommonController(IInventoryService inventoryService,
     IFinancialService financialService,
     IPurchasingService purchasingService,
     ISalesService salesService,
     IAdministrationService administrationService)
 {
     _inventoryService = inventoryService;
     _financialService = financialService;
     _purchasingService = purchasingService;
     _salesService = salesService;
     _administrationService = administrationService;
 }
 public SalesOrderController(IInventoryService inventoryService,
                             IOrderService orderService,
                             ISalesService salesService,
                             IUnitService unitService,
                             IDiscountService discountService)
 {
     this._inventoryService = inventoryService;
     this._orderService     = orderService;
     this._salesService     = salesService;
     this._unitService      = unitService;
     this._discountService  = discountService;
 }
Example #16
0
 public CommonController(ISalesService salesService,
                         IAdministrationService administrationService,
                         IInventoryService inventoryService,
                         IPurchasingService purchasingService,
                         IFinancialService financialService)
 {
     _salesService          = salesService;
     _administrationService = administrationService;
     _inventoryService      = inventoryService;
     _purchasingService     = purchasingService;
     _financialService      = financialService;
 }
Example #17
0
 public SalesController(UserManager <User> userManager,
                        ISalesService sales,
                        ICustomersService customers,
                        ICarsService cars,
                        ILogService logs)
 {
     _userManager   = userManager;
     this.sales     = sales;
     this.customers = customers;
     this.cars      = cars;
     this.logs      = logs;
 }
 public SalesController(
     ILogger <SalesController> logger,
     IRothschildHouseIdentityClient rothschildHouseIdentityClient,
     IRothschildHousePaymentClient rothschildHousePaymentClient,
     ISalesService salesService
     ) : base()
 {
     Logger = logger;
     RothschildHouseIdentityClient = rothschildHouseIdentityClient;
     RothschildHousePaymentClient  = rothschildHousePaymentClient;
     SalesService = salesService;
 }
 public StoreManagementService
 (
     ISalesService salesService,
     IInventoryService inventoryService,
     ISalesRepository saleRepo,
     DBContext context
 )
 {
     _saleService      = salesService;
     _saleRepo         = saleRepo;
     _context          = context;
     _inventoryService = inventoryService;
 }
Example #20
0
 public SalesController(
     IDeletableEntityRepository <Sale> salesRepository,
     IDeletableEntityRepository <Car> carsRepository,
     IDeletableEntityRepository <ApplicationUser> usersRepository,
     IRepository <Country> countriesRepository,
     ISalesService salesService)
 {
     this.salesRepository     = salesRepository;
     this.carsRepository      = carsRepository;
     this.usersRepository     = usersRepository;
     this.countriesRepository = countriesRepository;
     this.salesService        = salesService;
 }
Example #21
0
 public AdminService(IToysCategoriesService toysCategoriesService,
                     IToysService toysService,
                     IPreOrdersService preOrdersService,
                     ICustomersService customersService,
                     ISalesService salesService
                     )
 {
     ToysCategoriesService = toysCategoriesService;
     ToysService           = toysService;
     PreOrdersService      = preOrdersService;
     CustomersService      = customersService;
     SalesService          = salesService;
 }
Example #22
0
        public DashboardController(ISalesService salesService)
        {
            _salesService = salesService;

            _usersRestrictions = new List <UserRestrictions> {
                new UserRestrictions {
                    Restrictions = "soy, dairy, peanut", Users = 2
                },
                new UserRestrictions {
                    Restrictions = "soy, dairy", Users = 4
                }
            };
        }
Example #23
0
 public SalesController(
     ISalesService salesService,
     ILoggerService loggerService,
     IHubContext <SaleLogsHub, ISaleLogsClient> saleLogHubContext,
     ISaleLogsService saleLogsService,
     ISaleMessagesService saleChatService)
 {
     this.salesService      = salesService;
     this.loggerService     = loggerService;
     this.saleLogHubContext = saleLogHubContext;
     this.saleLogsService   = saleLogsService;
     this.saleChatService   = saleChatService;
 }
Example #24
0
        public async Task AddArticleAsync()
        {
            VolatileCoreBusinessDataset store            = new VolatileCoreBusinessDataset();
            Mock <ISalesService>        mockSalesService = new Mock <ISalesService>();

            mockSalesService.Setup(s => s.CreateAsync(It.Is <Article>(a => a.Title == "Added title")))
            .ReturnsAsync(8);
            this.salesService = mockSalesService.Object;

            int id = await this.salesService.CreateAsync(this.articleToAdd);

            Assert.AreEqual(8, id);
        }
Example #25
0
        private void displayChange(ISalesService _salesService)
        {
            var change = (txtCash.Text == "") ? 0 : double.Parse(txtCash.Text) - double.Parse(lblTotal.Text);

            if (change < 0 || double.Parse(lblTotal.Text) == 0)
            {
                lblChange.Text = "0.00";
                txtCash.Text   = "0.00";
                return;
            }

            lblChange.Text = change.ToString("N");;
        }
Example #26
0
        public CustomerContractsController(ISalesService salesService, IUserIdentityProvider identityProvider)
        {
            if (salesService == null)
            {
                throw new ArgumentNullException("salesService");
            }
            _salesService = salesService;

            if (identityProvider == null)
            {
                throw new ArgumentNullException("identityProvider");
            }
            _identityProvider = identityProvider;
        }
 public AdminPageViewModel(IToysService toysService,
                           IToysCategoriesService categoriesService,
                           ISalesService salesService,
                           ICustomersService customersService,
                           IPreOrdersService preOrdersService,
                           ISalesStatisticsPrinter salesStatisticsPrinter
                           )
 {
     ToysContext           = new ToysTabViewModel(toysService);
     ToysCategoriesContext = new ToysCategoriesTabViewModel(categoriesService);
     SalesContext          = new SalesTabViewModel(salesService, salesStatisticsPrinter);
     CustomersContext      = new CustomersTabViewModel(customersService);
     PreOrdersContext      = new PreOrdersTabViewModel(preOrdersService);
 }
Example #28
0
        public CustomerProductSpecsController(ISalesService salesService, IUserIdentityProvider userIdentityProvider)
        {
            if (salesService == null)
            {
                throw new ArgumentNullException("salesService");
            }
            _salesService = salesService;

            if (userIdentityProvider == null)
            {
                throw new ArgumentNullException("userIdentityProvider");
            }
            _userIdentityProvider = userIdentityProvider;
        }
        public HomeController(
            IWebHostEnvironment hostEnvironment,
            IProductsService productsService,
            ISalesService salesService,
            IPharmaciesService pharmaciesService,
            IRegionsService regionsService)

        {
            this.hostEnvironment   = hostEnvironment;
            this.productsService   = productsService;
            this.salesService      = salesService;
            this.pharmaciesService = pharmaciesService;
            this.regionsService    = regionsService;
        }
        public BrokerCustomersController(ISalesService salesService, ICompanyService companyService)
        {
            if (salesService == null)
            {
                throw new ArgumentNullException("salesService");
            }
            _salesService = salesService;

            if (companyService == null)
            {
                throw new ArgumentNullException("companyService");
            }
            _companyService = companyService;
        }
Example #31
0
 public Initializer(IAdministrationService adminService,
                    IFinancialService financialService,
                    ISalesService salesService,
                    IPurchasingService purchasingService,
                    IInventoryService inventoryService,
                    ISecurityService securityService)
 {
     _adminService      = adminService;
     _financialService  = financialService;
     _salesService      = salesService;
     _purchasingService = purchasingService;
     _inventoryService  = inventoryService;
     _securityService   = securityService;
 }
Example #32
0
        public SalesOrdersController(ISalesService salesService, IUserIdentityProvider userIdentityProvider)
        {
            if (salesService == null)
            {
                throw new ArgumentNullException("salesService");
            }
            if (userIdentityProvider == null)
            {
                throw new ArgumentNullException("userIdentityProvider");
            }

            _salesService         = salesService;
            _userIdentityProvider = userIdentityProvider;
        }
Example #33
0
        public PharmnetController(
            IWebHostEnvironment hostEnvironment,
            ISalesService salesService,
            INumbersChecker numbersChecker,
            IProductsService productsService,
            IPharmaciesService pharmaciesService
            )

        {
            this.hostEnvironment   = hostEnvironment;
            this.salesService      = salesService;
            this.numbersChecker    = numbersChecker;
            this.productsService   = productsService;
            this.pharmaciesService = pharmaciesService;
        }
Example #34
0
 public SalesController(ISalesService salesService,
                        IDropDownService idropDownService,
                        ICommonService iCommonService,
                        IStringLocalizer <RocketPOSResources> sharedLocalizer,
                        LocService locService,
                        ISupplierService supplierService,
                        IEmailService emailService)
 {
     _iSalesService    = salesService;
     _iDropDownService = idropDownService;
     _iCommonService   = iCommonService;
     _iSupplierService = supplierService;
     _iEmailService    = emailService;
     _sharedLocalizer  = sharedLocalizer;
     _locService       = locService;
 }
        public HostedServiceMessage(ISalesService salesService, IUserWithLessOfferService userWithLessOfferService,
                                    IConfiguration configuration, ILogger <HostedServiceMessage> logger,
                                    ILogMessage logMessage)
        {
            ServiceBusInfo serviceBusInfo = configuration.GetSection("ServiceBus").Get <ServiceBusInfo>();

            _salesService             = salesService;
            _userWithLessOfferService = userWithLessOfferService;
            _logMessage = logMessage;

            _logger = logger;

            _subscriptionClientUserWithLessOffer = new SubscriptionClient(serviceBusInfo.ConnectionString, "userwithlessoffer", "Dashboard");
            _subscriptionClientOrderChanged      = new SubscriptionClient(serviceBusInfo.ConnectionString, "orderchanged", "Dashboard");
            _subscriptionClientNewOrder          = new SubscriptionClient(serviceBusInfo.ConnectionString, "neworder", "Dashboard");
        }
 public SalesController(ISalesService salesService)
 {
     this.SalesService = salesService;
 }
Example #37
0
 public HomeController(ISalesService service, IAppEvents events)
 {
     _service = service;
     _events = events;
 }