internal bool save(CSXml.cXml xDoc, XmlNode nodeFather) { CSXml.cXmlProperty xProperty = null; XmlNode nodeObj = null; object nodImage = null; xProperty = new CSXml.cXmlProperty(); xProperty.setName("Image"); nodeObj = xDoc.addNodeToNode(nodeFather, xProperty); byte[] vBytes = null; if (getImage() != null) { cImage.serialiseBitmap(getImage(), vBytes); } else { G.redim(ref vBytes, 0); } xProperty.setName("Data"); xProperty.setBinaryValue(vBytes); xDoc.addBinaryPropertyToNode(nodeObj, xProperty); G.redim(ref vBytes, 0); return(m_aspect.save(xDoc, nodeObj)); }
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("Line"); nodeObj = xDoc.addNodeToNode(nodeFather, xProperty); return(m_aspect.save(xDoc, nodeObj)); }
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("PageInfo"); nodeObj = xDoc.addNodeToNode(nodeFather, xProperty); xProperty.setName("Name"); xProperty.setValue(eTypes.eText, m_name); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("FieldType"); xProperty.setValue(eTypes.eInteger, m_fieldType); xDoc.addPropertyToNode(nodeObj, xProperty); return(m_aspect.save(xDoc, nodeObj)); }
internal bool save(CSXml.cXml xDoc, XmlNode nodeFather) { CSXml.cXmlProperty xProperty = null; XmlNode nodeObj = null; xProperty = new CSXml.cXmlProperty(); xProperty.setName("Label"); nodeObj = xDoc.addNodeToNode(nodeFather, xProperty); xProperty.setName("Text"); xProperty.setValue(eTypes.eText, m_text); xDoc.addPropertyToNode(nodeObj, xProperty); xProperty.setName("CanGrow"); xProperty.setValue(eTypes.eBoolean, m_canGrow); xDoc.addPropertyToNode(nodeObj, xProperty); return(m_aspect.save(xDoc, nodeObj)); }