protected override void LoadChildsAction(Type type)
        {
            if (type == typeof(Submodulo_Instructor_Promocion))
            {
                Datos_Promociones.DataSource = _entity.Promociones;

                if (Datos_Promociones.Current != null && ((Instructor_Promocion)Datos_Promociones.Current).OidPromocion > 0)
                {
                    _modulos                 = ModuloList.GetListByPromocion(false, ((Instructor_Promocion)Datos_Promociones.Current).OidPromocion);
                    _combo_modulos           = new Library.Instruction.HComboBoxSourceList(ModuloList.SortList(_modulos, "NumeroOrden", ListSortDirection.Ascending));
                    Datos_Modulos.DataSource = _combo_modulos;

                    //_submodulos = SubmoduloList.GetList(false);
                    _combo_modulos.Childs       = new Library.Instruction.HComboBoxSourceList(SubmoduloList.SortList(_submodulos, "CodigoOrden", ListSortDirection.Ascending));
                    Datos_Submodulos.DataSource = _combo_modulos.Childs;

                    Instructor_Promocion promo = Datos_Promociones.Current as Instructor_Promocion;
                    Datos_Submodulo_Instructor_Promocion.DataSource = promo.Submodulos;
                    SetCellsDataSource(Submodulo_Instructor_Grid.Name);
                }
            }
            //if (type == typeof(Submodulo_Instructor))
            //{
            //    Datos_Submodulo_Instructor.DataSource = _entity.Submodulos;
            //    PgMng.Grow(string.Empty, "Datos_Submodulo_Instructor");
            //}
        }
Exemple #2
0
        public override void RefreshSecondaryData()
        {
            if (_propuesto == 0)
            {
                _modulos = ModuloList.GetList(false);
                Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList(_modulos);
                Datos_Modulos.DataSource = _combo_modulos;
            }
            else
            {
                Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList();
                _combo_modulos.Add(new ComboBoxSource(_propuesto, ModuloInfo.Get(_propuesto, false).Texto));
                Datos_Modulos.DataSource = _combo_modulos;
                ((ComboBoxSource)Modulo_CB.SelectedItem).Oid = _propuesto;
                _entity.OidModulo = _propuesto;
                Modulo_CB.Enabled = false;
            }
            PgMng.Grow(string.Empty, "Modulos");

            //Library.Instruction.HComboBoxSourceList _combo_idiomas = new Library.Instruction.HComboBoxSourceList();
            //_combo_idiomas.Add(new ComboBoxSource(0, ""));
            //_combo_idiomas.Add(new ComboBoxSource(1, "Español"));
            //_combo_idiomas.Add(new ComboBoxSource(2, "Inglés"));
            Datos_Idiomas.DataSource = Library.Common.EnumText <EIdioma> .GetList(false);

            PgMng.Grow(string.Empty, "Idiomas");
        }
        public override void RefreshSecondaryData()
        {
            PlanEstudiosList planes = PlanEstudiosList.GetList(false);

            _combo_planes = new Library.Instruction.HComboBoxSourceList(planes);

            Datos_Planes.DataSource = _combo_planes;
            PgMng.Grow(string.Empty, "_combo_planes");

            moleQule.Library.HComboBoxSourceList lista_horas = new moleQule.Library.HComboBoxSourceList();

            lista_horas.Add(new ComboBoxSource(1, "08:00"));
            lista_horas.Add(new ComboBoxSource(2, "09:00"));
            lista_horas.Add(new ComboBoxSource(3, "10:00"));
            lista_horas.Add(new ComboBoxSource(4, "11:00"));
            lista_horas.Add(new ComboBoxSource(5, "12:00"));
            lista_horas.Add(new ComboBoxSource(6, "13:00"));
            lista_horas.Add(new ComboBoxSource(7, "14:00"));
            lista_horas.Add(new ComboBoxSource(8, "15:00"));
            lista_horas.Add(new ComboBoxSource(9, "16:00"));
            lista_horas.Add(new ComboBoxSource(10, "17:00"));
            lista_horas.Add(new ComboBoxSource(11, "18:00"));
            lista_horas.Add(new ComboBoxSource(12, "19:00"));
            lista_horas.Add(new ComboBoxSource(13, "20:00"));
            lista_horas.Add(new ComboBoxSource(14, "21:00"));

            Datos_Horas.DataSource = lista_horas;
            PgMng.Grow(string.Empty, "Datos_Planes.DataSource");

            _promociones         = PromocionList.GetList(false);
            _combo_planes.Childs = new Library.Instruction.HComboBoxSourceList(_promociones);
            PgMng.Grow(string.Empty, "_combo_planes.Childs");
            //PgMng.ShowCronos();
        }
