private void initTextML() { this.lblNume.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nume); this.lblPrenume.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Prenume); this.lblSex.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Sex); this.lblDataNasterii.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataNasterii); this.lblCnp.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CNP); this.rbBI.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.BI); this.rbCI.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CI); this.lblSerie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Serie); this.lblNr.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nr); this.lblEmisDe.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.EmisDe); this.lblTelefonMobil.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TelefonMobil); this.lblEmail.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Email); this.lblRol.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Rol); this.lblContStoma.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Cont); this.lblObservatii.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii); this.lblTipContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TipContract); this.lblNrContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrContract); this.lblDataContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataContract); this.lblDataAngajare.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataAngajare); this.lblDataIncetareContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataIncetareContract); this.lblOreNorma.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.OreNorma); this.lblZileConcediu.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ZileConcediu); this.lblIban.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.IBAN); this.lblBanca.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Banca); this.lblValabilitate.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Valabilitate); this.lblAdresa.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Adresa); this.btnSchimbaParola.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SchimbaParola); }
private void ConstruiesteColoaneDGV() { this.dgvListaPreturi.IncepeConstructieColoane(); this.dgvListaPreturi.AdaugaColoana(CCL.UI.DataGridViewPersonalizat.EnumTipColoana.Editare); this.dgvListaPreturi.AdaugaColoanaText(EnumColoaneDGV.colDenumire.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Denumire), 100, true, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoanaText(EnumColoaneDGV.colPrescurtare.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Prescurtare), 100, false, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoanaText(EnumColoaneDGV.colCod.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Cod), 80, false, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoanaText(EnumColoaneDGV.colCategorie.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Categorie), 100, false, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoanaText(EnumColoaneDGV.colSubcategorie.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Subcategorie), 100, false, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoanaNumerica(EnumColoaneDGV.colTermenMediu.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TermenMediu), 50, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colValoareRon.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.RON), 100, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colValoareEuro.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.EUR), 100, DataGridViewColumnSortMode.Automatic); this.dgvListaPreturi.AdaugaColoana(CCL.UI.DataGridViewPersonalizat.EnumTipColoana.Stergere); this.dgvListaPreturi.FinalizeazaConstructieColoane(); }
private void initTextML() { this.Text = string.Empty; this.lblTitluEcran.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Inchidere); this.lblConfirmareInchidere.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ConfirmareInchidere); this.lblAplicatieSeVaInchideAutomatIn.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.AplicatieSeVaInchideAutomatIn); }
private void TgvListaCategorii_StergereLinie(DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); BCategorii categorie = this.tgvListaCategorii.Rows[this.tgvListaCategorii.CurrentCell.RowIndex].Tag as BCategorii; if (categorie != null) { if (Mesaj.Confirmare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ConfirmatiStergerea), categorie.Denumire)) { categorie.Close(true, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Stergere), null); ConstruiesteRanduriTGV(); } } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void BtnValidare_Click(object sender, EventArgs e) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); BUtilizator utilizator = this.dgvListaUtilizatori.Rows[this.dgvListaUtilizatori.CurrentCell.RowIndex].Tag as BUtilizator; if (utilizator != null) { this.lUtilizator = utilizator; this.inchideEcranulOK(); } else { Mesaj.Informare(this, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SelectatiTehnicianul), string.Empty); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void incarcaRand(DataGridViewRow pRand, BClientiComenziEtape pElem) { pRand.Tag = pElem; DataGridViewPersonalizat.InitCelulaEditare(pRand, this.lEcranInModificare); if (pElem.IdEtapa != 0) { pRand.Cells[EnumColoaneDGV.colEtapa.ToString()].Value = BEtape.GetEtapaById(pElem.IdEtapa, CDefinitiiComune.EnumStare.Activa, null).Denumire; } pRand.Cells[EnumColoaneDGV.colDataInceput.ToString()].Value = pElem.DataInceput; if (pElem.Refacere) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGV.colEtapa.ToString()); pRand.Cells[EnumColoaneDGV.colEtapa.ToString()].ToolTipText = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Refacere); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGV.colEtapa.ToString()); } pRand.Cells[EnumColoaneDGV.colDataFinal.ToString()].Value = pElem.DataFinal; if (pElem.IdTehnician != 0) { pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = BUtilizator.GetById(pElem.IdTehnician, null).GetNumeCompletUtilizator(); } pRand.Cells[EnumColoaneDGV.colObservatii.ToString()].Value = pElem.Observatii; pRand.Cells[EnumColoaneDGV.colStatus.ToString()].Value = BClientiComenziEtape.StructStareEtapa.GetStructById(pElem.Status).Denumire; DataGridViewPersonalizat.InitCelulaStergere(pRand); }
private void setNrLinii(int pNrLinii) { double totalRON = 0; BClientiPlati plata = null; this.lTotalIncasariInRON = 0; double valTemp = 0; foreach (DataGridViewRow rand in this.dgvLista.Rows) { if (rand.Visible) { plata = rand.Tag as BClientiPlati; valTemp = DataGridViewPersonalizat.GetValoareTagColoanaRand(rand, EnumColoaneDGV.colValoare.ToString()); totalRON += valTemp; } } this.lTotalIncasariInRON = totalRON; this.lblTotal.Text = string.Format("{0}: {1} [{2}: {3}]", BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Incasari), this.dgvLista.RowCount, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Total), CUtil.GetValoareMonetara(totalRON)); }
private void CtrlValidareAnulareCheck_Validare(object sender, EventArgs e) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); if (this.panelDetaliiCheck.Visible == false) { CCL.UI.Mesaj.Afiseaza(this, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.InformareSelectareUtilizator)); } else { var listaElem = BPontaj.GetListByIdUtilizator(FormListaUtilizatori._SUtilizator.Id, null); int tipPontaj = listaElem.Count > 0 ? listaElem[listaElem.Count - 1].TipPontaj : 0; if (salveaza(tipPontaj)) { inchideEcranulOK(); } } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void initTextML() { this.Text = string.Empty; this.lblNume.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nume); this.lblPrenume.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Prenume); this.lblCnp.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CNP); this.rbBI.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.BI); this.rbCI.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CI); this.lblSerie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Serie); this.lblNr.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nr); this.lblMobil.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Telefon); this.lblEmail.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Email); this.lblRol.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Rol); this.lblObservatii.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii); this.lblEmisDe.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.EmisDe); this.lblValabilitate.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ValabilitateAct); this.chkSeConecteaza.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SeConecteaza); this.lblContUtilizator.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ContUtilizator); this.lblParola.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Parola); this.lblNrContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrContract); this.lblTip.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Tip); this.lblOreNorma.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.OreNorma); this.lblZileConcediu.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ZileConcediu); this.lblDataContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataContract); this.lblDataInceputContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataInceput); this.lblIban.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.IBAN); this.lblBanca.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Banca); }
private void initTextML() { this.Text = string.Empty; this.lblDenumireLocalitate.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Localitate); this.lblRegiuneLocalitate.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Regiune); this.lblTipLocalitate.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Tip); }
private void initTextML() { this.lblNumeReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nume); this.lblPrenumeReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Prenume); this.lblSupranumeReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Supranume); this.lblNumeDeFataReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NumeDeFata); this.lblSexReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Sex); this.chkFemininReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.captionFeminin); this.chkMasculinReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.captionMasculin); this.lblStareCivilaReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.StareCivila); this.lblNrCopiiReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrCopii); this.lblScoalaReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Scoala); this.lblProfesieReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Profesie); this.lblDataNasteriiReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataNasterii); this.lblNationalitateReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nationalitate); this.lblTaraReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Tara); this.lblJudetReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Judet); this.lblLocalitateReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Localitate); this.lblCnpReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CNP); this.lblRolReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Rol); this.lblTelefonMobilReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TelefonMobil); this.txtTelefonFixReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TelefonFix); this.lblFaxReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Fax); this.lblEmailReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Email); this.lblContYMReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ContYM); this.lblSkypeReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Skype); this.lblObservatiiReprezentant.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii); }
private void initTextML() { this.Text = string.Empty; this.lblNrElemente.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrElemente); this.chkUrgent.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Urgent); this.lblTehnician.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Tehnician); this.lblMedic.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Medic); this.lblComandaPacientNume.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nume); this.lblComandaPacientPrenume.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Prenume); this.lblVarsta.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Varsta); this.lblAni.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ani); this.lblComandaPacientSex.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Sex); this.rbFeminin.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.captionFeminin); this.rbMasculin.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.captionMasculin); this.lblComandaDataPrimire.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataPrimire); this.lblComandaDataLaGata.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataLaGata); this.lblObservatiiEtapaCurenta.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii); this.lblCabinet.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Cabinet); this.lblLucrare.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Lucrare); this.lblEtapaCurenta.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Etapa); this.lblClinica.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Clinica); this.lblTermen.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Termen); this.chkRefacere.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Refacere); this.lblStare.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Stare); this.lblCuloare.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Culoare); this.gbEtapaCurenta.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.EtapaCurenta); this.gbLucrare.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Lucrare); this.gbObservatii.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii); this.gbPacient.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Pacient); this.btnVeziToateEtapele.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.VeziToateEtapele); this.chkAcceptata.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Acceptata); this.lblCodComanda.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CodComanda); // this.lblpretunitarinit.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ValoareInitiala); // this.lblpretunitarfin.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Valoare); }
private void ctrlValidareAnulare_Validare(object sender, EventArgs e) { try { if (!this.txtSugestie.AreValoare()) { this.txtSugestie.Focus(); } else { int id = IHMUtile._AccesTotal.CereFunctionalitate(1, "Sugestie", CUtil.InlocuiesteDiacriticeHTML(string.Concat(this.txtSugestie.Text, CConstante.LinieNoua, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.VaMultumim), CConstante.LinieNoua, this.lUtilizatorConectat.ToStringPoliticos())), 2); if (id > 0) { Mesaj.Informare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.VaMultumim), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Sugestie)); //IHMUtile._AccesTotal.Notifica(CCL.UI.Imagini.GetDenumireAplicatie(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Sugestie), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.VaMultumim), false); } inchideEcranul(System.Windows.Forms.DialogResult.OK); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } }
private void ConstruiesteColoaneDGV() { this.dgvLista.IncepeConstructieColoane(); this.dgvLista.AdaugaColoana(CCL.UI.DataGridViewPersonalizat.EnumTipColoana.SelectieMultipla); this.dgvLista.AdaugaColoana(CCL.UI.DataGridViewPersonalizat.EnumTipColoana.SelectieUnica); this.dgvLista.AdaugaColoanaData(EnumColoaneDGV.colDataPrimire.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataPrimire), 100, false, DataGridViewColumnSortMode.Automatic, CConstante.FORMAT_DATA); this.dgvLista.AdaugaColoanaData(EnumColoaneDGV.colMedic.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Medic), 100, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colLucrare.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Lucrare), 300, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colNrElemente.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrElemente), 100, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colPretUnitar.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.PretUnitar), 100, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colTotal.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.PretTotal), 100, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaData(EnumColoaneDGV.colDataLaGata.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataLaGata), 100, false, DataGridViewColumnSortMode.Automatic, CConstante.FORMAT_DATA); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colTehnician.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Tehnician), 130, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaButonClasic(EnumColoaneDGV.colDetaliiLucrariEtape.ToString(), string.Empty, string.Empty, 40, false); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colNumePacient.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Pacient), 130, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colObservatii.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii), 150, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.FinalizeazaConstructieColoane(); }
private void initTextML() { this.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Conectare); this.lblContUtilizator.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ContUtilizator); this.lblParola.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Parola); this.chkPastreazaUserLogat.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.PastreazaMaConectat); }
private void setNrLinii(int pNrLinii) { double totalRON = 0; double totalEUR = 0; BClientiFacturi factura = null; foreach (DataGridViewRow rand in this.dgvLista.Rows) { if (rand.Visible) { factura = rand.Tag as BClientiFacturi; if (factura.MonedaFactura == CDefinitiiComune.EnumTipMoneda.Euro) { totalEUR += DataGridViewPersonalizat.GetValoareTagColoanaRand(rand, EnumColoaneDGV.colValoare.ToString()); } else { totalRON += DataGridViewPersonalizat.GetValoareTagColoanaRand(rand, EnumColoaneDGV.colValoare.ToString()); } } } this.lblTotal.Text = string.Format("{0}: {1} [{2}: {3}]", BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Comenzi), pNrLinii, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Total), CUtil.getValoareMonetaraLeiPlusEuro(totalRON, totalEUR)); }
internal static void IncarcaRandUltimaFactura(DataGridViewRow pRand, BClientiFacturi pUltimaFactura, string pNumeColoanaAlerta) { if (pUltimaFactura != null) { pRand.Cells[EnumColoaneDGVStandardizate.colUltimaFactura.ToString()].Value = pUltimaFactura.DataFactura; pRand.Cells[EnumColoaneDGVStandardizate.colUltimaFactura.ToString()].ToolTipText = pUltimaFactura.ToString(); if (DateAndTime.DateDiff(DateInterval.Day, pUltimaFactura.DataFactura, DateTime.Now) > 31) { DataGridViewPersonalizat.SeteazaAlerta(pRand, EnumColoaneDGVStandardizate.colUltimaFactura.ToString()); } else { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, EnumColoaneDGVStandardizate.colUltimaFactura.ToString()); } if (!string.IsNullOrEmpty(pNumeColoanaAlerta)) { DataGridViewPersonalizat.IndeparteazaAlerta(pRand, pNumeColoanaAlerta); } } else { if (!string.IsNullOrEmpty(pNumeColoanaAlerta)) { DataGridViewPersonalizat.SeteazaAlerta(pRand, pNumeColoanaAlerta); pRand.Cells[pNumeColoanaAlerta].ToolTipText = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NuExistaLucrariDeLaAceastaClinica); } } }
private void ConstruiesteColoaneDGV() { this.dgvLista.IncepeConstructieColoane(); this.dgvLista.AdaugaColoana(CCL.UI.DataGridViewPersonalizat.EnumTipColoana.Editare); this.dgvLista.AdaugaColoanaData(EnumColoaneDGV.colDataEmiterii.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataEmiterii), 100, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colTipDocument.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Tip), 80, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colSerieFactura.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Serie), 60, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaNumerica(EnumColoaneDGV.colNumarFactura.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Numar), 60, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colClinica.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Clinica), 100, true, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaButonClasic(EnumColoaneDGV.colDetaliiClinica.ToString(), string.Empty, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DeschideFisaClinicii), DataGridViewPersonalizat._SLatimeButonDeschidere, false); this.dgvLista.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colValoare.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Valoare), 100, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colAchitat.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Achitat), 100, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colRestPlata.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.RestDePlata), 100, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaText(EnumColoaneDGV.colObservatii.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii), 100, false, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoanaValoareMonetara(EnumColoaneDGV.colCursBNR.ToString(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Curs), 80, DataGridViewColumnSortMode.Automatic); this.dgvLista.AdaugaColoana(DataGridViewPersonalizat.EnumTipColoana.Stergere); this.dgvLista.FinalizeazaConstructieColoane(); }
private void DgvLista_StergereLinie(DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca || pIndexRand < 0) { return; } try { incepeIncarcarea(); if (Mesaj.Confirmare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ConfirmatiStergerea), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Stergere))) { BClientiPlati plata = this.dgvLista.Rows[pIndexRand].Tag as BClientiPlati; plata.Close(true, string.Empty, null); ConstruiesteRanduriDGV(); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void initTextML() { this.lblNumePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Nume); this.lblPrenumePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Prenume); this.lblSupranumePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Supranume); this.lblNumeDeFataPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NumeDeFata); this.lblSexPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Sex); this.chkFemininPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.captionFeminin); this.chkMasculinPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.captionMasculin); this.lblStareCivilaPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.StareCivila); this.lblNrCopiiPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrCopii); this.lblCnpPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CNP); this.lblSerieActPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Serie); this.lblNrActPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Numar); this.lblEducatiePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Educatie); this.lblScoalaPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Scoala); this.lblProfesiePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Profesie); this.lblDataNasteriiPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataNasterii); this.lblTelefonMobilPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TelefonMobil); this.lblTelefonFixPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TelefonFix); this.lblEmailPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Email); this.lblSkypePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Skype); this.lblCuloarePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Culoare); this.lblRolPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Rol); this.lblDataAngajarePersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataAngajare); this.lblContStomaPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Cont); this.lblObservatiiPersonal.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Observatii); this.lblTipContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TipContract); this.lblNrOreNorma.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrOreNorma); this.lblDataContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataContract); this.lblDataIncetareContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DataIncetareContract); this.lblNrContract.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrContract); }
private void DgvComenzi_StergereLinie(DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); BClientiComenzi comandaDeSters = (pDGVSender as DataGridViewPersonalizat).Rows[pIndexRand].Tag as BClientiComenzi; if (comandaDeSters != null) { if (Mesaj.Confirmare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ConfirmatiStergerea), null)) { ; } { comandaDeSters.Close(true, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Inchidere), null); } ConstruiesteRanduriDGV(); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
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 DgvListaLocatii_StergereLinie(CCL.UI.DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); BLocatii locatieDeSters = this.dgvListaLocatii.Rows[pIndexRand].Tag as BLocatii; if (locatieDeSters != null) { if (Mesaj.Confirmare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ConfirmatiStergerea), locatieDeSters.Denumire)) { locatieDeSters.Close(true, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Stergere), null); ConstruiesteRanduriDGV(); } } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void DgvListaImportPersonal_StergereLinie(CCL.UI.DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); StructImportPersonal personal = (StructImportPersonal)this.dgvListaImportPersonal.Rows[pIndexRand].Tag; if (Mesaj.Confirmare(this, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ConfirmatiStergerea), personal.Nume + " " + personal.Prenume)) { this.dgvListaImportPersonal.Rows.RemoveAt(pIndexRand); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private bool SuntDateleCoerente() { string MesajEroare = string.Empty; // Tipul adresei este obligatoriu if (this.cboTipAdresa.SelectedItem == null || ((BAdrese.StructTipAdresa) this.cboTipAdresa.SelectedItem).Id == BAdrese.EnumTipAdresa.Nedefinit) { // Semnalam eroarea // "Tipul adresei este obligatoriu" MesajEroare = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TipulAdreseiEsteObligatoriu); // Incercam sa corectam eroarea if (this.lAdresaAfisata != null) { this.cboTipAdresa.SelectedItem = this.lAdresaAfisata.TipAdresa; } //Deschidem lista pentru ca utilizatorul sa poate cu usurinta selecta un alt tip de adresa this.cboTipAdresa.DroppedDown = true; } if (!string.IsNullOrEmpty(MesajEroare)) { Mesaj.Afiseaza(this.GetFormParinte(), MesajEroare, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Eroare), Mesaj.EnumButoane.OK, Mesaj.EnumIcoana.Eroare); } return(string.IsNullOrEmpty(MesajEroare)); }
private void initTextML() { this.Text = string.Empty; this.lblAdresa.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Adresa); this.lblDenumireLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Denumire); this.lblMailLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Email); this.lblSkypeLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Skype); this.lblFaxLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Fax); this.lblTelefonMobilLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TelefonMobil); this.lblPaginaWebLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.PaginaWeb); this.lblDenumireFiscalaLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DenumireFiscala); this.lblLogoLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Logo); this.lblDimensiuniLogoLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.DimensiuneLogo); this.rbCmiLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CMI); this.rbSrlLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SRL); this.chkTvaLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TVA); this.lblCodFiscalLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.CodFiscal); this.lblNrInregistrareLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrInregistrare); this.lblIbanLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.IBAN); this.lblBancaLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Banca); this.lblReprezentantLegalLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ReprezentantLegal); this.lblCalitateReprezentantLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Calitate); this.lblSerieChitanteLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SerieChitante); this.lblNrUltimaChitantaLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrUltimaChitanta); this.lblSerieFacturiLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SerieFacturi); this.lblNrUltimaFacturaLocatie.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.NrUltimaFactura); this.rbCmiLocatie.Visible = false; this.rbSrlLocatie.Visible = false; this.chkTvaLocatie.Visible = false; }
public static StructRubrici GetByIdEnum(EnumRubrica pRubrica) { switch (pRubrica) { case EnumRubrica.TablouDeBord: return(new StructRubrici(EnumRubrica.TablouDeBord, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.TablouDeBord), 1)); case EnumRubrica.Rapoarte: return(new StructRubrici(EnumRubrica.Rapoarte, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Rapoarte), 2)); case EnumRubrica.ResurseUmane: return(new StructRubrici(EnumRubrica.ResurseUmane, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ResurseUmane), 3)); case EnumRubrica.Marketing: return(new StructRubrici(EnumRubrica.Marketing, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Marketing), 4)); case EnumRubrica.Gestiune: return(new StructRubrici(EnumRubrica.Gestiune, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Gestiune), 5)); case EnumRubrica.Setari: return(new StructRubrici(EnumRubrica.Setari, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Setari), 6)); } return(Empty); }
private void setNrLinii(int pNrLinii) { double totalRON = 0; double totalEUR = 0; BClientiComenzi lucrare = null; foreach (DataGridViewRow rand in this.dgvLista.Rows) { if (rand.Visible) { lucrare = rand.Tag as BClientiComenzi; if (lucrare.Moneda == CDefinitiiComune.EnumTipMoneda.Euro) { totalEUR += lucrare.ValoareFinala; } else { totalRON += lucrare.ValoareFinala; } } } this.lblTotal.Text = string.Format("{0}: {1} [{2}: {3}]", BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Comenzi), pNrLinii, BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Total), CUtil.getValoareMonetaraLeiPlusEuro(totalRON, totalEUR)); }
public void SpreViitor() { this.lSpreViitor = true; this.btnAnulTrecut.Text = CUtil.Capitalizeaza(BMultiLingv.getElementById(BMultiLingv.EnumDictionar.AnulViitor)); this.btnLunaTrecuta.Text = CUtil.Capitalizeaza(BMultiLingv.getElementById(BMultiLingv.EnumDictionar.LunaViitoare)); this.btnSaptamanaTrecuta.Text = CUtil.Capitalizeaza(BMultiLingv.getElementById(BMultiLingv.EnumDictionar.saptamanaViitoare)); }
private void DgvLista_StergereLinie(DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca || pIndexRand < 0) { return; } try { incepeIncarcarea(); BClientiComenzi fisa = this.dgvLista.Rows[pIndexRand].Tag as BClientiComenzi; if (Mesaj.Confirmare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ConfirmatiStergerea), fisa.ToString())) { if (this.lFactura != null) { fisa.IdFactura = 0; fisa.UpdateAll(); } this.dgvLista.Rows.RemoveAt(pIndexRand); initTotal(); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }