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, int index) { try { m_valueFieldName = xDoc.getNodeProperty(nodeObj, "ValueFieldName").getValueString(eTypes.eText); } catch { } try { m_labelFieldName = xDoc.getNodeProperty(nodeObj, "LabelFieldName").getValueString(eTypes.eText); } catch { } try { m_color = (csColors)xDoc.getNodeProperty(nodeObj, "Color").getValueInt(eTypes.eLong); } catch { } return true; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { m_columnType = (CSDataBase.csDataType)xDoc.getNodeProperty(nodeObj, "TypeColumn").getValueInt(eTypes.eInteger); // TODO: remove me //m_value = xDoc.getNodeProperty(nodeObj, "Value").getValueString(eTypes.eText); m_position = xDoc.getNodeProperty(nodeObj, "Position").getValueInt(eTypes.eInteger); m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText); m_key = xDoc.getNodeProperty(nodeObj, "Key").getValueString(eTypes.eText); return true; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { XmlNode nodeObjAspect = null; m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText); m_fieldType = xDoc.getNodeProperty(nodeObj, "FieldType").getValueInt(eTypes.eInteger); nodeObjAspect = nodeObj; if (!m_aspect.load(xDoc, nodeObjAspect)) { return false; } else { return true; } }
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, 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) { m_objectID = new cReportPageID(); m_info = new cReportPageInfo(); m_value = xDoc.getNodeProperty(nodeObj, "Value").getValueString(eTypes.eText); m_visible = xDoc.getNodeProperty(nodeObj, "Visible").getValueBool(eTypes.eBoolean); m_top = xDoc.getNodeProperty(nodeObj, "Top").getValueInt(eTypes.eLong); m_height = xDoc.getNodeProperty(nodeObj, "Height").getValueInt(eTypes.eLong); m_width = xDoc.getNodeProperty(nodeObj, "Width").getValueInt(eTypes.eLong); XmlNode nodeObjAux = null; nodeObjAux = nodeObj; if (!m_objectID.load(xDoc, nodeObjAux)) { return false; } nodeObjAux = nodeObj; if (!m_info.load(xDoc, nodeObjAux)) { return false; } 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); }
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; }
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) { m_strConnect = xDoc.getNodeProperty(nodeObj, "StrConnect").getValueString(eTypes.eText); m_action = (csRptLaunchAction)xDoc.getNodeProperty(nodeObj, "Action").getValueInt(eTypes.eInteger); m_copies = xDoc.getNodeProperty(nodeObj, "Copies").getValueInt(eTypes.eInteger); m_file = xDoc.getNodeProperty(nodeObj, "File").getValueString(eTypes.eText); m_fileFormat = (csRptFileFormat)xDoc.getNodeProperty(nodeObj, "FileFormat").getValueInt(eTypes.eInteger); m_internalPreview = xDoc.getNodeProperty(nodeObj, "InternalPreview").getValueBool(eTypes.eBoolean); m_showPrintersDialog = xDoc.getNodeProperty(nodeObj, "ShowPrintersDialog").getValueBool(eTypes.eBoolean); m_silent = xDoc.getNodeProperty(nodeObj, "Silent").getValueBool(eTypes.eBoolean); m_sqlstmt = xDoc.getNodeProperty(nodeObj, "Sqlstmt").getValueString(eTypes.eText); return true; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { if (nodeObj != null) { m_height = xDoc.getNodeProperty(nodeObj, "Height").getValueInt(eTypes.eLong); m_paperSize = (csReportPaperType)xDoc.getNodeProperty(nodeObj, "PaperSize").getValueInt(eTypes.eInteger); m_width = xDoc.getNodeProperty(nodeObj, "Width").getValueInt(eTypes.eLong); m_orientation = xDoc.getNodeProperty(nodeObj, "Orientation").getValueInt(eTypes.eInteger); m_customWidth = xDoc.getNodeProperty(nodeObj, "CustomWidth").getValueInt(eTypes.eLong); m_customHeight = xDoc.getNodeProperty(nodeObj, "CustomHeight").getValueInt(eTypes.eLong); } 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; }
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; }
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; }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { m_columnType = cDatabaseGlobals.getDataTypeFromAdo(xDoc.getNodeProperty(nodeObj, "TypeColumn").getValueInt(eTypes.eInteger)); m_value = xDoc.getNodeProperty(nodeObj, "Value").getValueString(eTypes.eText); m_position = xDoc.getNodeProperty(nodeObj, "Position").getValueInt(eTypes.eInteger); m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText); m_maxLength = xDoc.getNodeProperty(nodeObj, "MaxLength").getValueInt(eTypes.eInteger); m_key = xDoc.getNodeProperty(nodeObj, "Key").getValueString(eTypes.eText); m_isNullable = xDoc.getNodeProperty(nodeObj, "IsNullable").getValueBool(eTypes.eBoolean); m_hasDefault = xDoc.getNodeProperty(nodeObj, "HasDefault").getValueBool(eTypes.eBoolean); m_default = xDoc.getNodeProperty(nodeObj, "Default").getValueString(eTypes.eText); return true; }
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; }
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; }
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); }
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; }
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) { m_keyPaint = xDoc.getNodeProperty(nodeObj, "KeyPaint").getValueString(eTypes.eText); m_name = xDoc.getNodeProperty(nodeObj, "Name").getValueString(eTypes.eText); try { m_hasFormulaHide = xDoc.getNodeProperty(nodeObj, "HasFormulaHide").getValueBool(eTypes.eBoolean); } catch { } try { m_hasFormulaValue = xDoc.getNodeProperty(nodeObj, "HasFormulaValue").getValueBool(eTypes.eBoolean); } catch { } try { m_controlType = (csRptControlType)xDoc.getNodeProperty(nodeObj, "ControlType").getValueInt(eTypes.eInteger); } catch { } try { m_tag = xDoc.getNodeProperty(nodeObj, "Tag").getValueString(eTypes.eText); } catch { } try { m_exportColIdx = xDoc.getNodeProperty(nodeObj, "ExportColIdx").getValueInt(eTypes.eLong); } catch { } try { m_isFreeCtrl = xDoc.getNodeProperty(nodeObj, "IsFreeCtrl").getValueBool(eTypes.eBoolean); } catch { } try { if (!m_field.load(xDoc, nodeObj)) { return false; } if (!m_image.load(xDoc, nodeObj)) { return false; } if (!m_label.load(xDoc, nodeObj)) { return false; } if (!m_line.load(xDoc, nodeObj)) { return false; } if (!m_formulaHide.load(xDoc, nodeObj)) { return false; } if (!m_formulaValue.load(xDoc, nodeObj)) { return false; } if (!m_chart.load(xDoc, nodeObj)) { return false; } // TODO: remove me after all reports were migrated // if (m_label.getAspect().getFormat() == "" && m_field.getFieldType() == (int)CSDataBase.csAdoDataType.adDBTimeStamp) { m_label.getAspect().setFormat("dd/MM/yyyy"); } return true; } catch { return false; } }
internal bool load(CSXml.cXml xDoc, XmlNode nodeObj) { m_value = xDoc.getNodeProperty(nodeObj, "Value").getValueString(eTypes.eText); return true; }