| 
									
										
										
										
											2025-05-23 15:47:39 -03:00
										 |  |  | using GestionIntegral.Api.Models.Distribucion; | 
					
						
							|  |  |  | using System; | 
					
						
							|  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  | using System.Data; | 
					
						
							|  |  |  | using System.Threading.Tasks; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace GestionIntegral.Api.Data.Repositories.Distribucion | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     public interface IControlDevolucionesRepository | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         Task<IEnumerable<ControlDevoluciones>> GetAllAsync(DateTime? fechaDesde, DateTime? fechaHasta, int? idEmpresa); | 
					
						
							|  |  |  |         Task<ControlDevoluciones?> GetByIdAsync(int idControl); | 
					
						
							|  |  |  |         Task<ControlDevoluciones?> GetByEmpresaAndFechaAsync(int idEmpresa, DateTime fecha, IDbTransaction? transaction = null); // Para validar unicidad | 
					
						
							|  |  |  |         Task<ControlDevoluciones?> CreateAsync(ControlDevoluciones nuevoControl, int idUsuario, IDbTransaction transaction); | 
					
						
							|  |  |  |         Task<bool> UpdateAsync(ControlDevoluciones controlAActualizar, int idUsuario, IDbTransaction transaction); | 
					
						
							|  |  |  |         Task<bool> DeleteAsync(int idControl, int idUsuario, IDbTransaction transaction); | 
					
						
							| 
									
										
										
										
											2025-06-12 19:36:21 -03:00
										 |  |  |         Task<IEnumerable<(ControlDevolucionesHistorico Historial, string NombreUsuarioModifico)>> GetHistorialAsync( | 
					
						
							|  |  |  |             DateTime? fechaDesde, DateTime? fechaHasta, | 
					
						
							|  |  |  |             int? idUsuarioModifico, string? tipoModificacion, | 
					
						
							|  |  |  |             int? idControlOriginal, int? idEmpresaOriginal, DateTime? fechaOriginal); | 
					
						
							| 
									
										
										
										
											2025-05-23 15:47:39 -03:00
										 |  |  |     } | 
					
						
							|  |  |  | } |