Esempio n. 1
0
 private void _btnIniciar_Click(object sender, EventArgs e)
 {
     _servicio = new WCF_SisFalla.ServicioSISFALLAClient();
     CargarTablas();
     _timer.Enabled      = true;
     _btnIniciar.Enabled = false;
 }
Esempio n. 2
0
 private void _btnIniciar_Click(object sender, EventArgs e)
 {
     _servicio = new WCF_SisFalla.ServicioSISFALLAClient();
     byte[] b = _servicio.GetRegistrosSincronizacion(FormLogin.TokenSesion, "F_GF_REGFALLA", 0, PkCodPersona);
     b = GZip.DesComprimir(b);
     _tablaRegFalla = Serializador.DeSerializar <DataTable>(b);
     _lblFallasInvolucradas.Text = _tablaRegFalla.Rows.Count + "";
     AbrirInforme();
     _timerEnvio.Enabled = true;
 }
Esempio n. 3
0
 private void _btnIngresar_Click(object sender, EventArgs e)
 {
     TokenSesion  = string.Format("Usuario={0}|Contrasena={1}", _txtUs.Text, _txtPas.Text);
     _servicio    = new WCF_SisFalla.ServicioSISFALLAClient();
     PkCodPersona = _servicio.IniciarSesion(TokenSesion);
     if (PkCodPersona > 0)
     {
         DialogResult = DialogResult.OK;
     }
     else
     {
         MessageBox.Show("Hay errores al iniciar la sesión.");
     }
 }