Purged the row grouping code from the modify record form as it is no longer needed as well a moving all the main control events into their own toggle functions to make event enabling/disabling more consistent.
This commit is contained in:
@@ -15,17 +15,17 @@ namespace DataTableParsingEngine
|
||||
/// <param name="table">The DataGridView to parse.</param>
|
||||
/// <param name="startingIndex">The starting index (the row that fired the RowLeave event)</param>
|
||||
/// <param name="fullScan">True to force a full scan of all rows beginning at the starting index.</param>
|
||||
public static bool PaintRowGroups(DataGridView table, int startingIndex, bool fullScan = false)
|
||||
public static bool PaintRowGroupss(DataGridView table, int startingIndex, bool fullScan = false)
|
||||
{
|
||||
var parser = new RowParser();
|
||||
var isHeaderColumn = (int) SalesTableColumns.IsHeaderRow;
|
||||
var isMemberColumn = (int) SalesTableColumns.IsMemberRow;
|
||||
var isHeaderColumn = 1;//(int) SalesTableColumns.IsHeaderRow;
|
||||
var isMemberColumn = 2;//(int) SalesTableColumns.IsMemberRow;
|
||||
var isDirtyColumn = (int) SalesTableColumns.IsDirty;
|
||||
var updatesOccured = false;
|
||||
if (table.ColumnCount < Enum.GetNames(typeof(SalesTableColumns)).Length)
|
||||
{
|
||||
isHeaderColumn = (int) InventoryTableColumns.IsHeaderRow;
|
||||
isMemberColumn = (int) InventoryTableColumns.IsMemberRow;
|
||||
isHeaderColumn = 2;//(int) InventoryTableColumns.IsHeaderRow;
|
||||
isMemberColumn = 5;//(int) InventoryTableColumns.IsMemberRow;
|
||||
isDirtyColumn = (int) InventoryTableColumns.IsDirty;
|
||||
}
|
||||
//Spin through the dataGridView rows starting at the row that fired the event.
|
||||
@@ -233,13 +233,13 @@ namespace DataTableParsingEngine
|
||||
return updatesOccured;
|
||||
}
|
||||
|
||||
public static bool PaintIneventory(DataGridView inventoryDataGridView, DataGridView masterGridView,
|
||||
public static bool PaintIneventorys(DataGridView inventoryDataGridView, DataGridView masterGridView,
|
||||
int startingIndex, bool fullScan = false)
|
||||
{
|
||||
var parser = new RowParser();
|
||||
var updatesOccured = false;
|
||||
const int isHeaderColumn = (int)InventoryTableColumns.IsHeaderRow;
|
||||
const int isMemberColumn = (int)InventoryTableColumns.IsMemberRow;
|
||||
const int isHeaderColumn = 2;
|
||||
const int isMemberColumn = 1;
|
||||
const int isDirtyColumn = (int)InventoryTableColumns.IsDirty;
|
||||
//Spin through the dataGridView rows starting at the row that fired the event.
|
||||
for (var i = startingIndex; i < (inventoryDataGridView.RowCount - 1); i++)
|
||||
@@ -453,9 +453,7 @@ namespace DataTableParsingEngine
|
||||
Cost = 5,
|
||||
ProfitReturn = 6,
|
||||
TotalProfitReturn = 7,
|
||||
IsHeaderRow = 8,
|
||||
IsMemberRow = 9,
|
||||
IsDirty = 10
|
||||
IsDirty = 8
|
||||
}
|
||||
|
||||
public enum InventoryTableColumns
|
||||
@@ -466,9 +464,7 @@ namespace DataTableParsingEngine
|
||||
Recieved = 3,
|
||||
Total = 4,
|
||||
EndingInventory = 5,
|
||||
IsHeaderRow = 6,
|
||||
IsMemberRow = 7,
|
||||
IsDirty = 8
|
||||
IsDirty = 6
|
||||
}
|
||||
|
||||
public enum InvoiceTableColumns
|
||||
|
||||
Reference in New Issue
Block a user