public static BColectieClientiComenzi Afiseaza(Form pEcranPariente, BClienti pClient, BColectieClientiComenzi pListaComenziDeExclus)
        {
            BColectieClientiComenzi listaLucrariDeAfisat = pClient.GetListaLucrariNefacturate(null);

            listaLucrariDeAfisat = listaLucrariDeAfisat.Exclude(pListaComenziDeExclus);

            if (CUtil.EsteListaVida <BClientiComenzi>(listaLucrariDeAfisat))
            {
                Mesaj.Afiseaza(pEcranPariente, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NuExistaLucrariDeLaAceastaClinica));

                return(null);
            }
            else
            {
                using (FormSelectieLucrariNefacturate ecran = new FormSelectieLucrariNefacturate(pClient, listaLucrariDeAfisat))
                {
                    ecran.AplicaPreferinteleUtilizatorului();
                    CCL.UI.IHMUtile.DeschideEcran(pEcranPariente, ecran);

                    return(ecran.lListaSelectate);
                }
            }
        }
        private void DgvLista_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (this.lSeIncarca || e.RowIndex < 0)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                string denumireColoanaSelectata = this.dgvLista.Columns[e.ColumnIndex].Name;

                if (this.dgvLista.SelectedRow != null)
                {
                    BClienti client = this.dgvLista.SelectedRow.Tag as BClienti;

                    if (client != null)
                    {
                        if (denumireColoanaSelectata.Equals(EnumColoaneDGV.colDeschideDosar.ToString()))
                        {
                            if (TablouDeBord.Clienti.FormDosarClient.Afiseaza(this.GetFormParinte(), client))
                            {
                                incarcaRand(this.dgvLista.SelectedRow, client.GetSold(null), client.Id, client, client.GetUltimaLucrare(null), client.GetUltimaFactura(null), client.GetListaLucrariNefacturate(null).Count());
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }