Пример #1
0
 public WasteController(IWasteDAO _wasteDAO, IInventoryDAO _inventoryDAO)
 {
     wasteDAO     = _wasteDAO;
     inventoryDAO = _inventoryDAO;
 }
 public InventoryController(IInventoryDAO _inventoryDAO)
 {
     inventoryDAO = _inventoryDAO;
 }
Пример #3
0
 public LossController(ILossDAO _lossDAO, IInventoryDAO _inventoryDAO)
 {
     lossDAO      = _lossDAO;
     inventoryDAO = _inventoryDAO;
 }
Пример #4
0
 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;
 }
Пример #6
0
 public HarvestController(IHarvestDAO _harvestDAO, IInventoryDAO _inventoryDAO)
 {
     harvestDAO   = _harvestDAO;
     inventoryDAO = _inventoryDAO;
 }