Beispiel #1
0
        public SalesFigures(SalesManager s, StockManager st)
        {
            sales = s;
            stock = st;

            //getFigures();
        }
 public MainManager()
 {
     _data        = new DataManager();
     _stock       = new StockManager(Data.GetStock());
     _sales       = new SalesManager(Data.GetSales(_stock.Items));
     _predictions = new SalesPredictions(_sales, _stock);
     _figures     = new SalesFigures(_sales, _stock);
 }
Beispiel #3
0
        public SalesPredictions(SalesManager s, StockManager st)
        {
            sales = s;
            stock = st;

            getAllPredictions();
            Console.WriteLine(ProductCount());
            for (int i = 0; i < ProductCount(); i++)
            {
                Console.WriteLine(i + " month: " + _monthPredictions[i].Stock + ":" + _monthPredictions[i].Amount);
                Console.WriteLine(i + " week: " + _weekPredictions[i].Stock + ":" + _weekPredictions[i].Amount);
            }
        }
 public ReportCsv(SalesManager s, StockManager st)
 {
     sales = s;
     stock = st;
 }
 public SalesReport(SalesManager s, StockManager st)
 {
     sales = s;
     stock = st;
 }