private void crViewDiagramReport_Load(object sender, EventArgs e)
        {
            crAirpostDiagram Diagram = new crAirpostDiagram();

            Diagram.SetDataSource(ds);
            crViewDiagramReport.ReportSource = Diagram;
        }
Beispiel #2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crAirpostDiagram rpt = new crAirpostDiagram();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void crViewDiagramReport_Load(object sender, EventArgs e)
        {
            crAirpostDiagram Diagram = new crAirpostDiagram();

            //DataTable DPack = Atend.Base.Design.DPackage.AccessSelectByType(Convert.ToInt16(Atend.Control.Enum.ProductType.AirPost));

            //foreach (DataRow PackRow in DPack.Rows)
            //{
            //    Atend.Base.Equipment.EAirPost Apost = Atend.Base.Equipment.EAirPost.AccessSelectByCode(Convert.ToInt32(PackRow["ProductCode"].ToString()));
            //    DataRow DR = ds.AirPostDiagram.NewRow();
            //    DR["Name"] = Apost.Name;
            //    DR["Image"] = Apost.Image;
            //    DR["Capacity"] = Apost.Capacity;
            //    ds.AirPostDiagram.Rows.Add(DR);
            //}

            Diagram.SetDataSource(ds);
            crViewDiagramReport.ReportSource = Diagram;
        }