本文整理汇总了C#中IBanco类的典型用法代码示例。如果您正苦于以下问题:C# IBanco类的具体用法?C# IBanco怎么用?C# IBanco使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IBanco类属于命名空间,在下文中一共展示了IBanco类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: LerArquivoRetorno
public override void LerArquivoRetorno(IBanco banco, Stream arquivo)
{
this.Banco = banco;
try
{
StreamReader stream = new StreamReader(arquivo, System.Text.Encoding.UTF8);
string linha = "";
// Lendo o arquivo
linha = stream.ReadLine();
// Próxima linha (DETALHE)
linha = stream.ReadLine();
while (DetalheRetorno.PrimeiroCaracter(linha) == "1")
{
DetalheRetorno detalhe = banco.LerDetalheRetornoCNAB400(linha);
ListaDetalhe.Add(detalhe);
OnLinhaLida(detalhe, linha);
linha = stream.ReadLine();
}
stream.Close();
}
catch (Exception ex)
{
throw new Exception("Erro ao ler arquivo.", ex);
}
}
开发者ID:edersonnascimento,项目名称:boletonet,代码行数:29,代码来源:ArquivoRetornoCNAB400.cs
示例2: GerarArquivoRemessa
public override void GerarArquivoRemessa(string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, Stream arquivo, int numeroArquivoRemessa)
{
try
{
int numeroRegistro = 2;
string strline;
StreamWriter incluiLinha = new StreamWriter(arquivo);
strline = banco.GerarHeaderRemessa("0", cedente, TipoArquivo.CNAB400);
incluiLinha.WriteLine(strline);
foreach (Boleto boleto in boletos)
{
boleto.Banco = banco;
strline = boleto.Banco.GerarDetalheRemessa(boleto, numeroRegistro, TipoArquivo.CNAB400);
incluiLinha.WriteLine(strline);
numeroRegistro++;
}
strline = banco.GerarTrailerRemessa(numeroRegistro, TipoArquivo.CNAB400);
incluiLinha.WriteLine(strline);
incluiLinha.Close();
}
catch (Exception ex)
{
throw new Exception("Erro ao gerar arquivo remessa.", ex);
}
}
开发者ID:jirehinformatica,项目名称:ProjetosJireh,代码行数:29,代码来源:ArquivoRemessaCNAB400.cs
示例3: GerarArquivoRemessa
public override void GerarArquivoRemessa(string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, Stream arquivo, int numeroArquivoRemessa)
{
try
{
int numeroRegistro = 2;
string strline;
decimal vltitulostotal = 0; //Uso apenas no registro TRAILER do banco Santander - jsoda em 09/05/2012 - Add no registro TRAILER do banco Banrisul - sidneiklein em 08/08/2013
StreamWriter incluiLinha = new StreamWriter(arquivo, Encoding.GetEncoding("ISO-8859-1"));
strline = banco.GerarHeaderRemessa(numeroConvenio, cedente, TipoArquivo.CNAB400, numeroArquivoRemessa);
incluiLinha.WriteLine(strline);
foreach (Boleto boleto in boletos)
{
boleto.Banco = banco;
strline = boleto.Banco.GerarDetalheRemessa(boleto, numeroRegistro, TipoArquivo.CNAB400);
incluiLinha.WriteLine(strline);
vltitulostotal += boleto.ValorBoleto; //Uso apenas no registro TRAILER do banco Santander - jsoda em 09/05/2012 - Add no registro TRAILER do banco Banrisul - sidneiklein em 08/08/2013
numeroRegistro++;
}
strline = banco.GerarTrailerRemessa(numeroRegistro, TipoArquivo.CNAB400, cedente, vltitulostotal);
incluiLinha.WriteLine(strline);
incluiLinha.Close();
incluiLinha.Dispose(); // Incluido por Luiz Ponce 07/07/2012.
incluiLinha = null; // Incluido por Luiz Ponce 07/07/2012.
}
catch (Exception ex)
{
throw new Exception("Erro ao gerar arquivo remessa.", ex);
}
}
开发者ID:jbrambilla,项目名称:boletonet,代码行数:34,代码来源:ArquivoRemessaCNAB400.cs
示例4: GeraArquivoCNAB400
public void GeraArquivoCNAB400(IBanco banco, Cedente cedente, Boletos boletos)
{
try
{
saveFileDialog.Filter = "Arquivos de Retorno (*.rem)|*.rem|Todos Arquivos (*.*)|*.*";
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
ArquivoRemessa arquivo = new ArquivoRemessa(TipoArquivo.CNAB400);
//Valida a Remessa Correspondentes antes de Gerar a mesma...
string vMsgRetorno = string.Empty;
bool vValouOK = arquivo.ValidarArquivoRemessa(cedente.Convenio.ToString(), banco, cedente, boletos, 1, out vMsgRetorno);
if (!vValouOK)
{
MessageBox.Show(String.Concat("Foram localizados inconsistências na validação da remessa!", Environment.NewLine, vMsgRetorno),
"Teste",
MessageBoxButtons.OK,
MessageBoxIcon.Information);
}
else
{
arquivo.GerarArquivoRemessa("0", banco, cedente, boletos, saveFileDialog.OpenFile(), 1);
MessageBox.Show("Arquivo gerado com sucesso!", "Teste",
MessageBoxButtons.OK,
MessageBoxIcon.Information);
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
开发者ID:richardsonvix,项目名称:boletonet,代码行数:34,代码来源:Main.cs
示例5: ValidarArquivoRemessa
public override bool ValidarArquivoRemessa(string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
try
{
bool vRetorno = true;
string vMsg = string.Empty;
//
foreach (Boleto boleto in boletos)
{
string vMsgBol = string.Empty;
bool vRetBol = boleto.Banco.ValidarRemessa(this.TipoArquivo, numeroConvenio, banco, cedente, boletos, numeroArquivoRemessa, out vMsgBol);
if (!vRetBol && !String.IsNullOrEmpty(vMsgBol))
{
vMsg += vMsgBol;
vRetorno = vRetBol;
}
}
//
mensagem = vMsg;
return vRetorno;
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:Ander89BR,项目名称:boletonet,代码行数:26,代码来源:ArquivoRemessaCNAB240.cs
示例6: GeraArquivoCNAB240
public void GeraArquivoCNAB240(IBanco banco, Cedente cedente, Boletos boletos)
{
saveFileDialog.Filter = "Arquivos de Retorno (*.rem)|*.rem|Todos Arquivos (*.*)|*.*";
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
ArquivoRemessa arquivo = new ArquivoRemessa(TipoArquivo.CNAB240);
arquivo.GerarArquivoRemessa("1200303001417053", banco, cedente, boletos, saveFileDialog.OpenFile(), 1);
MessageBox.Show("Arquivo gerado com sucesso!", "Teste",
MessageBoxButtons.OK,
MessageBoxIcon.Information);
}
}
开发者ID:richardsonvix,项目名称:boletonet,代码行数:13,代码来源:Main.cs
示例7: GerarArquivoRemessa
public override void GerarArquivoRemessa(string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, Stream arquivo, int numeroArquivoRemessa)
{
try
{
int numeroRegistro = 2;
string strline;
decimal vltitulostotal = 0; //Uso apenas no registro TRAILER do banco Santander - jsoda em 09/05/2012 - Add no registro TRAILER do banco Banrisul - sidneiklein em 08/08/2013
StreamWriter incluiLinha = new StreamWriter(arquivo, Encoding.GetEncoding("ISO-8859-1"));
cedente.Carteira = boletos[0].Carteira;
strline = banco.GerarHeaderRemessa(numeroConvenio, cedente, TipoArquivo.CNAB400, numeroArquivoRemessa);
incluiLinha.WriteLine(strline);
foreach (Boleto boleto in boletos)
{
boleto.Banco = banco;
strline = boleto.Banco.GerarDetalheRemessa(boleto, numeroRegistro, TipoArquivo.CNAB400);
incluiLinha.WriteLine(strline);
vltitulostotal += boleto.ValorBoleto; //Uso apenas no registro TRAILER do banco Santander - jsoda em 09/05/2012 - Add no registro TRAILER do banco Banrisul - sidneiklein em 08/08/2013
numeroRegistro++;
// 85 - CECRED
if (banco.Codigo == 85) {
if (boleto.PercMulta > 0 || boleto.ValorMulta > 0) {
Banco_Cecred _banco = new Banco_Cecred();
string linhaCECREDRegistroDetalhe5 = _banco.GerarRegistroDetalhe5(boleto, numeroRegistro, TipoArquivo.CNAB400);
incluiLinha.WriteLine(linhaCECREDRegistroDetalhe5);
numeroRegistro++;
}
}
if ((boleto.Instrucoes != null && boleto.Instrucoes.Count > 0) || (boleto.Sacado.Instrucoes != null && boleto.Sacado.Instrucoes.Count > 0))
{
strline = boleto.Banco.GerarMensagemVariavelRemessa(boleto, ref numeroRegistro, TipoArquivo.CNAB400);
if (!string.IsNullOrEmpty(strline) && !string.IsNullOrWhiteSpace(strline))
incluiLinha.WriteLine(strline);
}
}
strline = banco.GerarTrailerRemessa(numeroRegistro, TipoArquivo.CNAB400, cedente, vltitulostotal);
incluiLinha.WriteLine(strline);
incluiLinha.Close();
incluiLinha.Dispose(); // Incluido por Luiz Ponce 07/07/2012.
incluiLinha = null; // Incluido por Luiz Ponce 07/07/2012.
}
catch (Exception ex)
{
throw new Exception("Erro ao gerar arquivo remessa.", ex);
}
}
开发者ID:Ander89BR,项目名称:boletonet,代码行数:51,代码来源:ArquivoRemessaCNAB400.cs
示例8: LerArquivoRetorno
public override void LerArquivoRetorno(IBanco banco, Stream arquivo)
{
try
{
StreamReader stream = new StreamReader(arquivo, System.Text.Encoding.UTF8);
string linha = "";
DetalheRetornoCNAB240 detalheRetorno = new DetalheRetornoCNAB240();
// Lendo o arquivo
linha = stream.ReadLine();
OnLinhaLida(null, linha, EnumTipodeLinhaLida.HeaderDeArquivo);
detalheRetorno.HeaderArquivo.LerHeaderDeArquivoCNAB240(linha);
// Próxima linha (DETALHE)
linha = stream.ReadLine();
OnLinhaLida(null, linha, EnumTipodeLinhaLida.HeaderDeLote);
linha = stream.ReadLine();
while (linha.Substring(7, 1) == "3")
{
if (linha.Substring(13, 1) == "W")
{
OnLinhaLida(detalheRetorno, linha, EnumTipodeLinhaLida.DetalheSegmentoW);
detalheRetorno.SegmentoW.LerDetalheSegmentoWRetornoCNAB240(linha);
}
else
{
OnLinhaLida(detalheRetorno, linha, EnumTipodeLinhaLida.DetalheSegmentoT);
detalheRetorno.SegmentoT.LerDetalheSegmentoTRetornoCNAB240(linha);
linha = stream.ReadLine();
OnLinhaLida(detalheRetorno, linha, EnumTipodeLinhaLida.DetalheSegmentoU);
detalheRetorno.SegmentoU.LerDetalheSegmentoURetornoCNAB240(linha);
}
ListaDetalhes.Add(detalheRetorno);
linha = stream.ReadLine();
}
OnLinhaLida(null, linha, EnumTipodeLinhaLida.TraillerDeLote);
linha = stream.ReadLine();
OnLinhaLida(null, linha, EnumTipodeLinhaLida.TraillerDeArquivo);
stream.Close();
}
catch (Exception ex)
{
throw new Exception("Erro ao ler arquivo.", ex);
}
}
开发者ID:MarcosMierez,项目名称:Gerador.Boleto.Net,代码行数:50,代码来源:ArquivoRetornoCNAB240.cs
示例9: LerArquivoRetorno
public override void LerArquivoRetorno(IBanco banco, Stream arquivo)
{
try
{
StreamReader stream = new StreamReader(arquivo, System.Text.Encoding.UTF8);
string linha = "";
// Identificação do registro detalhe
List<string> IdsRegistroDetalhe = new List<string>();
// Lendo o arquivo
linha = stream.ReadLine();
// Próxima linha (DETALHE)
linha = stream.ReadLine();
// 85 - CECRED - Código de registro detalhe 7 para CECRED
// 1 - Banco do Brasil- Código de registro detalhe 7 para convênios com 7 posições, e detalhe 1 para convênios com 6 posições(colocado as duas, pois não interferem em cada tipo de arquivo)
if (banco.Codigo == 85)
{
IdsRegistroDetalhe.Add("7");
}
else if (banco.Codigo == 1)
{
IdsRegistroDetalhe.Add("1");//Para convênios de 6 posições
IdsRegistroDetalhe.Add("7");//Para convênios de 7 posições
}
else
{
IdsRegistroDetalhe.Add("1");
}
while (IdsRegistroDetalhe.Contains(DetalheRetorno.PrimeiroCaracter(linha)))
{
DetalheRetorno detalhe = banco.LerDetalheRetornoCNAB400(linha);
ListaDetalhe.Add(detalhe);
OnLinhaLida(detalhe, linha);
linha = stream.ReadLine();
}
stream.Close();
}
catch (Exception ex)
{
throw new Exception("Erro ao ler arquivo.", ex);
}
}
开发者ID:Ander89BR,项目名称:boletonet,代码行数:46,代码来源:ArquivoRetornoCNAB400.cs
示例10: LerArquivoRetorno
public override void LerArquivoRetorno(IBanco banco, Stream arquivo)
{
try
{
StreamReader stream = new StreamReader(arquivo, System.Text.Encoding.UTF8);
string linha = "";
// Identificação do registro detalhe
string IdRegistroDetalhe = string.Empty;
// Lendo o arquivo
linha = stream.ReadLine();
// Próxima linha (DETALHE)
linha = stream.ReadLine();
// 85 - CECRED - Código de registro detalhe 7 para CECRED
if (banco.Codigo == 85) {
IdRegistroDetalhe = "7";
} else {
IdRegistroDetalhe = "1";
}
while (DetalheRetorno.PrimeiroCaracter(linha) == IdRegistroDetalhe)
{
DetalheRetorno detalhe = banco.LerDetalheRetornoCNAB400(linha);
ListaDetalhe.Add(detalhe);
OnLinhaLida(detalhe, linha);
linha = stream.ReadLine();
}
stream.Close();
}
catch (Exception ex)
{
throw new Exception("Erro ao ler arquivo.", ex);
}
}
开发者ID:eltonrodrigues-github,项目名称:boletonet,代码行数:37,代码来源:ArquivoRetornoCNAB400.cs
示例11: ValidarRemessaCNAB400
public bool ValidarRemessaCNAB400(string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
bool vRetorno = true;
string vMsg = string.Empty;
//
#region Pré Validações
if (banco == null)
{
vMsg += String.Concat("Remessa: O Banco é Obrigatório!", Environment.NewLine);
vRetorno = false;
}
if (cedente == null)
{
vMsg += String.Concat("Remessa: O Cedente/Beneficiário é Obrigatório!", Environment.NewLine);
vRetorno = false;
}
if (boletos == null || boletos.Count.Equals(0))
{
vMsg += String.Concat("Remessa: Deverá existir ao menos 1 boleto para geração da remessa!", Environment.NewLine);
vRetorno = false;
}
#endregion
//
foreach (Boleto boleto in boletos)
{
#region Validação de cada boleto
if (boleto.Remessa == null)
{
vMsg += String.Concat("Boleto: ", boleto.NumeroDocumento, "; Remessa: Informe as diretrizes de remessa!", Environment.NewLine);
vRetorno = false;
}
else
{
#region Validações da Remessa que deverão estar preenchidas quando BANCO DO BRASIL
if (String.IsNullOrEmpty(boleto.Remessa.TipoDocumento))
{
vMsg += String.Concat("Boleto: ", boleto.NumeroDocumento, "; Remessa: Informe o Tipo Documento!", Environment.NewLine);
vRetorno = false;
}
#endregion
}
#endregion
}
//
mensagem = vMsg;
return vRetorno;
}
开发者ID:richardsonvix,项目名称:boletonet,代码行数:47,代码来源:Banco_Brasil.cs
示例12: ValidarRemessaCNAB240
public bool ValidarRemessaCNAB240(string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
string vMsg = string.Empty;
mensagem = vMsg;
return true;
//throw new NotImplementedException("Função não implementada.");
}
开发者ID:richardsonvix,项目名称:boletonet,代码行数:7,代码来源:Banco_Brasil.cs
示例13: ValidarRemessa
/// <summary>
/// Efetua as Validações dentro da classe Boleto, para garantir a geração da remessa
/// </summary>
public override bool ValidarRemessa(TipoArquivo tipoArquivo, string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
bool vRetorno = true;
string vMsg = string.Empty;
////IMPLEMENTACAO PENDENTE...
//validando endereços
foreach (var boleto in boletos)
{
if (boleto.Sacado.Endereco != null && !string.IsNullOrEmpty(boleto.Sacado.Endereco.End) &&
!string.IsNullOrEmpty(boleto.Sacado.Endereco.Cidade) &&
!string.IsNullOrEmpty(boleto.Sacado.Endereco.UF) &&
!string.IsNullOrEmpty(boleto.Sacado.Endereco.CEP)) continue;
vMsg = string.Format("Endereço do Pagador {0} no boleto {1} inválido", boleto.Sacado.Nome, boleto.NumeroDocumento);
vRetorno = false;
break;
}
mensagem = vMsg;
return vRetorno;
}
开发者ID:diegolucena,项目名称:boletonet,代码行数:25,代码来源:Banco_Bradesco.cs
示例14: ValidarRemessa
/// <summary>
/// Efetua as Validações dentro da classe Boleto, para garantir a geração da remessa
/// </summary>
public override bool ValidarRemessa(TipoArquivo tipoArquivo, string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
bool vRetorno = true;
string vMsg = string.Empty;
////IMPLEMENTACAO PENDENTE...
cedente.ContaBancaria.DigitoConta = Mod10(cedente.ContaBancaria.Agencia + cedente.ContaBancaria.Conta).ToString();
mensagem = vMsg;
return vRetorno;
}
开发者ID:edersonnascimento,项目名称:boletonet,代码行数:14,代码来源:Banco_Itau.cs
示例15: ValidarRemessa
public virtual bool ValidarRemessa(TipoArquivo tipoArquivo, string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
throw new NotImplementedException("Função não implementada na classe filha. Implemente na classe que está sendo criada.");
}
开发者ID:ViniciusConsultor,项目名称:petsys,代码行数:4,代码来源:AbstractBanco.cs
示例16: ValidarRemessaCNAB400
public bool ValidarRemessaCNAB400(string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
bool vRetorno = true;
string vMsg = string.Empty;
//
#region Pré Validações
if (banco == null)
{
vMsg += String.Concat("Remessa: O Banco é Obrigatório!", Environment.NewLine);
vRetorno = false;
}
if (cedente == null)
{
vMsg += String.Concat("Remessa: O Cedente/Beneficiário é Obrigatório!", Environment.NewLine);
vRetorno = false;
}
if (boletos == null || boletos.Count.Equals(0))
{
vMsg += String.Concat("Remessa: Deverá existir ao menos 1 boleto para geração da remessa!", Environment.NewLine);
vRetorno = false;
}
#endregion
//
foreach (Boleto boleto in boletos)
{
#region Validação de cada boleto
if (boleto.Remessa == null)
{
vMsg += String.Concat("Boleto: ", boleto.NumeroDocumento, "; Remessa: Informe as diretrizes de remessa!", Environment.NewLine);
vRetorno = false;
}
else
{
#region Validações da Remessa que deverão estar preenchidas quando BANRISUL
//Comentado porque ainda está fixado em 01
//if (String.IsNullOrEmpty(boleto.Remessa.CodigoOcorrencia))
//{
// vMsg += String.Concat("Boleto: ", boleto.NumeroDocumento, "; Remessa: Informe o Código de Ocorrência!", Environment.NewLine);
// vRetorno = false;
//}
if (String.IsNullOrEmpty(boleto.Remessa.TipoDocumento))
{
vMsg += String.Concat("Boleto: ", boleto.NumeroDocumento, "; Remessa: Informe o Tipo Documento!", Environment.NewLine);
vRetorno = false;
}
else if (boleto.Remessa.TipoDocumento.Equals("06") && !String.IsNullOrEmpty(boleto.NossoNumero))
{
//Para o "Remessa.TipoDocumento = "06", não poderá ter NossoNumero Gerado!
vMsg += String.Concat("Boleto: ", boleto.NumeroDocumento, "; Não pode existir NossoNumero para o Tipo Documento '06 - cobrança escritural'!", Environment.NewLine);
vRetorno = false;
}
//Para o Tipo
#endregion
}
#endregion
}
//
mensagem = vMsg;
return vRetorno;
}
开发者ID:correamarques,项目名称:boletonet,代码行数:61,代码来源:Banco_Bansirul.cs
示例17: InstanciaBanco
private void InstanciaBanco(int codigoBanco)
{
try
{
switch (codigoBanco)
{
//104 - Caixa
case 104:
_IBanco = new Banco_Caixa();
break;
//341 - Itaú
case 341:
_IBanco = new Banco_Itau();
break;
//356 - Real
case 275:
case 356:
_IBanco = new Banco_Real();
break;
//422 - Safra
case 422:
_IBanco = new Banco_Safra();
break;
//237 - Bradesco
case 237:
_IBanco = new Banco_Bradesco();
break;
//347 - Sudameris
case 347:
_IBanco = new Banco_Sudameris();
break;
//353 - Santander
case 353:
_IBanco = new Banco_Santander();
break;
//070 - BRB
case 70:
_IBanco = new Banco_BRB();
break;
//479 - BankBoston
case 479:
_IBanco = new Banco_BankBoston();
break;
//001 - Banco do Brasil
case 1:
_IBanco = new Banco_Brasil();
break;
//399 - HSBC
case 399:
_IBanco = new Banco_HSBC();
break;
//003 - HSBC
case 3:
_IBanco = new Banco_Basa();
break;
//409 - Unibanco
case 409:
_IBanco = new Banco_Unibanco();
break;
//33 - Unibanco
case 33:
_IBanco = new Banco_Santander();
break;
//41 - Banrisul
case 41:
_IBanco = new Banco_Banrisul();
break;
//756 - Sicoob (Bancoob)
case 756:
_IBanco = new Banco_Sicoob();
break;
//748 - Sicredi
case 748:
_IBanco = new Banco_Sicredi();
break;
//21 - Banestes
case 21:
_IBanco = new Banco_Banestes();
break;
//004 - Nordeste
case 4:
_IBanco = new Banco_Nordeste();
break;
//85 - CECRED
case 85:
_IBanco = new Banco_Cecred();
break;
default:
throw new Exception("Código do banco não implementando: " + codigoBanco);
}
}
catch (Exception ex)
{
throw new Exception("Erro durante a execução da transação.", ex);
}
}
开发者ID:eltonrodrigues-github,项目名称:boletonet,代码行数:96,代码来源:Banco.cs
示例18: ValidarRemessa
public override bool ValidarRemessa(TipoArquivo tipoArquivo, string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
try
{
return _IBanco.ValidarRemessa(tipoArquivo, numeroConvenio, _IBanco, cedente, boletos, numeroArquivoRemessa, out mensagem);
}
catch (Exception ex)
{
throw new Exception("Erro durante a validação do arquivo de REMESSA.", ex);
}
}
开发者ID:eltonrodrigues-github,项目名称:boletonet,代码行数:11,代码来源:Banco.cs
示例19: ValidarRemessa
/// <summary>
/// Efetua as Validações dentro da classe Boleto, para garantir a geração da remessa
/// </summary>
public override bool ValidarRemessa(TipoArquivo tipoArquivo, string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
bool vRetorno = true;
string vMsg = string.Empty;
//
switch (tipoArquivo)
{
case TipoArquivo.CNAB240:
//vRetorno = ValidarRemessaCNAB240(numeroConvenio, banco, cedente, boletos, numeroArquivoRemessa, out vMsg);
break;
case TipoArquivo.CNAB400:
vRetorno = ValidarRemessaCNAB400(numeroConvenio, banco, cedente, boletos, numeroArquivoRemessa, out vMsg);
break;
case TipoArquivo.Outro:
throw new Exception("Tipo de arquivo inexistente.");
}
//
mensagem = vMsg;
return vRetorno;
}
开发者ID:correamarques,项目名称:boletonet,代码行数:23,代码来源:Banco_Sicredi.cs
示例20: ValidarRemessa
/// <summary>
/// Efetua as Validações dentro da classe Boleto, para garantir a geração da remessa
/// </summary>
public override bool ValidarRemessa(TipoArquivo tipoArquivo, string numeroConvenio, IBanco banco, Cedente cedente, Boletos boletos, int numeroArquivoRemessa, out string mensagem)
{
bool vRetorno = true;
string vMsg = string.Empty;
////IMPLEMENTACAO PENDENTE...
mensagem = vMsg;
return vRetorno;
}
开发者ID:correamarques,项目名称:boletonet,代码行数:11,代码来源:Banco_Bradesco.cs
注:本文中的IBanco类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论