Ejemplo n.º 1
0
        private void CargarFormularioEdicionAcreditacion(int idDocumento)
        {
            pnlPrincipal.Visible = false;
            pnlDocumentosAcreditacion.Visible    = true;
            ViewState["idDocumentoAcreditacion"] = idDocumento;

            txtNombreDocAcreditacion.Text      = "";
            txtLinkDocAcreditacion.Text        = "";
            txtObservacionDocAcreditacion.Text = "";

            GrillaDocumentos query = Negocio.PlanDeNegocioV2.Formulacion.Anexos.Anexos.getDocumentoAcreditacion(idDocumento);

            txtNombreDocAcreditacion.Text = query.NombreDocumento;
            tdSubir2.Visible = false;
            if (query.Extension.Trim().ToLower() == "link")
            {
                txtLinkDocAcreditacion.Text = query.URL;
                tdSubir2.Visible            = true;
            }

            hdIdDocAcreditacion.Value          = idDocumento.ToString();
            tdSubir2.Visible                   = false;
            txtObservacionDocAcreditacion.Text = query.Comentario;
            btnCrearDocumentoAcreditacion.Text = "Actualizar";
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Carga la información de un documento
        /// </summary>
        /// <param name="idDocumento">Identificador primario del documento</param>
        private void CargarDocumento(int idDocumento)
        {
            GrillaDocumentos doc = Negocio.PlanDeNegocioV2.Formulacion.Anexos.Anexos.getDocumento(idDocumento);

            ViewState["idDocumento2"] = idDocumento;

            if (doc != null)
            {
                lblTitulo.Text    = "EDITAR DOCUMENTO";
                NomDocumento.Text = doc.NombreDocumento;
                Comentario.Text   = doc.Comentario;
                btn_Accion.Text   = "Actualizar";
                EsNuevo           = true;
            }
        }