Пример #1
0
        public void CreateRepeatGroupInfo()
        {
            if (!this.RepeatedReport)
            {
                this._RepeatGroupInfo = new PageFieldInfo("");

                return;
            }
            else if (this._RepeatFields.Count > 0)
            {
                this._RepeatGroupInfo = new PageFieldInfo((string)this._RepeatFields[0]);

                PageGroupInfo group = _RepeatGroupInfo;

                for (int i = 1; i < _RepeatFields.Count; i++)
                {
                    PageGroupInfo subgroup = new PageFieldInfo((string)this._RepeatFields[i]);

                    group.SubPageGroupInfos.Clear();

                    group.SubPageGroupInfos.Add(subgroup);

                    group = subgroup;
                }
            }
            else
            {
                this._RepeatGroupInfo = new PageSectionInfo(this.RepeatSectionFiltersWrapper);
            }
        }
Пример #2
0
        override public PageGroupInfo Copy()
        {
            PageFieldInfo thiscopy = new PageFieldInfo();

            thiscopy._SortingType   = this._SortingType;
            thiscopy._SortingByType = this._SortingByType;
            thiscopy._GroupTitle    = this._GroupTitle;
            thiscopy._TopCount      = this._TopCount;
            if (_SubPageGroupInfos != null)
            {
                thiscopy._SubPageGroupInfos = this._SubPageGroupInfos.Copy();
            }
            thiscopy._ReportScType   = this._ReportScType;
            thiscopy._Filter         = this.Filter.Copy();
            thiscopy._Repeat         = this._Repeat;
            thiscopy.RepeatTitle     = this.RepeatTitle;
            thiscopy._Field          = this._Field;
            thiscopy._OtherName      = this._OtherName;
            thiscopy._TotalType      = this._TotalType;
            thiscopy._TotalOther     = this._TotalOther;
            thiscopy._TotalName      = this._TotalName;
            thiscopy._SkippedCount   = this._SkippedCount;
            thiscopy._PageValueCount = this._PageValueCount;
            return(thiscopy);
        }
Пример #3
0
        public void CreatePageGroupInfo()
        {
            if (!this.OneValuePerPage)
            {
                _OneValueGroupInfo = new PageFieldInfo("");

                return;
            }
            else if (GroupByField != null && this.GroupByField != string.Empty)
            {
                this._OneValueGroupInfo = new PageFieldInfo(this.GroupByField);
            }
            else if (this.GroupByFields.Count > 0)
            {
                this._OneValueGroupInfo = new PageFieldInfo((string)this.GroupByFields[0]);

                PageGroupInfo group = _OneValueGroupInfo;

                for (int i = 1; i < GroupByFields.Count; i++)
                {
                    PageGroupInfo subgroup = new PageFieldInfo((string)this.GroupByFields[i]);

                    group.SubPageGroupInfos.Clear();

                    group.SubPageGroupInfos.Add(subgroup);

                    group = subgroup;
                }
            }
            else
            {
                this._OneValueGroupInfo = new PageSectionInfo(this.GroupBySectionFiltersWrapper);
            }
        }