Fixed a bug in the row parsing engine related to ad special rows. Move all data from the old format to the new format. Updated the main form's UI.
This commit is contained in:
@@ -32,6 +32,7 @@ namespace AdvertsingProfitControl
|
||||
//Flag showing whether or not the AdSpecialRow has been made in this session.
|
||||
private int _adSpecialIndex = -1;
|
||||
private readonly AdvertisingProfitControlTableHelper _tableHelperFunctions = new AdvertisingProfitControlTableHelper();
|
||||
private TabPage _debugTabPage;
|
||||
|
||||
public NewAddRecord()
|
||||
{
|
||||
@@ -145,6 +146,9 @@ namespace AdvertsingProfitControl
|
||||
salaryDollarsTextBox.Validating += ValidateCostAnalysisValues;
|
||||
suppliesTextBox.Enter += StoreBeginningTextBoxValue;
|
||||
suppliesTextBox.Validating += ValidateCostAnalysisValues;
|
||||
//
|
||||
_debugTabPage = mainTabControl.TabPages[4];
|
||||
mainTabControl.TabPages.Remove(mainTabControl.TabPages[4]);
|
||||
}
|
||||
|
||||
#region Invoice Table Events
|
||||
@@ -1741,7 +1745,7 @@ namespace AdvertsingProfitControl
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(string),
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
MaxInputLength = 32
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
@@ -1777,7 +1781,7 @@ namespace AdvertsingProfitControl
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(string),
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
MaxInputLength = 32
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
@@ -1813,7 +1817,7 @@ namespace AdvertsingProfitControl
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(string),
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
MaxInputLength = 32
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
@@ -1845,7 +1849,7 @@ namespace AdvertsingProfitControl
|
||||
/// </summary>
|
||||
private void ConstructInvoicesDataGridView()
|
||||
{
|
||||
string[] invoicesColumnNames = { "ID", "InvoiceDate", "Supplier", "InvoiceNumber", "InvoiceNetAmountAtCost", "InvoiceNetAmount", "InvoiceNote", "IsDirty"};
|
||||
string[] invoicesColumnNames = { "ID", "InvoiceDate", "Supplier", "InvoiceNumber", "InvoiceNetAmountAtCost", "InvoiceNetAmountExtendedRetail", "InvoiceNote", "IsDirty"};
|
||||
|
||||
foreach (var name in invoicesColumnNames)
|
||||
{
|
||||
@@ -1857,7 +1861,7 @@ namespace AdvertsingProfitControl
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(string),
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
MaxInputLength = 32
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user