示例#1
0
 private void Facturas_DGW_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (_facturas != null)
     {
         _facturas_todas = LineaFomentoList.GetList(_facturas);
         _facturas_todas.UpdateCobroValues(EntityInfo);
         SetGridColors(Facturas_DGW);
     }
 }
示例#2
0
 protected override void SetUnlinkedGridValues(string grid_name)
 {
     if (_facturas != null)
     {
         LineaFomentoList list = LineaFomentoList.GetList(_facturas);
         list.UpdateCobroValues(EntityInfo);
     }
     UpdateAsignado();
 }
示例#3
0
        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;
        }
示例#4
0
        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);
        }
示例#5
0
        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");
        }
示例#6
0
 public override void RefreshSecondaryData()
 {
     _facturas_cliente = LineaFomentoList.GetList(false);
     PgMng.Grow(string.Empty, "Líneas de Fomento");
 }