public BaseWidget(XmlNode node) { this.Col = Convert.ToInt32(ReportReader.GetValue(node, "col")); this.Row = Convert.ToInt32(ReportReader.GetValue(node, "row")); this.Height = Convert.ToInt32(ReportReader.GetValue(node, "height")); this.Casing = (CasingEnum)Enum.Parse(typeof(CasingEnum), ReportReader.GetValue(node, "conversion")); this.Justify = (JustifyEnum)Enum.Parse(typeof(JustifyEnum), ReportReader.GetValue(node, "justify")); this.IsBold = ReportReader.GetValue(node, "bold") == "True"; this.IsItalic = ReportReader.GetValue(node, "italic") == "True"; this.IsUnderline = ReportReader.GetValue(node, "underline") == "True"; }
public ValueWidget(XmlNode node) : base(node) { this.Width = Convert.ToInt32(ReportReader.GetValue(node, "width")); this.Alignment = (AlignmentEnum)Enum.Parse(typeof(AlignmentEnum), ReportReader.GetValue(node, "alignment")); this.CalcType = (CalcEnum)Enum.Parse(typeof(CalcEnum), ReportReader.GetValue(node, "calc")); this.DataFormat = ReportReader.GetValue(node, "dataformat"); this.DataType = (TypeEnum)Enum.Parse(typeof(TypeEnum), ReportReader.GetValue(node, "datatype")); this.ResetType = (ResetEnum)Enum.Parse(typeof(ResetEnum), ReportReader.GetValue(node, "reset")); this.ColumnName = ReportReader.GetValue(node, "datamember"); this.TableName = ReportReader.GetValue(node, "datasource"); string arrIndex = ReportReader.GetValue(node, "arrayindex"); if (arrIndex != "") { this.ArrayIndex = int.Parse(arrIndex); } this.NoDuplicates = bool.Parse(ReportReader.GetValue(node, "noduplicates")); m_calc = FunctionFactory.Create(m_calcType); }
public HorizontalLineWidget(XmlNode node) : base(node) { this.Char = Convert.ToChar(ReportReader.GetValue(node, "char")); this.Width = Convert.ToInt32(ReportReader.GetValue(node, "width")); }
public TextWidget(System.Xml.XmlNode node) : base(node) { this.Text = ReportReader.GetValue(node, "text"); }
public FunctionWidget(System.Xml.XmlNode node) : base(node) { this.Function = (FunctionEnum)Enum.Parse(typeof(FunctionEnum), ReportReader.GetValue(node, "function")); this.Width = Convert.ToInt32(ReportReader.GetValue(node, "width")); this.DateFormat = ReportReader.GetValue(node, "dataformat"); }