private void Actualizar()
    {
        Decimal ID_DOCUMENTO = Convert.ToDecimal(HiddenField_ID_DOCUMENTO.Value);
        String  NOMBRE       = TextBox_NombreDocumento.Text;
        Boolean ACTIVO       = false;

        if (DropDownList_EstadoDocumento.SelectedValue == "True")
        {
            ACTIVO = true;
        }

        DocumentoEntregable _documento = new DocumentoEntregable(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString());

        Boolean verificado = _documento.Actualizar(ID_DOCUMENTO, NOMBRE, ACTIVO);

        if (verificado == false)
        {
            Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, _documento.MensajeError, Proceso.Error);
        }
        else
        {
            Ocultar(Acciones.Inicio);
            Desactivar(Acciones.Inicio);
            Mostrar(Acciones.Inicio);
            Cargar(Acciones.Inicio);

            Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "La actualización se realizó correctamente.", Proceso.Correcto);
        }
    }
    private void Cargar(Decimal ID_DOCUMENTO)
    {
        HiddenField_ID_DOCUMENTO.Value = ID_DOCUMENTO.ToString();

        DocumentoEntregable _documento = new DocumentoEntregable(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString());

        DataTable tablaDoc = _documento.ObtenerPorId(ID_DOCUMENTO);

        if (tablaDoc.Rows.Count <= 0)
        {
            if (_documento.MensajeError != null)
            {
                Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, _documento.MensajeError, Proceso.Error);
            }
            else
            {
                Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "No se encontró información del documento seleccionado.", Proceso.Advertencia);
            }
        }
        else
        {
            DataRow filaDoc = tablaDoc.Rows[0];

            CargarControlRegistro(filaDoc);

            TextBox_NombreDocumento.Text = filaDoc["NOMBRE"].ToString().Trim();

            Cargar_DropDownList_EstadoDocumento(DropDownList_EstadoDocumento);
            DropDownList_EstadoDocumento.SelectedValue = filaDoc["ACTIVO"].ToString().Trim();
        }
    }
    private void Guardar()
    {
        String NOMBRE = TextBox_NombreDocumento.Text;

        DocumentoEntregable _documento = new DocumentoEntregable(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString());

        Decimal ID_DOCUMENTO = _documento.AdicionarRegistro(NOMBRE);

        if (ID_DOCUMENTO <= 0)
        {
            Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, _documento.MensajeError, Proceso.Error);
        }
        else
        {
            Ocultar(Acciones.Inicio);
            Desactivar(Acciones.Inicio);
            Mostrar(Acciones.Inicio);
            Cargar(Acciones.Inicio);

            Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "El Documento fue registrado correctamente.", Proceso.Correcto);
        }
    }
    private void cargar_GridView_RESULTADOS_BUSQUEDA()
    {
        DocumentoEntregable _documento = new DocumentoEntregable(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString());
        DataTable           tablaDoc   = _documento.ObtenerTodos();

        if (tablaDoc.Rows.Count <= 0)
        {
            if (_documento.MensajeError == null)
            {
                Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "No se encontraron registros.", Proceso.Advertencia);
            }
            else
            {
                Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, _documento.MensajeError, Proceso.Error);
            }

            Panel_RESULTADOS_GRID.Visible = false;
        }
        else
        {
            GridView_RESULTADOS_BUSQUEDA.DataSource = tablaDoc;
            GridView_RESULTADOS_BUSQUEDA.DataBind();
        }
    }