internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, "Field"); m_index = xDoc.getNodeProperty(nodeObj, "Index").getValueInt(eTypes.eInteger); m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText); m_fieldType = xDoc.getNodeProperty(nodeObj, "FieldType").getValueInt(eTypes.eInteger); return true; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, "Image"); byte[] vBytes = null; vBytes = xDoc.getBinaryNodeProperty(nodeObj, "Data").getBinaryValue(); // // an empty image is serialized as AA== which is vBytes == [0] ( yes the number zero ) and vBytes.Length == 1 // if (vBytes.Length > 1) { m_image = cImage.deSerialiseBitmap(vBytes); } G.redim(ref vBytes, 0); return m_aspect.load(xDoc, nodeObj); }
private bool loadConnectsAux(CSXml.cXml docXml) { XmlNode nodeObj = docXml.getRootNode(); nodeObj = docXml.getNodeFromNode(nodeObj, C_RPTCONNECTSAUX); return m_connectsAux.load(docXml, nodeObj); }
private bool loadFormulas(CSXml.cXml docXml) { XmlNode nodeObj = null; XmlNode nodeObjAux = null; XmlNode nodeObjSec = null; nodeObj = docXml.getRootNode(); nodeObj = docXml.getNodeFromNode(nodeObj, C_NODERPTFORMULAS); if (docXml.nodeHasChild(nodeObj)) { nodeObjSec = docXml.getNodeChild(nodeObj); while (nodeObjSec != null) { nodeObjAux = nodeObjSec; String name = docXml.getNodeProperty(nodeObjAux, "Name").getValueString(eTypes.eText); cReportFormula formula = m_formulas.add(name); if (!formula.load(docXml, nodeObjAux)) { return false; } nodeObjSec = docXml.getNextNode(nodeObjSec); } } return true; }
private bool loadAux(CSXml.cXml docXml, cReportSections sections, String keySection) { XmlNode nodeObj = null; XmlNode nodeObjAux = null; XmlNode nodeObjSec = null; nodeObj = docXml.getRootNode(); nodeObj = docXml.getNodeFromNode(nodeObj, keySection); if (docXml.nodeHasChild(nodeObj)) { nodeObjSec = docXml.getNodeChild(nodeObj); while (nodeObjSec != null) { nodeObjAux = nodeObjSec; String key = docXml.getNodeProperty(nodeObjAux, "Key").getValueString(eTypes.eText); cReportSection sec = sections.add(null, key); if (!sec.load(docXml, nodeObjAux)) { return false; } nodeObjSec = docXml.getNextNode(nodeObjSec); } } return true; }
private void loadPaperInfo(CSXml.cXml docXml) { XmlNode nodeObj = null; nodeObj = docXml.getRootNode(); nodeObj = docXml.getNodeFromNode(nodeObj, C_NODEPAPERINFO); if (!m_paperInfo.load(docXml, nodeObj)) { return; } }
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; }
private bool nLoadData(CSXml.cXml docXml) { XmlNode nodeObj = null; XmlNode nodeObjAux = null; XmlNode nodeObjSec = null; m_pages.clear(); nodeObj = docXml.getRootNode(); nodeObj = docXml.getNodeFromNode(nodeObj, C_NODERPTPAGES); if (docXml.nodeHasChild(nodeObj)) { nodeObjSec = docXml.getNodeChild(nodeObj); while (nodeObjSec != null) { nodeObjAux = nodeObjSec; cReportPage page = m_pages.add(null); if (!page.load(docXml, nodeObjAux)) { return false; } nodeObjSec = docXml.getNextNode(nodeObjSec); } } return true; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, m_name); if (nodeObj != null) { m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText); m_text = xDoc.getNodeProperty(nodeObj, "Text").getValueString(eTypes.eText); m_idxGroup = xDoc.getNodeProperty(nodeObj, "idxGroup").getValueInt(eTypes.eLong); m_whenEval = (csRptWhenEval)xDoc.getNodeProperty(nodeObj, "WhenEval").getValueInt(eTypes.eInteger); } return true; }
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; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, "Label"); m_text = xDoc.getNodeProperty(nodeObj, "Text").getValueString(eTypes.eText); return m_aspect.load(xDoc, nodeObj); }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { XmlNode nodeObjAux = null; XmlNode nodeObjAux2 = null; m_dataSource = xDoc.getNodeProperty(nodeObj, "DataSource").getValueString(eTypes.eText); m_dataSourceType = (csDataSourceType)xDoc.getNodeProperty(nodeObj, "DataSourceType").getValueInt(eTypes.eInteger); m_strConnect = xDoc.getNodeProperty(nodeObj, "StrConnect").getValueString(eTypes.eText); nodeObjAux2 = xDoc.getNodeFromNode(nodeObj, C_RPTCOLUMNS); if (xDoc.nodeHasChild(nodeObjAux2)) { nodeObjAux = xDoc.getNodeChild(nodeObjAux2); while (nodeObjAux != null) { String key = xDoc.getNodeProperty(nodeObjAux, "Key").getValueString(eTypes.eText); if (!m_columns.add(null, key).load(xDoc, nodeObjAux)) { return false; } nodeObjAux = xDoc.getNextNode(nodeObjAux); } } nodeObjAux2 = xDoc.getNodeFromNode(nodeObj, C_RPTPARAMETERS); if (xDoc.nodeHasChild(nodeObjAux2)) { nodeObjAux = xDoc.getNodeChild(nodeObjAux2); while (nodeObjAux != null) { String key = xDoc.getNodeProperty(nodeObjAux, "Key").getValueString(eTypes.eText); if (!m_parameters.add(null, key).load(xDoc, nodeObjAux)) { return false; } nodeObjAux = xDoc.getNextNode(nodeObjAux); } } return true; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, "Line"); return m_aspect.load(xDoc, nodeObj); }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, "Font"); m_bold = xDoc.getNodeProperty(nodeObj, "Bold").getValueBool(eTypes.eBoolean); m_foreColor = xDoc.getNodeProperty(nodeObj, "ForeColor").getValueInt(eTypes.eLong); m_italic = xDoc.getNodeProperty(nodeObj, "Italic").getValueBool(eTypes.eBoolean); m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText); m_size = xDoc.getNodeProperty(nodeObj, "Size").getValueInt(eTypes.eInteger); m_underline = xDoc.getNodeProperty(nodeObj, "UnderLine").getValueBool(eTypes.eBoolean); m_strike = xDoc.getNodeProperty(nodeObj, "Strike").getValueBool(eTypes.eBoolean); return true; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, "Chart"); if (nodeObj != null) { m_chartLineStyle = (csRptChartLineStyle)xDoc.getNodeProperty(nodeObj, "LineStyle").getValueInt(eTypes.eInteger); m_chartBarOutline = xDoc.getNodeProperty(nodeObj, "BarOutline").getValueBool(eTypes.eBoolean); m_chartShowValues = xDoc.getNodeProperty(nodeObj, "ShowValues").getValueBool(eTypes.eBoolean); m_pieThickness = (csRptChartPieThickness)xDoc.getNodeProperty(nodeObj, "PieThickness").getValueInt(eTypes.eInteger); m_pieDiameter = (csRptChartPieDiameter)xDoc.getNodeProperty(nodeObj, "PieDiameter").getValueInt(eTypes.eInteger); m_imageFormat = (csRptChartFormat)xDoc.getNodeProperty(nodeObj, "ImageFormat").getValueInt(eTypes.eInteger); m_copyright = xDoc.getNodeProperty(nodeObj, "Copyright").getValueString(eTypes.eText); m_chartTitle = xDoc.getNodeProperty(nodeObj, "ChartTitle").getValueString(eTypes.eText); m_chartType = (csRptChartType)xDoc.getNodeProperty(nodeObj, "ChartType").getValueInt(eTypes.eInteger); m_top = xDoc.getNodeProperty(nodeObj, "Top").getValueInt(eTypes.eInteger); m_groupValue = xDoc.getNodeProperty(nodeObj, "GroupValue").getValueString(eTypes.eText); m_groupFieldName = xDoc.getNodeProperty(nodeObj, "GroupFieldName").getValueString(eTypes.eText); m_groupFieldIndex = xDoc.getNodeProperty(nodeObj, "GroupFieldIndex").getValueInt(eTypes.eInteger); m_sort = xDoc.getNodeProperty(nodeObj, "Sort").getValueBool(eTypes.eBoolean); XmlNode nodeObjAux = null; XmlNode nodeObjSerie = null; int index = 0; nodeObj = xDoc.getNodeFromNode(nodeObj, "Series"); if (xDoc.nodeHasChild(nodeObj)) { nodeObjSerie = xDoc.getNodeChild(nodeObj); while (nodeObjSerie != null) { index = index + 1; nodeObjAux = nodeObjSerie; if (!getSeries().add(null, "").load(xDoc, nodeObjAux, index)) { return false; } nodeObjSerie = xDoc.getNextNode(nodeObjSerie); } } } return true; }
private bool loadGroups(CSXml.cXml docXml) { XmlNode nodeObj = null; XmlNode nodeObjAux = null; XmlNode nodeObjGroup = null; nodeObj = docXml.getRootNode(); nodeObj = docXml.getNodeFromNode(nodeObj, C_NODEGROUPS); if (docXml.nodeHasChild(nodeObj)) { nodeObjGroup = docXml.getNodeChild(nodeObj); while (nodeObjGroup != null) { nodeObjAux = nodeObjGroup; String key = docXml.getNodeProperty(nodeObjAux, "Key").getValueString(eTypes.eText); cReportGroup group = getGroups().add(null, key); if (!group.load(docXml, nodeObjAux)) { return false; } nodeObjGroup = docXml.getNextNode(nodeObjGroup); } } return true; }
private bool loadLaunchInfo(CSXml.cXml docXml) { XmlNode nodeObj = docXml.getRootNode(); nodeObj = docXml.getNodeFromNode(nodeObj, C_LAUNCHINFO); return m_launchInfo.load(docXml, nodeObj); }
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; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { nodeObj = xDoc.getNodeFromNode(nodeObj, "Aspect"); // we don't care if some property is missing try { m_align = (HorizontalAlignment)xDoc.getNodeProperty(nodeObj, "Align").getValueInt(eTypes.eInteger); } catch { } try { m_backColor = xDoc.getNodeProperty(nodeObj, "BackColor").getValueInt(eTypes.eLong); } catch { } try { m_borderColor = xDoc.getNodeProperty(nodeObj, "BorderColor").getValueInt(eTypes.eLong); } catch { } try { m_borderColor3d = xDoc.getNodeProperty(nodeObj, "BorderColor3D").getValueInt(eTypes.eLong); } catch { } try { m_borderColor3dShadow = xDoc.getNodeProperty(nodeObj, "BorderColor3DShadow").getValueInt(eTypes.eLong); } catch { } try { m_borderType = (csReportBorderType)xDoc.getNodeProperty(nodeObj, "BorderType").getValueInt(eTypes.eInteger); } catch { } try { m_borderWidth = xDoc.getNodeProperty(nodeObj, "BorderWidth").getValueInt(eTypes.eLong); } catch { } try { m_height = xDoc.getNodeProperty(nodeObj, "Height").getValueInt(eTypes.eLong); } catch { } try { m_canGrow = xDoc.getNodeProperty(nodeObj, "CanGrow").getValueBool(eTypes.eBoolean); } catch { } try { m_left = xDoc.getNodeProperty(nodeObj, "Left").getValueInt(eTypes.eLong); } catch { } try { m_nZOrder = xDoc.getNodeProperty(nodeObj, "nZOrder").getValueInt(eTypes.eInteger); } catch { } try { m_selectColor = xDoc.getNodeProperty(nodeObj, "SelectColor").getValueInt(eTypes.eLong); } catch { } try { m_top = xDoc.getNodeProperty(nodeObj, "Top").getValueInt(eTypes.eLong); } catch { } try { m_width = xDoc.getNodeProperty(nodeObj, "Width").getValueInt(eTypes.eLong); } catch { } try { m_transparent = xDoc.getNodeProperty(nodeObj, "Transparent").getValueBool(eTypes.eBoolean); } catch { } try { m_format = xDoc.getNodeProperty(nodeObj, "Format").getValueString(eTypes.eText); } catch { } try { m_symbol = xDoc.getNodeProperty(nodeObj, "Symbol").getValueString(eTypes.eText); } catch { } try { m_isAccounting = xDoc.getNodeProperty(nodeObj, "IsAccounting").getValueBool(eTypes.eBoolean); } catch { } try { m_wordWrap = xDoc.getNodeProperty(nodeObj, "WordWrap").getValueBool(eTypes.eBoolean); } catch { } try { m_borderRounded = xDoc.getNodeProperty(nodeObj, "BorderRounded").getValueBool(eTypes.eBoolean); } catch { } twipsToPixels(); return m_font.load(xDoc, nodeObj); }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { XmlNode nodeObjSecLn = null; m_pageNumber = xDoc.getNodeProperty(nodeObj, "PageNumber").getValueInt(eTypes.eInteger); m_headerBottom = xDoc.getNodeProperty(nodeObj, "HeaderBottom").getValueInt(eTypes.eLong); m_footerTop = xDoc.getNodeProperty(nodeObj, "FooterTop").getValueInt(eTypes.eLong); m_header.clear(); m_detail.clear(); m_footer.clear(); nodeObj = xDoc.getNodeFromNode(nodeObj, C_NODERPTHEADER); if (xDoc.nodeHasChild(nodeObj)) { nodeObjSecLn = xDoc.getNodeChild(nodeObj); while (nodeObjSecLn != null) { if (!m_header.add(null).load(xDoc, nodeObjSecLn)) { return false; } nodeObjSecLn = xDoc.getNextNode(nodeObjSecLn); } } nodeObj = xDoc.getNodeFromNode(nodeObj, C_NODERPTDETAIL); if (xDoc.nodeHasChild(nodeObj)) { nodeObjSecLn = xDoc.getNodeChild(nodeObj); while (nodeObjSecLn != null) { if (!m_detail.add(null).load(xDoc, nodeObjSecLn)) { return false; } nodeObjSecLn = xDoc.getNextNode(nodeObjSecLn); } } nodeObj = xDoc.getNodeFromNode(nodeObj, C_NODERPTFOOTER); if (xDoc.nodeHasChild(nodeObj)) { nodeObjSecLn = xDoc.getNodeChild(nodeObj); while (nodeObjSecLn != null) { if (!m_footer.add(null).load(xDoc, nodeObjSecLn)) { return false; } nodeObjSecLn = xDoc.getNextNode(nodeObjSecLn); } } return true; }