private load ( CSXml xDoc, |
||
xDoc | CSXml | |
nodeObj | ||
리턴 | bool |
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { 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); m_comparisonType = (csRptGrpComparisonType)xDoc.getNodeProperty(nodeObj, "ComparisonType").getValueInt(eTypes.eInteger); m_fieldName = xDoc.getNodeProperty(nodeObj, "FieldName").getValueString(eTypes.eText); m_oderType = (csRptGrpOrderType)xDoc.getNodeProperty(nodeObj, "OderType").getValueInt(eTypes.eInteger); m_printInNewPage = xDoc.getNodeProperty(nodeObj, "PrintInNewPage").getValueBool(eTypes.eBoolean); m_rePrintInNewPage = xDoc.getNodeProperty(nodeObj, "RePrintInNewPage").getValueBool(eTypes.eBoolean); m_grandTotalGroup = xDoc.getNodeProperty(nodeObj, "GrandTotalGroup").getValueBool(eTypes.eBoolean); fixName(); XmlNode nodeObjAux = null; nodeObjAux = nodeObj; nodeObjAux = xDoc.getNodeFromNode(nodeObj, C_HEADER); nodeObjAux = xDoc.getNodeChild(nodeObjAux); if (!m_header.load(xDoc, nodeObjAux)) { return(false); } m_header.setName(m_name); nodeObjAux = nodeObj; nodeObjAux = xDoc.getNodeFromNode(nodeObj, C_FOOTER); nodeObjAux = xDoc.getNodeChild(nodeObjAux); if (!m_footer.load(xDoc, nodeObjAux)) { return(false); } m_footer.setName(m_name); return(true); }