SVN-Revision: r464
This commit is contained in:
wyf
2025-04-09 09:46:13 +00:00
parent fc0781a421
commit ffa4627f8f
8 changed files with 433 additions and 415 deletions
+1 -30
View File
@@ -483,33 +483,4 @@ namespace Lskj.PubBomImport
{
string productId = sourceRow["ProductId"] + "";
DataRow newSourceRow = newSource.Rows.Cast<DataRow>().Where(n => (n["ProductId"] + "").Equals(productId)).FirstOrDefault();
if (newSourceRow != null)
{
sourceRow["tamount"] = newSourceRow["tamount"];
sourceRow["amount"] = newSourceRow["amount"];
newSource.Rows.Remove(newSourceRow);
}
else
{
deleteRows.Add(sourceRow);
}
}
foreach (DataRow deleteRow in deleteRows)
{
source.Rows.Remove(deleteRow);
}
foreach (DataRow newSourceRow in newSource.Rows)
{
DataRow newRow = source.NewRow();
newRow.ItemArray = newSourceRow.ItemArray;
source.Rows.Add(newRow);
}
}
else
{
//新增
this.gcMain.GridControl.DataSource = newSource;
}
}
}
}