Ejemplo n.º 1
0
 public CommonController(IWarehouseBusiness warehouseBusiness, IItemTypeBusiness itemTypeBusiness, IUnitBusiness unitBusiness, IItemBusiness itemBusiness, IRequsitionInfoBusiness requsitionInfoBusiness, IRequsitionDetailBusiness requsitionDetailBusiness, IProductionLineBusiness productionLineBusiness)
 {
     this._warehouseBusiness        = warehouseBusiness;
     this._itemTypeBusiness         = itemTypeBusiness;
     this._unitBusiness             = unitBusiness;
     this._itemBusiness             = itemBusiness;
     this._requsitionInfoBusiness   = requsitionInfoBusiness;
     this._requsitionDetailBusiness = requsitionDetailBusiness;
     this._productionLineBusiness   = productionLineBusiness;
 }
        private readonly IInventoryUnitOfWork _inventoryDb;                                // database
        public ProductionStockDetailBusiness(IProductionUnitOfWork productionDb, IInventoryUnitOfWork inventoryDb)
        {
            this._productionDb = productionDb;
            this._inventoryDb  = inventoryDb;

            _productionStockDetailRepository = new ProductionStockDetailRepository(this._productionDb);
            _productionStockInfoRepository   = new ProductionStockInfoRepository(this._productionDb);
            _productionStockInfoBusiness     = new ProductionStockInfoBusiness(this._productionDb);
            _requsitionInfoBusiness          = new RequsitionInfoBusiness(this._productionDb, this._inventoryDb);
            _requsitionDetailBusiness        = new RequsitionDetailBusiness(this._productionDb);
            _itemBusiness = new ItemBusiness(this._inventoryDb);
        }
Ejemplo n.º 3
0
        private readonly IProductionUnitOfWork _productionDb;                           // database;

        public WarehouseStockDetailBusiness(IInventoryUnitOfWork inventoryDb, IItemBusiness itemBusiness, IWarehouseStockInfoBusiness warehouseStockInfoBusiness, IProductionUnitOfWork productionDb)
        {
            this._inventoryDb = inventoryDb;
            _itemBusiness     = itemBusiness;
            warehouseStockDetailRepository = new WarehouseStockDetailRepository(this._inventoryDb);
            _warehouseStockInfoBusiness    = warehouseStockInfoBusiness;
            warehouseStockInfoRepository   = new WarehouseStockInfoRepository(this._inventoryDb);

            this._productionDb        = productionDb;
            _requsitionInfoBusiness   = new RequsitionInfoBusiness(this._productionDb, this._inventoryDb);
            _requsitionDetailBusiness = new RequsitionDetailBusiness(this._productionDb);
        }