Added code to handle Table ROs.

Used generic (static) VlnFlexGrid.ROTableUpdate to determine if the table contents are updated.
Added Error Handling around the code that shuts down PROMs
Added function to ROFSTLookup to retrieve the Accessory Page ID.
Corrected code to handle value changes for Table ROs
Created generic (static) VlnFlexGrid.ROTableUpdate to determine if the table contents are updated.
This commit is contained in:
Rich
2014-03-19 15:30:26 +00:00
parent cf79d6a313
commit 0376212e09
9 changed files with 200 additions and 109 deletions

View File

@@ -161,6 +161,22 @@ namespace VEPROMS.CSLA.Library
if (dicRos != null)dicRos.Clear();
dicRos = null;
}
private Dictionary<string, string> _dicROAPIDLookup;
public string GetAccPageID(string roid)
{
if(_dicROAPIDLookup==null)
{
_dicROAPIDLookup = new Dictionary<string,string>();
if (_dicROAPID == null)
BuildROAPIDDictionary();
foreach (string appid in _dicROAPID.Keys)
_dicROAPIDLookup.Add(_dicROAPID[appid].roid,appid);
}
String roidkey = roid.Substring(0, 12).ToUpper();
if(_dicROAPIDLookup.ContainsKey(roidkey))
return _dicROAPIDLookup[roidkey];
return null;
}
public List<string> GetValueDifferences(ROFSTLookup origROFst, ref List<string> delList)
{
// use this list to see what differences are between it and the original