示例#1
0
        public ReportWizardSetting Copy()
        {
            ReportWizardSetting thiscopy = new ReportWizardSetting();

            thiscopy._TemplateType      = this._TemplateType;
            thiscopy._AddScFilters      = this._AddScFilters;
            thiscopy._AddWatermark      = this._AddWatermark;
            thiscopy._SelectedStyleName = this._SelectedStyleName;
            thiscopy._GroupTemplateType = this._GroupTemplateType;
            thiscopy._CreateByWizard    = this._CreateByWizard;
            thiscopy._HeaderStyleName   = this._HeaderStyleName;
            thiscopy._GameListStyleName = this._GameListStyleName;
            thiscopy._WizardVersion     = this._WizardVersion;
            thiscopy._BrowserVersion    = this._BrowserVersion;
            thiscopy._ProductTypes      = this._ProductTypes;
            thiscopy._CategoryDataType  = this._CategoryDataType;
            return(thiscopy);
        }
示例#2
0
        public void Apply(WebbReportTemplate template)
        {
            this._SectionFilters = template.SectionFilters.Copy();

            this._GroupByField = template.GroupByField;

            this._ReportScType = template.ReportScType;

            this._TopCount = template.TopCount;

            this._OnePageReport = template._OnePageReport;

            this._RepeatedReport = template.RepeatedReport;

            this._RepeatedWidth = template.RepeatedWidth;

            this._RepeatedHeight = template.RepeatedHeight;

            this._RepeatedCount = template._RepeatedCount;

            this._RepeatedVerticalCount = template.RepeatedVerticalCount;

            this.Filter = template.Filter.Copy();

            this._DiagramScoutType = template.DiagramScoutType;

            this.GroupByFields.Clear();
            foreach (object o in template.GroupByFields)
            {
                this.GroupByFields.Add(o);
            }

            this._GroupBySectionFilters = template.GroupBySectionFilters.Copy();

            this.RepeatFields.Clear();

            foreach (object o in template.RepeatFields)
            {
                this.RepeatFields.Add(o);
            }

            this.RepeatSectionFilters = template.RepeatSectionFilters.Copy();

            this._RepeatTopCount = template.RepeatTopCount;

            this.SectionFiltersWrapper = template.SectionFiltersWrapper;               //Modified at 2009-1-15 9:12:52@Scott

            this.GroupBySectionFiltersWrapper = template.GroupBySectionFiltersWrapper; //Modified at 2009-1-15 9:12:55@Scott

            this.RepeatSectionFiltersWrapper = template.RepeatSectionFiltersWrapper;   //Modified at 2009-1-15 9:12:58@Scott

            this.Consecutive = template.Consecutive;                                   //Modified at 2009-2-2 14:00:01@Scott

            this.AutoLayOut = template.AutoLayOut;                                     //Add at 2009-2-25 14:05:11@Simon

            this._FieldsGroupStyle = template._FieldsGroupStyle;                       //2009-3-4 14:37:40@Simon

            this._OneValueGroupInfo = template._OneValueGroupInfo;                     //2009-3-5 15:14:09@Simon

            this.LicenseLevel = template.LicenseLevel.Copy();                          //2009-6-15 10:57:48@Simon Add this Code

            if (ReportWizardSetting != null)
            {
                this._ReportWizardSetting = template.ReportWizardSetting.Copy();
            }
        }