private void ConstruiesteRanduriDGV()
        {
            this.dgvLista.IncepeContructieRanduri();

            BColectieClientiFacturi listaFacturi = BClientiFacturi.GetListByClientSiPerioada(this.ctrlCautareDupaTextClinica.IdObiectAfisajCorespunzator, this.ctrlPerioada.DataInceput, this.ctrlPerioada.DataSfarsit, CDefinitiiComune.EnumStare.Activa, null);

            BColectieClientiComenzi listaLucrari = BClientiComenzi.GetByListaIdFacturi(listaFacturi.GetListaId(), null);

            BColectieClientiPlatiComenzi listaPlatiComenzi = BClientiPlatiComenzi.GetByListIdComenzi(listaLucrari.GetListaId(), null);

            BColectieClientiComenzi      listaLucrariPeFact      = new BColectieClientiComenzi();
            BColectieClientiPlatiComenzi listaPlatiComenziPeFact = new BColectieClientiPlatiComenzi();

            foreach (var fact in listaFacturi)
            {
                if (fact.EsteActiv)
                {
                    listaLucrariPeFact      = listaLucrari.GetByIdFactura(fact.Id);
                    listaPlatiComenziPeFact = listaPlatiComenzi.GetByIdComenzi(listaLucrariPeFact.GetListaId());

                    incarcaRand(this.dgvLista.Rows[this.dgvLista.Rows.Add()], fact, listaLucrariPeFact, listaPlatiComenziPeFact);
                }
            }

            filtreazaDupaText();

            this.dgvLista.FinalizeazaContructieRanduri();
        }
        private void ConstruiesteRanduriDGV()
        {
            this.dgvFacturi.IncepeContructieRanduri();

            BColectieClientiFacturi listaFacturi = BClientiFacturi.GetListByClient(this.lClient.Id, CDL.iStomaLab.CDefinitiiComune.EnumStare.Toate, null);

            BColectieClientiComenzi      listaLucrari      = BClientiComenzi.GetByListaIdFacturi(listaFacturi.GetListaId(), null);
            BColectieClientiPlatiComenzi listaPlatiComenzi = BClientiPlatiComenzi.GetByListIdComenzi(listaLucrari.GetListaId(), null);

            BColectieClientiComenzi      listaLucrariPeFact      = new BColectieClientiComenzi();
            BColectieClientiPlatiComenzi listaPlatiComenziPeFact = new BColectieClientiPlatiComenzi();

            //Incarcam lista
            foreach (var fact in listaFacturi)
            {
                if (fact.EsteActiv)
                {
                    listaLucrariPeFact      = listaLucrari.GetByIdFactura(fact.Id);
                    listaPlatiComenziPeFact = listaPlatiComenzi.GetByIdComenzi(listaLucrariPeFact.GetListaId());
                    incarcaRand(this.dgvFacturi.Rows[this.dgvFacturi.Rows.Add()], fact, listaLucrariPeFact, listaPlatiComenziPeFact);
                }
            }

            this.dgvFacturi.FinalizeazaContructieRanduri();

            setTotalFacturi();
            //this.lblTotalFacturi.Text = string.Format("{0}: {1}", BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Facturi), this.dgvFacturi.RowCount.ToString());
        }