SVN-Revision: r738
This commit is contained in:
wyf
2025-06-14 16:18:26 +00:00
parent 761bbc9e11
commit 8fa6e98db9
2 changed files with 12 additions and 2 deletions
@@ -69,10 +69,10 @@ namespace Lskj.PubBomImportNew
/// </summary>
public string stratRowHand = "";
/// <summary>
/// 终止行号
/// 终止条件
/// </summary>
public string endRowHand = "";
public DynamicBomImportNew(string[] args)
: base(args)
{
@@ -1486,6 +1486,7 @@ namespace Lskj.PubBomImportNew
}
InitializeValueGrid();
bool AutoImportCal = SystemInfo.Instance.AutoImportCal;//是否执行计算公式
bool isBreak = false;
for (int i = startRow; i <= sheet.LastRowNum; i++)
{
ToAssignment = true;
@@ -1737,6 +1738,15 @@ namespace Lskj.PubBomImportNew
throw;
}
}
if (ReplaceHelper.ReplaceRowParamCond(dataRow, Model.endRowHand.Replace(colDataRow["excelFieldName"] + "", columnName)))
{
isBreak = true;
break;
}
}
if (isBreak)
{
break;
}
table.Rows.Add(dataRow);
count += 1;