예제 #1
0
        private void Init()
        {
            var context = new OmsContext();

            _orderRepository            = new OrderRepository(context);
            _customerLocationRepository = new CustomerLocationRepository(context);
            var customerRepository = new CustomerRepository(context);

            _customerProductDataRepository = new CustomerProductDataRepository(context);
            _orderService                    = new OrderService(_orderRepository, customerRepository, _customerLocationRepository, _coldWeightRepository);
            _orderDetailService              = new OrderDetailService(_orderDetailRepository, _orderRepository, _productRepository, _customerLocationRepository, new SpeciesRepository(context), _customerProductDataRepository);
            _labelService                    = new LabelService();
            _labelCreateService              = new LabelCreateService();
            _productRepository               = new ProductRepository(context);
            _coldWeightRepository            = new ColdWeightEntryRepository(context);
            _offalRepository                 = new OffalRepository(context);
            _orderComboRepository            = new OrderComboRepository(context);
            _orderOffalRepository            = new OrderOffalRepository(context);
            _orderDetailRepository           = new OrderDetailRepository(context);
            _animalOrderDetailRepository     = new AnimalOrderDetailRepository(context);
            _coldWeightEntryRepository       = new ColdWeightEntryRepository(context);
            _qualityGradeRepository          = new QualityGradeRepository(context);
            _animalLabelRepository           = new AnimalLabelRepository(context);
            _coldWeightEntryDetailRepository = new ColdWeightEntryDetailRepository(context);
        }
예제 #2
0
 public ColdWeightEntryService(IOrderDetailService orderDetailService, IColdWeightEntryDetailRepository coldWeightEntryDetailRepository,
                               IOrderRepository orderRepository, IColdWeightEntryRepository coldWeightEntryRepository, IAnimalLabelRepository animalLabelRepository,
                               IQualityGradeRepository qualityGradeRepository, ISpeciesRepository speciesRepository)
 {
     _coldWeightEntryRepository       = coldWeightEntryRepository;
     _animalLabelRepository           = animalLabelRepository;
     _qualityGradeRepository          = qualityGradeRepository;
     _speciesRepository               = speciesRepository;
     _coldWeightEntryDetailRepository = coldWeightEntryDetailRepository;
     _orderRepository    = orderRepository;
     _orderDetailService = orderDetailService;
 }
예제 #3
0
        private void Init()
        {
            var context = new OmsContext();

            _labelRepository                 = new LabelRepository(context);
            _orderRepository                 = new OrderRepository(context);
            _orderDetailRepository           = new OrderDetailRepository(context);
            _coldWeightEntryRepository       = new ColdWeightEntryRepository(context);
            _coldWeightEntryDetailRepository = new ColdWeightEntryDetailRepository(context);
            _customerLocationRepository      = new CustomerLocationRepository(context);
            _animalOrderDetailRepository     = new AnimalOrderDetailRepository(context);
            _productRepository               = new ProductRepository(context);
            _customerRepository              = new CustomerRepository(context);
            _labelCreateService              = new LabelCreateService();
            _primalCutRepository             = new PrimalCutRepository(context);
            _speciesRepository               = new SpeciesRepository(context);
        }
예제 #4
0
 public OrdersController(IColdWeightEntryRepository coldWeightEntryRepository,
                         IOrderSearchService orderSearchService, IOrderRepository orderRepository,
                         IOrderDetailRepository orderDetailRepository, ILabelRepository labelRepository,
                         ILookupService lookupService, IOrderService orderService, IOrderDetailService orderDetailService,
                         IOrderReportService orderReportService, IColdWeightEntryService coldWeightEntryService,
                         ICustomerRepository customerRepository, IProductRepository productRepository,
                         ICustomerLocationRepository customerLocationRepository, ISteakTypeRepository steakTypeRepository,
                         IOrganMeatTypeRepository organMeatTypeRepository, IPackageSizeRepository packageSizeRepository, IRibTypeRepository ribTypeRepository,
                         IChuckTypeRepository chuckTypeRepository, IAnimalOrderDetailRepository animalOrderDetailRepository,
                         IColdWeightEntryDetailRepository coldWeightEntryDetailRepository, IAnimalLabelRepository animalLabelRepository,
                         ILabelService laveLabelService, ICustomerProductDataRepository customerProductDataRepository)
 {
     _orderSearchService              = orderSearchService;
     _orderRepository                 = orderRepository;
     _orderDetailRepository           = orderDetailRepository;
     _labelRepository                 = labelRepository;
     _lookupService                   = lookupService;
     _orderService                    = orderService;
     _orderDetailService              = orderDetailService;
     _orderReportService              = orderReportService;
     _coldWeightEntryService          = coldWeightEntryService;
     _coldWeightEntryRepository       = coldWeightEntryRepository;
     _productRepository               = productRepository;
     _customerLocationRepository      = customerLocationRepository;
     _steakTypeRepository             = steakTypeRepository;
     _organMeatTypeRepository         = organMeatTypeRepository;
     _packageSizeRepository           = packageSizeRepository;
     _ribTypeRepository               = ribTypeRepository;
     _chuckTypeRepository             = chuckTypeRepository;
     _animalOrderDetailRepository     = animalOrderDetailRepository;
     _coldWeightEntryDetailRepository = coldWeightEntryDetailRepository;
     _animalLabelRepository           = animalLabelRepository;
     _customerProductDataRepository   = customerProductDataRepository;
     Customers = new List <Customer>(lookupService.GetCustomers().Select(x => new Customer()
     {
         Name = x.Name,
         Id   = x.Id
     }));
 }