Return ? when RO Value is null

This commit is contained in:
Rich 2014-02-19 03:32:38 +00:00
parent f4f896ee1d
commit 3e010e87b2
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -198,6 +198,8 @@ namespace VEPROMS.CSLA.Library
} }
} }
} }
if (_Text == string.Empty)
_Text = "?";
} }
public void LoadNonCachedGrid() public void LoadNonCachedGrid()
{ {