private load ( CSXml xDoc, |
||
xDoc | CSXml | |
nodeObj | ||
return | bool |
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { XmlNode nodeObjCtrls = null; XmlNode nodeObjCtrl = null; XmlNode nodeObjAspect = null; cReportControl ctrl = null; // TODO: fix me - this is Spanish - English bug we should use Index // m_index = xDoc.getNodeProperty(nodeObj, "Indice").getValueInt(eTypes.eInteger); m_idField = xDoc.getNodeProperty(nodeObj, "IdField").getValueString(eTypes.eText); m_hasFormulaHide = xDoc.getNodeProperty(nodeObj, "HasFormulaHide").getValueBool(eTypes.eBoolean); nodeObjAspect = nodeObj; XmlNode nodeObjAux = nodeObj; if (!m_formulaHide.load(xDoc, nodeObjAux)) { return(false); } if (!m_aspect.load(xDoc, nodeObjAspect)) { return(false); } nodeObjCtrls = xDoc.getNodeFromNode(nodeObj, C_NODERPTCONTROLS); if (xDoc.nodeHasChild(nodeObjCtrls)) { nodeObjCtrl = xDoc.getNodeChild(nodeObjCtrls); while (nodeObjCtrl != null) { String key = xDoc.getNodeProperty(nodeObjCtrl, "Key").getValueString(eTypes.eText); ctrl = m_controls.add(null, key); if (!ctrl.load(xDoc, nodeObjCtrl)) { return(false); } nodeObjCtrl = xDoc.getNextNode(nodeObjCtrl); } } return(true); }