Ejemplo n.º 1
0
        private void incarcaRand(DataGridViewRow pRand, BClienti pElem, BClientiComenzi pUltimaLucrare)
        {
            pRand.Tag = pElem;

            DataGridViewPersonalizat.InitCelulaEditare(pRand, this.lEcranInModificare);
            pRand.Cells[EnumColoaneDGV.colDenumire.ToString()].Value        = pElem.Denumire;
            pRand.Cells[EnumColoaneDGV.colDenumireFiscala.ToString()].Value = pElem.DenumireFiscala;
            pRand.Cells[EnumColoaneDGV.colCUI.ToString()].Value             = pElem.CUI;
            DataGridViewPersonalizat.InitCeluleTelefonEmail(pRand, pElem.TelefonMobil, pElem.AdresaMail);
            pRand.Cells[EnumColoaneDGV.colTelefonFix.ToString()].Value = pElem.TelefonFix;
            pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pElem.ObservatiiDateClinica;

            IHMUtile.IncarcaRandUltimaLucrare(pRand, pUltimaLucrare, EnumColoaneDGV.colDenumire.ToString());

            DataGridViewPersonalizat.InitCelulaStergere(pRand);
        }
        private void incarcaRand(DataGridViewRow pRand, double pSold, int pId, BClienti pClinica, BClientiComenzi pUltimaLucrare, BClientiFacturi pUltimaFactura, int pNrLucrariNefacturate)
        {
            pRand.Tag = pClinica;
            pRand.Cells[EnumColoaneDGV.colClient.ToString()].Value = pClinica.Denumire;
            DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDeschideDosar.ToString());

            DataGridViewPersonalizat.InitCeluleTelefonEmail(pRand, pClinica.TelefonMobil, pClinica.AdresaMail);

            pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pClinica.ObservatiiDateClinica;

            DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colSold.ToString(), pSold);
            IHMUtile.IncarcaRandUltimaLucrare(pRand, pUltimaLucrare);
            IHMUtile.IncarcaRandUltimaFactura(pRand, pUltimaFactura);
            DataGridViewPersonalizat.InitCelulaValoareNumerica(pRand, EnumColoaneDGV.colTotalLucrariNefact.ToString(), pNrLucrariNefacturate);
            DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colSold.ToString());
        }