private DataTable obtenerTicketsNivel1() { Ticket objTkt = null; DateTime dtFecIni; DateTime dtFecFin; List<String> lsGrupo = null; List<String> lsEstado = null; objTkt = new Ticket(); dtFecIni = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); dtFecFin = DateTime.Now; //dtFecIni = new DateTime(2012, 7, 1); //dtFecFin = new DateTime(2012, 8, 1); lsEstado = new List<string>(); lsEstado.Add("CL"); lsEstado.Add("RE"); lsGrupo = new List<string>(); lsGrupo.Add("PRIMER NIVEL"); try { dtDatos = objTkt.Listar_Tickets(dtFecIni, dtFecFin, lsEstado, lsGrupo); //dt = objTpE.Listar_TiemposPorEstado(new DateTime(DateTime.Today.Year, 2, 1), new DateTime(DateTime.Today.Year, 2, 29, 23, 59, 59), lsEstado, lsGrupo); } catch (SqlException ex) { throw new Exception("Ocurrió un error con la Base de datos cuando se intentaba obtener el listado de tickets de nivel 1.", ex); } catch (Exception ex) { throw new Exception("Ocurrió un error no controlado cuando se intentaba obtener el listado de tickets de nivel 1.", ex); } return dtDatos; }