C2021-065 – BNPP Alarms logic to get RO info based on the OTHER (i.e. OtherName) applicability setting

This commit is contained in:
2022-01-14 18:56:00 +00:00
parent 89405c08a6
commit 7a753badc8
2 changed files with 28 additions and 2 deletions

View File

@@ -108,6 +108,16 @@ namespace VEPROMS.CSLA.Library
}
}
}
//C2021-065 used by Barakah Alarms so that we get ROLookUp for the Other applicability
private string _OtherChild;
public string OtherChild
{
get
{ return _OtherChild;}
set
{ _OtherChild = value;}
}
public ROFSTLookup(ROFst rofst, DocVersionInfo dvi)
{
_ROFst = rofst;
@@ -312,6 +322,12 @@ namespace VEPROMS.CSLA.Library
string childName = MyDocVersionInfo.DocVersionConfig.Unit_Name;
string aplString = roval;
string ChldValue = "";
// C2021-065 see if we need to get the RO information for the "Other" Child applicability value
if (OtherChild != null && OtherChild != "")
{
selChldIdx = Convert.ToInt32(OtherChild); // the OTHER unit number
childName = MyDocVersionInfo.DocVersionConfig.Other_Unit_Name;
}
// if the RO Value contains Parent/Child values, parse out default value and the child (slave or unit specific) value
while (roval != null && roval.Contains("<APL DefaultVal="))
{