public string Buscar(string reporte, string cliente, string horas_convertidas, string horas_convertidas2) { if (horas_convertidas.Equals("") && horas_convertidas2.Equals("")) { horas_convertidas = "1999-10-10"; horas_convertidas2 = "2040-10-10"; } if (horas_convertidas2.Equals("")) { horas_convertidas = "1999-10-10"; horas_convertidas2 = "2040-10-10"; } if (horas_convertidas.Equals("")) { horas_convertidas = "1999-10-10"; horas_convertidas2 = "2040-10-10"; } List <Reporte> list = daoreporte.listaReporte(reporte, cliente, horas_convertidas, horas_convertidas2); string sJSONResponse = JsonConvert.SerializeObject(list, Formatting.Indented); return(sJSONResponse); }
public List <Reporte> Datos_Reporte() { ReporteDAO dao = new ReporteDAO(); string val_reporte = aux.Decrypt(HttpUtility.UrlDecode(Request.QueryString["key"])); int id_reporte = int.Parse(val_reporte); list = dao.listaReporte(id_reporte); return(list); }