protected override void RefreshMainData()
        {
            PgMng.Grow(string.Empty, "FacturaMngForm::RefreshMainData INI");

            _selectedOid = ActiveOID;

            switch (DataType)
            {
            case EntityMngFormTypeData.Default:
                switch (_tipo)
                {
                case ETipoFacturas.Todas:
                    if (Library.Common.ModulePrincipal.GetUseActiveYear())
                    {
                        List = OutputInvoiceList.GetList(Library.Common.ModulePrincipal.GetActiveYear().Year, false);
                    }
                    else
                    {
                        List = OutputInvoiceList.GetList(false);
                    }
                    break;

                case ETipoFacturas.Cobradas:
                    if (Library.Common.ModulePrincipal.GetUseActiveYear())
                    {
                        List = OutputInvoiceList.GetCobradasList(Library.Common.ModulePrincipal.GetActiveYear().Year, false);
                    }
                    else
                    {
                        List = OutputInvoiceList.GetCobradasList(false);
                    }
                    break;

                case ETipoFacturas.Pendientes:
                    if (Library.Common.ModulePrincipal.GetUseActiveYear())
                    {
                        List = OutputInvoiceList.GetNoCobradasList(Library.Common.ModulePrincipal.GetActiveYear().Year, false);
                    }
                    else
                    {
                        List = OutputInvoiceList.GetNoCobradasList(false);
                    }
                    break;
                }
                break;

            case EntityMngFormTypeData.ByParameter:
                _sorted_list = List.GetSortedList();
                break;
            }

            PgMng.Grow(string.Empty, "FacturaMngForm::RefreshMainData END");
        }