protected void Page_Load(object sender, EventArgs e)
        {
            if (Loguin.lblLogButt4 == null)
            {
                lenguaje lang = new lenguaje();
                lang.ChangeLanguge("Spanish");
            }

            Button2.Text = Loguin.lblAltButt2;
            Button1.Text = Loguin.lblAltButt1;
            //Button3.Text = Loguin.lblAltButt3;
            Label1.Text  = Loguin.lblAltTitle;
            Label2.Text  = Loguin.lblAltMail;
            Label3.Text  = Loguin.lblAltUer;
            Label4.Text  = Loguin.lblAlPass;
            Label5.Text  = Loguin.lblAltPass1;
            Label6.Text  = Loguin.lblAltNom;
            Label7.Text  = Loguin.lblAltApP;
            Label8.Text  = Loguin.lblAltApM;
            Label9.Text  = Loguin.lblAltFecN;
            Label10.Text = Loguin.lblAltEda;
            Label11.Text = Loguin.lblAltDirec;
            Label12.Text = Loguin.lblAltTel;
            if (Loguin.pass != null)
            {
                TextBox3.Text = Loguin.pass;
                TextBox4.Text = Loguin.pass1;
            }
        }
Exemple #2
0
        protected void Button4_Click(object sender, EventArgs e)
        {  //Cambia el lenguaje
            Labelresultado.Text = "";
            lenguaje lang = new lenguaje();

            lang.ChangeLanguge(Button4.Text);
            Button1.Text = lblLogButt1;
            Button2.Text = lblLogButt2;
            Button3.Text = lblLogButt3;
            Button4.Text = lblLogButt4;
            Label1.Text  = lblLogUser;
            Label2.Text  = lblLogPas;
            Label3.Text  = lblLogTitle;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Button1.Attributes.Add("OnClick",
                                   "window.open('MsjAlert.aspx',null,'height=220,width=480');");
            if (Loguin.lblLogButt4 == null)
            {
                lenguaje lang = new lenguaje();
                lang.ChangeLanguge("Spanish");
            }


            Button1.Text = Loguin.lblchnPasButt1;
            Label1.Text  = Loguin.lblchnPasTitle;
            Label2.Text  = Loguin.lblchnPasActl;
            Label3.Text  = Loguin.lblchnPasNew;
            Label4.Text  = Loguin.lblchnPasConf;
        }
Exemple #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Button2.Visible = false;
            //valida el lenguaje que se utiliza para las etiquetas
            if (Loguin.lblLogButt4 == null)
            {
                lenguaje lang = new lenguaje();
                lang.ChangeLanguge("Spanish");
            }

            Button2.Text = Loguin.lblRecButt2;
            Button1.Text = Loguin.lblRecButt1;
            Label1.Text  = Loguin.lblRecUser;
            Label2.Text  = Loguin.lblRecTitle;
            if (Loguin.res)
            {
                Labelresultado.Text = Loguin.lblAltMsgYaUser; // +", " + Loguin.lblAltMsgYaMail;
            }
        }
Exemple #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //se agrega ventana emergente para el cierre de sesion
            Button3.Attributes.Add("OnClick",
                                   "window.open('CerrarSesion.aspx',null,'height=220,width=480');");
            //Determina que lenguaje usar en las etiquetas
            if (Loguin.lblLogButt4 == null)
            {
                lenguaje lang = new lenguaje();
                lang.ChangeLanguge("Spanish");
            }
            Label1.Text  = Loguin.lblMnuTitle;
            Label2.Text  = Loguin.lblMnuNom;
            Label3.Text  = Loguin.lblMnuEdad;
            Button1.Text = Loguin.lblMnuItm1;
            Button2.Text = Loguin.lblMnuItm2;
            Button3.Text = Loguin.lblMnuItem3;
            Usuarios tmpData;
            //llama funcion de ingreso para validar la existencia del usuario
            var lst = servicio.Ingreso(Loguin.user);

            //Carga la lista estructurada
            foreach (var x in lst)
            {
                tmpData             = new Usuarios();
                tmpData.id          = x.id;
                tmpData.Usuario     = x.Usuario;
                tmpData.pass        = x.pass;
                tmpData.nombre      = x.nombre;
                tmpData.apellidoPat = x.apellidoPat;
                tmpData.apellidoMat = x.apellidoMat;
                TextBox1.Text       = x.nombre + " " + x.apellidoPat + " " + x.apellidoMat;
                tmpData.fechNac     = x.fechNac;
                tmpData.edad        = x.edad;
                TextBox2.Text       = x.edad.ToString();
                tmpData.direccion   = x.direccion;
                tmpData.telefono    = x.telefono;
                lista.Add(tmpData);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Loguin.lblLogButt4 == null)
            {
                lenguaje lang = new lenguaje();
                lang.ChangeLanguge("Spanish");
            }

            Button2.Text = Loguin.lblEditButt2;
            Button1.Text = Loguin.lblEditButt1;
            Label1.Text  = Loguin.lblEditTitle;
            Label2.Text  = Loguin.lblAltMail;
            Label6.Text  = Loguin.lblAltNom;
            Label7.Text  = Loguin.lblAltApP;
            Label8.Text  = Loguin.lblAltApM;
            Label9.Text  = Loguin.lblAltFecN;
            Label10.Text = Loguin.lblAltEda;
            Label11.Text = Loguin.lblAltDirec;
            Label12.Text = Loguin.lblAltTel;
            if (!Loguin.res)
            {
                ValidExist();
            }
        }