public static bool Afiseaza(Form pEcranPariente, BClienti pClient, BColectieClientiComenzi pComenzi, BColectieClientiFacturi pFacturi, BClientiPlati pPlata) { using (FormCreeazaIncasareClient ecran = new FormCreeazaIncasareClient(pClient, pComenzi, pFacturi, pPlata)) { ecran.AplicaPreferinteleUtilizatorului(); return(CCL.UI.IHMUtile.DeschideEcran(pEcranPariente, ecran)); } }
private void DgvLista_EditareLinie(DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); BClientiPlati plata = this.dgvLista.Rows[pIndexRand].Tag as BClientiPlati; if (plata != null) { BColectieClientiPlatiComenzi listaPlati = BClientiPlatiComenzi.GetByIdPlata(plata.Id, null); if (!CUtil.EsteListaVida <BClientiPlatiComenzi>(listaPlati)) { BColectieClientiComenzi listaLucrari = BClientiComenzi.getByListaId(listaPlati.GetListaIdComenzi(), null); BColectieClientiFacturi listaFacturi = BClientiFacturi.GetByListId(listaLucrari.GetListaIdFacturi(), null); BClienti client = plata.GetClient(null); if (FormCreeazaIncasareClient.Afiseaza(this.GetFormParinte(), client, listaLucrari, listaFacturi, plata)) { incarcaRand(this.dgvLista.Rows[pIndexRand], plata); } } } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }