Пример #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.");
        }
Пример #2
0
 private void dropDBToolStripMenuItem_Click(object sender, EventArgs e)
 {
     InfluxdbClient.dropDB();
 }