Esempio n. 1
0
        public void VentasxProducto()
        {
            FrmLapso f = new FrmLapso();

            f.Text = "Ventas x Producto";
            f.ShowDialog();
            if (f.DialogResult != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            reportViewer1.ProcessingMode = ProcessingMode.Local;
            this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\Reportes\\VentasxPlatos.rdlc";
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Parametros", new Parametro[] { Basicas.parametros() }));
            this.reportViewer1.RefreshReport();
            this.ShowDialog();
        }
        void barButtonResumenZ_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmLapso lapso = new FrmLapso();

            lapso.ShowDialog();
            if (lapso.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                try
                {
                    Fiscal f = new Fiscal();
                    // f.ReporteMensualIVA(lapso.desde, lapso.hasta);
                }
                catch (Exception x)
                {
                    MessageBox.Show(x.Message);
                }
            }
        }
Esempio n. 3
0
        public void VentasxPorMesonero()
        {
            FrmLapso f = new FrmLapso();

            f.Detallado = false;
            f.Text      = "Ventas x Lapso";
            f.ShowDialog();
            if (f.DialogResult != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            reportViewer1.ProcessingMode = ProcessingMode.Local;
            this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\Reportes\\VentasxMesonero.rdlc";
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("VentasxDia", Basicas.VentasDiariasxLapso(f.desde, f.hasta)));
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Parametros", new Parametro[] { Basicas.parametros() }));
            this.reportViewer1.RefreshReport();
            this.ShowDialog();
        }
Esempio n. 4
0
        public void ReporteFacturasNaturalesyJuridicas()
        {
            FrmLapso f = new FrmLapso();

            f.Text = "Listado de Facturas Naturales y Juridicas";
            f.ShowDialog();
            if (f.DialogResult != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            List <Factura> Lista = FactoryFacturas.getNaturalesJuridicas(f.desde, f.hasta);

            reportViewer1.ProcessingMode = ProcessingMode.Local;
            this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\Reportes\\ListadoFacturasNaturalesJuridicas.rdlc";
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Facturas", Lista));
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Parametros", new Parametro[] { Basicas.parametros() }));
            this.reportViewer1.RefreshReport();
            this.ShowDialog();
        }
Esempio n. 5
0
        public void ConsumoxLapso()
        {
            FrmLapso f = new FrmLapso();

            f.Text = "Ventas x Lapso";
            f.ShowDialog();
            if (f.DialogResult != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            List <IngredientesConsumo> lista = Basicas.ConsumoPlatosxLapso(f.desde, f.hasta);

            reportViewer1.ProcessingMode = ProcessingMode.Local;
            this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\Reportes\\ConsumoxLapso.rdlc";
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Consumo", Basicas.ConsumoPlatosxLapso(f.desde, f.hasta)));
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Parametros", new Parametro[] { Basicas.parametros() }));
            this.reportViewer1.LocalReport.SetParameters(new ReportParameter("Lapso", string.Format("Desde:{0} Hasta:{1}", f.desde.ToShortDateString(), f.hasta.ToShortDateString())));
            this.reportViewer1.RefreshReport();
            this.ShowDialog();
        }
Esempio n. 6
0
        public void ComisionesMesonerosFecha()
        {
            FrmLapso f = new FrmLapso();

            f.Text = "Comisiones x Mesoneros";
            f.ShowDialog();
            if (f.DialogResult != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            var lista = Basicas.TotalFacturasDiariasxLapso(f.desde, f.hasta);

            reportViewer1.ProcessingMode = ProcessingMode.Local;
            this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\Reportes\\ComisionesMesoneros.rdlc";
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("TotalxDia", lista.ToList()));
            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Parametros", new Parametro[] { Basicas.parametros() }));
            this.reportViewer1.LocalReport.SetParameters(new ReportParameter("Lapso", string.Format("Desde:{0} Hasta:{1}", f.desde.ToShortDateString(), f.hasta.ToShortDateString())));
            this.reportViewer1.RefreshReport();
            this.ShowDialog();
        }