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));
 }
Esempio n. 2
0
        public ProductUnitForm()
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _productUnitService = kernel.GetService(typeof(ProductUnitService)) as ProductUnitService;

            _productUnit = new ProductUnitModel();
        }
Esempio n. 3
0
        public ProductStoreForm()
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _productStoreService          = kernel.GetService(typeof(ProductStoreService)) as ProductStoreService;
            _purchaseReceiveService       = kernel.GetService(typeof(PurchaseReceiveService)) as PurchaseReceiveService;
            _purchaseReceiveDetailService = kernel.GetService(typeof(PurchaseReceiveDetailService)) as PurchaseReceiveDetailService;
            _productUnitService           = kernel.GetService(typeof(ProductUnitService)) as ProductUnitService;
            _productSectionService        = kernel.GetService(typeof(ProductSectionService)) as ProductSectionService;

            _productStore = new ProductStoreModel();
        }
Esempio n. 4
0
 public ProductUnitController(IProductUnitService productUnitService,
                              IUserService userService) : base(userService)
 {
     _productUnitService = productUnitService;
 }
Esempio n. 5
0
 public EditModel(IProductUnitService service)
 {
     this._service = service;
 }
Esempio n. 6
0
 public IndexModel(IProductUnitService service)
 {
     this._service = service;
 }
 public ProductUnitsController(IProductUnitService productUnitService)
 {
     _productUnitService = productUnitService;
 }
Esempio n. 8
0
 public ProductUnitBusiness(IProductUnitService _svcProductUnit, IMapper _iMapper)
 {
     svcProductUnit = _svcProductUnit;
     iMapper        = _iMapper;
 }