Exemplo n.º 1
0
        public void FacturaVentaVehiculo()
        {
            ReportParameter[] parametros = new ReportParameter[2];
            reportViewer1.ProcessingMode = ProcessingMode.Local;
            lc = reportViewer1.LocalReport;
            if (Program.GtipoMonedaFacturaVentaRD)
            {
                lc.ReportPath = "Reportes\\FacturaVentaRD.rdlc";
            }
            else
            {
                lc.ReportPath = "Reportes\\FacturaVentaUSD.rdlc";
            }


            CarsImportDataSet ds = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_factura_vehiculoTableAdapter rds = new CarsImportDataSetTableAdapters.reporte_factura_vehiculoTableAdapter();
            rds.Fill(ds.reporte_factura_vehiculo, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd = new ReportDataSource();

            rd.Name  = "DataSet1";
            rd.Value = ds.Tables["reporte_factura_vehiculo"];

            CarsImportDataSet ds4 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_individual_vehiculo_pagosTableAdapter rds4 = new CarsImportDataSetTableAdapters.reporte_individual_vehiculo_pagosTableAdapter();
            rds4.Fill(ds4.reporte_individual_vehiculo_pagos, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd4 = new ReportDataSource();

            rd4.Name  = "DataSet2";
            rd4.Value = ds4.Tables["reporte_individual_vehiculo_pagos"];

            CarsImportDataSet ds3 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_factura_obtener_monto_pendienteTableAdapter rds3 = new CarsImportDataSetTableAdapters.reporte_factura_obtener_monto_pendienteTableAdapter();
            rds3.Fill(ds3.reporte_factura_obtener_monto_pendiente, Program.GidVehiculoRpt, 1);  //llenar reporte, transaccion venta
            ReportDataSource rd3 = new ReportDataSource();

            rd3.Name  = "DataSet3";
            rd3.Value = ds3.Tables["reporte_factura_obtener_monto_pendiente"];



            parametros[0] = new ReportParameter("rptTitulo", Program.Gtitulo);
            parametros[1] = new ReportParameter("rptNombre", Program.Greporte);


            reportViewer1.LocalReport.DataSources.Clear();
            reportViewer1.LocalReport.SetParameters(parametros);
            lc.DataSources.Add(rd);
            lc.DataSources.Add(rd4);
            lc.DataSources.Add(rd3);
            //lc.DataSources.Add(rd2);
            //lc.DataSources.Add(rd5);
            //lc.DataSources.Add(rd6);
            //lc.DataSources.Add(rd7);
            this.reportViewer1.RefreshReport();
        }
Exemplo n.º 2
0
        public void ReporteReciboDeCobro()
        {
            ReportParameter[] parametros = new ReportParameter[2];
            reportViewer1.ProcessingMode = ProcessingMode.Local;
            lc            = reportViewer1.LocalReport;
            lc.ReportPath = "Reportes\\ReciboCobro.rdlc";

            CarsImportDataSet ds = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_factura_vehiculoTableAdapter rds = new CarsImportDataSetTableAdapters.reporte_factura_vehiculoTableAdapter();
            rds.Fill(ds.reporte_factura_vehiculo, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd = new ReportDataSource();

            rd.Name  = "DataSet1";
            rd.Value = ds.Tables["reporte_factura_vehiculo"];

            CarsImportDataSet ds2 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_individual_vehiculo_pagosTableAdapter rds2 = new CarsImportDataSetTableAdapters.reporte_individual_vehiculo_pagosTableAdapter();
            rds2.Fill(ds2.reporte_individual_vehiculo_pagos, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd2 = new ReportDataSource();

            rd2.Name  = "DataSet2";
            rd2.Value = ds2.Tables["reporte_individual_vehiculo_pagos"];

            CarsImportDataSet ds3 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_recibo_de_cobroTableAdapter rds3 = new CarsImportDataSetTableAdapters.reporte_recibo_de_cobroTableAdapter();
            rds3.Fill(ds3.reporte_recibo_de_cobro, Program.GidCCRpt, Program.GtipoRecibo, Program.GnumeroRecibo);  //llenar reporte
            ReportDataSource rd3 = new ReportDataSource();

            rd3.Name  = "DataSet3";
            rd3.Value = ds3.Tables["reporte_recibo_de_cobro"];

            CarsImportDataSet ds4 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_obtener_detalle_cobrosTableAdapter rds4 = new CarsImportDataSetTableAdapters.reporte_obtener_detalle_cobrosTableAdapter();
            rds4.Fill(ds4.reporte_obtener_detalle_cobros, Program.GidCCRpt, Program.GtipoRecibo, Program.GnumeroRecibo);  //llenar reporte
            ReportDataSource rd4 = new ReportDataSource();

            rd4.Name  = "DataSet4";
            rd4.Value = ds4.Tables["reporte_obtener_detalle_cobros"];

            parametros[0] = new ReportParameter("rptTitulo", Program.Gtitulo);
            parametros[1] = new ReportParameter("rptNombre", Program.Greporte);


            reportViewer1.LocalReport.DataSources.Clear();
            reportViewer1.LocalReport.SetParameters(parametros);
            lc.DataSources.Add(rd);
            lc.DataSources.Add(rd2);
            lc.DataSources.Add(rd4);
            lc.DataSources.Add(rd3);
            this.reportViewer1.RefreshReport();
        }
Exemplo n.º 3
0
        public void FacturaVehiculo()
        {
            ReportParameter[] parametros = new ReportParameter[2];
            reportViewer1.ProcessingMode = ProcessingMode.Local;
            lc            = reportViewer1.LocalReport;
            lc.ReportPath = "Reportes\\Factura.rdlc";

            CarsImportDataSet ds = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_factura_vehiculoTableAdapter rds = new CarsImportDataSetTableAdapters.reporte_factura_vehiculoTableAdapter();
            rds.Fill(ds.reporte_factura_vehiculo, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd = new ReportDataSource();

            rd.Name  = "DataSet1";
            rd.Value = ds.Tables["reporte_factura_vehiculo"];

            CarsImportDataSet ds4 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_individual_vehiculo_pagosTableAdapter rds4 = new CarsImportDataSetTableAdapters.reporte_individual_vehiculo_pagosTableAdapter();
            rds4.Fill(ds4.reporte_individual_vehiculo_pagos, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd4 = new ReportDataSource();

            rd4.Name  = "DataSet2";
            rd4.Value = ds4.Tables["reporte_individual_vehiculo_pagos"];

            CarsImportDataSet ds3 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_factura_obtener_monto_pendienteTableAdapter rds3 = new CarsImportDataSetTableAdapters.reporte_factura_obtener_monto_pendienteTableAdapter();
            rds3.Fill(ds3.reporte_factura_obtener_monto_pendiente, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd3 = new ReportDataSource();

            rd3.Name  = "DataSet3";
            rd3.Value = ds3.Tables["reporte_factura_obtener_monto_pendiente"];

            CarsImportDataSet ds2 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_detalle_traspaso_vehiculoTableAdapter rds2 = new CarsImportDataSetTableAdapters.reporte_detalle_traspaso_vehiculoTableAdapter();
            rds2.Fill(ds2.reporte_detalle_traspaso_vehiculo, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd2 = new ReportDataSource();

            rd2.Name  = "DataSet4";
            rd2.Value = ds2.Tables["reporte_detalle_traspaso_vehiculo"];

            CarsImportDataSet ds5 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_factura_traspaso_precioTableAdapter rds5 = new CarsImportDataSetTableAdapters.reporte_factura_traspaso_precioTableAdapter();
            rds5.Fill(ds5.reporte_factura_traspaso_precio, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd5 = new ReportDataSource();

            rd5.Name  = "DataSet5";
            rd5.Value = ds5.Tables["reporte_factura_traspaso_precio"];

            CarsImportDataSet ds6 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_factura_seguro_precioTableAdapter rds6 = new CarsImportDataSetTableAdapters.reporte_factura_seguro_precioTableAdapter();
            rds6.Fill(ds6.reporte_factura_seguro_precio, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd6 = new ReportDataSource();

            rd6.Name  = "DataSet6";
            rd6.Value = ds6.Tables["reporte_factura_seguro_precio"];


            CarsImportDataSet ds7 = new CarsImportDataSet();

            CarsImportDataSetTableAdapters.reporte_detalle_seguro_vehiculoTableAdapter rds7 = new CarsImportDataSetTableAdapters.reporte_detalle_seguro_vehiculoTableAdapter();
            rds7.Fill(ds7.reporte_detalle_seguro_vehiculo, Program.GidVehiculoRpt);  //llenar reporte
            ReportDataSource rd7 = new ReportDataSource();

            rd7.Name  = "DataSet7";
            rd7.Value = ds7.Tables["reporte_detalle_seguro_vehiculo"];

            parametros[0] = new ReportParameter("rptTitulo", Program.Gtitulo);
            parametros[1] = new ReportParameter("rptNombre", Program.Greporte);


            reportViewer1.LocalReport.DataSources.Clear();
            reportViewer1.LocalReport.SetParameters(parametros);
            lc.DataSources.Add(rd);
            lc.DataSources.Add(rd4);
            lc.DataSources.Add(rd3);
            lc.DataSources.Add(rd2);
            lc.DataSources.Add(rd5);
            lc.DataSources.Add(rd6);
            lc.DataSources.Add(rd7);
            this.reportViewer1.RefreshReport();
        }