private void NCN() { try { using (CNF_CNCForm NCN = new CNF_CNCForm()) { NCN.IsNCN = true; if (NCN.ShowDialog().Equals(DialogResult.OK)) { acBrTEFD1.NCN(NCN.Rede, NCN.NSU, NCN.Finalizacao, NCN.Valor); WriteResp("NCN executado com sucesso"); } } } catch (Exception ex) { messageToolStripStatusLabel.Text = "Exception"; descriptionToolStripStatusLabel.Text = ex.Message; } }
private void CNF() { try { using (CNF_CNCForm CNF = new CNF_CNCForm()) { CNF.IsNCN = false; if (CNF.ShowDialog().Equals(DialogResult.OK)) { acBrTEFD1.CNF(CNF.Rede, CNF.NSU, CNF.Finalizacao); WriteResp("CNF executado com sucesso"); } } } catch (Exception ex) { messageToolStripStatusLabel.Text = "Exception"; descriptionToolStripStatusLabel.Text = ex.Message; } }