private void ConstruiesteRanduriDGV() { this.dgvLista.IncepeContructieRanduri(); Dictionary <int, double> listaClientiDatornici = BClienti.GetListaDatornici(null); List <int> listaIdClinici = IHMUtile.GetListaKey(listaClientiDatornici); BColectieClienti listaClinici = BClienti.getByListaId(listaIdClinici, null); BColectieClientiComenzi listaUltimelorLucrari = BClientiComenzi.GetUltimeleLucrariPerClinica(listaIdClinici, null); BColectieClientiFacturi listaUltimelorFacturi = BClientiFacturi.GetUltimeleFacturiPerClinica(listaIdClinici, null); Dictionary <int, int> dictIdClinicaNrLucrariNefacturate = BClientiComenzi.GetDictIdClinicaNrLucrariNefacturate(listaIdClinici, null); BClienti clinicaTemp = null; foreach (var elem in listaClientiDatornici) { clinicaTemp = listaClinici.GetById(elem.Key); incarcaRand(this.dgvLista.AdaugaRandNou(), elem.Value, elem.Key, clinicaTemp, listaUltimelorLucrari.GetUltimaByIdClient(elem.Key), listaUltimelorFacturi.GetUltimaByIdClient(elem.Key), dictIdClinicaNrLucrariNefacturate.ContainsKey(elem.Key)? dictIdClinicaNrLucrariNefacturate[elem.Key]: 0); } this.dgvLista.FinalizeazaContructieRanduri(); this.lblTotal.Text = string.Format("{0}: {1}", BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ClientiDatornici), this.dgvLista.RowCount.ToString()); }
private void initRezumatClinici(List <int> pListaIdClinici, Dictionary <int, int> pDictCliniciNrElem) { BColectieClienti listaClinici = BClienti.getByListaId(pListaIdClinici, null); Dictionary <int, string> dictIdDenumire = listaClinici.GetAsDictIdDenumire(); this.ctrlRezumatClinici.Initializeaza(dictIdDenumire, pDictCliniciNrElem, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Clinici), true); }