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() { Datos_TipoID.DataSource = Library.Common.EnumText <ETipoID> .GetList(); PgMng.Grow(); Datos_Cargos.DataSource = CargoList.GetList(false); PgMng.Grow(); Datos_Municipios_Contactos.DataSource = MunicipioList.GetList(false); PgMng.Grow(); }
public override void RefreshSecondaryData() { MunicipioList municipios = MunicipioList.GetList(false); Datos_Municipios.DataSource = municipios; Municipio_CB.Text = EntityInfo.Municipio; Datos_Municipios_Contactos.DataSource = municipios; Bar.Grow(); Datos_Cargos.DataSource = CargoList.GetList(false); Bar.Grow(); }
public override void UpdateList() { switch (_current_action) { case molAction.Add: case molAction.Copy: if (_entity == null) { return; } List.AddItem(_entity.GetInfo()); if (FilterType == IFilterType.Filter) { MunicipioList listA = MunicipioList.GetList(_filter_results); listA.AddItem(_entity.GetInfo()); _filter_results = listA.GetSortedList(); } break; case molAction.Edit: case molAction.Lock: case molAction.Unlock: if (_entity == null) { return; } ActiveItem.CopyFrom(_entity); break; case molAction.Delete: if (ActiveItem == null) { return; } List.RemoveItem(ActiveOID); if (FilterType == IFilterType.Filter) { MunicipioList listD = MunicipioList.GetList(_filter_results); listD.RemoveItem(ActiveOID); _filter_results = listD.GetSortedList(); } break; } RefreshSources(); if (_entity != null) { Select(_entity.Oid); } _entity = null; }
public override void RefreshSecondaryData() { Datos_FormaPago.DataSource = Library.Common.EnumText <Library.Common.EFormaPago> .GetList(); PgMng.Grow(); Datos_MedioPago.DataSource = Library.Common.EnumText <Library.Common.EMedioPago> .GetList(); PgMng.Grow(); _municipios = MunicipioList.GetList(false); Library.Common.HComboBoxSourceList combo_municipios = new Library.Common.HComboBoxSourceList(MunicipioList.GetList(false)); //Datos_Municipios_F.DataSource = MunicipioList.SortList(municipios, "Valor", ListSortDirection.Ascending); ; Datos_Municipios_F.DataSource = combo_municipios; //MunicipioP_CB.Text = EntityInfo.Municipio; PgMng.Grow(string.Empty, "Municipios"); }
protected override void RefreshMainData() { PgMng.Grow(string.Empty, "Municipio"); long oid = ActiveOID; switch (DataType) { case EntityMngFormTypeData.Default: List = MunicipioList.GetList(false); break; case EntityMngFormTypeData.ByParameter: _sorted_list = List.GetSortedList(); break; } PgMng.Grow(string.Empty, "Lista de Municipios"); }