Exemplo n.º 1
0
        /// <summary>
        /// Guardars the agenda.
        /// </summary>
        /// <param name="entidad">The entidad.</param>
        private void GuardarEntidad(EventoAgenda entidad)
        {
            objBLAgenda = new BLAgendaActividades(propAgenda);
            objBLAgenda.GetById();

            int idAsignatura = Convert.ToInt32(ddlAsignaturaEdit.SelectedValue);

            entidad.tipoEventoAgenda.idTipoEventoAgenda = (int)enumEventoAgendaType.Evaluacion;
            if (objBLAgenda.VerificarAgendaExcursion(entidad) && objBLAgenda.VerificarAgendaEvaluacion(entidad, idAsignatura))
            {
                objBLAgenda.Data.listaEvaluaciones.Add((Evaluacion)entidad);
                objBLAgenda.Save();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Guardars the agenda.
        /// </summary>
        /// <param name="entidad">The entidad.</param>
        private void GuardarEntidad(EventoAgenda entidad)
        {
            objBLAgenda = new BLAgendaActividades(propAgenda);
            objBLAgenda.GetById();

            int idAsignatura = Convert.ToInt32(ddlAsignaturaEdit.SelectedValue);

            entidad.tipoEventoAgenda.idTipoEventoAgenda = (int)enumEventoAgendaType.ClaseDiaria;
            if (objBLAgenda.VerificarAgenda(entidad, idAsignatura))
            {
                objBLAgenda.Data.listaRegistroClases.Add((RegistroClases)entidad);
                objBLAgenda.Save();
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Registrar el evento.
 /// </summary>
 /// <param name="evento">The evento.</param>
 private void GuardarEvento(EventoAgenda evento)
 {
     objBLAgenda = new BLAgendaActividades(propAgenda);
     objBLAgenda.GetById();
     evento.tipoEventoAgenda.idTipoEventoAgenda = (int)enumEventoAgendaType.Excursion;
     if (objBLAgenda.VerificarAgendaExcursion(evento) && objBLAgenda.VerificarAgendaEvaluacion(evento,0))
     {
         objBLAgenda.Data.listaExcursiones.Add((Excursion)evento);
         objBLAgenda.Save();
     }
 }