Add and modify forms texted with real data. Fixed a few crash bugs and precision errors. Fixed the Actual Sales table in Access was missing a row. Add sample data to the database.
This commit is contained in:
@@ -1779,7 +1779,7 @@ namespace AdvertsingProfitControl
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
//column.Visible = false;
|
||||
column.Visible = false;
|
||||
}
|
||||
projectionsDataGridView.Columns.Add(column);
|
||||
}
|
||||
@@ -1790,7 +1790,7 @@ namespace AdvertsingProfitControl
|
||||
Name = name,
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(bool),
|
||||
//Visible = false,
|
||||
Visible = false,
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable
|
||||
};
|
||||
projectionsDataGridView.Columns.Add(column);
|
||||
@@ -1809,6 +1809,10 @@ namespace AdvertsingProfitControl
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
column.Visible = false;
|
||||
}
|
||||
inventoryDataGridView.Columns.Add(column);
|
||||
}
|
||||
else
|
||||
@@ -1818,7 +1822,7 @@ namespace AdvertsingProfitControl
|
||||
Name = name,
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(bool),
|
||||
//Visible = false,
|
||||
Visible = false,
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable
|
||||
};
|
||||
inventoryDataGridView.Columns.Add(column);
|
||||
@@ -1837,6 +1841,10 @@ namespace AdvertsingProfitControl
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
column.Visible = false;
|
||||
}
|
||||
actualSalesDataGridView.Columns.Add(column);
|
||||
}
|
||||
else
|
||||
@@ -1846,7 +1854,7 @@ namespace AdvertsingProfitControl
|
||||
Name = name,
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(bool),
|
||||
//Visible = false,
|
||||
Visible = false,
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable
|
||||
};
|
||||
actualSalesDataGridView.Columns.Add(column);
|
||||
@@ -3245,7 +3253,7 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
if (displayInformation) informationLabel.Text += @"Successfully saved inventory." + Environment.NewLine;
|
||||
}
|
||||
else if (projectionsTrimmingStatus == TrimmingOperationResult.NoChangesRequired)
|
||||
else if (inventoryTrimmingStatus == TrimmingOperationResult.NoChangesRequired)
|
||||
{
|
||||
if (displayInformation) informationLabel.Text += @"No changes to inventory detected." + Environment.NewLine;
|
||||
}
|
||||
@@ -3298,7 +3306,7 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
if (displayInformation) informationLabel.Text += @"Successfully saved actual sales." + Environment.NewLine;
|
||||
}
|
||||
else if (projectionsTrimmingStatus == TrimmingOperationResult.NoChangesRequired)
|
||||
else if (actualSalesTrimmingStatus == TrimmingOperationResult.NoChangesRequired)
|
||||
{
|
||||
if (displayInformation) informationLabel.Text += @"No changes to actual sales detected." + Environment.NewLine;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user