Esempio n. 1
0
        private void mnuAceptar_Click(object sender, EventArgs e)
        {
            if (!DatosOk())
            {
                return;
            }
            // comprobamos el login
            CntCN50.TOpen(this.conn);
            TVigilante v = CntCN50.GetVigilanteFromTag(txtLogin.Text, this.conn);

            CntCN50.TClose(this.conn);
            if (v == null)
            {
                MessageBox.Show("No se reconoce el vigilante asociado a la etiqueta", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1);
                return;
            }
            // ponemos el vigilante logado
            Estado.Vigilante = v;
            Lectura l = CntLecturas.LeidoVigilante(v, txtLogin.Text);

            LecturaForm lfrm = new LecturaForm(l);

            lfrm.Show();
            //this.Close();

            //LeerCodigo leerCodigo = new LeerCodigo();
            //leerCodigo.Show();
        }
Esempio n. 2
0
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     Lectura l = CntLecturas.ComprobarTag(txtCodigo.Text);
     LecturaForm lfrm = new LecturaForm(l);
     lfrm.Show();
     timer1.Enabled = false;
     this.Close();
 }
Esempio n. 3
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            Lectura     l    = CntLecturas.ComprobarTag(txtCodigo.Text);
            LecturaForm lfrm = new LecturaForm(l);

            lfrm.Show();
            timer1.Enabled = false;
            this.Close();
        }
Esempio n. 4
0
        private void mnuObservaciones_Click(object sender, EventArgs e)
        {
            Lectura l = CntLecturas.Observacion();

            if (l == null)
            {
                DialogResult dr = MessageBox.Show("Las observaciones se hacen dentro de las rondas", "AVISO");
                return;
            }
            LecturaForm lfrm = new LecturaForm(l);

            lfrm.Show();
            timer1.Enabled = false;
            this.Close();
        }
Esempio n. 5
0
        private void mnuAceptar_Click(object sender, EventArgs e)
        {
            if (!DatosOk()) return;
            // comprobamos el login
            CntCN50.TOpen(this.conn);
            TVigilante v = CntCN50.GetVigilanteFromTag(txtLogin.Text, this.conn);
            CntCN50.TClose(this.conn);
            if (v == null)
            {
                MessageBox.Show("No se reconoce el vigilante asociado a la etiqueta", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1);
                return;
            }
            // ponemos el vigilante logado
            Estado.Vigilante = v;
            Lectura l = CntLecturas.LeidoVigilante(v, txtLogin.Text);

            LecturaForm lfrm = new LecturaForm(l);
            lfrm.Show();
            //this.Close();

            //LeerCodigo leerCodigo = new LeerCodigo();
            //leerCodigo.Show();
        }
Esempio n. 6
0
 private void mnuObservaciones_Click(object sender, EventArgs e)
 {
     Lectura l = CntLecturas.Observacion();
     if (l == null)
     {
         DialogResult dr = MessageBox.Show("Las observaciones se hacen dentro de las rondas","AVISO");
         return;
     }
     LecturaForm lfrm = new LecturaForm(l);
     lfrm.Show();
     timer1.Enabled = false;
     this.Close();
 }