コード例 #1
0
 public AdministrationController(IInventoryService inventoryService,
     ISalesService salesService,
     IAdministrationService administrationService)
 {
     _inventoryService = inventoryService;
     _salesService = salesService;
     _administrationService = administrationService;
 }
コード例 #2
0
 public ReportsController(ISalesService salesService,
     IInventoryService inventoryService,
     IFinancialService financialService)
 {
     _salesService = salesService;
     _inventoryService = inventoryService;
     _financialService = financialService;
 }
コード例 #3
0
 public SalesViewModelBuilder(IInventoryService inventoryService,
     IFinancialService financialService,
     ISalesService salesService)
 {
     _inventoryService = inventoryService;
     _financialService = financialService;
     _salesService = salesService;
 }
コード例 #4
0
ファイル: ReferenceController.cs プロジェクト: lulzzz/AK
 public ReferenceController(
     IInventoryService service, IFinancialService financialService, IPurchasingService purchasingService, ISalesService salesService,
     ILogger <ReferenceController> log)
 {
     _service           = service;
     _financialService  = financialService;
     _purchasingService = purchasingService;
     _log         = log;
     _saleService = salesService;
 }
コード例 #5
0
 public HomeController(IInventoryService inventoryService,
                       ISalesService salesService,
                       IOrderService orderService,
                       ICustomerService customerService)
 {
     this._inventoryService = inventoryService;
     this._salesService     = salesService;
     this._orderService     = orderService;
     this._customerService  = customerService;
 }
コード例 #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);
        }
コード例 #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);
        }
コード例 #8
0
        public SalesTabViewModel(ISalesService salesService,
                                 ISalesStatisticsPrinter salesStatisticsPrinter
                                 )
        {
            _salesService           = salesService;
            _salesStatisticsPrinter = salesStatisticsPrinter;
            Sales = new ObservableCollection <SaleEntityViewModel>();

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

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


            MasterData = _repository.GetInitilizeSales();
            WireCommands();
            Init();
        }
コード例 #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;
 }
コード例 #11
0
ファイル: SalesController.cs プロジェクト: tonkatawe/MiniCRM
 public SalesController(
     ISalesService salesService,
     INotificationsService notificationsService,
     IEmployeesManagerService employeesManagerService,
     UserManager <ApplicationUser> userManager)
 {
     this.salesService            = salesService;
     this.notificationsService    = notificationsService;
     this.employeesManagerService = employeesManagerService;
     this.userManager             = userManager;
 }
コード例 #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);
 }
コード例 #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;
 }
コード例 #14
0
 public CommonController(IInventoryService inventoryService,
     IFinancialService financialService,
     IPurchasingService purchasingService,
     ISalesService salesService,
     IAdministrationService administrationService)
 {
     _inventoryService = inventoryService;
     _financialService = financialService;
     _purchasingService = purchasingService;
     _salesService = salesService;
     _administrationService = administrationService;
 }
コード例 #15
0
 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;
 }
コード例 #16
0
 public CommonController(ISalesService salesService,
                         IAdministrationService administrationService,
                         IInventoryService inventoryService,
                         IPurchasingService purchasingService,
                         IFinancialService financialService)
 {
     _salesService          = salesService;
     _administrationService = administrationService;
     _inventoryService      = inventoryService;
     _purchasingService     = purchasingService;
     _financialService      = financialService;
 }
コード例 #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;
 }
コード例 #18
0
 public SalesController(
     ILogger <SalesController> logger,
     IRothschildHouseIdentityClient rothschildHouseIdentityClient,
     IRothschildHousePaymentClient rothschildHousePaymentClient,
     ISalesService salesService
     ) : base()
 {
     Logger = logger;
     RothschildHouseIdentityClient = rothschildHouseIdentityClient;
     RothschildHousePaymentClient  = rothschildHousePaymentClient;
     SalesService = salesService;
 }
コード例 #19
0
 public StoreManagementService
 (
     ISalesService salesService,
     IInventoryService inventoryService,
     ISalesRepository saleRepo,
     DBContext context
 )
 {
     _saleService      = salesService;
     _saleRepo         = saleRepo;
     _context          = context;
     _inventoryService = inventoryService;
 }
コード例 #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;
 }
コード例 #21
0
 public AdminService(IToysCategoriesService toysCategoriesService,
                     IToysService toysService,
                     IPreOrdersService preOrdersService,
                     ICustomersService customersService,
                     ISalesService salesService
                     )
 {
     ToysCategoriesService = toysCategoriesService;
     ToysService           = toysService;
     PreOrdersService      = preOrdersService;
     CustomersService      = customersService;
     SalesService          = salesService;
 }
コード例 #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
                }
            };
        }
コード例 #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;
 }
コード例 #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);
        }
コード例 #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");;
        }
コード例 #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);
 }
コード例 #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;
        }
コード例 #29
0
        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;
        }
コード例 #30
0
        public BrokerCustomersController(ISalesService salesService, ICompanyService companyService)
        {
            if (salesService == null)
            {
                throw new ArgumentNullException("salesService");
            }
            _salesService = salesService;

            if (companyService == null)
            {
                throw new ArgumentNullException("companyService");
            }
            _companyService = companyService;
        }
コード例 #31
0
ファイル: Initializer.cs プロジェクト: bikalpkarn1/Account
 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;
 }
コード例 #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;
        }
コード例 #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;
        }
コード例 #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;
 }
コード例 #35
0
        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");
        }
コード例 #36
0
 public SalesController(ISalesService salesService)
 {
     this.SalesService = salesService;
 }
コード例 #37
0
 public HomeController(ISalesService service, IAppEvents events)
 {
     _service = service;
     _events = events;
 }