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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user