private void LimparCamposMatriculaAluno()
 {
     LupaUsuario.LimparCampos();
     txtDataInscricao.Text   = "";
     txtDataConclusao.Text   = "";
     ddlTurma.SelectedIndex  = 0;
     ddlStatus.SelectedIndex = 0;
 }
Exemple #2
0
        protected void OcultarModal_Click(object sender, EventArgs e)
        {
            LupaUsuario.LimparCampos();

            if (Master != null && Master.Master != null)
            {
                LimparModal();

                var pnlbackdrop = ((Panel)Master.Master.FindControl("pnlbackdrop"));

                if (pnlbackdrop != null)
                {
                    pnlModal.Visible    = false;
                    pnlbackdrop.Visible = false;
                }
            }

            PreencherHierarquiaNivel();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CertificadoCertame manterTrilha = new CertificadoCertame();
                var bmCertificadoCertame        = (new BMCertificadoCertame())
                                                  .ObterTodos()
                                                  .OrderBy(x => x.Ano)
                                                  .OrderBy(x => x.NomeCertificado);

                IList <DtoCertificadoCertame> ListaCertificadoCertame = bmCertificadoCertame.Select(x => new DtoCertificadoCertame
                {
                    Id   = x.ID,
                    Nome = x.Ano.ToString() + " - " + x.NomeCertificado
                }).ToList();

                WebFormHelper.PreencherLista(ListaCertificadoCertame, this.ddlTemaCertificado, false, true);
            }

            if (LupaUsuario.SelectedUser == null)
            {
                LupaUsuario.LimparCampos();
            }
        }