Added a temporary form to convert the old database format. Updated the row parsing engine to handle ad special rows more effectively. Fixed a few bugs with the parsing engine not flagging member rows as dirty. Upped the character limit of the ad item and supplier columns.

This commit is contained in:
2017-01-22 20:46:07 -06:00
parent ac16bbc05c
commit 9f045175ed
13 changed files with 872 additions and 24 deletions
+19 -4
View File
@@ -685,12 +685,11 @@ namespace AdvertsingProfitControl
e.Cancel = true; //Prevent the new row from being removed.
return;
}
else
{
e.Cancel = true;
}
e.Cancel = true;
}
//Mark all rows under the row that just got deleted as dirty.
if (dataGridView.Rows.Count != inventoryDataGridView.Rows.Count ||
dataGridView.Rows.Count != actualSalesDataGridView.Rows.Count) return;
for (var index = currentRowIndex; currentRowIndex < dataGridView.Rows.Count; index++)
{
projectionsDataGridView.Rows[index].Cells[(int)SalesTableColumns.IsDirty].Value = true;
@@ -1748,6 +1747,10 @@ namespace AdvertsingProfitControl
{
column.Visible = false;
}
if (name == "AdItem")
{
column.MaxInputLength = 64;
}
projectionsDataGridView.Columns.Add(column);
}
else
@@ -1780,6 +1783,10 @@ namespace AdvertsingProfitControl
{
column.Visible = false;
}
if (name == "AdItem")
{
column.MaxInputLength = 64;
}
inventoryDataGridView.Columns.Add(column);
}
else
@@ -1812,6 +1819,10 @@ namespace AdvertsingProfitControl
{
column.Visible = false;
}
if (name == "AdItem")
{
column.MaxInputLength = 64;
}
actualSalesDataGridView.Columns.Add(column);
}
else
@@ -1852,6 +1863,10 @@ namespace AdvertsingProfitControl
{
column.Visible = false;
}
if (name == "Supplier")
{
column.MaxInputLength = 64;
}
invoicesDataGridView.Columns.Add(column);
}
else