Beispiel #1
0
 public void DeleteNotaFiscal(NotaFiscal notaFiscal)
 {
     try
     {
         NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl();
         notafiscaldao.Delete(notaFiscal);
     }
     catch (Exception ex)
     {
         throw new Exception("Erro ao conectar e remover" + ex.Message);
     }
 }
Beispiel #2
0
 public List <NotaFiscal> SelectNotaFiscal(NotaFiscal filtro)
 {
     try
     {
         NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl();
         return(notafiscaldao.Select(filtro));
     }
     catch (Exception ex)
     {
         throw new Exception("Erro ao conectar e selecionar" + ex.Message);
     }
 }
Beispiel #3
0
 public void UpdateNotaFiscal(NotaFiscal notaFiscal)
 {
     try
     {
         NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl();
         notafiscaldao.Update(notaFiscal);
     }
     catch (Exception ex)
     {
         throw new Exception("Erro ao conectar e atualizar" + ex.Message);
     }
 }
Beispiel #4
0
 public void InsertNotaFiscal(NotaFiscal notaFiscal)
 {
     try
     {
         NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl();
         notafiscaldao.Insert(notaFiscal);
     }
     catch (Exception ex)
     {
         throw new Exception("Erro ao conectar e inserir" + ex.Message);
     }
 }