private void incarcaRand(DataGridViewRow pRand, BCategorii pElem)
        {
            pRand.Tag = pElem;

            DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, true);
            pRand.Cells[1].Value = pElem.Denumire;
        }
        private void incarcaRand(DataGridViewRow pRand, BClientiComenzi pElem)
        {
            pRand.Tag = pElem;

            DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, true);
            DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetaliiLucrariEtape.ToString());
            pRand.Cells[EnumColoaneDGV.colDataPrimire.ToString()].Value   = pElem.DataPrimire;
            pRand.Cells[EnumColoaneDGV.colMedic.ToString()].Value         = pElem.GetIdentitateMedic();
            pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].Value       = pElem.GetDenumirePrescurtata();
            pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].ToolTipText = pElem.DenumireLucrare;
            pRand.Cells[EnumColoaneDGV.colNrElemente.ToString()].Value    = pElem.NrElemente.ToString();
            pRand.Cells[EnumColoaneDGV.colPretUnitar.ToString()].Value    = CUtil.GetValoareMonetara(pElem.GetPretUnitar(), pElem.Moneda);
            pRand.Cells[EnumColoaneDGV.colTotal.ToString()].Value         = CUtil.GetValoareMonetara(pElem.ValoareFinala, pElem.Moneda);
            if (pElem.DataLaGata != CConstante.DataNula)
            {
                pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = pElem.DataLaGata;
            }
            else
            {
                pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = string.Empty;
            }
            if (pElem.IdTehnician != 0)
            {
                pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = pElem.GetIdentitateTehnician();
            }
            else
            {
                pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = string.Empty;
            }
            pRand.Cells[EnumColoaneDGV.colNumePacient.ToString()].Value = pElem.GetNumePrenumePacient();
            pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value  = pElem.Observatii;
        }
Beispiel #3
0
        private void incarcaRand(DataGridViewRow pRand, BEtape pElem)
        {
            pRand.Tag = pElem;

            DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, this.lEcranInModificare);
            pRand.Cells[EnumColoaneDGV.colDenumire.ToString()].Value     = pElem.Denumire;
            pRand.Cells[EnumColoaneDGV.colDurataMinute.ToString()].Value = pElem.DurataMedieMinute;
        }
Beispiel #4
0
        private void incarcaRand(DataGridViewRow pRand, BListaPreturiStandard pElem)
        {
            pRand.Tag = pElem;

            DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, this.lEcranInModificare);
            pRand.Cells[EnumColoaneDGV.colDenumire.ToString()].Value = pElem.Denumire;
            pRand.Cells[EnumColoaneDGV.colPret.ToString()].Value     = pElem.GetValoare();
            pRand.Cells[EnumColoaneDGV.colMoneda.ToString()].Value   = pElem.GetEtichetaMoneda();
        }
Beispiel #5
0
        private void incarcaRand(DataGridViewRow pRand, BClientiPacienti pElem)
        {
            pRand.Tag = pElem;
            string denumire = String.Concat(pElem.Nume, " ", pElem.Prenume);

            DataGridViewPersonalizat.InitCelulaEditare(pRand, this.lEcranInModificare);
            DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, true);
            pRand.Cells[2].Value = denumire;
            pRand.Cells[3].Value = pElem.DataCreare;
            pRand.Cells[4].Value = pElem.TelefonMobil;
            pRand.Cells[5].Value = pElem.AdresaMail;
            DataGridViewPersonalizat.InitCelulaStergere(pRand);
        }
        private void incarcaRand(DataGridViewRow pRand, BListaPreturiStandard pElem, BListaPreturiClienti pPretClient)
        {
            pRand.Tag = new Tuple <BListaPreturiStandard, BListaPreturiClienti>(pElem, pPretClient);

            DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, this.lEcranInModificare);
            pRand.Cells[EnumColoaneDGV.colDenumire.ToString()].Value = pElem.Denumire;
            pRand.Cells[EnumColoaneDGV.colPret.ToString()].Value     = pElem.ValoareRON == 0 ? pElem.ValoareEUR : pElem.ValoareRON;
            if (pPretClient != null)
            {
                pRand.Cells[EnumColoaneDGV.colPret.ToString()].Value = pPretClient.GetValoareClient();
            }
            else
            {
                pRand.Cells[EnumColoaneDGV.colPret.ToString()].Value = pElem.ValoareRON == 0 ? pElem.ValoareEUR : pElem.ValoareRON;
            }
            pRand.Cells[EnumColoaneDGV.colMoneda.ToString()].Value = pElem.ValoareRON == 0 ? CUtil.getText(1265) : CUtil.getText(1264);
        }
Beispiel #7
0
 private void incarcaRand(DataGridViewRow pRand, BUtilizator pElem)
 {
     pRand.Tag = pElem;
     DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, true);
     pRand.Cells[1].Value = pElem.GetNumeCompletUtilizator();
 }