internal bool save(CSXml.cXml xDoc, XmlNode nodeFather) { CSXml.cXmlProperty xProperty = null; XmlNode nodeObj = null; xProperty = new CSXml.cXmlProperty(); xProperty.setName(m_key); nodeObj = xDoc.addNodeToNode(nodeFather, xProperty); xProperty.setName("Name"); xProperty.setValue(eTypes.eText, m_name); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("Key"); xProperty.setValue(eTypes.eText, m_key); xDoc.addPropertyToNode(nodeObj, xProperty); // TODO: fix me - this is Spanish - English bug we should use Index // xProperty.setName("Indice"); xProperty.setValue(eTypes.eInteger, m_index); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("TypeSection"); xProperty.setValue(eTypes.eInteger, getTypeSection()); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("HasFormulaHide"); xProperty.setValue(eTypes.eBoolean, m_hasFormulaHide); xDoc.addPropertyToNode(nodeObj, xProperty); if (!m_aspect.save(xDoc, nodeObj)) { return(false); } if (!m_formulaHide.save(xDoc, nodeObj)) { return(false); } xProperty.setName(C_NODERPTSECTIONLINES); xProperty.setValue(eTypes.eText, ""); nodeObj = xDoc.addNodeToNode(nodeObj, xProperty); cReportSectionLine seccLn = null; for (int _i = 0; _i < m_sectionLines.count(); _i++) { seccLn = m_sectionLines.item(_i); seccLn.save(xDoc, nodeObj); } return(true); }
internal bool save(CSXml.cXml xDoc, XmlNode nodeFather) { CSXml.cXmlProperty xProperty = null; XmlNode nodeObj = null; xProperty = new CSXml.cXmlProperty(); xProperty.setName(m_key); nodeObj = xDoc.addNodeToNode(nodeFather, xProperty); xProperty.setName("Key"); xProperty.setValue(eTypes.eText, m_key); xDoc.addPropertyToNode(nodeObj, xProperty); // TODO: fix me - this is Spanish - English bug we should use Index // xProperty.setName("Indice"); xProperty.setValue(eTypes.eInteger, m_index); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("IdField"); xProperty.setValue(eTypes.eText, m_idField); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("HasFormulaHide"); xProperty.setValue(eTypes.eBoolean, m_hasFormulaHide); xDoc.addPropertyToNode(nodeObj, xProperty); if (!m_aspect.save(xDoc, nodeObj)) { return(false); } if (!m_formulaHide.save(xDoc, nodeObj)) { return(false); } xProperty.setName(C_NODERPTCONTROLS); nodeObj = xDoc.addNodeToNode(nodeObj, xProperty); cReportControl ctrl = null; for (int _i = 0; _i < m_controls.count(); _i++) { ctrl = m_controls.item(_i); ctrl.save(xDoc, nodeObj); } return(true); }
internal bool save(CSXml.cXml xDoc, XmlNode nodeFather) { CSXml.cXmlProperty xProperty = null; XmlNode nodeObj = null; xProperty = new CSXml.cXmlProperty(); xProperty.setName(m_key); nodeObj = xDoc.addNodeToNode(nodeFather, xProperty); xProperty.setName("Key"); xProperty.setValue(eTypes.eText, m_key); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("Name"); xProperty.setValue(eTypes.eText, m_name); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("KeyPaint"); xProperty.setValue(eTypes.eText, m_keyPaint); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("HasFormulaHide"); xProperty.setValue(eTypes.eBoolean, m_hasFormulaHide); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("HasFormulaValue"); xProperty.setValue(eTypes.eBoolean, m_hasFormulaValue); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("ControlType"); xProperty.setValue(eTypes.eInteger, m_controlType); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("Tag"); xProperty.setValue(eTypes.eText, m_tag); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("ExportColIdx"); xProperty.setValue(eTypes.eLong, m_exportColIdx); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("IsFreeCtrl"); xProperty.setValue(eTypes.eBoolean, m_isFreeCtrl); xDoc.addPropertyToNode(nodeObj, xProperty); if (!m_field.save(xDoc, nodeObj)) { return(false); } if (!m_image.save(xDoc, nodeObj)) { return(false); } if (!m_label.save(xDoc, nodeObj)) { return(false); } if (!m_line.save(xDoc, nodeObj)) { return(false); } if (!m_formulaHide.save(xDoc, nodeObj)) { return(false); } if (!m_formulaValue.save(xDoc, nodeObj)) { return(false); } if (!m_chart.save(xDoc, nodeObj)) { return(false); } return(true); }