Exemple #4
0
        public override void RefreshSecondaryData()
        {
            ModuloList modulos = ModuloList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);
            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow(string.Empty, "_combo_modulos");

            InstructorList instructores = InstructorList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_instructores = new Library.Instruction.HComboBoxSourceList(instructores);
            Datos_Instructores.DataSource = _combo_instructores;
            PgMng.Grow(string.Empty, "_combo_instructores");

            PromocionList promociones = PromocionList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);
            ComboBoxSource combo = new ComboBoxSource(-1, "No especificado");

            _combo_promociones.Add(combo);
            Datos_Promociones.DataSource = _combo_promociones;
            PgMng.Grow(string.Empty, "_combo_promociones");

            _lista_preguntas = PreguntaList.GetPreguntasModulo(Entity.OidModulo);
            PgMng.Grow(string.Empty, "Preguntas del Módulo");
            //_submodulos = SubmoduloList.GetList(false);
            //_temas = TemaList.GetList(false);
        }
Exemple #5
0
        public override ComboBoxSourceList RellenaComboInstructores(long oid, long tipo, int index, long oid_submodulo)
        {
            _combo_instructores = new Library.Instruction.HComboBoxSourceList(_profesores);

            Datos_Instructores.DataSource = _combo_instructores;
            return(_combo_instructores);
        }
Exemple #6
0
        public override void RefreshSecondaryData()
        {
            ModuloList modulos = ModuloList.GetList(false);

            _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);
            PgMng.Grow();

            _submodulos = SubmoduloList.GetList(false);
            Library.Instruction.HComboBoxSourceList _combo_submodulos = new Library.Instruction.HComboBoxSourceList(_submodulos);
            _combo_modulos.Childs    = _combo_submodulos;
            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow();

            _temas = TemaList.GetList(false);
            Library.Instruction.HComboBoxSourceList _combo_temas = new Library.Instruction.HComboBoxSourceList(_temas);
            _combo_modulos.Childs = _combo_temas;
            PgMng.Grow();

            //_combo_tipo = new Library.Instruction.HComboBoxSourceList();
            //_combo_tipo.Add(new ComboBoxSource(1,"Desarrollo"));
            //_combo_tipo.Add(new ComboBoxSource(2,"Test"));
            Datos_Tipos.DataSource = Library.Instruction.EnumText <ETipoPregunta> .GetList();//_combo_tipo;

            PgMng.Grow();

            //Library.Instruction.HComboBoxSourceList _combo_idiomas = new Library.Instruction.HComboBoxSourceList();
            //_combo_idiomas.Add(new ComboBoxSource(1, "Español"));
            //_combo_idiomas.Add(new ComboBoxSource(2, "Inglés"));
            Datos_Idiomas.DataSource = Library.Common.EnumText <EIdioma> .GetList();//_combo_idiomas;

            PgMng.Grow();
        }
 /// <summary>
 /// Asigna los datos de origen para controles que dependen de otros
 /// </summary>
 /// <param name="controlName"></param>
 protected override void SetDependentControlSource(string controlName)
 {
     switch (controlName)
     {
     case "Tipo_CB":
     {
         if (Datos_Tipo.Current != null)
         {
             if (((ComboBoxSource)Tipo_CB.SelectedItem).Oid == 1)
             {
                 long      oid    = EntityInfo.OidCurso;
                 CursoList cursos = CursoList.GetList(false);
                 Library.Instruction.HComboBoxSourceList _combo_cursos = new Library.Instruction.HComboBoxSourceList(cursos);
                 Datos_Curso.DataSource  = _combo_cursos;
                 Nombre_CB.SelectedIndex = Datos_Curso.IndexOf(_combo_cursos.Buscar(oid));
             }
             if (((ComboBoxSource)Tipo_CB.SelectedItem).Oid == 2)
             {
                 long       oid     = EntityInfo.OidModulo;
                 ModuloList modulos = ModuloList.GetList(false);
                 Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);
                 Datos_Curso.DataSource  = _combo_modulos;
                 Nombre_CB.SelectedIndex = Datos_Curso.IndexOf(_combo_modulos.Buscar(oid));
             }
         }
     } break;
     }
 }
