コード例 #1
0
        public void Subreport(Subreport s, Row r)
        {
            if (s.DataElementOutput != DataElementOutputEnum.Output)
            {
                return;
            }

            PushContainer(s.DataElementName);

            s.ReportDefn.Run(this);

            PopContainer(s.DataElementName);
            return;
        }
コード例 #2
0
 public void Subreport(Subreport s, Row r)
 {
 }
コード例 #3
0
        List <ReportItem> _Items;                                       // list of report items

        public ReportItems(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
        {
            ReportItem ri;

            _Items = new List <ReportItem>();

            // Loop thru all the child nodes
            foreach (XmlNode xNodeLoop in xNode.ChildNodes)
            {
                if (xNodeLoop.NodeType != XmlNodeType.Element)
                {
                    continue;
                }
                switch (xNodeLoop.Name)
                {
                case "Rectangle":
                    ri = new Rectangle(r, this, xNodeLoop);
                    break;

                case "Line":
                    ri = new Line(r, this, xNodeLoop);
                    break;

                case "Textbox":
                    ri = new Textbox(r, this, xNodeLoop);
                    break;

                case "Image":
                    ri = new Image(r, this, xNodeLoop);
                    break;

                case "Subreport":
                    ri = new Subreport(r, this, xNodeLoop);
                    break;

                // DataRegions: list, table, matrix, chart
                case "List":
                    ri = new List(r, this, xNodeLoop);
                    break;

                case "Table":
                case "Grid":
                case "fyi:Grid":
                    ri = new Table(r, this, xNodeLoop);
                    break;

                case "Matrix":
                    ri = new Matrix(r, this, xNodeLoop);
                    break;

                case "Chart":
                    ri = new Chart(r, this, xNodeLoop);
                    break;

                case "ChartExpression":                                 // For public use only
                    ri = new ChartExpression(r, this, xNodeLoop);
                    break;

                case "CustomReportItem":
                    ri = new CustomReportItem(r, this, xNodeLoop);
                    break;

                default:
                    ri = null;                                          // don't know what this is
                    // don't know this element - log it
                    OwnerReport.rl.LogError(4, "Unknown ReportItems element '" + xNodeLoop.Name + "' ignored.");
                    break;
                }
                if (ri != null)
                {
                    _Items.Add(ri);
                }
            }
            if (_Items.Count == 0)
            {
                OwnerReport.rl.LogError(8, "At least one item must be in the ReportItems.");
            }
            else
            {
                _Items.TrimExcess();
            }
        }
コード例 #4
0
		// Subreport:  
		public void Subreport(Subreport s, Row r)
		{
			string cssName = CssAdd(s.Style, s, r);	// get the style name for this item

			tw.WriteLine("<div class='{0}'>", cssName);

			s.ReportDefn.Run(this);
			
			tw.WriteLine("</div>");
		}
コード例 #5
0
 public void Subreport(Subreport s, Row r)
 {
 }
コード例 #6
0
 public SubreportDataRetrievalEventArgs(Report r, Subreport sr)
 {
     Report    = r;
     SubReport = sr;
     _DataSets = new DataSets(Report, SubReport.ReportDefn.DataSetsDefn);
 }
コード例 #7
0
 public SubreportDataRetrievalEventArgs(Report r, Subreport sr)
 {
     Report = r;
     SubReport = sr;
     _DataSets = new DataSets(Report, SubReport.ReportDefn.DataSetsDefn);
 }
コード例 #8
0
		public void Subreport(Subreport s, Row r)
		{
			if (s.DataElementOutput != DataElementOutputEnum.Output)
				return;

			PushContainer(s.DataElementName);

			s.ReportDefn.Run(this);

			PopContainer(s.DataElementName);
			return;
		}