コード例 #1
0
        protected override Section AddALoacleSection(XmlElement xec)
        {
            Section section = null;
            string  type    = xec.GetAttribute("Type");

            switch (type.ToLower())
            {
            case "printpagetitle":
                section = new PrintPageTitle();
                AddOtherControl(xec, section);
                break;

            case "printpagesummary":
                section = new PrintPageSummary();
                AddOtherControl(xec, section);
                break;

            case "pageheader":
                section = new PageHeader();
                AddOtherControl(xec, section);
                break;

            case "pagefooter":
                section = new PageFooter();
                AddOtherControl(xec, section);
                break;

            case "reportheader":
                section = new ReportHeader();
                AddHeaderControl(xec, section);
                break;

            case "crossdetail":
                section = new CrossDetail();
                AddDetailControl(xec, section);
                break;

            case "crossrowheader":
                section = new CrossRowHeader();
                AddRowControl(xec, section);
                break;

            case "crosscolumnheader":
                section = new CrossColumnHeader();
                AddColumnControl(xec, section);
                break;
            }
            if (section != null)
            {
                ConvertFromLocaleInfo(xec, section);
                //section.Name = "";
                _report.Sections.Add(section);
            }
            return(section);
        }
コード例 #2
0
 public CrossColumnHeader(CrossColumnHeader GridDetail) : base(GridDetail)
 {
 }