public override void RefreshSecondaryData()
        {
            _municipios = MunicipioList.GetList(false);
            Library.Common.HComboBoxSourceList combo_municipios = new Library.Common.HComboBoxSourceList(_municipios);
            Datos_Municipios.DataSource = combo_municipios;
            //MunicipioP_CB.Text = EntityInfo.Municipio;
            PgMng.Grow();

            _promociones = PromocionList.GetList(false);
            PgMng.Grow();
            moleQule.Library.Instruction.HComboBoxSourceList combo_promociones = new moleQule.Library.Instruction.HComboBoxSourceList(_promociones);
            //_promociones.AddEmptyItem();
            Datos_Promociones.DataSource = combo_promociones;
            PgMng.Grow();

            //moleQule.Library.Instruction.HComboBoxSourceList _combo_practicas = new moleQule.Library.Instruction.HComboBoxSourceList();

            //if (EntityInfo.OidPromocion != 0)
            //{
            //_practicas = ClasePracticaList.GetList();
            //_combo_practicas = new moleQule.Library.Instruction.HComboBoxSourceList(_practicas);
            //}
            PgMng.Grow();

            //Datos_Practicas.DataSource = _combo_practicas;
            PgMng.Grow();
        }
        public override void RefreshSecondaryData()
        {
            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;

            _planes = PlanEstudiosList.GetList(false);
            moleQule.Library.Instruction.HComboBoxSourceList combo_planes = new moleQule.Library.Instruction.HComboBoxSourceList(_planes);
            Datos_Planes.DataSource = combo_planes;
            PgMng.Grow();

            _planes_extra = PlanExtraList.GetList(false);
            moleQule.Library.Instruction.HComboBoxSourceList combo_planes_extra = new moleQule.Library.Instruction.HComboBoxSourceList(_planes_extra);
            Datos_Extra.DataSource = combo_planes_extra;

            PgMng.Grow();
        }
Пример #3
0
 private bool EstaHora(SesionInfo item, HComboBoxSourceList lista)
 {
     foreach (ComboBoxSource combo in lista)
     {
         if (combo.Texto == item.Hora.ToShortTimeString())
         {
             return(true);
         }
     }
     return(false);
 }
Пример #4
0
 private bool EstaFecha(SesionInfo item, HComboBoxSourceList lista)
 {
     foreach (ComboBoxSource combo in lista)
     {
         if (combo.Texto == item.Fecha.ToShortDateString() && combo.OidAjeno == item.OidHorario)
         {
             return(true);
         }
     }
     return(false);
 }
Пример #5
0
        public static HComboBoxSourceList GetComboClases(ClaseTeoricaList teoricas,
                                                         ClasePracticaList practicas,
                                                         ClaseExtraList extras)
        {
            HComboBoxSourceList lista_combo = new HComboBoxSourceList();

            //lista_combo.Add(new ComboBoxSource());
            lista_combo.Add(new ComboBoxSource(-1, "LIBRE"));
            lista_combo.Add(new ComboBoxSource(-2, "NO ASIGNADA"));

            if (teoricas != null && practicas != null && extras != null)
            {
                foreach (ClaseTeoricaInfo item in teoricas)
                {
                    ComboBoxSource combo = new ComboBoxSource();
                    combo.Oid      = item.Oid;
                    combo.OidAjeno = item.OidSubmodulo;
                    combo.Tipo     = item.Tipo;
                    combo.Texto    = "T " + item.Alias;

                    lista_combo.Add(combo);
                }


                foreach (ClaseExtraInfo item in extras)
                {
                    ComboBoxSource combo = new ComboBoxSource();
                    combo.Oid      = item.Oid;
                    combo.OidAjeno = item.OidSubmodulo;
                    combo.Tipo     = 2;
                    combo.Texto    = "E " + item.Alias;

                    lista_combo.Add(combo);
                }

                foreach (ClasePracticaInfo item in practicas)
                {
                    ComboBoxSource combo = new ComboBoxSource();
                    combo.Oid      = item.Oid;
                    combo.OidAjeno = item.OidSubmodulo;
                    combo.Tipo     = item.Tipo;
                    combo.Texto    = "P " + item.Alias + " G" + item.Grupo;

                    lista_combo.Add(combo);
                }
            }


            return(lista_combo);
        }