Esempio n. 1
0
        /// <summary>
        /// Registrar el evento.
        /// </summary>
        /// <param name="evento">The evento.</param>
        private void GuardarEvento(Reunion evento)
        {
            objBLAgenda = new BLAgendaActividades(propAgenda);
            objBLAgenda.GetById();
            objBLAgenda.VerificarAgendaReuniones(evento);

            objBLAgenda.Data.listaReuniones.Add(evento);
            objBLAgenda.Save();
        }
 /// <summary>
 /// Guardars the agenda.
 /// </summary>
 /// <param name="entidad">The entidad.</param>
 private void GuardarAgenda(AgendaActividades entidad)
 {
     objBLAgenda = new BLAgendaActividades(entidad);
     objBLAgenda.Save();
 }
        /// <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();
            }
        }
        /// <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();
            }
        }
Esempio n. 5
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();
     }
 }