First version of the Inventory insertion and update methods, untested.
This commit is contained in:
@@ -2143,15 +2143,13 @@ namespace AdvertsingProfitControl
|
||||
{
|
||||
//Create two DataTables one for the new items to be added to the database
|
||||
//and one for items that have to be updated.
|
||||
//New Sales Table Layout (Based on the Database's Physical Layout)
|
||||
//0:Sold 1:SalePrice 2:TotalSales 3:cost 4:ProfitReturn 5:TotalProfitReturn
|
||||
//6:FK_AdItemID 7:RowAttribute 8:FK_AdSpecialGroupName (ID) 9:RowPosition (not index based)
|
||||
//10:FK_DateID
|
||||
//New inventory Table Layout (Based on the Database's Physical Layout)
|
||||
//0:Beginning Inventory 1:Received 2:Total Inventory 3:Ending Inventory
|
||||
//4:AdItemID 5:RowAttribute 6:GroupID 7:RowPosition 8:DateID
|
||||
insertNewTable = new DataTable("Projections");
|
||||
//Update Sales Table Layout (Based on the Database's Physical Layout)
|
||||
//0:ID 1:Sold 2:SalePrice 3:TotalSales 4:cost 5:ProfitReturn 6:TotalProfitReturn
|
||||
//7:FK_AdItemID 8:RowAttribute 9:FK_AdSpecialGroupName (ID) 10:RowPosition (not index based)
|
||||
//11:FK_DateID
|
||||
//0:ID 1:BeginningInventory 2:Received 3:TotalInventory 4:EndingInventory
|
||||
//5:AdItemID 6:RowAttribute 7:GroupID 8:RowPosition 9:DateID
|
||||
updateExistingTable = new DataTable("Projections");
|
||||
//Construct a list of column names for the projections/actual sales DataGridViews and the inventory DataGirdView.
|
||||
string[] saleColumnNames =
|
||||
|
||||
Reference in New Issue
Block a user