public static DataTable EmitirGastos(int cpf) { DGastos Obj = new DGastos(); Obj.Cpf = cpf; return(Obj.EmitirGastos(Obj)); }
public void CierreCaja(string fecha_desde, string fecha_hasta) { //Obitene lista de cuotas List <ECierreCaja> oCuotas = DCierreCaja.ObtenerCuotasPagadas(fecha_desde, fecha_hasta); //Obitene lista de gastos List <EGastos> oGastos = DGastos.ObtenerGastos_RangoFecha(fecha_desde, fecha_hasta); //Obitene lista de abonos List <EAbonos> oAbonos = DAbonos.ObtenerAbonos_RangoFecha(fecha_desde, fecha_hasta); //Limpia el reporte ReportesVisor.LocalReport.DataSources.Clear(); //Direccion del reporte ReportesVisor.LocalReport.ReportEmbeddedResource = "Prestamos.Vista.Reportes.ReportesCierreCaja.rdlc"; //Nombre del reporte ReportesVisor.LocalReport.DisplayName = "Cierre caja"; // Dataset del reporte y nombre establecido Microsoft.Reporting.WinForms.ReportDataSource dataset = new Microsoft.Reporting.WinForms.ReportDataSource("PCuotas", oCuotas); Microsoft.Reporting.WinForms.ReportDataSource dataset1 = new Microsoft.Reporting.WinForms.ReportDataSource("Gastos", oGastos); Microsoft.Reporting.WinForms.ReportDataSource dataset2 = new Microsoft.Reporting.WinForms.ReportDataSource("Abonos", oAbonos); // Asigna datos al reporte ReportesVisor.LocalReport.DataSources.Add(dataset); ReportesVisor.LocalReport.DataSources.Add(dataset1); ReportesVisor.LocalReport.DataSources.Add(dataset2); dataset.Value = oCuotas; dataset1.Value = oGastos; dataset2.Value = oAbonos; // Refrescar el reporte local ReportesVisor.LocalReport.Refresh(); this.ReportesVisor.RefreshReport(); }
public static DataTable BuscarGastos(string tipo_busqueda, string texto_busqueda, out string rpta) { DGastos DGastos = new DGastos(); return(DGastos.BuscarGastos(tipo_busqueda, texto_busqueda, out rpta)); }
public static string InsertarGastos(out int id_gasto, Gastos gasto) { DGastos DGastos = new DGastos(); return(DGastos.InsertarGastos(out id_gasto, gasto)); }
public static string EditarGastos(int id_gasto, Gastos gasto) { DGastos DGastos = new DGastos(); return(DGastos.EditarGastos(id_gasto, gasto)); }