示例#1
0
 public void MatchingSearchVendors(DataRow row, ProductsOfInterest prod)
 {
     foreach (var vendor in Vendors)
     {
         if (vendor.Key == (string)row[0])
         {
             Vendors[vendor.Key]      += 1;
             prod.vendors[vendor.Key] += 1;
             return;
         }
     }
     LostProductsByVendor.Add(new LostProduct()
     {
         FileName    = prod.FilePath,
         SheetName   = prod.SheetName,
         ProductName = (string)row[1]
     });
 }
示例#2
0
 public void MatchingSearchAreas(DataRow row, ProductsOfInterest prod)
 {
     foreach (var area in Areas)
     {
         if (area.Key == System.Convert.ToString(row[2]))
         {
             ;
         }
         {
             Areas[area.Key]      += 1;
             prod.areas[area.Key] += 1;
             return;
         }
     }
     LostProductsByArea.Add(new LostProduct()
     {
         FileName    = prod.FilePath,
         SheetName   = prod.SheetName,
         ProductName = (string)row[1]
     });
 }