public override void boton_Click(int indice) { //frmReportes visor; Dialogos.frmSeleccionAnioMes seleccionAnioMes; switch (indice) { case 0: //ABM Anticipos frmABManticipos abmAnticipos = new frmABManticipos(); break; case 1: //Emisión de Anticipos frmAnticipo anticipo = new frmAnticipo(); anticipo.abrirParaNuevo(); break; case 2: //Reporte de Anticipos por Tipo //TODO agregar dialogo que solicita aniomes seleccionAnioMes = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (seleccionAnioMes.ShowDialog() == DialogResult.OK) { /* Reportes.CRAnticiposPorTipo crAnticiposPorTipo = new Sueldos.View.Reportes.CRAnticiposPorTipo(); * crAnticiposPorTipo.SetDataSource(Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes)); * EmpresaEntity emp = new ConsultaEmpresas().getEmpresa(1); * crAnticiposPorTipo.SetParameterValue(crAnticiposPorTipo.Parameter_empresa.ParameterFieldName, emp.RazonSocial); * crAnticiposPorTipo.SetParameterValue(crAnticiposPorTipo.Parameter_soft.ParameterFieldName, "SOffT " + Modulo.version); * visor = new frmReportes(crAnticiposPorTipo); * visor.ShowDialog();*/ EmpresaEntity emp = new ConsultaEmpresas().getById(1); DataSet ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.ReporteDeAnticiposPorTipo(ds, emp.RazonSocial, "SOffT " + Application.ProductVersion); } break; case 3: //Reporte de Anticipos Por Legajo //TODO agregar dialogo que solicita aniomes seleccionAnioMes = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (seleccionAnioMes.ShowDialog() == DialogResult.OK) { /* Reportes.CRAnticiposPorLegajo crAnticiposPorLegajo = new Sueldos.View.Reportes.CRAnticiposPorLegajo(); * crAnticiposPorLegajo.SetDataSource(Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes)); * EmpresaEntity emp = new ConsultaEmpresas().getEmpresa(1); * crAnticiposPorLegajo.SetParameterValue(crAnticiposPorLegajo.Parameter_empresa.ParameterFieldName, emp.RazonSocial); * crAnticiposPorLegajo.SetParameterValue(crAnticiposPorLegajo.Parameter_soft.ParameterFieldName, "SOffT " + Modulo.version); * visor = new frmReportes(crAnticiposPorLegajo); * visor.ShowDialog(); */ EmpresaEntity emp = new ConsultaEmpresas().getById(1); DataSet ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.ReporteDeAnticiposPorLegajo(ds, emp.RazonSocial, Application.ProductVersion); } break; case 4: //Acreditaciones frmAcreditacionesAnticipos frmacre = new frmAcreditacionesAnticipos(); break; } }
public override void boton_Click(int indice) { //frmReportes visor; Dialogos.frmSeleccionAnioMes seleccionAnioMes; switch (indice) { case 0: //ABM Anticipos frmABManticipos abmAnticipos = new frmABManticipos(); break; case 1: //Emisión de Anticipos frmAnticipo anticipo = new frmAnticipo(); anticipo.abrirParaNuevo(); break; case 2: //Reporte de Anticipos por Tipo //TODO agregar dialogo que solicita aniomes seleccionAnioMes = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (seleccionAnioMes.ShowDialog() == DialogResult.OK) { /* Reportes.CRAnticiposPorTipo crAnticiposPorTipo = new Sueldos.View.Reportes.CRAnticiposPorTipo(); crAnticiposPorTipo.SetDataSource(Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes)); EmpresaEntity emp = new ConsultaEmpresas().getEmpresa(1); crAnticiposPorTipo.SetParameterValue(crAnticiposPorTipo.Parameter_empresa.ParameterFieldName, emp.RazonSocial); crAnticiposPorTipo.SetParameterValue(crAnticiposPorTipo.Parameter_soft.ParameterFieldName, "SOffT " + Modulo.version); visor = new frmReportes(crAnticiposPorTipo); visor.ShowDialog();*/ EmpresaEntity emp = new ConsultaEmpresas().getById(1); DataSet ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.ReporteDeAnticiposPorTipo(ds, emp.RazonSocial, "SOffT " + Application.ProductVersion ); } break; case 3: //Reporte de Anticipos Por Legajo //TODO agregar dialogo que solicita aniomes seleccionAnioMes = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (seleccionAnioMes.ShowDialog() == DialogResult.OK) { /* Reportes.CRAnticiposPorLegajo crAnticiposPorLegajo = new Sueldos.View.Reportes.CRAnticiposPorLegajo(); crAnticiposPorLegajo.SetDataSource(Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes)); EmpresaEntity emp = new ConsultaEmpresas().getEmpresa(1); crAnticiposPorLegajo.SetParameterValue(crAnticiposPorLegajo.Parameter_empresa.ParameterFieldName, emp.RazonSocial); crAnticiposPorLegajo.SetParameterValue(crAnticiposPorLegajo.Parameter_soft.ParameterFieldName, "SOffT " + Modulo.version); visor = new frmReportes(crAnticiposPorLegajo); visor.ShowDialog(); */ EmpresaEntity emp = new ConsultaEmpresas().getById(1); DataSet ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAnticiposPorAnioMes", "anioMes", seleccionAnioMes.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.ReporteDeAnticiposPorLegajo(ds, emp.RazonSocial, Application.ProductVersion); } break; case 4: //Acreditaciones frmAcreditacionesAnticipos frmacre = new frmAcreditacionesAnticipos(); break; } }
public override void boton_Click(int indice) { //frmReportes visor; Dialogos.frmSeleccionAnioMes seleccionAnioMes; switch (indice) { case 0: //Formulas Asientos de Sueldos frmABMConceptos frmFormulasAsientos = new frmABMConceptos(); frmFormulasAsientos.abrirParaAsientosDeSueldos(); break; case 1: //Generar Asiento de Sueldos frmLiquidacionTabla frmLiqui = new frmLiquidacionTabla(); frmLiqui.abrirParaTabla(101); break; case 2: //Reporte Asiento de Sueldos seleccionAnioMes = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (seleccionAnioMes.ShowDialog() ==DialogResult.OK ) { /*Reportes.CRAsientoDeSueldo crAsientoDeSueldo = new Sueldos.View.Reportes.CRAsientoDeSueldo(); crAsientoDeSueldo.SetDataSource(Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAsientoDeSueldos", "anioMes", seleccionAnioMes.AnioMes)); EmpresaEntity emp = new ConsultaEmpresas().getEmpresa(1); crAsientoDeSueldo.SetParameterValue(crAsientoDeSueldo.Parameter_empresa.ParameterFieldName, emp.RazonSocial); crAsientoDeSueldo.SetParameterValue(crAsientoDeSueldo.Parameter_soft.ParameterFieldName, "SOffT " + Modulo.version); visor = new frmReportes(crAsientoDeSueldo); visor.ShowDialog();*/ EmpresaEntity emp = new ConsultaEmpresas().getById(1); DataSet ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAsientoDeSueldos", "anioMes", seleccionAnioMes.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.ReporteAsientoDeSueldos(ds, emp.RazonSocial, Application.ProductVersion, seleccionAnioMes.AnioMesDescripcion); } break; case 3: //Reporte por Centro de Costo seleccionAnioMes = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (seleccionAnioMes.ShowDialog() == DialogResult.OK) { /* Reportes.CRAsientoDeSueldoPorCentroCosto crAsientoDeSueldoPorCentroCosto = new Sueldos.View.Reportes.CRAsientoDeSueldoPorCentroCosto(); crAsientoDeSueldoPorCentroCosto.SetDataSource(Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAsientoDeSueldosPorCentroCosto", "anioMes", seleccionAnioMes.AnioMes)); EmpresaEntity emp = new ConsultaEmpresas().getEmpresa(1); crAsientoDeSueldoPorCentroCosto.SetParameterValue(crAsientoDeSueldoPorCentroCosto.Parameter_empresa.ParameterFieldName, emp.RazonSocial); crAsientoDeSueldoPorCentroCosto.SetParameterValue(crAsientoDeSueldoPorCentroCosto.Parameter_soft.ParameterFieldName, "SOffT " + Modulo.version); visor = new frmReportes(crAsientoDeSueldoPorCentroCosto); visor.ShowDialog(); */ EmpresaEntity emp = new ConsultaEmpresas().getById(1); DataSet ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteAsientoDeSueldosPorCentroCosto", "anioMes", seleccionAnioMes.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.ReportePorCentroDeCosto(ds, emp.RazonSocial, Application.ProductVersion, seleccionAnioMes.AnioMesDescripcion); } break; case 4: break; case 5: break; } }
public override void boton_Click(int indice) { switch (indice) { case 0: //Formulas Cargas Sociales frmABMConceptos frmFormulasCargas = new frmABMConceptos(); frmFormulasCargas.abrirParaIndice(100); break; case 1: //Liquidar Cargas Sociales frmLiquidacionTabla frmLiqui = new frmLiquidacionTabla(); frmLiqui.abrirParaCargasSociales(100); break; case 2: //Importar Datos SIJP frmImportarSIJP frmImporta = new frmImportarSIJP(); frmImporta.ShowDialog(); break; case 3: //Formulas Excel Cargas Cargas frmABMConceptos frmFormulasExcel = new frmABMConceptos(); frmFormulasExcel.abrirParaIndice(102); break; case 4: //Liquidar Excel Cargas frmLiquidacionTabla frmExcelCargas = new frmLiquidacionTabla(); frmExcelCargas.abrirParaExportarExcel(102); break; case 5: //Fondo Desempleo (txt) Dialogos.frmSeleccionAnioMes frmSeleccion = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmSeleccion.ShowDialog() == DialogResult.OK) { //*****************// this.saveFileDialogFondoDesempleo.Filter = "Texto TXT (*.txt)|*.txt"; this.saveFileDialogFondoDesempleo.FileName = "ACREFD.TXT"; if (saveFileDialogFondoDesempleo.ShowDialog() == DialogResult.OK) { FondoDesempleo.generaArchivo(frmSeleccion.AnioMes, saveFileDialogFondoDesempleo.FileName); //DataSet resultado = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteNetoPorLegajoAreaConvenioAnioMes", "anioMes", frmFecha.AnioMes); //resultado.DataSetName = "reporteNetoPorLegajoAreaConvenioAnioMes"; //Model.DataSetTo.CSV(resultado, Model.Delimitador.PuntoComa); //resultado.Dispose(); MessageBox.Show("El archivo se generó correctamente."); } } break; case 6: Dialogos.frmSeleccionAnioMes frmFecha = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmFecha.ShowDialog() == DialogResult.OK) { DataSet resultado = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "fondoDesempleoConsultar", "anioMes", frmFecha.AnioMes); resultado.DataSetName = "fondoDesempleoConsultar"; Model.DataSetTo.CSV(resultado, Model.Delimitador.PuntoComa); resultado.Dispose(); } break; case 7: //DDJJ UOCRA Dialogos.frmSeleccionAnioMes frmSeleccion1 = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmSeleccion1.ShowDialog() == DialogResult.OK) { //*****************// this.saveFileDialogFondoDesempleo.Filter = "Texto UOC (*.UOC)|*.UOC"; this.saveFileDialogFondoDesempleo.FileName = "DDJJUOCRA.UOC"; if (saveFileDialogFondoDesempleo.ShowDialog() == DialogResult.OK) { DDJJUOCRA.generaArchivo(frmSeleccion1.AnioMes, saveFileDialogFondoDesempleo.FileName); //DataSet resultado = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteNetoPorLegajoAreaConvenioAnioMes", "anioMes", frmFecha.AnioMes); //resultado.DataSetName = "reporteNetoPorLegajoAreaConvenioAnioMes"; //Model.DataSetTo.CSV(resultado, Model.Delimitador.PuntoComa); //resultado.Dispose(); MessageBox.Show("El archivo se generó correctamente."); } } break; } }
public override void boton_Click(int indice) { DataSet ds; //frmReportes visor; Dialogos.frmSeleccionAnioMes frmFecha; EmpresaEntity empresa = new ConsultaEmpresas().getById(1); switch (indice) { case 0: //Jornada Legal ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteHorarios"); Model.DB.ejecutarDataSet(ref ds, Model.TipoComando.SP, "empresaConsultar", "@idEmpresa", 1); Sueldos.Reportes.CrystalReport.ReportesCreador.JornadaLegal(ds); break; case 1: //Consulta de campos empledo //TODO Incorporar el filtro de estado de empleado Dialogos.frmSeleccionCampoEmpleado seleccionCampo = new Sueldos.View.Dialogos.frmSeleccionCampoEmpleado(); if (seleccionCampo.ShowDialog() == DialogResult.OK) { if (seleccionCampo.Filtrado) { if (seleccionCampo.Historico) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleadoValorHistorico", "indice", seleccionCampo.Indice, "contenido", seleccionCampo.Contenido, "idEstado", seleccionCampo.Estado, "idLiquidacion", seleccionCampo.LiquidacionID); } else { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleadoValor", "indice", seleccionCampo.Indice, "contenido", seleccionCampo.Contenido, "idEstado", seleccionCampo.Estado); } ds.Tables[0].TableName = "ReporteEmpleadosPorCampoEmpleado"; } else { if (seleccionCampo.Historico) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleadoHistorico", "indice", seleccionCampo.Indice, "tipo", seleccionCampo.Tipo, "idEstado", seleccionCampo.Estado, "idLiquidacion", seleccionCampo.LiquidacionID); } else { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleado", "indice", seleccionCampo.Indice, "tipo", seleccionCampo.Tipo, "idEstado", seleccionCampo.Estado); } ds.Tables[0].TableName = "ReporteEmpleadosPorCampoEmpleado"; } EmpresaEntity emp = new ConsultaEmpresas().getById(1); Sueldos.Reportes.CrystalReport.ReportesCreador.ConsultaDeCamposEmpledo( ds, seleccionCampo.ContenidoDescripcion, seleccionCampo.LiquidacionDescripcion, seleccionCampo.IndiceDescripcion, seleccionCampo.EstadoDescripcion, emp.RazonSocial, Application.ProductVersion); } break; case 2: //Acumulados por Tipo frmFecha = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmFecha.ShowDialog() == DialogResult.OK) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteAcumuladosPorTipo", "anioMes", frmFecha.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.AcumuladosPorTipo(ds); } break; case 3: //Sindicatos //TODO cpereyra MessageBox.Show("No implementado todavia"); Dialogos.frmSeleccionItem selItem = new Dialogos.frmSeleccionItem(); selItem.Nombre = "Sindicato"; selItem.Lista = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "tablasConsultarContenidoyDetalleParaCombo", "tabla", "empleadosSueldos", "indice", 14); selItem.HabilitarTodos = false; if (selItem.ShowDialog() == DialogResult.OK) { frmFecha = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmFecha.ShowDialog() == DialogResult.OK) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteSindicatos", "idSindicato", selItem.SelectedID, "anioMes", frmFecha.AnioMes); List<string> titulos = new List<string>(); System.Data.Common.DbDataReader rs = Model.DB.ejecutarDataReader(Model.TipoComando.SP, "reporteSindicatosDescripcion", "idSindicato", selItem.SelectedID); while (rs.Read()) { titulos.Add(rs["Descripcion"].ToString()); } Sueldos.Reportes.CrystalReport.ReportesCreador.Sindicatos(ds, titulos, selItem.SelectedDescripcion, frmFecha.AnioMesDescripcion); } } break; case 4: //Vacaciones Por Año frmFecha = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmFecha.ShowDialog() == DialogResult.OK) { string fecha = "31/12/" + frmFecha.Anio; DataSet resultado = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "vacacionesCalculaDiasTodos", "fechaTope", fecha); resultado.DataSetName = "vacacionesCalculaDiasTodos"; Model.DataSetTo.CSV(resultado, Model.Delimitador.PuntoComa); resultado.Dispose(); } break; case 5: //Fechas de Jubilación ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorFechaDeJubilacion"); Sueldos.Reportes.CrystalReport.ReportesCreador.FechasDeJubilacion(ds, empresa.RazonSocial, Application.ProductVersion); break; } }
public override void boton_Click(int indice) { DataSet ds; //frmReportes visor; Dialogos.frmSeleccionAnioMes frmFecha; EmpresaEntity empresa = new ConsultaEmpresas().getById(1); switch (indice) { case 0: //Jornada Legal ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteHorarios"); Model.DB.ejecutarDataSet(ref ds, Model.TipoComando.SP, "empresaConsultar", "@idEmpresa", 1); Sueldos.Reportes.CrystalReport.ReportesCreador.JornadaLegal(ds); break; case 1: //Consulta de campos empledo //TODO Incorporar el filtro de estado de empleado Dialogos.frmSeleccionCampoEmpleado seleccionCampo = new Sueldos.View.Dialogos.frmSeleccionCampoEmpleado(); if (seleccionCampo.ShowDialog() == DialogResult.OK) { if (seleccionCampo.Filtrado) { if (seleccionCampo.Historico) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleadoValorHistorico", "indice", seleccionCampo.Indice, "contenido", seleccionCampo.Contenido, "idEstado", seleccionCampo.Estado, "idLiquidacion", seleccionCampo.LiquidacionID); } else { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleadoValor", "indice", seleccionCampo.Indice, "contenido", seleccionCampo.Contenido, "idEstado", seleccionCampo.Estado); } ds.Tables[0].TableName = "ReporteEmpleadosPorCampoEmpleado"; } else { if (seleccionCampo.Historico) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleadoHistorico", "indice", seleccionCampo.Indice, "tipo", seleccionCampo.Tipo, "idEstado", seleccionCampo.Estado, "idLiquidacion", seleccionCampo.LiquidacionID); } else { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorCampoEmpleado", "indice", seleccionCampo.Indice, "tipo", seleccionCampo.Tipo, "idEstado", seleccionCampo.Estado); } ds.Tables[0].TableName = "ReporteEmpleadosPorCampoEmpleado"; } EmpresaEntity emp = new ConsultaEmpresas().getById(1); Sueldos.Reportes.CrystalReport.ReportesCreador.ConsultaDeCamposEmpledo( ds, seleccionCampo.ContenidoDescripcion, seleccionCampo.LiquidacionDescripcion, seleccionCampo.IndiceDescripcion, seleccionCampo.EstadoDescripcion, emp.RazonSocial, Application.ProductVersion); } break; case 2: //Acumulados por Tipo frmFecha = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmFecha.ShowDialog() == DialogResult.OK) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteAcumuladosPorTipo", "anioMes", frmFecha.AnioMes); Sueldos.Reportes.CrystalReport.ReportesCreador.AcumuladosPorTipo(ds); } break; case 3: //Sindicatos //TODO cpereyra MessageBox.Show("No implementado todavia"); Dialogos.frmSeleccionItem selItem = new Dialogos.frmSeleccionItem(); selItem.Nombre = "Sindicato"; selItem.Lista = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "tablasConsultarContenidoyDetalleParaCombo", "tabla", "empleadosSueldos", "indice", 14); selItem.HabilitarTodos = false; if (selItem.ShowDialog() == DialogResult.OK) { frmFecha = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmFecha.ShowDialog() == DialogResult.OK) { ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "reporteSindicatos", "idSindicato", selItem.SelectedID, "anioMes", frmFecha.AnioMes); List <string> titulos = new List <string>(); System.Data.Common.DbDataReader rs = Model.DB.ejecutarDataReader(Model.TipoComando.SP, "reporteSindicatosDescripcion", "idSindicato", selItem.SelectedID); while (rs.Read()) { titulos.Add(rs["Descripcion"].ToString()); } Sueldos.Reportes.CrystalReport.ReportesCreador.Sindicatos(ds, titulos, selItem.SelectedDescripcion, frmFecha.AnioMesDescripcion); } } break; case 4: //Vacaciones Por Año frmFecha = new Sueldos.View.Dialogos.frmSeleccionAnioMes(); if (frmFecha.ShowDialog() == DialogResult.OK) { string fecha = "31/12/" + frmFecha.Anio; DataSet resultado = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "vacacionesCalculaDiasTodos", "fechaTope", fecha); resultado.DataSetName = "vacacionesCalculaDiasTodos"; Model.DataSetTo.CSV(resultado, Model.Delimitador.PuntoComa); resultado.Dispose(); } break; case 5: //Fechas de Jubilación ds = Model.DB.ejecutarDataSet(Model.TipoComando.SP, "ReporteEmpleadosPorFechaDeJubilacion"); Sueldos.Reportes.CrystalReport.ReportesCreador.FechasDeJubilacion(ds, empresa.RazonSocial, Application.ProductVersion); break; } }