Added the new modify record form, can only pull in the Projections table and parse it. Fixed a bug in the modify record form where the first row would be marked as pending edit due to not checking the beginning cell variable correctly.

This commit is contained in:
2017-01-17 12:20:48 -06:00
parent bd586580e6
commit c9d8186d75
14 changed files with 3611 additions and 32 deletions
+1 -12
View File
@@ -2109,7 +2109,6 @@ namespace AdvertsingProfitControl
{
errorLabel.Text = @"Failed to trim the Inventory table.";
//Delete the Projections table.
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
}
else
{
@@ -2123,25 +2122,15 @@ namespace AdvertsingProfitControl
if (operationStatus == TrimmingOperationResult.FailedToTrim)
{
errorLabel.Text = @"Failed to trim the Actual Sales table.";
//Delete the Projections table and the Inventory table.
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
dbW.DeleteApcDataEntriesByDate("Inventory", dateId, dbT.DatabaseConnectionString);
}
else
{
if (!ProcessTrimmingStatusResult(actualSalesDataGridView, "ActualSales", operationStatus, trimmedTable, updateTable))
{
//Delete the Projections and Inventory table.
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
dbW.DeleteApcDataEntriesByDate("Inventory", dateId, dbT.DatabaseConnectionString);
errorLabel.Text = @"Failed to add actual sales to the database.";
}
}
}
else
{
//Delete the Projections table.
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
}
}
}
//Commit the Invoice table to the database.