예제 #1
0
        public bool Load(string strFileName)
        {
            try
            {
                WebbReportTemplate tmpWebbReport = Webb.Utilities.Serializer.Deserialize(strFileName) as WebbReportTemplate;

                this.Apply(tmpWebbReport);
            }
            catch
            {
                return(false);
            }
            return(true);
        }
예제 #2
0
 //06-03-2008@Scott
 public void UpdateTemplate(WebbReportTemplate template)
 {
     template.Apply(this.Template);              //07-08-2008@Scott
 }
예제 #3
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();
            }
        }