Exemplo n.º 1
0
        private void Pruebatallas_Load_1(object sender, EventArgs e)
        {
            DAO.Oden_ProduccionDAO ordendao = new GrupoSM_Recepcion.DAO.Oden_ProduccionDAO();
            ordendao.idorden = (this.idproduccion);

            DAO.ProduccionDAO produccion = new GrupoSM_Recepcion.DAO.ProduccionDAO();
            produccion.id_produccion = this.idproduccion;

            DAO.SalidasMaquilaDAO salidasdao = new GrupoSM_Recepcion.DAO.SalidasMaquilaDAO();
            salidasdao.idproduccion = this.idproduccion;

            //ReportDocument report = new ReportDocument();
            GUI.PLANTILLAS.SalidaMaquilaRPT report = new GrupoSM_Recepcion.GUI.PLANTILLAS.SalidaMaquilaRPT();

            DAO.AviosDAO aviosdao = new GrupoSM_Recepcion.DAO.AviosDAO();
            aviosdao.id_ficha_avio = this.idficha;

            report.SetDataSource(salidasdao.devuelvedetallesalidas());

            report.Subreports["NumPrendas"].SetDataSource(ordendao.numeroprendasreporte());
            report.Subreports["CrystalReport1.rpt"].SetDataSource(produccion.tallas_preliminaresproduccion());
            report.Subreports["AviosDetalleServicios"].SetDataSource(aviosdao.sacar_avios());

            crystalReportViewer1.ReportSource = report;
            crystalReportViewer1.Refresh();
        }
 private void TelasProduccionImprimir_Load(object sender, EventArgs e)
 {
     DAO.Oden_ProduccionDAO ordendao = new GrupoSM_Recepcion.DAO.Oden_ProduccionDAO();
     ordendao.idorden = (this.idproduccion);
     GUI.PLANTILLAS.Telas_RPT report = new GrupoSM_Recepcion.GUI.PLANTILLAS.Telas_RPT();
     report.SetDataSource(ordendao.datosproduccionreporteFull());
     DAO.ProduccionDAO producciondao = new GrupoSM_Recepcion.DAO.ProduccionDAO();
     producciondao.id_produccion = (this.idproduccion);
     report.Subreports["CombinacionSubRPT"].SetDataSource(producciondao.combinacionproduccion());
     report.Subreports["TelasSubRPT"].SetDataSource(producciondao.vertelasproduccionsum());
     report.Subreports["NumeroPrendasRPT"].SetDataSource(ordendao.numeroprendasreporte());
     crystalReportViewer1.ReportSource = report;
     crystalReportViewer1.Refresh();
 }
Exemplo n.º 3
0
        //    avioscapturagui.ShowDialog();

        private void AviosProduccionImprimir_Load(object sender, EventArgs e)
        {
//            report As New DynamicReport
//report.SetDataSource(ds)
//report.Subreports.Item("SubReport1").SetDataSource(ds.Tables("Customers"))
//report.Subreports.Item("SubReport2").SetDataSource(ds.Tables("Orders"))
//CrystalReportViewer1.ReportSource = report
//CrystalReportViewer1.DataBind()
            DAO.AviosDAO aviosdao = new GrupoSM_Recepcion.DAO.AviosDAO();
            //aviosdao.id_ficha_avio = (this.idficha);
            aviosdao.idproduccion = this.idproduccion;
            DAO.Oden_ProduccionDAO ordendao = new GrupoSM_Recepcion.DAO.Oden_ProduccionDAO();
            ordendao.idorden = (this.idproduccion);
            //ReportDocument report = new ReportDocument();
            GUI.PLANTILLAS.Avios_RPT report = new GrupoSM_Recepcion.GUI.PLANTILLAS.Avios_RPT();

            report.SetDataSource(ordendao.datosproduccionreporte());
            report.Subreports["NumeroprendasRPT"].SetDataSource(ordendao.numeroprendasreporte());
            //report.Subreports["AviosSubRPT"].SetDataSource(aviosdao.sacar_avios());
            report.Subreports["AviosRpt"].SetDataSource(aviosdao.aviosimpresion());
            crystalReportViewer1.ReportSource = report;
            crystalReportViewer1.Refresh();
        }