Exemple #8
0
        public override void RefreshSecondaryData()
        {
            ModuloList modulos = ModuloList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);
            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow(string.Empty, "_combo_modulos");

            InstructorList instructores = InstructorList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_instructores = new Library.Instruction.HComboBoxSourceList(instructores);
            Datos_Instructores.DataSource = _combo_instructores;
            PgMng.Grow(string.Empty, "_combo_instructores");

            PromocionList promociones = PromocionList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);
            ComboBoxSource combo = new ComboBoxSource(-1, "No especificado");

            _combo_promociones.Add(combo);
            Datos_Promociones.DataSource = _combo_promociones;
            PgMng.Grow(string.Empty, "_combo_promociones");

            //_respuestas = RespuestaList.GetList();
        }
 public override void RefreshSecondaryData()
 {
     _combo_opciones = new Library.Instruction.HComboBoxSourceList();
     _combo_opciones.Add(new ComboBoxSource(1, ""));
     _combo_opciones.Add(new ComboBoxSource(2, "A"));
     _combo_opciones.Add(new ComboBoxSource(3, "B"));
     _combo_opciones.Add(new ComboBoxSource(4, "C"));
     Datos_Opciones.DataSource = _combo_opciones;
     PgMng.Grow();
 }
        public override void RefreshSecondaryData()
        {
            TemaList temas = TemaList.GetList(false);

            _combo_temas = new Library.Instruction.HComboBoxSourceList(temas);

            Datos_Tema_Origen.DataSource = _combo_temas;
            PgMng.Grow();

            Datos_Tema_Destino.DataSource = _combo_temas;
        }
        public override void RefreshSecondaryData()
        {
            PromocionList promociones = PromocionList.GetList(false);

            _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);

            Datos_Promocion_Origen.DataSource = _combo_promociones;
            PgMng.Grow();

            Datos_Promocion_Destino.DataSource = _combo_promociones;
        }
Exemple #12
0
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            if (_entity != null)
            {
                Datos_Respuesta.DataSource = Respuestas.SortList(_entity.Respuestas, "Opcion", ListSortDirection.Ascending);
            }

            Library.Instruction.HComboBoxSourceList _combo_opciones = new Library.Instruction.HComboBoxSourceList();
            _combo_opciones.Add(new ComboBoxSource(1, "A"));
            _combo_opciones.Add(new ComboBoxSource(2, "B"));
            _combo_opciones.Add(new ComboBoxSource(3, "C"));
            Datos_Opciones.DataSource = _combo_opciones;
        }
