Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }