提交代码
This commit is contained in:
@@ -251,13 +251,27 @@ namespace FineUIPro.Web.CQMS.PersonManage
|
||||
{
|
||||
detail.CheckMan = person.PersonId;
|
||||
}
|
||||
detail.NDTResult = NDTResult == "合格" ? true : false;
|
||||
if (NDTResult == "合格")
|
||||
{
|
||||
detail.NDTResult = true;
|
||||
}
|
||||
else if (NDTResult == "不合格")
|
||||
{
|
||||
detail.NDTResult = false;
|
||||
}
|
||||
var unit = units.FirstOrDefault(x => x.UnitName == CheckUnit);
|
||||
if (unit != null)
|
||||
{
|
||||
detail.CheckUnit = unit.UnitId;
|
||||
}
|
||||
detail.State = State == "合格" ? true : false;
|
||||
if (State == "合格")
|
||||
{
|
||||
detail.State = true;
|
||||
}
|
||||
else if (State == "不合格")
|
||||
{
|
||||
detail.State = false;
|
||||
}
|
||||
details.Add(detail);
|
||||
}
|
||||
return details;
|
||||
|
||||
Reference in New Issue
Block a user