Exemple #13
0
        public override void RefreshSecondaryData()
        {
            MaterialDocenteList materiales = MaterialDocenteList.GetList(false);

            _combo_materiales = new Library.Instruction.HComboBoxSourceList(materiales);

            Datos_MaterialesD.DataSource = _combo_materiales;
            PgMng.Grow();

            _revisiones = RevisionMaterialList.GetList(false);
            _combo_materiales.Childs = new Library.Instruction.HComboBoxSourceList(_revisiones);

            Datos_Versiones.DataSource = _combo_materiales.Childs;
            PgMng.Grow();
        }
        public override void RefreshSecondaryData()
        {
            _modulos                 = ModuloList.GetOrderedList(false);
            _combo_modulos           = new Library.Instruction.HComboBoxSourceList(_modulos, false);
            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow(string.Empty, "Modulos");

            _submodulos           = SubmoduloList.GetList(false);
            _combo_modulos.Childs = new Library.Instruction.HComboBoxSourceList(_submodulos);
            PgMng.Grow(string.Empty, "Submodulos");

            if (_combo_modulos.Count > 1)
            {
                Modulo_CB.SelectedItem = _combo_modulos[0];
            }
        }
        public override void RefreshSecondaryData()
        {
            ModuloList modulos = ModuloList.GetList(false);

            _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);

            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow();

            PromocionList promociones = PromocionList.GetList(false);

            _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);
            PgMng.Grow();

            Datos_Promociones.DataSource = _combo_promociones;
        }
        public override void RefreshSecondaryData()
        {
            ModuloList modulos = ModuloList.GetList(false);

            _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);

            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow();

            SubmoduloList submodulos = SubmoduloList.GetList(false);

            _combo_submodulos     = new Library.Instruction.HComboBoxSourceList(submodulos);
            _combo_modulos.Childs = _combo_submodulos;
            PgMng.Grow();

            Datos_Submodulos.DataSource = _combo_submodulos;
        }
Exemple #17
0
        public override void RefreshSecondaryData()
        {
            _promociones = PromocionList.GetList(false);
            Library.Instruction.HComboBoxSourceList _combo_promociones = new Library.Instruction.HComboBoxSourceList(_promociones);
            ComboBoxSource combo = new ComboBoxSource(-1, "No especificado");

            _combo_promociones.Add(combo);
            Datos_Promociones.DataSource = _combo_promociones;
            //PgMng.Grow(string.Empty, "Promociones");

            _combo_tipo = new Library.Instruction.HComboBoxSourceList();
            _combo_tipo.Add(new ComboBoxSource(0, ""));
            _combo_tipo.Add(new ComboBoxSource(1, "Finales"));
            _combo_tipo.Add(new ComboBoxSource(2, "Parciales"));
            Datos_Tipos.DataSource = _combo_tipo;
            //PgMng.Grow(string.Empty, "Tipos");
        }
Exemple #18
0
        public override void RefreshSecondaryData()
        {
            _productos = ProductList.GetList(false);
            _series    = SerieList.GetList(false, ETipoSerie.Compra);
            _modulos   = ModuloList.GetList(false);
            Library.Instruction.HComboBoxSourceList comboModulosT = new Library.Instruction.HComboBoxSourceList(_modulos);
            Library.Instruction.HComboBoxSourceList comboModulosP = new Library.Instruction.HComboBoxSourceList(_modulos);
            PgMng.Grow();

            _submodulos          = SubmoduloList.GetList(false);
            comboModulosT.Childs = new Library.Instruction.HComboBoxSourceList(_submodulos);
            comboModulosP.Childs = new Library.Instruction.HComboBoxSourceList(_submodulos);
            PgMng.Grow();

            _source_list             = new DataSourceList(comboModulosT);
            Datos_Modulos.DataSource = _source_list.CBList;
            PgMng.Grow();
        }
