示例#1
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 "indicatordetail":
                section = new IndicatorDetail();
                AddControl(xec, section);
                break;

            case "reportheader":
                section = new ReportHeader();
                AddControl(xec, section);
                break;
            }
            if (section != null)
            {
                ConvertFromLocaleInfo(xec, section);
                _report.Sections.Add(section);
            }
            return(section);
        }
        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);
        }
示例#3
0
 public PageHeader(PageHeader pageheader) : base(pageheader)
 {
 }
示例#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
        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 "reportsummary":
                bool baddwhendesign = false;
                if (xec.HasAttribute("bAddWhenDesign"))
                {
                    baddwhendesign = bool.Parse(xec.GetAttribute("bAddWhenDesign"));
                }
                if (!baddwhendesign)
                {
                    section = new PageFooter();
                    AddOtherControl(xec, section);
                }
                else
                {
                    section = new ReportSummary();
                    AddOtherControl(xec, section);
                    (section as ReportSummary).InitVisibleWidth();
                }
                section.Name = "";
                break;

            case "griddetail":
                section = new GridDetail();
                AddDetailControl(xec, section);
                break;
            }
            if (section != null)
            {
                ConvertFromLocaleInfo(xec, section);
                _report.Sections.Add(section);
                //section.Name = type;
            }
            return(section);
        }