internal bool load(CSXml.cXml xDoc, XmlNode nodeObj)
{
XmlNode nodeObjSecLn = null;
XmlNode nodeObjAspect = null;
cReportSectionLine secLn = null;
m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText);
// TODO: fix me - this is Spanish - English bug we should use Index
//
m_index = xDoc.getNodeProperty(nodeObj, "Indice").getValueInt(eTypes.eInteger);
setTypeSection((csRptSectionType)xDoc.getNodeProperty(nodeObj, "TypeSection").getValueInt(eTypes.eInteger));
m_hasFormulaHide = xDoc.getNodeProperty(nodeObj, "HasFormulaHide").getValueBool(eTypes.eBoolean);
nodeObjAspect = nodeObj;
if (!m_aspect.load(xDoc, nodeObjAspect))
{
return(false);
}
XmlNode nodeObjAux = nodeObj;
if (!m_formulaHide.load(xDoc, nodeObjAux))
{
return(false);
}
m_sectionLines.clear();
nodeObj = xDoc.getNodeFromNode(nodeObj, C_NODERPTSECTIONLINES);
if (xDoc.nodeHasChild(nodeObj))
{
nodeObjSecLn = xDoc.getNodeChild(nodeObj);
while (nodeObjSecLn != null)
{
String key = xDoc.getNodeProperty(nodeObjSecLn, "Key").getValueString(eTypes.eText);
secLn = m_sectionLines.add(null, key, -1);
if (!secLn.load(xDoc, nodeObjSecLn))
{
return(false);
}
secLn.setSectionName(m_name);
nodeObjSecLn = xDoc.getNextNode(nodeObjSecLn);
}
}
return(true);
}