Exemple #19
0
        public override void RefreshSecondaryData()
        {
            _combo_submodulos           = new Library.Instruction.HComboBoxSourceList(SubModulos);
            Datos_Submodulos.DataSource = _combo_submodulos;
            _combo_submodulos.Childs    = new Library.Instruction.HComboBoxSourceList(TemaList.GetList(false));

            //HComboBoxSourceList combo_nivel = new Library.Instruction.HComboBoxSourceList();
            //combo_nivel.Add(new ComboBoxSource(0, "TODOS"));
            //combo_nivel.Add(new ComboBoxSource(1, "1"));
            //combo_nivel.Add(new ComboBoxSource(2, "2"));
            //combo_nivel.Add(new ComboBoxSource(3, "3"));
            //Datos_Temas.DataSource = combo_nivel;

            //Library.Instruction.HComboBoxSourceList combo_idioma = new Library.Instruction.HComboBoxSourceList();
            //combo_idioma.Add(new ComboBoxSource(0, "TODOS"));
            //combo_idioma.Add(new ComboBoxSource(1, "Español"));
            //combo_idioma.Add(new ComboBoxSource(2, "Inglés"));
            Datos_Idiomas.DataSource = Library.Common.EnumText <EIdioma> .GetList();//combo_idioma;
        }
Exemple #20
0
        public override void RefreshSecondaryData()
        {
            base.RefreshSecondaryData();

            _planes = PlanEstudiosList.GetList(false);
            PgMng.Grow(string.Empty, "Planes de Estudio");

            _combo_planes = new Library.Instruction.HComboBoxSourceList(_planes);
            PgMng.Grow(string.Empty, "ComboBox Planes de Estudio");

            _promociones = PromocionList.GetList(false);
            PgMng.Grow(string.Empty, "Promociones");

            _combo_planes.Childs = new Library.Instruction.HComboBoxSourceList(_promociones);
            PgMng.Grow(string.Empty, "ComboBox de Promociones");

            Datos_Planes.DataSource = _combo_planes;
            PgMng.Grow(string.Empty, "Datos_Planes");

            _no_asignables = new List <SesionNoAsignable>();
            PgMng.Grow();
        }
        protected override void ChangeFicha()
        {
            if (Ficha_TP.SelectedTab == Capacitacion_TP)
            //||
            //   (Ficha_TP.SelectedTab == Autorizados_TP))
            {
                if (_modulos == null)
                {
                    PgMng.Reset(4, 1, Resources.Messages.LOADING_DATA, this);

                    _modulos                 = ModuloList.GetList(false);
                    _combo_modulos           = new Library.Instruction.HComboBoxSourceList(ModuloList.SortList(_modulos, "NumeroOrden", ListSortDirection.Ascending));
                    Datos_Modulos.DataSource = _combo_modulos;
                    PgMng.Grow(string.Empty, "Modulos");

                    _submodulos                 = SubmoduloList.GetList(false);
                    _combo_modulos.Childs       = new Library.Instruction.HComboBoxSourceList(SubmoduloList.SortList(_submodulos, "CodigoOrden", ListSortDirection.Ascending));
                    Datos_Submodulos.DataSource = _combo_modulos.Childs;
                    PgMng.Grow(string.Empty, "Submodulos");

                    _promociones = PromocionList.GetList(false);
                    Library.Instruction.HComboBoxSourceList _combo_promociones = new Library.Instruction.HComboBoxSourceList(PromocionList.SortList(_promociones, "Nombre", ListSortDirection.Ascending));
                    Datos_Promociones_CB.DataSource = _combo_promociones;
                    PgMng.Grow(string.Empty, "Promociones");

                    _instructores = InstructorList.GetList(false);
                    Library.Instruction.HComboBoxSourceList _combo_instructores = new Library.Instruction.HComboBoxSourceList(InstructorList.SortList(_instructores, "Apellidos", ListSortDirection.Ascending));
                    Datos_Instructores.DataSource = _combo_instructores;
                    PgMng.FillUp(string.Empty, "Instructores");
                }

                if (Ficha_TP.SelectedTab == Capacitacion_TP)
                {
                    LoadChildsAction(typeof(Submodulo_Instructor_Promocion));
                }
                //if (Ficha_TP.SelectedTab == Autorizados_TP) LoadChildsAction(typeof(Submodulo_Instructor));
            }
        }
        public override void RefreshSecondaryData()
        {
            PromocionList promociones = PromocionList.GetList(false);

            _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);

            Datos_Promociones.DataSource = _combo_promociones;
            PgMng.Grow();

            _alumnos = AlumnoList.GetList(false);
            _combo_promociones.Childs = new Library.Instruction.HComboBoxSourceList(_alumnos);

            Datos_ComboAlumnos.DataSource = _combo_promociones.Childs;
            PgMng.Grow();

            _combo_tipo = new Library.Instruction.HComboBoxSourceList();
            _combo_tipo.Add(new ComboBoxSource());
            _combo_tipo.Add(new ComboBoxSource(1, "Curso"));
            _combo_tipo.Add(new ComboBoxSource(2, "Módulo"));

            Datos_Tipo.DataSource = _combo_tipo;
            PgMng.Grow();
        }
        public override void RefreshSecondaryData()
        {
            if (EntityInfo != null)
            {
                _planes = PlanAnualList.GetList();
                Library.Quality.HComboBoxSourceList _combo_planes = new Library.Quality.HComboBoxSourceList(_planes);
                Datos_Planes.DataSource = _combo_planes;
                Bar.Grow();

                Library.Instruction.InstructorList empleados = Library.Instruction.InstructorList.GetList(false);

                Library.Instruction.InstructorList      responsables        = empleados.GetResponsablesList();
                Library.Instruction.HComboBoxSourceList _combo_responsables = new Library.Instruction.HComboBoxSourceList(responsables);
                Datos_Responsables.DataSource = _combo_responsables;
                Bar.Grow();

                Library.Instruction.InstructorList      auditores        = empleados.GetAuditoresList();
                Library.Instruction.HComboBoxSourceList _combo_auditores = new Library.Instruction.HComboBoxSourceList(auditores);
                Datos_Auditores.DataSource = _combo_auditores;
                Bar.Grow();

                UserList usuarios = UserList.GetList();
                Library.Application.HComboBoxSourceList _combo_usuarios = new Library.Application.HComboBoxSourceList(usuarios);
                Datos_Usuarios_Auditores.DataSource    = _combo_usuarios;
                Datos_Usuarios_Responsables.DataSource = _combo_usuarios;
                Bar.Grow();

                DepartamentoList departamentos = DepartamentoList.GetList();
                Library.Quality.HComboBoxSourceList _combo_departamentos = new Library.Quality.HComboBoxSourceList(departamentos);
                Datos_Departamentos_Auditores.DataSource    = _combo_departamentos;
                Datos_Departamentos_Responsables.DataSource = _combo_departamentos;
                Bar.Grow();

                _tipos_auditorias = TipoAuditoriaList.GetList();
                Bar.Grow();
            }
        }
