Fixe a crash bug when trying to add APC tables to the database.
This commit is contained in:
Binary file not shown.
@@ -65,7 +65,7 @@ namespace AdvertsingProfitControl
|
|||||||
oleDbTransaction.Commit();
|
oleDbTransaction.Commit();
|
||||||
foreach (DataRow row in salesTable.Rows)
|
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)
|
if (int.Parse(row[8].ToString()) != 0)
|
||||||
{
|
{
|
||||||
//Account for the ad special row.
|
//Account for the ad special row.
|
||||||
@@ -267,7 +267,7 @@ namespace AdvertsingProfitControl
|
|||||||
oleDbTransaction.Commit();
|
oleDbTransaction.Commit();
|
||||||
foreach (DataRow row in table.Rows)
|
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)
|
if (int.Parse(row[6].ToString()) != 0)
|
||||||
{
|
{
|
||||||
//Account for the ad special row.
|
//Account for the ad special row.
|
||||||
|
|||||||
+1
-1
@@ -962,7 +962,7 @@
|
|||||||
// informationLabel
|
// informationLabel
|
||||||
//
|
//
|
||||||
this.informationLabel.AutoSize = true;
|
this.informationLabel.AutoSize = true;
|
||||||
this.informationLabel.Location = new System.Drawing.Point(3, 18);
|
this.informationLabel.Location = new System.Drawing.Point(1014, 26);
|
||||||
this.informationLabel.Name = "informationLabel";
|
this.informationLabel.Name = "informationLabel";
|
||||||
this.informationLabel.Size = new System.Drawing.Size(152, 25);
|
this.informationLabel.Size = new System.Drawing.Size(152, 25);
|
||||||
this.informationLabel.TabIndex = 27;
|
this.informationLabel.TabIndex = 27;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||||
</dsig:Transforms>
|
</dsig:Transforms>
|
||||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||||
<dsig:DigestValue>xZQf4lyG78NuQ0APSprGJE7TfHmXY3q7EniNsorWnAI=</dsig:DigestValue>
|
<dsig:DigestValue>0ciZORzVO0teig7ltOqRbCAT8SY4vWnHXeZQzuXDQso=</dsig:DigestValue>
|
||||||
</hash>
|
</hash>
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||||
</dsig:Transforms>
|
</dsig:Transforms>
|
||||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
|
||||||
<dsig:DigestValue>pwX2HuLuQjN0X0mlI91r2H59iOeuMyMgp+zObWw85r0=</dsig:DigestValue>
|
<dsig:DigestValue>J37ovQ2w2uLSWexQjta/p83ZtKKy+IC5/Dlnu814/qs=</dsig:DigestValue>
|
||||||
</hash>
|
</hash>
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
Reference in New Issue
Block a user