This commit is contained in:
John Jenko 2010-11-12 13:56:36 +00:00
parent 171f668aaf
commit 13c2549b86

View File

@ -451,6 +451,10 @@ namespace VEPROMS.CSLA.Library
{
string val = lookup.GetROValueByAccPagID(sel.Text, spPrefix, igPrefix);
int? type = lookup.GetROTypeByAccPagID(sel.Text, spPrefix, igPrefix);
// if type is null, then set type to zero so that InsertROValue will put in "RO Not Found" for the value
if (type == null)
type = 0;
if ((int)type == 8) // Image
{
//Console.WriteLine("Image: {0} - {1}", sect.MyContent.Number, sect.MyContent.Text);
@ -523,8 +527,10 @@ namespace VEPROMS.CSLA.Library
}
else
{
if (val != null)
val = val.Replace("`", "\xB0");
//AddInfo("\tRO Found {0} = '{1}'", sel.Text, val);
// if val is null, then InsertROValue will put in "RO Not Found" for the value
InsertROValue(sel, val, sect.ActiveFormat.PlantFormat.FormatData.ROData.UpRoIfPrevUpper);
}
sel = FindRO();