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:
@@ -37,6 +37,7 @@ namespace AdvertsingProfitControl
|
||||
private DateTime _currentActiveDate;
|
||||
//
|
||||
private bool _isFormDirty;
|
||||
private TabPage _debugTabPage;
|
||||
|
||||
public NewModifyRecord(DateTime date)
|
||||
{
|
||||
@@ -155,6 +156,9 @@ namespace AdvertsingProfitControl
|
||||
salaryDollarsTextBox.Validating += ValidateCostAnalysisValues;
|
||||
suppliesTextBox.Enter += StoreBeginningTextBoxValue;
|
||||
suppliesTextBox.Validating += ValidateCostAnalysisValues;
|
||||
//
|
||||
_debugTabPage = mainTabControl.TabPages[4];
|
||||
mainTabControl.TabPages.Remove(mainTabControl.TabPages[4]);
|
||||
LoadDate(date);
|
||||
}
|
||||
|
||||
@@ -1772,7 +1776,7 @@ namespace AdvertsingProfitControl
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(string),
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
MaxInputLength = 32
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
@@ -1808,7 +1812,7 @@ namespace AdvertsingProfitControl
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(string),
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
MaxInputLength = 32
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
@@ -1844,7 +1848,7 @@ namespace AdvertsingProfitControl
|
||||
HeaderText = TextFormat.AddSpacesToSentence(name, false),
|
||||
ValueType = typeof(string),
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
MaxInputLength = 20
|
||||
MaxInputLength = 32
|
||||
};
|
||||
if (name.Contains("ID"))
|
||||
{
|
||||
@@ -1876,7 +1880,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)
|
||||
{
|
||||
@@ -1888,7 +1892,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