限制单位

This commit is contained in:
2023-04-06 15:58:37 +08:00
parent 04a09dbbc6
commit 787eb249be
21 changed files with 111 additions and 104 deletions
@@ -655,55 +655,40 @@ namespace FineUIPro.Web.HJGL.DataIn
errInfo += "材质1代号为必填项;";
}
if (!string.IsNullOrEmpty(tempData.Value10))
{
var rate = rates.FirstOrDefault(x => x.DetectionRateCode == tempData.Value10);
if (rate == null)
{
errInfo += "探伤比例[" + tempData.Value10 + "]不存在;";
}
else
{
jointInfo.DetectionRateId = rate.DetectionRateId;
}
}
else
{
errInfo += "探伤比例为必填项;";
}
if (!string.IsNullOrEmpty(tempData.Value41))
{
if (tempData.Value41.Trim() == "是")
{
isoInfo.Is_Standard = true;
jointInfo.Extend_Length = tempData.Value43;
if (!string.IsNullOrEmpty(tempData.Value10))
{
var rate = rates.FirstOrDefault(x => x.DetectionRateCode == tempData.Value10);
if (rate == null)
{
errInfo += "探伤比例[" + tempData.Value10 + "]不存在;";
}
else
{
jointInfo.DetectionRateId = rate.DetectionRateId;
}
}
else
{
errInfo += "探伤比例为必填项;";
}
}
else
{
isoInfo.Is_Standard = false;
if (!string.IsNullOrEmpty(tempData.Value10))
{
var rate = rates.FirstOrDefault(x => x.DetectionRateCode == tempData.Value10);
if (rate == null)
{
errInfo += "探伤比例[" + tempData.Value10 + "]不存在;";
}
else
{
isoInfo.DetectionRateId = rate.DetectionRateId;
}
}
else
{
errInfo += "探伤比例为必填项;";
}
}
}
if (!string.IsNullOrEmpty(tempData.Value41))
if (!string.IsNullOrEmpty(tempData.Value43))
{
isoInfo.ISO_Length = tempData.Value41;
isoInfo.ISO_Length = tempData.Value43;
}
//if (!string.IsNullOrEmpty(tempData.Value15))
//{