Esempio n. 1
0
        public ProductController(
            IMapper mapper,
            ICategoryService categoryService,
            IProductService productService,
            ISupplierService supplierService,
            IPriceDetailsService priceDetailsService,
            IImageProductService imageProductService,
            IAdvertisementService advertisementService,
            ISubProductService subProductService,
            IOrderService orderService,
            IOrderSubProductService orderSubProductService,

            IAccountService accountService)
        {
            this.Mapper                 = mapper;
            this.SupplierService        = supplierService;
            this.PriceDetailsService    = priceDetailsService;
            this.ImageProductService    = imageProductService;
            this.CategoryService        = categoryService;
            this.ProductService         = productService;
            this.AdvertisementService   = advertisementService;
            this.SubProductService      = subProductService;
            this.OrderService           = orderService;
            this.OrderSubProductService = orderSubProductService;

            this.AccountService = accountService;
        }
        public FrmPurchaseRequisitionNote()
        {
            _purchaseRequisitionNoteService = new PurchaseRequisitionNoteService();
            _unitService               = new UnitService();
            _subProductService         = new SubProductService();
            _productionMaterialService = new ProductionMaterialService();

            InitializeComponent();
            _commonService  = new CommonService();
            _productService = new ProductService();
        }
        public FrmPurchaseRequisitionNote()
        {
            _purchaseRequisitionNoteService = new PurchaseRequisitionNoteService();
            _unitService = new UnitService();
            _subProductService = new SubProductService();
            _productionMaterialService = new ProductionMaterialService();

            InitializeComponent();
            _commonService=new CommonService();
            _productService = new ProductService();
        }
Esempio n. 4
0
 public OrderController(IOrderService orderService,
                        IAdvertisementService advertisementService,
                        IOrderSubProductService orderSubProductService,
                        ISubProductService subProductService,
                        IPromotionService promotionService,
                        IMapper mapper,
                        IServiceProvider serviceProvider,
                        ICustomerService customerService)
 {
     this.Mapper                 = mapper;
     this.OrderService           = orderService;
     this.AdvertisementService   = advertisementService;
     this.OrderSubProductService = orderSubProductService;
     this.SubProductService      = subProductService;
     this.PromotionService       = promotionService;
     this._serviceProvider       = serviceProvider;
     this.CustomerService        = customerService;
 }