Пример #1
0
 public Group(XmlNode node)
 {
     this.Id         = Convert.ToInt32(ReportReader.GetValue(node, "id"));
     this.ColumnName = ReportReader.GetValue(node, "key");
     this.ShowFooter = Convert.ToBoolean(ReportReader.GetValue(node, "showfooter"));
     this.ShowHeader = Convert.ToBoolean(ReportReader.GetValue(node, "showheader"));
     this.DataType   = (TypeEnum)Enum.Parse(typeof(TypeEnum), ReportReader.GetValue(node, "datatype"));
     InitValue();
 }
Пример #2
0
        public static BaseWidget Create(System.Xml.XmlNode node)
        {
            switch (ReportReader.GetValue(node, "_type"))
            {
            case "0":
                return(new TextWidget(node));

            case "1":
                return(new ValueWidget(node));

            case "2":
                return(new HorizontalLineWidget(node));

            case "3":
                return(new FunctionWidget(node));

            default:
                return(null);
            }
        }
Пример #3
0
 public Band(XmlNode node)
 {
     m_bandType   = (BandEnum)Enum.Parse(typeof(BandEnum), ReportReader.GetValue(node, "type"));
     this.GroupId = Convert.ToInt32(ReportReader.GetValue(node, "groupid"));
     this.Row     = Convert.ToInt32(ReportReader.GetValue(node, "row"));
 }