subir cambios

This commit is contained in:
carlos
2024-02-03 06:39:33 -06:00
parent 1feafb06e2
commit 7875adfad1
4 changed files with 40 additions and 3 deletions
+25
View File
@@ -1163,6 +1163,31 @@ namespace compabetov2.database
}
}
public static SQLiteDataReader conseguirEnvioMesDAO(DateTime fecha)
{
SQLiteDataReader reader = null;
var db_conexion = new Conexion();
try
{
SQLiteConnection conexion = db_conexion.get_connection();
conexion.Open();
string sql = "SELECT * FROM envio WHERE fecha LIKE @fecha";
SQLiteCommand command = new SQLiteCommand(sql, conexion);
command.Parameters.AddWithValue("@fecha", $"%{fecha.Month}/{fecha.Year}%");
reader = command.ExecuteReader();
return reader;
}
catch (SQLiteException ex)
{
MessageBox.Show(ex.Message);
return reader;
}
}
public static SQLiteDataReader conseguirDetalleVenta(VentaModel venta)
{
SQLiteDataReader reader = null;
+7
View File
@@ -461,5 +461,12 @@ namespace compabetov2.database
return productos;
}
public static List<Envio> conseguirEnvioMes(DateTime fecha)
{
List<Envio> envios = new List<Envio>();
return envios;
}
}
}