public static eAjax fnListaDocumentosFirmadosReporte(string sFechaInicio, string sFechaFin) { eAjax oeAjax = new eAjax(); System.Web.HttpContext context = System.Web.HttpContext.Current; context.Response.ContentType = "application/json"; if (HttpContext.Current.Session["leSeguridad"] == null) { oeAjax.iTipoResultado = 99; oeAjax.sMensajeError = "Fin Session"; return(oeAjax); } try { List <eSeguridad> lstSeguridad = new List <eSeguridad>(); lstSeguridad = (List <eSeguridad>)HttpContext.Current.Session["leSeguridad"]; string sUsuarioAuditoria = lstSeguridad[0].strUsuario; int iIdEmpres = Convert.ToInt32(lstSeguridad[0].iIdEmpresa); DocumentosDAO dao = new DocumentosDAO(); string sresult = dao.fnListaDocumentoFirmadosReporte(iIdEmpres, sFechaInicio, sFechaFin); oeAjax.iTipoResultado = 1; oeAjax.sValor1 = sresult; } catch (Exception ex) { oeAjax.sMensajeError = ex.Message; oeAjax.iTipoResultado = -1; } return(oeAjax); }