21 lines
		
	
	
		
			717 B
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			717 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 
								 | 
							
								using System;
							 | 
						||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						||
| 
								 | 
							
								using System.ComponentModel.DataAnnotations;
							 | 
						||
| 
								 | 
							
								namespace GestionIntegral.Api.Dtos.Impresion
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    public class CreateTiradaRequestDto
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        [Required]
							 | 
						||
| 
								 | 
							
								        public int IdPublicacion { get; set; }
							 | 
						||
| 
								 | 
							
								        [Required]
							 | 
						||
| 
								 | 
							
								        public DateTime Fecha { get; set; }
							 | 
						||
| 
								 | 
							
								        [Required]
							 | 
						||
| 
								 | 
							
								        public int IdPlanta { get; set; }
							 | 
						||
| 
								 | 
							
								        [Required, Range(1, int.MaxValue)]
							 | 
						||
| 
								 | 
							
								        public int Ejemplares { get; set; } // Para bob_RegTiradas
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        [Required]
							 | 
						||
| 
								 | 
							
								        [MinLength(1, ErrorMessage = "Debe especificar al menos una sección para la tirada.")]
							 | 
						||
| 
								 | 
							
								        public List<DetalleSeccionTiradaDto> Secciones { get; set; } = new List<DetalleSeccionTiradaDto>();
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |