示例#1
0
 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);
 }
示例#2
0
 public GroupHeader(GroupHeader groupheader) : base(groupheader)
 {
     _bshownullgroup = groupheader.bShowNullGroup;
     _bhiddengroup   = groupheader.bHiddenGroup;
     _summary        = groupheader.Summary;
     _bautosequence  = groupheader.bAutoSequence;
     _baloneline     = groupheader.bAloneLine;
 }
示例#3
0
 private ShowStyle  HandleNoGroupHeader(Report report, ShowStyle showstyle)
 {
     if (showstyle == ShowStyle.NoGroupHeader)
     {
         _nogroupheader = true;
         GroupSummary gs = report.Sections.GetGroupSummary(1);
         if (gs == null || gs.Cells.Count == 0)
         {
             _nogroupheader = false;
             showstyle      = ShowStyle.Normal;
         }
     }
     return(showstyle);
 }
示例#4
0
        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);
        }
示例#5
0
 public GroupSummary(GroupSummary groupsummary) : base(groupsummary)
 {
     _header        = groupsummary.Header;
     _bautosequence = groupsummary.bAutoSequence;
 }