SVN r531
SVN-Revision: r531
This commit is contained in:
@@ -959,6 +959,7 @@ namespace Lskj.PubBomImport
|
|||||||
}
|
}
|
||||||
foreach (DataRow parentRow in parentTable.Rows)
|
foreach (DataRow parentRow in parentTable.Rows)
|
||||||
{
|
{
|
||||||
|
int.TryParse(parentRow["套数"] + "", out int tamount);
|
||||||
string code = parentRow["图号"] + "";
|
string code = parentRow["图号"] + "";
|
||||||
if (code.StartsWith("QD") || code.StartsWith("ZZQD"))
|
if (code.StartsWith("QD") || code.StartsWith("ZZQD"))
|
||||||
{
|
{
|
||||||
@@ -1000,7 +1001,8 @@ namespace Lskj.PubBomImport
|
|||||||
childRow["appellation"] = zzqdItem["名称"] + "";
|
childRow["appellation"] = zzqdItem["名称"] + "";
|
||||||
childRow["bak"] = code;
|
childRow["bak"] = code;
|
||||||
childRow["tamount"] = parentRow["套数"] + "";
|
childRow["tamount"] = parentRow["套数"] + "";
|
||||||
childRow["amount"] = zzqdItem["数量"] + "";
|
int.TryParse(zzqdItem["数量"] + "", out int amount);
|
||||||
|
childRow["amount"] = amount * tamount;
|
||||||
childTable.Rows.Add(childRow);
|
childTable.Rows.Add(childRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1113,9 +1115,9 @@ namespace Lskj.PubBomImport
|
|||||||
}));
|
}));
|
||||||
foreach (DataRow detailRow in detailTable.Rows)
|
foreach (DataRow detailRow in detailTable.Rows)
|
||||||
{
|
{
|
||||||
int.TryParse(detailRow["amount"] + "", out int lastAmount);
|
int.TryParse(detailRow["amount"] + "", out int amount);
|
||||||
detailRow["tamount"] = tamount;
|
detailRow["tamount"] = amount;
|
||||||
detailRow["amount"] = lastAmount;
|
detailRow["amount"] = amount * tamount;
|
||||||
}
|
}
|
||||||
if (detailTable.Rows.Count == 0)
|
if (detailTable.Rows.Count == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user