SVN-Revision: r550
This commit is contained in:
wyf
2025-05-08 01:35:00 +00:00
parent 2962a602be
commit 674f73be11
+1 -20
View File
@@ -799,25 +799,6 @@ namespace Lskj.PubBomImport
SetProcessMsg($"正在导入:{Path.GetFileName(parentInfo.FullName)}"); SetProcessMsg($"正在导入:{Path.GetFileName(parentInfo.FullName)}");
DataTable childTable = frmBillInfo.GcMainView.GridControl.DataSourceTable().Clone(); DataTable childTable = frmBillInfo.GcMainView.GridControl.DataSourceTable().Clone();
foreach (DataRow parentRow in parentTable.Rows) foreach (DataRow parentRow in parentTable.Rows)
{
string childCode = parentRow["图号"] + "";
if (childCode.StartsWith("QD") || childCode.StartsWith("ZZQD"))
{
string tempFileName = childFileDic[childCode];
FileInfo childInfo = new FileInfo(tempFileName);
if (childInfo != null)
{
DataRow childRow = childTable.NewRow();
childRow["ProductId"] = parentRow["图号"] + "";
childRow["appellation"] = parentRow["名称"] + "";
childRow["bak"] = parentRow["备注"] + "";
childRow["tamount"] = parentRow["套数"] + "";
childRow["amount"] = parentRow["套数"] + "";
childTable.Rows.Add(childRow);
}
}
}
foreach (DataRow parentRow in parentTable.Rows)
{ {
int.TryParse(parentRow["套数"] + "", out int tamount); int.TryParse(parentRow["套数"] + "", out int tamount);
string childCode = parentRow["图号"] + ""; string childCode = parentRow["图号"] + "";
@@ -862,7 +843,7 @@ namespace Lskj.PubBomImport
childTable.Rows.Add(childRow); childTable.Rows.Add(childRow);
} }
} }
else else if (childCode.StartsWith("QD"))
{ {
DataRow childRow = childTable.NewRow(); DataRow childRow = childTable.NewRow();
childRow["ProductId"] = parentRow["图号"] + ""; childRow["ProductId"] = parentRow["图号"] + "";