This commit is contained in:
高飞 2025-12-19 10:29:14 +08:00
parent 64f32709e2
commit 5295eff5c6
3 changed files with 21 additions and 2 deletions

View File

@ -605,9 +605,12 @@ namespace FineUIPro.Web.HJGL.DataIn
{
result += "第" + (i + 2).ToString() + "行," + "该焊口的焊工资质不符合" + "\n";
}
else //D类口暂时不提示
else
{
if (floorWelderQualifys.Count() == 0 && cellWelderQualifys.Count() == 0) //D类口强制提交时应至少有焊工证否则也不可强制提交
{
result += "第" + (i + 2).ToString() + "行," + "该焊口的焊工资质不符合" + "\n";
}
}
}
}

View File

@ -465,6 +465,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage
{
isAllD = false;
}
else
{
if (floorWelderQualifys.Count() == 0 && cellWelderQualifys.Count() == 0) //D类口强制提交时应至少有焊工证否则也不可强制提交
{
isAllD = false;
}
}
}
}
if (eventArg != string.Empty)

View File

@ -214,6 +214,15 @@ namespace WebAPI.Controllers
responeData.message = "该焊口的焊工资质不符合!";
return responeData;
}
else
{
if (floorWelderQualifys.Count() == 0 && cellWelderQualifys.Count() == 0) //D类口强制提交时应至少有焊工证否则也不可强制提交
{
responeData.code = 0;
responeData.message = "该焊口的焊工资质不符合!";
return responeData;
}
}
}
}
BLL.APIJointInfoService.SaveJointInfoForWeldReport(addItem);