Example #1
0
        public BecasDTO ObtenerBecas()
        {
            BecasDTO beca = new BecasDTO();

            try
            {
                beca.alu_ID = alu_ID;

                if (bec_SuspenciosEstudiosSII.Selected == true)
                {
                    beca.bec_SuspenciosEstudios = true;
                }
                else
                {
                    beca.bec_SuspenciosEstudios = false;
                }

                if (bec_BecadoAntesSII.Selected == true)
                {
                    beca.bec_BecadoAntes = true;
                }
                else
                {
                    beca.bec_BecadoAntes = false;
                }

                if (bec_EstatusOportunidadesSII.Selected == true)
                {
                    beca.bec_EstatusOportunidades = true;
                }
                else
                {
                    beca.bec_EstatusOportunidades = false;
                }

                if (bec_EstatusCONAFESII.Selected == true)
                {
                    beca.bec_EstatusBecado = true;
                }
                else
                {
                    beca.bec_EstatusBecado = false;
                }

                beca.bec_Peso     = alu_Peso.Text;
                beca.bec_Estatura = alu_Estatura.Text;

                altura = Convert.ToDouble(alu_Estatura.Text);
                peso   = Convert.ToDouble(alu_Peso.Text);

                IMC          = peso / (altura * altura);
                beca.bec_IMC = IMC.ToString();
            }
            catch (Exception)
            {
            }
            return(beca);
        }
Example #2
0
        BecasDTO llenarBeca()
        {
            BecasDTO becasYApoyos = new BecasDTO();

            if (bec_EstatusBecadoSII.Selected == true)
            {
                becasYApoyos.bec_EstatusBecado = true;
                becasYApoyos.bec_ID            = 1 + (Convert.ToInt32((bec_EstatusBecado.SelectedValue)));
            }
            else
            {
                becasYApoyos.bec_ID = 1;
            }
            becasYApoyos.bec_SuspenciosEstudios   = bec_SuspenciosEstudiosSII.Selected;
            becasYApoyos.bec_BecadoAntes          = bec_BecadoAntesSII.Selected;
            becasYApoyos.bec_EstatusOportunidades = bec_EstatusOportunidadesSII.Selected;
            becasYApoyos.alu_ID = (int)Session["alu_ID"];
            return(becasYApoyos);
        }