public Asistencia() { this.asistio = " "; this.inscripcion = new Inscripcion(); this.competencia = new Competencia(); this.evento = new Evento(); }
public HistorialCinta() { this.id = 0; this.fecha = new DateTime(); //this.cinta = new Cinta(); this.persona = new Persona(); this.evento = new Evento(); }
public HistorialCinta(int id, DateTime fecha, /*Cinta cinta*/ Persona persona, Evento evento) { this.id = id; this.fecha = fecha; //this.cinta = cinta; this.persona = persona; this.evento = evento; }
public Inscripcion(int id, DateTime fecha, Persona persona, Competencia competencia, SolicitudPlanilla solicitud) { this.id = id; this.fecha = fecha; this.persona = persona; this.competencia = competencia; this.solicitud = solicitud; this.evento = new Evento(); this.asistencias = new List<Asistencia>(); this.resAscenso = new List<ResultadoAscenso>(); this.resKata = new List<ResultadoKata>(); this.resKumite = new List<ResultadoKumite>(); }
/// <summary> /// Metodo que retorma una entidad de tipo evento /// </summary> /// <param name=Entidad>Se pasa el id del evento a buscar</param> /// <returns>Todas los atributos de la clase evento para el detallar</returns> public Entidad ConsultarPorIdPorRestricciones(Entidad evento) { List<DominioSKD.Evento> laLista = new List<DominioSKD.Evento>(); DataTable resultado = new DataTable(); List<Parametro> parametros = new List<Parametro>(); DominioSKD.Evento elEvento = new DominioSKD.Evento(); DominioSKD.Evento lista = new DominioSKD.Evento(); // Casteamos DominioSKD.Evento eve = (DominioSKD.Evento)evento; try { //Escribo en el logger la entrada a este metodo Logger.EscribirInfo(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, RecursosBDModulo16.MENSAJE_ENTRADA_LOGGER, System.Reflection.MethodBase.GetCurrentMethod().Name); //Creo la lista de los parametros para el stored procedure y los anexo parametros = new List<Parametro>(); Parametro parametro = new Parametro(RecursosBDModulo16.PARAMETRO_ITEM, SqlDbType.Int, eve.Id.ToString(), false); parametros.Add(parametro); //Ejecuto el Stored Procedure resultado = EjecutarStoredProcedureTuplas(RecursosBDModulo16.DETALLAR_EVENTO, parametros); //Limpio la conexion LimpiarSQLConnection(); //Obtengo todos los elementos del evento foreach (DataRow row in resultado.Rows) { elEvento = (DominioSKD.Evento)FabricaEntidades.ObtenerEventoCompletos(); elEvento.Id_evento = int.Parse(row[RecursosBDModulo16.PARAMETRO_IDEVENTO].ToString()); elEvento.Nombre = row[RecursosBDModulo16.PARAMETRO_NOMBRE].ToString(); elEvento.Costo = int.Parse(row[RecursosBDModulo16.PARAMETRO_PRECIO].ToString()); elEvento.Descripcion = row[RecursosBDModulo16.PARAMETRO_DESCRIPCION].ToString(); } //Limpio la conexion LimpiarSQLConnection(); //Escribo en el logger la salida a este metodo Logger.EscribirInfo(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, RecursosBDModulo16.MENSAJE_SALIDA_LOGGER, System.Reflection.MethodBase.GetCurrentMethod().Name); //Retorno el evento return elEvento; } #region catches catch (LoggerException e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw e; } catch (ArgumentNullException e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw new ParseoVacioException(RecursosBDModulo16.CODIGO_EXCEPCION_ARGUMENTO_NULO, RecursosBDModulo16.MENSAJE_EXCEPCION_ARGUMENTO_NULO, e); } catch (FormatException e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw new ParseoFormatoInvalidoException(RecursosBDModulo16.CODIGO_EXCEPCION_FORMATO_INVALIDO, RecursosBDModulo16.MENSAJE_EXCEPCION_FORMATO_INVALIDO, e); } catch (OverflowException e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw new ParseoEnSobrecargaException(RecursosBDModulo16.CODIGO_EXCEPCION_SOBRECARGA, RecursosBDModulo16.MENSAJE_EXCEPCION_SOBRECARGA, e); } catch (ParametroInvalidoException e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw e; } catch (ExceptionSKDConexionBD e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw e; } catch (ExceptionSKD e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw e; } catch (Exception e) { Logger.EscribirError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name, e); throw new ExceptionSKD(RecursosBDModulo16.CODIGO_EXCEPCION_GENERICO, RecursosBDModulo16.MENSAJE_EXCEPCION_GENERICO, e); } #endregion }
public Asistencia(String asistio, Inscripcion inscripcion, Evento evento) { this.asistio = asistio; this.inscripcion = inscripcion; this.evento = evento; }
public Inscripcion() { this.id = 0; this.fecha = new DateTime(); this.persona = new Persona(); this.competencia = new Competencia(); //this.solicitud = new SolicitudPlanilla(); this.evento = new Evento(); this.asistencias = new List<Asistencia>(); this.resAscenso = new List<ResultadoAscenso>(); this.resKata = new List<ResultadoKata>(); this.resKumite = new List<ResultadoKumite>(); }