public ProductUnitsController()
 {
     var dbfactory = new DatabaseFactory();
     _ProductUnitService = new ProductUnitService(new ProductUnitRepository(dbfactory), new UnitOfWork(dbfactory));
     _unitOfMeasurementService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory));
     _ProductPriceService = new ProductPriceService(new ProductPriceRepository(dbfactory), new UnitOfWork(dbfactory));
 }
Ejemplo n.º 2
0
 public SalesController()
 {
     var dbfactory = new DatabaseFactory();
     var unitOfWork = new UnitOfWork(dbfactory);
     _salesOrderService = new SalesOrderService(new SalesOrderRepository(dbfactory),
         new SalesOrderDetailRepository(dbfactory),
         new SalesOrderApprovalRepository(dbfactory),
         new NotificationRepository(dbfactory),
         new NotificationDetailRepository(dbfactory),
         unitOfWork);
     _approvalController = new ApprovalController<SlsSalesOrderApproval, SlsSalesOrderViewModel>(_salesOrderService);
     _deliveryService = new DeliveryService(new DeliveryRepository(dbfactory), new DeliveryDetailRepository(dbfactory), unitOfWork);
     _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), unitOfWork);
     _hrmEmployeeService = new HrmEmployeeService(new HrmEmployeeRepository(dbfactory), unitOfWork);
     _officeService = new OfficeService(new OfficeRepository(dbfactory), unitOfWork);
     _DistributorService = new DistributorService(new DistributorRepository(dbfactory), unitOfWork);
     _DealerService = new DealerService(new DealerRepository(dbfactory), unitOfWork);
     _CorporateClientService = new CorporateClientService(new CorporateClientRepository(dbfactory), unitOfWork);
     _RetailerService = new RetailerService(new RetailerRepository(dbfactory), unitOfWork);
     _FreeProductService = new FreeProductService(new FreeProductRepository(dbfactory), new ChartOfProductRepository(dbfactory),
         new UnitOfMeasurementRepository(dbfactory), unitOfWork);
     _ProductService = new ChartOfProductService(new ChartOfProductRepository(dbfactory), unitOfWork);
     _UnitService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), unitOfWork);
     _salesDiscountSettingService = new SalesDiscountSettingService(new SalesDiscountSettingRepository(dbfactory), unitOfWork);
     _PartyCreditService = new PartyCreditReportService(new InvStoreOpeningRepository(dbfactory), unitOfWork);
     _promotionalOfferService = new PromotionalOfferService(new PromotionalOfferRepository(dbfactory),
         new PromotionalOfferDetailRepository(dbfactory),
         new UnitOfWork(dbfactory));
 }
 public DefectReplacementController()
 {
     var dbfactory = new DatabaseFactory();
        _IDefectReplacementService = new DefectEntryService(new DefectEntryRepository(dbfactory), new UnitOfWork(dbfactory));
     _IDefectDetailService = new DefectDetailEntryService(new DefectDetailEntryRepository(dbfactory), new UnitOfWork(dbfactory));
     _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), new UnitOfWork(dbfactory));
     _ProductService = new ChartOfProductService(new ChartOfProductRepository(dbfactory), new UnitOfWork(dbfactory));
     _UnitService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory));
 }
Ejemplo n.º 4
0
 public BirdDetails(IBirdService birdService, Archaeomania mainForm, IUnitOfMeasurementService unitOfMeasurementService)
 {
     _birdService = birdService;
     _mainForm    = mainForm;
     _unitOfMeasurementService = unitOfMeasurementService;
     if (Bird == null)
     {
         Bird = new Bird();
     }
     InitializeComponent();
 }
        public SalesReplacementController()
        {
            var dbfactory = new DatabaseFactory();
            _SalesReplacementService = new SalesReplacementService(new SalesReplacementRepository(dbfactory), new UnitOfWork(dbfactory));

            _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), new UnitOfWork(dbfactory));
            _SalesReplacementDetailService = new SalesReplacementDetailService(new SalesReplacementDetailRepository(dbfactory), new UnitOfWork(dbfactory));
            _ChartOfProductService = new ChartOfProductService(new ChartOfProductRepository(dbfactory), new UnitOfWork(dbfactory));
            _unitOfMeasurementService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory));
            _officeService = new OfficeService(new OfficeRepository(dbfactory), new UnitOfWork(dbfactory));
            _hrmEmployeeService = new HrmEmployeeService(new HrmEmployeeRepository(dbfactory), new UnitOfWork(dbfactory));
        }
 public UnitOfMeasurementController()
 {
     var dbfactory = new DatabaseFactory();
     _unitOfMeasurementService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory));
 }
Ejemplo n.º 7
0
 public BirdService()
 {
     _birdRepository           = new BirdRepository();
     _unitOfMeasurementService = new UnitOfMeasurementService();
 }
 public StoreOpeningController()
 {
     var dbfactory = new DatabaseFactory();
     _StoreOpeningService = new StoreOpeningService(new InvStoreOpeningRepository(dbfactory), new UnitOfWork(dbfactory));
     _unitOfMeasurementService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory));
 }