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
+9 -6
View File
@@ -374,7 +374,7 @@ namespace AdvertsingProfitControl
perfectGrossProfitLabel.Text = "Percent Gross Profit: ";
return;
}
if (weeklySalesDataGridView.RowCount == 0) return;
double totalSales = Convert.ToDouble(weeklySalesDataGridView.Rows[0].Cells[7].EditedFormattedValue.ToString());
grossProfitTotalSales.ForeColor = Color.Black;
grossProfitTotalSales.Text = "Total Sales: " + totalSales.ToString("C");
@@ -647,11 +647,14 @@ namespace AdvertsingProfitControl
private void modifyRecordMainMenu_Click(object sender, EventArgs e)
{
var modifyForm = new FrmModifyRecord();
modifyForm.ShowDialog();
BuildAndFillDataGridTables();
CalculateProfitAnalysis();
CalculateGrossProfit();
//var modifyForm = new FrmModifyRecord();
//modifyForm.ShowDialog();
//BuildAndFillDataGridTables();
//CalculateProfitAnalysis();
//CalculateGrossProfit();
var date = DateTime.Parse(monthComboBox.SelectedItem + @"/" + dayComboBox.SelectedItem + @"/" + yearComboBox.SelectedItem);
var form = new NewModifyRecord(date);
form.ShowDialog();
}
private void manageItemsToolsMainMenu_Click(object sender, EventArgs e)