Fixe a crash bug when trying to add APC tables to the database.
This commit is contained in:
@@ -65,7 +65,7 @@ namespace AdvertsingProfitControl
|
||||
oleDbTransaction.Commit();
|
||||
foreach (DataRow row in salesTable.Rows)
|
||||
{
|
||||
var rowId = RetrieveRowId(salesTable.TableName, int.Parse(row[6].ToString()), int.Parse(row[10].ToString()), int.Parse(salesTable.Rows[8].ToString()));
|
||||
var rowId = RetrieveRowId(salesTable.TableName, int.Parse(row[6].ToString()), int.Parse(row[10].ToString()), int.Parse(row[8].ToString()));
|
||||
if (int.Parse(row[8].ToString()) != 0)
|
||||
{
|
||||
//Account for the ad special row.
|
||||
@@ -267,7 +267,7 @@ namespace AdvertsingProfitControl
|
||||
oleDbTransaction.Commit();
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
var rowId = RetrieveRowId(table.TableName, int.Parse(row[4].ToString()), int.Parse(row[8].ToString()), int.Parse(table.Rows[6].ToString()));
|
||||
var rowId = RetrieveRowId(table.TableName, int.Parse(row[4].ToString()), int.Parse(row[8].ToString()), int.Parse(row[6].ToString()));
|
||||
if (int.Parse(row[6].ToString()) != 0)
|
||||
{
|
||||
//Account for the ad special row.
|
||||
|
||||
Reference in New Issue
Block a user