Return ? when RO Value is null
This commit is contained in:
parent
f4f896ee1d
commit
3e010e87b2
@ -285,9 +285,9 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
foreach (rochild child in rochld.children)
|
foreach (rochild child in rochld.children)
|
||||||
if (child.roid.ToUpper() == ROID16.ToUpper() || (child.roid.EndsWith("0041") && ROID16.EndsWith("0000")))
|
if (child.roid.ToUpper() == ROID16.ToUpper() || (child.roid.EndsWith("0041") && ROID16.EndsWith("0000")))
|
||||||
return FixUnitROs(child.value);
|
return FixUnitROs(child.value ?? "?");
|
||||||
// if there isn't a specific match for multi-return values, default to the first child.
|
// if there isn't a specific match for multi-return values, default to the first child.
|
||||||
return FixUnitROs(rochld.children[0].value);
|
return FixUnitROs(rochld.children[0].value ?? "?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if (ROID == "FFFF00000001") return _ROFstInfo.ROFstAssociations[0].MyDocVersion.DocVersionConfig.Unit_Number;
|
//if (ROID == "FFFF00000001") return _ROFstInfo.ROFstAssociations[0].MyDocVersion.DocVersionConfig.Unit_Number;
|
||||||
|
@ -198,6 +198,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (_Text == string.Empty)
|
||||||
|
_Text = "?";
|
||||||
}
|
}
|
||||||
public void LoadNonCachedGrid()
|
public void LoadNonCachedGrid()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user