Merge pull request 'B2025-042 RO Editor FST Export ParentChild whitespace' (#598) from B2025-042 into Development

good for testing phase
This commit is contained in:
2025-08-14 11:12:32 -04:00

View File

@@ -735,23 +735,27 @@ namespace RODBInterface
else else
parentValue = nd.InnerText; parentValue = nd.InnerText;
//applicValues = ""; if (parentName != "#whitespace")
applicValues = string.Format("<APL DefaultVal={0}", parentValue);
int pcChildIdx = 0;
//C2022-001 only save the child ro value in the RO.FST if it is different than the parent (default) value
foreach (string c in pcChildern)
{ {
//string csufx = CvtUserFldToFld(c); //applicValues = "";
pcChildIdx++; applicValues = string.Format("<APL DefaultVal={0}", parentValue);
string csufx = string.Format("_PCCHILD{0}", pcChildIdx); int pcChildIdx = 0;
//applicValues += ","; //C2022-001 only save the child ro value in the RO.FST if it is different than the parent (default) value
XmlNode cn = elmnode.SelectSingleNode(parentName + csufx);
if (cn == null || cn.InnerText.Length == 0) // B2024-004 use Parent value if Child text length is zero foreach (string c in pcChildern)
applicValues += string.Format(",UnitIdx={0} Value={1}", pcChildIdx, parentValue); // use parent value as default
else
{ {
if (parentValue != cn.InnerText) //string csufx = CvtUserFldToFld(c);
applicValues += string.Format(",UnitIdx={0} Value={1}", pcChildIdx, cn.InnerText); pcChildIdx++;
string csufx = string.Format("_PCCHILD{0}", pcChildIdx);
//applicValues += ",";
XmlNode cn = elmnode.SelectSingleNode(parentName + csufx);
if (cn == null || cn.InnerText.Length == 0) // B2024-004 use Parent value if Child text length is zero
applicValues += string.Format(",UnitIdx={0} Value={1}", pcChildIdx, parentValue); // use parent value as default
else
{
if (parentValue != cn.InnerText)
applicValues += string.Format(",UnitIdx={0} Value={1}", pcChildIdx, cn.InnerText);
}
} }
} }
applicValues += " /APL>"; applicValues += " /APL>";