public override void PrintList()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            CobroREAListRpt report = reportMng.GetCobroREAListReport(ChargeList.GetList((IList <ChargeInfo>)Datos.List), null);

            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)
                {
                    ChargeList listA = ChargeList.GetList(_filter_results);
                    listA.AddItem(_entity.GetInfo(false));
                    _filter_results = listA.GetSortedList();
                }
                break;

            case molAction.Edit:
            case molAction.Lock:
            case molAction.Unlock:
            case molAction.ChangeStateAnulado:
            case molAction.ChangeStateContabilizado:
                if (_entity == null)
                {
                    return;
                }
                ActiveItem.CopyFrom(_entity);
                break;

            case molAction.Delete:
                if (ActiveItem == null)
                {
                    return;
                }
                List.RemoveItem(ActiveOID);
                if (FilterType == IFilterType.Filter)
                {
                    ChargeList listD = ChargeList.GetList(_filter_results);
                    listD.RemoveItem(ActiveOID);
                    _filter_results = listD.GetSortedList();
                }
                break;
            }

            RefreshSources();
            if (_entity != null)
            {
                Select(_entity.Oid);
            }
            _entity = null;
        }
Beispiel #3
0
        public override void PrintQRAction()
        {
            PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this);
            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            reportMng.ShowQRCode = true;

            PgMng.Grow();
            CobroFacturaList cfacturas = CobroFacturaList.GetList(false);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            ChargeListRpt report = reportMng.GetListReport(ChargeList.GetList((IList <ChargeInfo>)Datos.List), cfacturas);

            PgMng.FillUp();

            ShowReport(report);
        }
Beispiel #4
0
        protected override void RefreshMainData()
        {
            PgMng.Grow(string.Empty, "Cobro");

            _selectedOid = ActiveOID;

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

                case ETipoCobro.Cliente:
                    if (Library.Common.ModulePrincipal.GetUseActiveYear())
                    {
                        List = ChargeList.GetListClientes(Library.Common.ModulePrincipal.GetActiveYear().Year, false);
                    }
                    else
                    {
                        List = ChargeList.GetListClientes(false);
                    }
                    break;
                }
                break;

            case EntityMngFormTypeData.ByParameter:
                _sorted_list = List.GetSortedList();
                break;
            }
            PgMng.Grow(string.Empty, "Lista de Cobros");
        }