private void TipoExpediente_CB_SelectedIndexChanged(object sender, EventArgs e) { if (TipoExpediente_CB.SelectedItem == null) { return; } if (_facturas_todas == null) { return; } ETipoExpediente tipo = (ETipoExpediente)((long)TipoExpediente_CB.SelectedValue); if (tipo != ETipoExpediente.Todos) { FCriteria criteria = new FCriteria <long>("TipoExpediente", (long)TipoExpediente_CB.SelectedValue); _facturas = LineaFomentoList.GetSortedList(_facturas_todas.GetSubList(criteria), "NExpediente", ListSortDirection.Ascending); } else { _facturas = LineaFomentoList.GetSortedList(_facturas_todas, "NExpediente", ListSortDirection.Ascending); } Datos_Facturas.DataSource = _facturas; SetUnlinkedGridValues(Facturas_DGW.Name); SetGridColors(Facturas_DGW); }
protected override void UpdateFacturasCobro() { if (Datos_Cobros.Current == null) { Datos_LineasCobro.DataSource = null; return; } ChargeInfo cobro = (ChargeInfo)Datos_Cobros.Current; List <LineaFomentoInfo> lista = new List <LineaFomentoInfo>(); foreach (CobroREAInfo cf in cobro.CobroREAs) { LineaFomentoInfo info = _facturas_cliente.GetItem(cf.OidExpedienteREA); if (info != null) { lista.Add(info); } } Datos_LineasCobro.DataSource = LineaFomentoList.GetChildList(lista); SetUnlinkedGridValues(LineasFomento_DGW.Name); }
private void Facturas_DGW_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (_facturas != null) { _facturas_todas = LineaFomentoList.GetList(_facturas); _facturas_todas.UpdateCobroValues(EntityInfo); SetGridColors(Facturas_DGW); } }
protected override void SetUnlinkedGridValues(string grid_name) { if (_facturas != null) { LineaFomentoList list = LineaFomentoList.GetList(_facturas); list.UpdateCobroValues(EntityInfo); } UpdateAsignado(); }
public LineaFomentoSelectForm(Form parent, LineaFomentoList list) : base(true, parent, list) { InitializeComponent(); SetView(molView.Select); DialogResult = DialogResult.Cancel; }
public LineaFomentoMngForm(bool is_modal, Form parent, LineaFomentoList list) : base(is_modal, parent, list) { InitializeComponent(); SetView(molView.Normal); // Parche para poder abrir el formulario en modo diseño y no perder la configuracion de columnas DatosLocal_BS = Datos; Tabla.DataSource = DatosLocal_BS; SetMainDataGridView(Tabla); Datos.DataSource = LineaFomentoList.NewList().GetSortedList(); SortProperty = FechaConocimiento.DataPropertyName; }
protected override void RefreshMainData() { Datos.DataSource = _entity; PgMng.Grow(); _facturas_todas = LineaFomentoList.GetPendientesList(DateTime.MaxValue, false); _facturas = LineaFomentoList.GetSortedList(_facturas_todas, "NExpediente", ListSortDirection.Ascending); Datos_Facturas.DataSource = _facturas; SetGridColors(Facturas_DGW); SetComboYears(); PgMng.Grow(); base.RefreshMainData(); }
public override void UpdateList() { switch (_current_action) { case molAction.Add: if (_entity == null) { return; } List.AddItem(_entity.GetInfo(false)); if (FilterType == IFilterType.Filter) { LineaFomentoList listA = LineaFomentoList.GetList(_filter_results); listA.AddItem(_entity.GetInfo(false)); _filter_results = listA.GetSortedList(); } break; case molAction.Edit: 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) { LineaFomentoList listD = LineaFomentoList.GetList(_filter_results); listD.RemoveItem(ActiveOID); _filter_results = listD.GetSortedList(); } break; } RefreshSources(); if (_entity != null) { Select(_entity.Oid); } _entity = null; }
protected void ApportionAction() { LineaFomentoList lines = LineaFomentoList.GetList((IList <LineaFomentoInfo>)Datos_Facturas.DataSource); decimal total_solicitado = lines.TotalSubvencionSolicitada(); foreach (DataGridViewRow row in Facturas_DGW.Rows) { ApportionAction(row, total_solicitado); } Datos_Facturas.ResetBindings(false); SetGridColors(Facturas_DGW); }
protected override void RefreshMainData() { Datos.DataSource = _entity; PgMng.Grow(); _facturas_todas = LineaFomentoList.GetByCobroList(_entity.Oid); _facturas = _facturas_todas.GetSortedList(); Datos_Facturas.DataSource = _facturas; SetComboYears(); PgMng.Grow(); UpdateAsignado(); base.RefreshMainData(); }
protected override void RefreshMainData() { Datos.DataSource = _entity; PgMng.Grow(); _facturas_todas = LineaFomentoList.GetByCobroAndPendientesList(_entity.Oid); //_facturas = LineaFomentoList.GetSortedList(_facturas_todas, "NExpediente", ListSortDirection.Ascending); _facturas = _facturas_todas.GetSortedList(); Datos_Facturas.DataSource = _facturas; SetComboYears(); PgMng.Grow(); UpdateAsignado(); base.RefreshMainData(); }
protected override void RefreshMainData() { PgMng.Grow(string.Empty, "LineaFomento"); long oid = ActiveOID; switch (DataType) { case EntityMngFormTypeData.Default: List = LineaFomentoList.GetList(false); break; case EntityMngFormTypeData.ByParameter: _sorted_list = List.GetSortedList(); break; } PgMng.Grow(string.Empty, "Lista de LineaFomentos"); }
public override void RefreshSecondaryData() { _facturas_cliente = LineaFomentoList.GetList(false); PgMng.Grow(string.Empty, "Líneas de Fomento"); }
protected override void UpdateFacturasPendientes() { Datos_LineasPendientes.DataSource = LineaFomentoList.GetPendientesList(DateTime.Today, false); SetUnlinkedGridValues(Pendientes_DGW.Name); }