Пример #1
0
 public void EliminarRegistro(int intNumeroNotaIngreso)
 {
     using (SqlConnection con = new SqlConnection(CadenaConexion))
     {
         try
         {
             con.Open();
             daNotaIngreso odaNotaIngreso = new daNotaIngreso();
             odaNotaIngreso.EliminarRegistro(con, intNumeroNotaIngreso);
         }
         catch (Exception ex)
         {
             GrabarLog(ex);
         }
     }
 }
Пример #2
0
 public List<beNotaIngreso> Filtrar(String pstrFechaInicio, String pstrFechaFin, int pintNumero, int pintProveedor)
 {
     List<beNotaIngreso> lista = new List<beNotaIngreso>();
     using (SqlConnection con = new SqlConnection(CadenaConexion))
     {
         try
         {
             con.Open();
             daNotaIngreso odaNotaIngreso = new daNotaIngreso();
             lista = odaNotaIngreso.Filtrar(con, pstrFechaInicio, pstrFechaFin, pintNumero, pintProveedor);
         }
         catch (Exception ex)
         {
             GrabarLog(ex);
         }
     }
     return lista;
 }
Пример #3
0
 public Boolean ActualizarEstado(beNotaIngreso obeNotaIngreso)
 {
     using (SqlConnection con = new SqlConnection(CadenaConexion))
     {
         try
         {
             con.Open();
             daNotaIngreso odaNotaIngreso = new daNotaIngreso();
             odaNotaIngreso.ActualizarEstado(con, obeNotaIngreso);
             return true;
         }
         catch (Exception ex)
         {
             GrabarLog(ex);
             return false;
         }
     }
 }
Пример #4
0
 public beNotaIngreso ListarxID(int id)
 {
     beNotaIngreso obeNotaIngreso = new beNotaIngreso();
     using (SqlConnection con = new SqlConnection(CadenaConexion))
     {
         try
         {
             con.Open();
             daNotaIngreso odaNotaIngreso = new daNotaIngreso();
             obeNotaIngreso = odaNotaIngreso.ListarxID(con, id);
         }
         catch (Exception ex)
         {
             GrabarLog(ex);
         }
     }
     return obeNotaIngreso;
 }
Пример #5
0
 public List<beNotaIngreso> ListarxEstado(String pstrEstado)
 {
     List<beNotaIngreso> lista = new List<beNotaIngreso>();
     using (SqlConnection con = new SqlConnection(CadenaConexion))
     {
         try
         {
             con.Open();
             daNotaIngreso odaNotaIngreso = new daNotaIngreso();
             lista = odaNotaIngreso.ListarxEstado(con,pstrEstado);
         }
         catch (Exception ex)
         {
             GrabarLog(ex);
         }
     }
     return lista;
 }