Ejemplo n.º 1
0
        public static void insertAllStats()
        {
            String message = "Inserting all stats from " + start + " to " + end;

            log.Info(message);

            if (MainApp.GetConsole())
            {
                MessageBox.Show(message);
            }

            InfluxdbClient.dropDB();
            InfluxdbClient.createDB();
            //System.Threading.Thread.Sleep(2000);

            insertInvoiceStats();
            log.Info("Finished invoices.");
            insertWorkOrderStats();
            log.Info("Finished wo.");
            insertProposalStats();
            log.Info("Finished props.");
            insertPurchaseOrders();
            log.Info("Finished po.");
            insertPayrollStats();
            log.Info("Finished pay.");
            insertARStats();
            log.Info("Finished ar.");
            insertItems();
            log.Info("Finished items.");
        }
Ejemplo n.º 2
0
 private void createDBToolStripMenuItem_Click(object sender, EventArgs e)
 {
     InfluxdbClient.createDB();
 }