Пример #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 LauchPad(ILabelCreateService labelCreateService)
 {
     _labelCreateService = labelCreateService;
     InitializeComponent();
     FlushScaleButton.Enabled = false;
     _scale = new Zq375();
 }
Пример #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 ScaleService(IScaleRepository scaleRepository, ILabelCreateService labelCreateService)
 {
     _scaleRepository    = scaleRepository;
     _labelCreateService = labelCreateService;
 }