限制单位
This commit is contained in:
@@ -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))
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user