From 01c72f6ddb87254753cc5ff9359a5fe41574e26c Mon Sep 17 00:00:00 2001 From: John Date: Wed, 9 Mar 2022 14:14:11 +0000 Subject: [PATCH] =?UTF-8?q?B2022-037=20Fix=20to=20find=20unlinked=20RO?= =?UTF-8?q?=E2=80=99s=20that=20have=20parent/child=20applicability=20value?= =?UTF-8?q?s,=20in=20the=20step=20properties=20RO=20tab=20(used=20to=20ins?= =?UTF-8?q?ert=20RO=E2=80=99s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Config/ROFSTLookup.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 78a748fd..fd0ca617 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -1206,13 +1206,24 @@ namespace VEPROMS.CSLA.Library if (child.value != null) { string value = child.value.ToUpper().Replace("\\U160?"," "); - if (_ValueLookupDictionary.ContainsKey(value)) - _ValueLookupDictionary[value].Add(new roChild(child)); + string key = null; + if (value.Trim().Length == 0) + continue; // do save anthing with a blank key + // B2022-037 if the RO value contains applicability information, then process it (this will give us the default RO value) + else if (value.Contains(" children = new List(); - children.Add(new roChild(child)); // adding entries to this dictionary for every ro!! - _ValueLookupDictionary.Add(value, children); + // adding entries to this dictionary for every ro!! + children.Add(new roChild(chldForDictionary)); // B2022-037 save the process RO information + _ValueLookupDictionary.Add(key, children); } } }