private void cargar_tutelas(Decimal ID_CONTRATO) { Decimal ID_SOLICITUD = Convert.ToDecimal(Label_ID_SOLICITUD.Text); actosjuridicos _actosjuridicos = new actosjuridicos(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaTutelas = _actosjuridicos.ObtenerTutelasPorIdSolidcitudRegistroContrato(ID_SOLICITUD, ID_CONTRATO); Ocultar(Acciones.tutelas); if (tablaTutelas.Rows.Count <= 0) { if (_actosjuridicos.MensajeError == null) { Informar(Panel_MENSAJE_TUTELAS, Label_MENSAJE_TUTELAS, "No se encontraron tutelas para este contrato.", Proceso.Error); } else { Informar(Panel_MENSAJE_TUTELAS, Label_MENSAJE_TUTELAS, _actosjuridicos.MensajeError, Proceso.Error); } GridView_TUTELAS.DataSource = null; GridView_TUTELAS.DataBind(); } else { GridView_TUTELAS.DataSource = tablaTutelas; GridView_TUTELAS.DataBind(); } }
private void cargar_derechos_peticion(Decimal ID_CONTRATO) { Decimal ID_SOLICITUD = Convert.ToDecimal(Label_ID_SOLICITUD.Text); actosjuridicos _actosjuridicos = new actosjuridicos(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaDerechos = _actosjuridicos.ObtenerDerechosPorIdSolidcitudRegistroContrato(ID_SOLICITUD, ID_CONTRATO); Ocultar(Acciones.derechosPeticion); if (tablaDerechos.Rows.Count <= 0) { if (_actosjuridicos.MensajeError == null) { Informar(Panel_MENSAJE_DERECHOS_PETICION, Label_MENSAJE_DERECHOS_PETICION, "No se encontraron derechos de petición para este contrato.", Proceso.Error); } else { Informar(Panel_MENSAJE_DERECHOS_PETICION, Label_MENSAJE_DERECHOS_PETICION, _actosjuridicos.MensajeError, Proceso.Error); } GridView_DERECHOS_PETICION.DataSource = null; GridView_DERECHOS_PETICION.DataBind(); } else { GridView_DERECHOS_PETICION.DataSource = tablaDerechos; GridView_DERECHOS_PETICION.DataBind(); } }