NOT null or empty
This commit is contained in:
@@ -95,7 +95,7 @@ namespace PartSource.Automation.Jobs
|
|||||||
if (int.TryParse(columns[0], out int store)
|
if (int.TryParse(columns[0], out int store)
|
||||||
&& !string.IsNullOrEmpty(sku)
|
&& !string.IsNullOrEmpty(sku)
|
||||||
&& int.TryParse(columns[2], out int quantity)
|
&& int.TryParse(columns[2], out int quantity)
|
||||||
&& string.IsNullOrEmpty(updated))
|
&& !string.IsNullOrEmpty(updated))
|
||||||
{
|
{
|
||||||
dataTable.Rows.Add(new object[] { store, sku, quantity, updated });
|
dataTable.Rows.Add(new object[] { store, sku, quantity, updated });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace PartSource.Automation.Jobs
|
|||||||
if (int.TryParse(columns[0], out int store)
|
if (int.TryParse(columns[0], out int store)
|
||||||
&& !string.IsNullOrEmpty(sku)
|
&& !string.IsNullOrEmpty(sku)
|
||||||
&& int.TryParse(columns[2], out int quantity)
|
&& int.TryParse(columns[2], out int quantity)
|
||||||
&& string.IsNullOrEmpty(updated))
|
&& !string.IsNullOrEmpty(updated))
|
||||||
{
|
{
|
||||||
command += $"UPDATE PartAvailability SET QTY = @qty_{i}, Updated = @updated_{i} WHERE SKU = @sku_{i} AND Store = @store_{i};";
|
command += $"UPDATE PartAvailability SET QTY = @qty_{i}, Updated = @updated_{i} WHERE SKU = @sku_{i} AND Store = @store_{i};";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user