Exemple #24
0
        public override void RefreshSecondaryData()
        {
            _productos = ProductList.GetList(false);
            _series    = SerieList.GetList(false, ETipoSerie.Compra);
            _modulos   = ModuloList.GetList(false);
            Library.Instruction.HComboBoxSourceList comboModulosT = new Library.Instruction.HComboBoxSourceList(_modulos);
            Library.Instruction.HComboBoxSourceList comboModulosP = new Library.Instruction.HComboBoxSourceList(_modulos);
            PgMng.Grow();

            _submodulos          = SubmoduloList.GetList(false);
            comboModulosT.Childs = new Library.Instruction.HComboBoxSourceList(_submodulos);
            comboModulosP.Childs = new Library.Instruction.HComboBoxSourceList(_submodulos);
            PgMng.Grow();

            _source_list_t           = new DataSourceList(comboModulosT);
            _source_list_p           = new DataSourceList(comboModulosP);
            Datos_Modulos.DataSource = _source_list_t.CBList;
            PgMng.Grow();

            Library.Instruction.HComboBoxSourceList _incompatibles = new Library.Instruction.HComboBoxSourceList();
            ComboBoxSource _compatible = new ComboBoxSource(0, "");
            ComboBoxSource _inc_1      = new ComboBoxSource(1, "1");
            ComboBoxSource _inc_2      = new ComboBoxSource(2, "2");
            ComboBoxSource _inc_3      = new ComboBoxSource(3, "3");
            ComboBoxSource _inc_4      = new ComboBoxSource(4, "4");
            ComboBoxSource _inc_5      = new ComboBoxSource(5, "5");

            _incompatibles.Add(_compatible);
            _incompatibles.Add(_inc_1);
            _incompatibles.Add(_inc_2);
            _incompatibles.Add(_inc_3);
            _incompatibles.Add(_inc_4);
            _incompatibles.Add(_inc_5);
            Datos_Incompatible.DataSource = _incompatibles;
            PgMng.Grow();
        }
        public override ComboBoxSourceList RellenaComboInstructores(long oid, long tipo, int index, long oid_submodulo)
        {
            long oid_clase = oid;

            if (oid_clase <= 0)
            {
                ComboBoxSourceList combo_list = new ComboBoxSourceList();
                combo_list.Add(new ComboBoxSource(0, ""));
                Datos_Instructores.DataSource = combo_list;
                return(combo_list);
            }

            List <Submodulo_Instructor_PromocionInfo> list = new List <Submodulo_Instructor_PromocionInfo>();

            if (_profesores == null)
            {
                _profesores = InstructorList.GetInstructoresHorariosList(EntityInfo.OidPromocion, EntityInfo.FechaInicial, EntityInfo.FechaFinal);
            }


            if (_disponibilidades == null)
            {
                _disponibilidades = _profesores.GetDisponibilidadesProfesores(EntityInfo.FechaInicial);
            }
            DisponibilidadInfo disp = null;

            foreach (InstructorInfo profesor in _profesores)
            {
                if (Horario.ProfesorLibre(_instructores_asignados, index, profesor.Oid,
                                          _lista_sesiones, _profesores, -1, EntityInfo.FechaInicial, _disponibilidades) &&
                    _disponibilidades.TryGetValue(profesor.Oid, out disp) &&
                    disp.Semana[index])
                {
                    Instructor_PromocionInfo promo = profesor.Promociones.GetItemByProperty("OidPromocion", EntityInfo.OidPromocion);
                    if (tipo != 2)
                    {
                        Submodulo_Instructor_PromocionInfo sub = promo != null?promo.Submodulos.GetItemByProperty("OidSubmodulo", oid_submodulo) : null;

                        if (sub != null)
                        {
                            list.Add(sub);
                        }
                    }
                    else
                    {
                        Submodulo_Instructor_PromocionInfo sub = promo != null?promo.Submodulos.GetItemByProperty("OidModulo", _lista_sesiones[index].OidModulo) : null;

                        if (sub != null)
                        {
                            list.Add(sub);
                        }
                    }
                }
            }

            //foreach (Submodulo_Instructor_PromocionInfo info in _submodulos)
            //{
            //    if (info.OidSubmodulo == oid_submodulo && info.OidPromocion == EntityInfo.OidPromocion)
            //    {
            //        if (Horario.ProfesorLibre(_instructores_asignados, index, info.OidInstructor,
            //                                _lista_sesiones, _profesores, -1, EntityInfo.FechaInicial, _disponibilidades))
            //            list.Add(info);
            //    }
            //}

            Submodulo_Instructor_PromocionList lista = Submodulo_Instructor_PromocionList.GetChildList(list);

            _combo_instructores  = new Library.Instruction.HComboBoxSourceList(lista, _profesores);
            _combo_clases.Childs = _combo_instructores;

            Datos_Instructores.DataSource = _combo_clases.Childs;
            return(_combo_clases.Childs);
        }
 public override void RefreshSecondaryData()
 {
     _promociones                 = PromocionList.GetList(false);//.GetByModuloList(_entity.OidModulo, false);
     _combo_promociones           = new Library.Instruction.HComboBoxSourceList(_promociones);
     Datos_Promociones.DataSource = _combo_promociones;
 }