private void CantMaxRenglonesButton_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; resultadoTextBox.Text = string.Empty; estadoTextBox.Text = string.Empty; this.Refresh(); c = new FEArn.ConsultaUltNroTransaccion(System.Configuration.ConfigurationManager.AppSettings["FEA_ar_gov_afip_wsw_Service"], System.Configuration.ConfigurationManager.AppSettings["rutaCertificadoAFIP"] + ce.Cuit_emisor.ToString() + ".p12", ce.Cuit_emisor, Aplicacion.Sesion); FEArn.ar.gov.afip.wsw.FERecuperaQTYResponse cr = new FEArn.ar.gov.afip.wsw.FERecuperaQTYResponse(); cr = c.ConsultarCantMaxRenglones(ce); if (cr.RError.perrmsg == "OK") { MessageBox.Show("Consulta concluida satisfactoriamente.", "Información", MessageBoxButtons.OK); resultadoTextBox.Text = "La Cantidad Máxima de Renglones es: " + cr.qty.value.ToString(); estadoTextBox.Text = cr.RError.percode + " - " + cr.RError.perrmsg; } else { MessageBox.Show("Consulta concluida con error.", "Información", MessageBoxButtons.OK); resultadoTextBox.Text = ""; estadoTextBox.Text = cr.RError.percode + " - " + cr.RError.perrmsg; } this.Cursor = Cursors.Default; }
private void DummyAuthServerButton_Click(object sender, EventArgs e) { try { this.Cursor = Cursors.WaitCursor; resultadoTextBox.Text = string.Empty; estadoTextBox.Text = string.Empty; this.Refresh(); c = new FEArn.ConsultaUltNroTransaccion(System.Configuration.ConfigurationManager.AppSettings["FEA_ar_gov_afip_wsw_Service"], System.Configuration.ConfigurationManager.AppSettings["rutaCertificadoAFIP"] + ce.Cuit_emisor.ToString() + ".p12", ce.Cuit_emisor, Aplicacion.Sesion); string texto = c.ConsultarDummyAuthServer(); resultadoTextBox.Text = texto; estadoTextBox.Text = ""; this.Cursor = Cursors.Default; } catch (Exception ex) { resultadoTextBox.Text = ex.Message; } }