SVN-Revision: r531
This commit is contained in:
wyf
2025-04-30 09:54:35 +00:00
parent c9ed5492b4
commit ed8149baed
+6 -4
View File
@@ -959,6 +959,7 @@ namespace Lskj.PubBomImport
}
foreach (DataRow parentRow in parentTable.Rows)
{
int.TryParse(parentRow["套数"] + "", out int tamount);
string code = parentRow["图号"] + "";
if (code.StartsWith("QD") || code.StartsWith("ZZQD"))
{
@@ -1000,7 +1001,8 @@ namespace Lskj.PubBomImport
childRow["appellation"] = zzqdItem["名称"] + "";
childRow["bak"] = code;
childRow["tamount"] = parentRow["套数"] + "";
childRow["amount"] = zzqdItem["数量"] + "";
int.TryParse(zzqdItem["数量"] + "", out int amount);
childRow["amount"] = amount * tamount;
childTable.Rows.Add(childRow);
}
}
@@ -1113,9 +1115,9 @@ namespace Lskj.PubBomImport
}));
foreach (DataRow detailRow in detailTable.Rows)
{
int.TryParse(detailRow["amount"] + "", out int lastAmount);
detailRow["tamount"] = tamount;
detailRow["amount"] = lastAmount;
int.TryParse(detailRow["amount"] + "", out int amount);
detailRow["tamount"] = amount;
detailRow["amount"] = amount * tamount;
}
if (detailTable.Rows.Count == 0)
{