protected override void RefreshMainData() { PgMng.Grow(string.Empty, "Partida"); _selectedOid = ActiveOID; switch (DataType) { case EntityMngFormTypeData.Default: if (moleQule.Common.ModulePrincipal.GetUseActiveYear()) { List = BatchList.GetList(moleQule.Common.ModulePrincipal.GetActiveYear().Year, false); } else { List = BatchList.GetList(false); } break; case EntityMngFormTypeData.ByParameter: _sorted_list = List.GetSortedList(); break; } PgMng.Grow(string.Empty, "Lista de Partidas"); }
public override void PrintList() { PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this); ExpedientReportMng reportMng = new ExpedientReportMng(AppContext.ActiveSchema, this.Text, FilterValues); PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT); PartidaListRpt report = reportMng.GetPartidaListReport(BatchList.GetList(Datos.DataSource as IList <BatchInfo>)); PgMng.FillUp(); ShowReport(report); }
public override void UpdateList() { switch (_current_action) { case molAction.Add: if (_entity == null) { return; } List.AddItem(_entity.GetInfo(false)); if (FilterType == IFilterType.Filter) { BatchList listA = BatchList.GetList(_filter_results); listA.AddItem(_entity.GetInfo(false)); _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) { BatchList listD = BatchList.GetList(_filter_results); listD.RemoveItem(ActiveOID); _filter_results = listD.GetSortedList(); } break; } RefreshSources(); if (_entity != null) { Select(_entity.Oid); } _entity = null; }
protected override void NewREAAction() { BatchList lista = BatchList.GetList(_entity.Partidas); BatchSelectForm form = new BatchSelectForm(this, lista); if (form.ShowDialog(this) == DialogResult.OK) { BatchInfo partida = form.Selected as BatchInfo; try { _entity.ExpedientesREA.NewItem(_entity, partida); } catch (iQException ex) { PgMng.ShowInfoException(ex); } } }