Пример #1
0
        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 = FacREAList.GetSortedList(_facturas_todas.GetSubList(criteria), "NExpediente", ListSortDirection.Ascending);
            }
            else
            {
                _facturas = FacREAList.GetSortedList(_facturas_todas, "NExpediente", ListSortDirection.Ascending);
            }

            Datos_Facturas.DataSource = _facturas;
            SetUnlinkedGridValues(Facturas_DGW.Name);
            SetGridColors(Facturas_DGW);
        }
Пример #2
0
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;
            PgMng.Grow();

            _facturas_todas           = FacREAList.GetNoCobradas();
            _facturas                 = FacREAList.GetSortedList(_facturas_todas, "NExpediente", ListSortDirection.Ascending);
            Datos_Facturas.DataSource = _facturas;
            SetGridColors(Facturas_DGW);
            PgMng.Grow();

            base.RefreshMainData();
        }
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;
            PgMng.Grow();

            _facturas_todas           = FacREAList.GetListByCobroAndPendientes(_entity.Oid);
            _facturas                 = FacREAList.GetSortedList(_facturas_todas, "NExpediente", ListSortDirection.Ascending);
            Datos_Facturas.DataSource = _facturas;

            PgMng.Grow();

            UpdateAsignado();

            base.RefreshMainData();
        }