C2021-065 – BNPP Alarms logic to get RO info based on the OTHER (i.e. OtherName) applicability setting
This commit is contained in:
@@ -176,13 +176,23 @@ namespace VEPROMS.CSLA.Library
|
||||
private Dictionary<string, ROFSTLookup> dicLookups = new Dictionary<string, ROFSTLookup>();
|
||||
public ROFSTLookup GetROFSTLookup(DocVersionInfo dvi)
|
||||
{
|
||||
//string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave);
|
||||
string key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, dvi.DocVersionConfig.SelectedSlave);
|
||||
return GetROFSTLookup(dvi, "");
|
||||
}
|
||||
public ROFSTLookup GetROFSTLookup(DocVersionInfo dvi, string ovrrideChild)
|
||||
{
|
||||
string key = "";
|
||||
|
||||
if (ovrrideChild == "")
|
||||
key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, dvi.DocVersionConfig.SelectedSlave);
|
||||
else
|
||||
key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, ovrrideChild); // C2021-065 use OTHER child information
|
||||
if (!dicLookups.ContainsKey(key))
|
||||
{
|
||||
dicLookups.Clear(); //B2022-001 clear the dictionary each time to free up memory - out of memory fix
|
||||
dicLookups.Add(key, new ROFSTLookup(this, dvi));
|
||||
}
|
||||
if (ovrrideChild != "")
|
||||
dicLookups[key].OtherChild = ovrrideChild; // C2021-065 use the OTHER applicabiltiy info to get RO Values
|
||||
return dicLookups[key];
|
||||
}
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user