private DataTable obtenerTickets() { Ticket objTkt = null; DateTime dtFecIni; DateTime dtFecFin; List<String> lsTipos = 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); lsTipos = new List<string>(); lsTipos.Add("I"); lsTipos.Add("R"); try { dtDatos = objTkt.Listar_TicketsCreadosoCanceladosPorDuplicidad(dtFecIni, dtFecFin, lsTipos); } catch (SqlException ex) { throw new Exception("Ocurrió un error con la Base de datos cuando se intentaba obtener el listado de tickets creados o cancelados x duplicidad.", ex); } catch (Exception ex) { throw new Exception("Ocurrió un error no controlado cuando se intentaba obtener el listado de tickets creados o cancelados x duplicidad.", ex); } return dtDatos; }