public WasteController(IWasteDAO _wasteDAO, IInventoryDAO _inventoryDAO) { wasteDAO = _wasteDAO; inventoryDAO = _inventoryDAO; }
public InventoryController(IInventoryDAO _inventoryDAO) { inventoryDAO = _inventoryDAO; }
public LossController(ILossDAO _lossDAO, IInventoryDAO _inventoryDAO) { lossDAO = _lossDAO; inventoryDAO = _inventoryDAO; }
public IInventoryDAO createInventoryDAO() { lock (lockObj) { if (inventoryDAO == null) { if (databaseName == DATABASE_MSSQL) inventoryDAO = new InventoryMSSqlDAO(); if(inventoryDAO ==null ) throw new Exception("Unsupported database: " + databaseName); } return inventoryDAO; } }
public SalesController(ISaleDAO _salesDAO, IInventoryDAO _inventoryDAO) { salesDAO = _salesDAO; inventoryDAO = _inventoryDAO; }
public HarvestController(IHarvestDAO _harvestDAO, IInventoryDAO _inventoryDAO) { harvestDAO = _harvestDAO; inventoryDAO = _inventoryDAO; }