コード例 #1
0
        /// <summary>
        /// Metodo que consulta los avales de la convocatoria
        /// </summary>
        /// <param name="idConvocatoria">Identificador de la convocatoria</param>
        /// /// <param name="idNivel">Identificador del nivel de formacion</param>
        /// <returns>Objeto tipo List con la informacion de los avales</returns>
        public List <AvalEntity> TraerAvales(int idConvocatoria, int idNivel)
        {
            DataTable  vobjResultado = this.administracionDao.TraerAvales(idConvocatoria, idNivel);
            AvalEntity seleccione    = new AvalEntity {
                IdAval = "", Nombre = " Seleccione..."
            };
            List <AvalEntity> lstaval = Utilitario.ConvertTo <AvalEntity>(vobjResultado);

            lstaval.Add(seleccione);
            return(lstaval.OrderBy(i => i.Nombre).ToList <AvalEntity>());
        }
コード例 #2
0
 protected void ddlTipoAval_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (Session["Avales"] != null && !string.IsNullOrEmpty(this.ddlTipoAval.SelectedValue))
     {
         AvalEntity avalEntity = new AvalEntity();
         avalEntity = ((List <AvalEntity>)Session["Avales"]).Find(a => a.IdAval.Equals(this.ddlTipoAval.SelectedValue));
         string pathAnexo = Path.Combine(ResourceConst.PathAnexos, avalEntity.Formato_Aval);
         this.linkFormato.HRef      = pathAnexo;
         this.linkFormato.Title     = pathAnexo;
         this.linkFormato.InnerHtml = avalEntity.Formato_Aval;
         linkFormato.Visible        = true;
     }
 }
コード例 #3
0
        /// <summary>
        /// Muestra url de formatos o anexos que se deben diligenciar
        /// </summary>
        private void ConfigUrlFiles()
        {
            if (this.beneficiarioAvalEntity != null)
            {
                AvalEntity avalEntity = new AvalEntity();
                avalEntity = ((List <AvalEntity>)Session["Avales"]).Find(a => a.IdAval.Equals(this.beneficiarioAvalEntity.IdAval));

                string pathSoporte = Path.Combine(ResourceConst.PathAnexos, avalEntity.Formato_Condonacion);
                this.linkSoporte.HRef      = pathSoporte;
                this.linkSoporte.Title     = pathSoporte;
                this.linkSoporte.InnerHtml = avalEntity.Formato_Condonacion;
                linkSoporte.Visible        = true;

                // Carga el anexo 11 de acuerdo a la convocatoria que se encuentre (8809,9084)
                string nameAnexo11 = usuarioEntity.IdConvocatoria.Equals("8809") ? ResourceConst.File_8809_Anexo11 : ResourceConst.File_9084_Anexo11;
                string pathAnexo11 = Path.Combine(ResourceConst.PathAnexos, nameAnexo11);
                this.linkCertifFormato.HRef      = pathAnexo11;
                this.linkCertifFormato.Title     = nameAnexo11;
                this.linkCertifFormato.InnerHtml = nameAnexo11;
                this.linkCertifFormato.Visible   = true;
            }
        }