public void Remove(Section value) { if (value == null) { return; } if (value.SectionType == SectionType.Detail) { return; } if (value is GroupHeader) { int levels = GroupLevels; int level = value.Level; for (int i = level + 1; i <= levels; i++) { GroupHeader gh = this.GetGroupHeader(i); gh.Level--; gh.Name = "GroupHeader-" + gh.Level.ToString(); gh.Caption = "U8.UAP.Services.ReportElements.Sections.级分组区"; GroupSummary gs = this.GetGroupSummary(i); gs.Level--; gs.Name = "GroupSummary-" + gs.Level.ToString(); gs.Caption = "U8.UAP.Services.ReportElements.Sections.级分组汇总区"; } } List.Remove(value); }
public GroupHeader(GroupHeader groupheader) : base(groupheader) { _bshownullgroup = groupheader.bShowNullGroup; _bhiddengroup = groupheader.bHiddenGroup; _summary = groupheader.Summary; _bautosequence = groupheader.bAutoSequence; _baloneline = groupheader.bAloneLine; }
protected override Section AddALoacleSection(XmlElement xec) { Section section = null; string type = xec.GetAttribute("Type"); switch (type.ToLower()) { case "pageheader": section = new PageHeader(); AddOtherControl(xec, section); break; case "pagefooter": section = new PageFooter(); AddOtherControl(xec, section); break; case "pagetitle": section = new PageTitle(); AddCalculateControl(xec, section); break; case "printpagetitle": section = new PrintPageTitle(); AddOtherControl(xec, section); break; case "printpagesummary": section = new PrintPageSummary(); AddOtherControl(xec, section); break; case "reportheader": section = new ReportHeader(); AddHeaderControl(xec, section); break; case "reportsummary": section = new ReportSummary(); AddCalculateControl(xec, section); (section as ReportSummary).InitVisibleWidth(); break; case "groupheader": section = new GroupHeader(); AddGroupControl(xec, section); break; case "groupsummary": section = new GroupSummary(); AddGroupSummaryControl(xec, section); break; case "detail": section = new Detail(); AddNormalControl(xec, section); break; } if (section != null) { ConvertFromLocaleInfo(xec, section); //section.Name = ""; _report.Sections.Add(section); } return(section); }
public GroupSummary(GroupSummary groupsummary) : base(groupsummary) { _header = groupsummary.Header; _bautosequence = groupsummary.bAutoSequence; }