This commit is contained in:
李超 2026-05-10 13:52:04 +08:00
parent d6bedb9f0f
commit e212b9a790
1 changed files with 17 additions and 2 deletions

View File

@ -314,7 +314,22 @@ namespace FineUIPro.Web.HJGL.DataIn
}
break;
case "材质":
isoInfo.STE_ID = steels.Where(x => x.STE_Code == row[dataColumn.ColumnName].ToString()).Select(x => x.STE_ID).FirstOrDefault();
var steel = steels.FirstOrDefault(x => x.STE_Code == row[dataColumn.ColumnName].ToString());
if (steel != null)
{
isoInfo.STE_ID = steel.STE_ID;
if(steel.STE_SteelType == "FeⅣ")
{
isoInfo.IsHotType = "1";
}
else if (steel.STE_SteelType == "Fe" || steel.STE_SteelType == "FeⅡ" || steel.STE_SteelType == "FeⅢ" )
{
isoInfo.IsHotType = "2";
}
}
break;
case "材质标准":
isoInfo.MaterialStandardId = materialStandards.Where(x => x.MaterialStandardName == row[dataColumn.ColumnName].ToString()||x.MaterialStandardCode == row[dataColumn.ColumnName].ToString()).Select(x => x.MaterialStandardId).FirstOrDefault();