Exemple #1
0
        public IBNReportTemplate(QMaker maker, SortCollection coll)
        {
            if (maker != null)
            {
                foreach (Mediachase.SQLQueryCreator.QField field in maker.Fields)
                {
                    this.Fields.Add(new FieldInfo(field.Name, field.DataType.ToString()));
                }

//				foreach(Mediachase.SQLQueryCreator.FilterCondition filter in maker.Filters)
//				{
//					FilterInfo info = new FilterInfo(filter.OwnerField.Name,filter.OwnerField.DataType.ToString());
//
//					this.Filters.Add(info);
//				}

                foreach (Mediachase.SQLQueryCreator.QField group in maker.Groups)
                {
                    this.Groups.Add(new FieldInfo(group.Name, group.DataType.ToString()));
                }
            }

            if (coll != null)
            {
                foreach (SortInfo info in coll)
                {
                    this.Sorting.Add(info);
                }
            }
        }
Exemple #2
0
 public IBNReportTemplate(QMaker maker, SortCollection coll, string Name, string ObjectName, string ViewType, string Author, DateTime Created) : this(maker, coll)
 {
     this.Name       = Name;
     this.ObjectName = ObjectName;
     this.Author     = Author;
     this.ViewType   = ViewType;
     this.Created    = Created;
 }
Exemple #3
0
 public IBNReportTemplate(QMaker	maker, SortCollection	coll, string Name, string ObjectName, string ViewType, string Author, DateTime Created)
     : this(maker,coll)
 {
     this.Name = Name;
     this.ObjectName = ObjectName;
     this.Author  = Author;
     this.ViewType = ViewType;
     this.Created = Created;
 }
Exemple #4
0
        public IBNReportTemplate(QMaker	maker, SortCollection	coll)
        {
            if(maker!=null)
            {
                foreach(Mediachase.SQLQueryCreator.QField field in maker.Fields)
                {
                    this.Fields.Add(new FieldInfo(field.Name,field.DataType.ToString()));
                }

            //				foreach(Mediachase.SQLQueryCreator.FilterCondition filter in maker.Filters)
            //				{
            //					FilterInfo info = new FilterInfo(filter.OwnerField.Name,filter.OwnerField.DataType.ToString());
            //
            //					this.Filters.Add(info);
            //				}

                foreach(Mediachase.SQLQueryCreator.QField group in maker.Groups)
                {
                    this.Groups.Add(new FieldInfo(group.Name,group.DataType.ToString()));
                }
            }

            if(coll!=null)
            {
                foreach(SortInfo info in coll)
                {
                    this.Sorting.Add(info);
                }
            }
        }