From 7a753badc8903254aba97683b5f5597f0add73af Mon Sep 17 00:00:00 2001 From: John Date: Fri, 14 Jan 2022 18:56:00 +0000 Subject: [PATCH] =?UTF-8?q?C2021-065=20=E2=80=93=20BNPP=20Alarms=20logic?= =?UTF-8?q?=20to=20get=20RO=20info=20based=20on=20the=20OTHER=20(i.e.=20Ot?= =?UTF-8?q?herName)=20applicability=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 16 ++++++++++++++++ PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs | 14 ++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index f3b1313a..2ae6ba5f 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -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("