private void incarcaRand(DataGridViewRow pRand, BClientiFacturi pElem, BColectieClientiComenzi pListaComenzi, BColectieClientiPlatiComenzi pListaPlatiCurente) { pRand.Tag = pElem; double valoare = pElem.GetValoare(pListaComenzi, this.ctrlLeiEuro.Moneda, this.txtCursSchimb.ValoareDouble); double platit = pListaPlatiCurente.GetByIdComenzi(pListaComenzi.GetListaId()).GetValoarePlatita(); double restDePlata = valoare - platit; if (pElem.DataFactura != CConstante.DataNula) { pRand.Cells[EnumColoaneDGV.colData.ToString()].Value = pElem.DataFactura; } else { pRand.Cells[EnumColoaneDGV.colData.ToString()].Value = string.Empty; } pRand.Cells[EnumColoaneDGV.colFactura.ToString()].Value = pElem.ToStringImprimare(); pRand.Cells[EnumColoaneDGV.colValoare.ToString()].Value = CUtil.GetValoareMonetara(valoare); pRand.Cells[EnumColoaneDGV.colPlatit.ToString()].Value = CUtil.GetValoareMonetara(platit); pRand.Cells[EnumColoaneDGV.colRestDePlata.ToString()].Value = CUtil.GetValoareMonetara(restDePlata); pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pElem.Observatii; DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetaliiFactura.ToString()); this.lSold += restDePlata; this.lTotal += valoare; }
private void incarcaRand(DataGridViewRow pRand, BClientiComenzi pElem) { pRand.Tag = pElem; DataGridViewPersonalizat.InitCelulaEditare(pRand, this.lEcranInModificare); DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colTotalEtape.ToString()); pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].Value = pElem.DenumireLucrare; pRand.Cells[EnumColoaneDGV.colNrElemente.ToString()].Value = pElem.NrElemente.ToString(); if (pElem.IdReprezentantClient != 0) { pRand.Cells[EnumColoaneDGV.colNumeMedic.ToString()].Value = pElem.GetIdentitateMedic(); } pRand.Cells[EnumColoaneDGV.colNumePacient.ToString()].Value = pElem.NumePacient; pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = pElem.GetIdentitateTehnician(); if (CUtil.isNotNull(pElem.DataPrimire)) { pRand.Cells[EnumColoaneDGV.colDataPrimire.ToString()].Value = pElem.DataPrimire; } if (CUtil.isNotNull(pElem.DataLaGata)) { pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = pElem.DataLaGata; } if (pElem.IdEtapaSetari != 0) { pRand.Cells[EnumColoaneDGV.colEtapaCurenta.ToString()].Value = BEtape.GetEtapaById(pElem.IdEtapaSetari, EnumStare.Activa, null).Denumire; } pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pElem.Observatii; DataGridViewPersonalizat.InitCelulaStergere(pRand); }
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; }
private void incarcaRand(DataGridViewRow pRand, BClientiComenzi pElem) { pRand.Tag = pElem; if (pElem.DataPrimire != CConstante.DataNula) { pRand.Cells[EnumColoaneDGV.colData.ToString()].Value = pElem.DataPrimire; } else { pRand.Cells[EnumColoaneDGV.colData.ToString()].Value = string.Empty; } pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].Value = pElem.DenumireLucrare; pRand.Cells[EnumColoaneDGV.colNrElemente.ToString()].Value = pElem.NrElemente; pRand.Cells[EnumColoaneDGV.colPretUnitar.ToString()].Value = CUtil.GetValoareMonetara(pElem.GetPretUnitar(), pElem.Moneda); pRand.Cells[EnumColoaneDGV.colTotal.ToString()].Value = CUtil.GetValoareMonetara(pElem.ValoareFinala, pElem.Moneda); pRand.Cells[EnumColoaneDGV.colFacturat.ToString()].Value = CUtil.GetValoareMonetara(pElem.GetValoareMoneda(this.ctrlMoneda.Moneda, this.txtCursSchimb.ValoareDouble), this.ctrlMoneda.Moneda); pRand.Cells[EnumColoaneDGV.colPacient.ToString()].Value = pElem.GetNumePrenumePacient(); if (pElem.EstePretulModificat()) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colTotal.ToString()); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colTotal.ToString()); } DataGridViewPersonalizat.InitCelulaStergere(pRand); DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetaliiLucrare.ToString()); }
private void incarcaRand(DataGridViewRow pRand, BClientiComenziEtape pElem) { pRand.Tag = pElem; pRand.Cells[EnumColoaneDGV.colDataCreare.ToString()].Value = pElem.DataCreareLucrare; pRand.Cells[EnumColoaneDGV.colDataPrimire.ToString()].Value = pElem.DataPrimireLucrare; pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = pElem.DataLaGataLucrare; pRand.Cells[EnumColoaneDGV.colDataTermen.ToString()].Value = pElem.DataFinal; pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = pElem.GetIdentitateTehnician(); pRand.Cells[EnumColoaneDGV.colEtapa.ToString()].Value = pElem.DenumireEtapa; pRand.Cells[EnumColoaneDGV.colStatus.ToString()].Value = BClientiComenziEtape.StructStareEtapa.GetStructById(pElem.Status).Denumire; if (pElem.Refacere) { pRand.Cells[EnumColoaneDGV.colRefacere.ToString()].Value = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.X); DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colRefacere.ToString()); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colRefacere.ToString()); } pRand.Cells[EnumColoaneDGV.colObservatiiEtapa.ToString()].Value = pElem.Observatii; pRand.Cells[EnumColoaneDGV.colLucrarePrescurtata.ToString()].Value = pElem.GetDenumirePrescurtataLucrare(); pRand.Cells[EnumColoaneDGV.colLucrarePrescurtata.ToString()].ToolTipText = pElem.DenumireLucrare; DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDeschideLucrare.ToString()); pRand.Cells[EnumColoaneDGV.colNumarElemente.ToString()].Value = pElem.NumarElemente.ToString(); if (pElem.Urgent) { pRand.Cells[EnumColoaneDGV.colUrgenta.ToString()].Value = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.X); DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colUrgenta.ToString()); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colUrgenta.ToString()); } pRand.Cells[EnumColoaneDGV.colObservatiiLucrare.ToString()].Value = pElem.ObservatiiComanda; pRand.Cells[EnumColoaneDGV.colClinica.ToString()].Value = pElem.DenumireClient; DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDeschideClinica.ToString()); pRand.Cells[EnumColoaneDGV.colPacient.ToString()].Value = pElem.GetIdentitatePacient(); pRand.Cells[EnumColoaneDGV.colMoneda.ToString()].Value = pElem.GetEtichetaMoneda(); pRand.Cells[EnumColoaneDGV.colValoareInitiala.ToString()].Value = CUtil.GetValoareMonetara(pElem.ValoareInitiala, pElem.Moneda); double pretLista = pElem.ValoareInitiala; double pretNegociat = pElem.ValoareFinala; double diferenta = pretLista - pretNegociat; double ajustare = CUtil.GetProcentDinTotal(diferenta, pretLista); pRand.Cells[EnumColoaneDGV.colDiscount.ToString()].Value = CUtil.GetValoareMonetara(ajustare); pRand.Cells[EnumColoaneDGV.colValoareFinala.ToString()].Value = CUtil.GetValoareMonetara(pElem.ValoareFinala, pElem.Moneda); }
private void incarcaRandDGV(DataGridViewRow pRand, int pId) { pRand.Tag = pId; this.dgvLista.InitCelulaDenumire(pRand, this.lDictIdDenumire[pId]); if (this.lAfiseazaDetalii) { DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGVRezumat.colDetalii.ToString()); } DataGridViewPersonalizat.InitCelulaValoareNumerica(pRand, EnumColoaneDGVRezumat.colNrElemente.ToString(), this.lDictIdValoare[pId]); this.dgvLista.FinalizeazaContructieRanduri(); }
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()); }
private void incarcaRand(DataGridViewRow pRand, BEmailuriExtrase pElem) { pRand.Tag = pElem; DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand); if (pElem.NumarAtasamente != 0) { DataGridViewPersonalizat.initCelulaImagine(pRand, EnumColoaneDGV.colAttachment.ToString(), (System.Drawing.Image)Properties.Resources.attachment); } else { DataGridViewPersonalizat.initCelulaImagine(pRand, EnumColoaneDGV.colAttachment.ToString(), new Bitmap(1, 1)); } pRand.Cells[EnumColoaneDGV.colSender.ToString()].Value = pElem.Expeditor; pRand.Cells[EnumColoaneDGV.colSubiect.ToString()].Value = pElem.Subiect; pRand.Cells[EnumColoaneDGV.colData.ToString()].Value = pElem.DataServer; }
private void incarcaRand(DataGridViewRow pRand, BClientiPlati pElem) { pRand.Tag = pElem; DataGridViewPersonalizat.InitCelulaEditare(pRand, this.lEcranInModificare); pRand.Cells[EnumColoaneDGV.colData.ToString()].Value = pElem.DataPlata; pRand.Cells[EnumColoaneDGV.colModalitate.ToString()].Value = BDefinitiiGenerale.StructModalitatePlata.GetStringByEnum((BDefinitiiGenerale.EnumModalitatePlata)pElem.ModalitatePlata); DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colValoare.ToString(), pElem.SumaPlatita, CDefinitiiComune.EnumTipMoneda.Lei); pRand.Cells[EnumColoaneDGV.colClinica.ToString()].Value = pElem.DenumireClient; pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pElem.Observatii; pRand.Cells[EnumColoaneDGV.colCursBNR.ToString()].Value = pElem.CursBNR; DataGridViewPersonalizat.InitCelulaStergere(pRand); DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetaliiClinica.ToString()); }
private void incarcaRand(DataGridViewRow pRand, BClientiFacturi pElem, BColectieClientiComenzi pListaLucrari, BColectieClientiPlatiComenzi pListaPlatiPeFact) { pRand.Tag = pElem; double valoare = pListaLucrari.GetValoareTotalaFactura(CDefinitiiComune.EnumTipMoneda.Lei, pElem.CursBNR); double achitat = pListaPlatiPeFact.GetValoarePlatita(); DataGridViewPersonalizat.InitCelulaEditare(pRand, this.lEcranInModificare); if (pElem.EsteFiscalizata()) { pRand.Cells[EnumColoaneDGV.colTipDocument.ToString()].Value = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Factura); DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colTipDocument.ToString()); } else { pRand.Cells[EnumColoaneDGV.colTipDocument.ToString()].Value = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Proforma); DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colTipDocument.ToString()); } pRand.Cells[EnumColoaneDGV.colDataEmiterii.ToString()].Value = pElem.DataFactura; pRand.Cells[EnumColoaneDGV.colSerieFactura.ToString()].Value = pElem.SerieFactura; pRand.Cells[EnumColoaneDGV.colNumarFactura.ToString()].Value = pElem.NumarFactura; pRand.Cells[EnumColoaneDGV.colClinica.ToString()].Value = pElem.DenumireClient; DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colValoare.ToString(), valoare, CDefinitiiComune.EnumTipMoneda.Lei); //pRand.Cells[EnumColoaneDGV.colValoare.ToString()].Value = ; if (pElem.MonedaFactura != CDefinitiiComune.EnumTipMoneda.Lei) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colValoare.ToString()); } pRand.Cells[EnumColoaneDGV.colValoare.ToString()].ToolTipText = CUtil.GetValoareMonetara(valoare, pElem.MonedaFactura); DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colAchitat.ToString(), achitat, CDefinitiiComune.EnumTipMoneda.Lei); DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colRestPlata.ToString(), valoare - achitat, CDefinitiiComune.EnumTipMoneda.Lei); pRand.Cells[EnumColoaneDGV.colCursBNR.ToString()].Value = pElem.CursBNR; pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pElem.Observatii; DataGridViewPersonalizat.InitCelulaStergere(pRand); DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetaliiClinica.ToString()); }
private void incarcaRand(DataGridViewRow pRand, BUtilizator pElem, BColectieUtilizatoriVenituri pVenituri, Tuple <double, double> pTotal) { pRand.Tag = pElem; pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = pElem.GetNumeCompletUtilizator(); if (!CUtil.EsteListaVida <BUtilizatoriVenituri>(pVenituri)) { pRand.Cells[EnumColoaneDGV.colTipVenit.ToString()].Value = pVenituri.ToString(); } this.dgvListaVenituri.SeteazaFontIngrosat(pRand, EnumColoaneDGV.colTotal.ToString()); if (pTotal != null) { DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colNrElemente.ToString(), pTotal.Item1); DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colTotal.ToString(), pTotal.Item2); } DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetalii.ToString()); }
private void incarcaRand(DataGridViewRow pRand, BClientiComenzi pElem) { pRand.Tag = pElem; if (pElem.DataPrimire != CConstante.DataNula) { pRand.Cells[EnumColoaneDGV.colDataPrimire.ToString()].Value = pElem.DataPrimire; } else { pRand.Cells[EnumColoaneDGV.colDataPrimire.ToString()].Value = string.Empty; } pRand.Cells[EnumColoaneDGV.colCodComanda.ToString()].Value = pElem.CodLucrare; pRand.Cells[EnumColoaneDGV.colClinica.ToString()].Value = pElem.DenumireClinica; pRand.Cells[EnumColoaneDGV.colMedic.ToString()].Value = pElem.GetIdentitateMedic(); pRand.Cells[EnumColoaneDGV.colCabinet.ToString()].Value = pElem.DenumireCabinet; pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].Value = pElem.DenumireLucrare; pRand.Cells[EnumColoaneDGV.colNrElemente.ToString()].Value = pElem.NrElemente.ToString(); pRand.Cells[EnumColoaneDGV.colValoare.ToString()].Value = pElem.ValoareFinala; pRand.Cells[EnumColoaneDGV.colMoneda.ToString()].Value = pElem.GetEtichetaMoneda(); if (pElem.DataLaGata != CConstante.DataNula) { pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = pElem.DataLaGata; } else { pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = string.Empty; } pRand.Cells[EnumColoaneDGV.colStareEtapa.ToString()].Value = pElem.StatusEtapaEticheta; pRand.Cells[EnumColoaneDGV.colEtapaCurenta.ToString()].Value = pElem.DenumireEtapa; pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = pElem.GetIdentitateTehnician(); pRand.Cells[EnumColoaneDGV.colPacient.ToString()].Value = pElem.GetNumePrenumePacient(); DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetaliiClinica.ToString()); DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetaliiFisa.ToString()); }
private void incarcaRand(DataGridViewRow pRand, BClientiComenzi pElem) { pRand.Tag = pElem; idclient = pElem.IdClient; idlucrare = pElem.IdLucrare; pRand.Cells[EnumColoaneDGV.colCodLucrareClient.ToString()].Value = pElem.Id; pRand.Cells[EnumColoaneDGV.colCodComanda.ToString()].Value = pElem.CodLucrare; pRand.Cells[EnumColoaneDGV.colClient.ToString()].Value = pElem.GetDenumireClinicaCabinet(); DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colFisaClient.ToString()); if (pElem.IdReprezentantClient != 0) { pRand.Cells[EnumColoaneDGV.colMedic.ToString()].Value = pElem.GetIdentitateMedic(); } else { pRand.Cells[EnumColoaneDGV.colMedic.ToString()].Value = string.Empty; } if (pElem.Urgent) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colLucrare.ToString()); pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].ToolTipText = string.Format("{0} - {1}", BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Urgent), pElem.DenumireLucrare); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colLucrare.ToString()); pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].ToolTipText = pElem.DenumireLucrare; } pRand.Cells[EnumColoaneDGV.colLucrare.ToString()].Value = pElem.GetDenumirePrescurtata(); pRand.Cells[EnumColoaneDGV.colNrElemente.ToString()].Value = pElem.NrElemente.ToString(); if (pElem.IdEtapaCurenta != 0) { pRand.Cells[EnumColoaneDGV.colEtapaCurenta.ToString()].Value = pElem.DenumireEtapa; } else { pRand.Cells[EnumColoaneDGV.colEtapaCurenta.ToString()].Value = string.Empty; } if (pElem.Refacere) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colEtapaCurenta.ToString()); pRand.Cells[EnumColoaneDGV.colEtapaCurenta.ToString()].ToolTipText = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Refacere); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colEtapaCurenta.ToString()); } if (pElem.IdTehnician != 0) { pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = pElem.GetIdentitateTehnician(); } else { pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = string.Empty; } pRand.Cells[EnumColoaneDGV.colStare.ToString()].Value = pElem.StatusEtapaEticheta; if (pElem.DataSfarsitEtapa != CConstante.DataNula) { pRand.Cells[EnumColoaneDGV.colTermen.ToString()].Value = pElem.DataSfarsitEtapa; pRand.Cells[EnumColoaneDGV.colTermen.ToString()].ToolTipText = CUtil.GetNumeZiSaptamana(pElem.DataSfarsitEtapa.DayOfWeek); if (pElem.DataSfarsitEtapa <= DateTime.Today && !pElem.Acceptata) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colTermen.ToString()); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colTermen.ToString()); } } DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colTotalEtape.ToString()); pRand.Cells[EnumColoaneDGV.colDataPrimire.ToString()].Value = pElem.DataPrimire; if (pElem.DataLaGata != CConstante.DataNula) { pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = pElem.DataLaGata; } else { pRand.Cells[EnumColoaneDGV.colDataLaGata.ToString()].Value = string.Empty; } if (pElem.DataLaGata.Date <= DateTime.Today && !pElem.Acceptata) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colDataLaGata.ToString()); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colDataLaGata.ToString()); } pRand.Cells[EnumColoaneDGV.colNumePacient.ToString()].Value = pElem.GetNumePrenumePacient(); pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pElem.Observatii; pRand.Cells[EnumColoaneDGV.colDataCreare.ToString()].Value = pElem.DataCreare; if (pElem.IdFactura > 0) { DataGridViewPersonalizat.SeteazaOK(pRand, EnumColoaneDGV.colNumePacient.ToString()); } BListaPreturiClienti pElemClient = BListaPreturiClienti.GetPretClient(pElem.IdLucrare, pElem.IdClient, CDL.iStomaLab.CDefinitiiComune.EnumStare.Activa, null); pRand.Cells[EnumColoaneDGV.colMoneda.ToString()].Value = pElem.GetEtichetaMoneda(); pRand.Cells[EnumColoaneDGV.colValoareInitiala.ToString()].Value = CUtil.GetValoareMonetara(pElem.ValoareInitiala, pElem.Moneda); double pretLista = pElem.ValoareInitiala; double pretNegociat = pElem.ValoareFinala; double diferenta = pretLista - pretNegociat; double ajustare = CUtil.GetProcentDinTotal(diferenta, pretLista); pRand.Cells[EnumColoaneDGV.colDiscount.ToString()].Value = CUtil.GetValoareMonetara(ajustare); pRand.Cells[EnumColoaneDGV.colValoareFinala.ToString()].Value = CUtil.GetValoareMonetara(pElem.ValoareFinala, pElem.Moneda); }