void picPreview_Afiseaza(PictureBoxPreview pSender, Image pImagine) { try { this.lPoza = pImagine; this.picZonaImagine.Image = this.lPoza; if (pSender.Tag != null) { this.Text = Convert.ToString(pSender.Tag); } //Pentru a indica imaginea afisata foreach (PictureBoxPreview picPreview in this.flpPreview.Controls) { picPreview.EsteSelectata(pSender.Name.Equals(picPreview.Name)); } reseteazaValori(); } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void BtnInapoi_Click(object sender, EventArgs e) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); this.lAnAfisat += 1; afiseazaAnul(); anuntaModificarea(); } catch (Exception ex) { Mesaj.Eroare(this.GetFormParinte(), ex.Message); } finally { finalizeazaIncarcarea(); } }
private bool verificaData() { if (esteDataSfarsitDupaDataInceput()) { return(true); } Mesaj.Eroare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.MesajEroareDataTermen)); return(false); }
private void frmAjustarePret_Load(object sender, EventArgs e) { try { Initializeaza(); } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void btnSchimbaCuloare_Click(object sender, EventArgs e) { try { CautaCuloare(false); } catch (Exception ex) { Mesaj.Eroare(this.GetFormParinte(), ex.Message, string.Empty); } }
void btnValidare_Click(object sender, EventArgs e) { try { this.lControlIncarcat.ValideazaSelectiaMultipla(); } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void ctrlValidareAnulare_Anulare(object sender, EventArgs e) { try { inchideEcranul(System.Windows.Forms.DialogResult.Cancel); } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void txtAjustare_KeyUpPersonalizat(object sender, KeyEventArgs e) { try { //Actualizam pretul this.txtPret.Text = Convert.ToString(Math.Round(this.lPretVechi + (this.lPretVechi * this.txtAjustare.ValoareDouble) / 100, 2)); } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void tsBtnHTML_Click(object sender, EventArgs e) { try { string text = this.wbContinut.DocumentText; FormulareComune.frmInputBox.GetTextUtilizator(this.GetFormParinte(), "HTML", string.Empty, CCL.iStomaLab.CUtil.InlocuiesteDiacriticeHTMLFaraEnter(text), 32000, false, true, true); } catch (Exception ex) { Mesaj.Eroare(this.GetFormParinte(), ex.Message); } }
private void btnPrint_Click(object sender, EventArgs e) { try { this.lImprimaDoarImagineaCurenta = false; imprima(); } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void txtValoare_CerereUpdate(Control psender, string pNumeProprietate, object pNouaValoare) { try { if (this.CerereUpdate != null) { CerereUpdate(this, null); } } catch (Exception ex) { Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message); } }
private void ctrlLeiEUR_MonedaSchimbata(object sender, EventArgs e) { try { if (this.MonedaSchimbata != null) { MonedaSchimbata(this, e); } } catch (Exception ex) { Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message); } }
private void txtValoare_KeyUpPersonalizat(object sender, KeyEventArgs e) { try { if (this.KeyUpPersonalizat != null) { KeyUpPersonalizat(this, e); } } catch (Exception ex) { Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message); } }
private void btnMinus_Click(object sender, EventArgs e) { try { this.lValoareActuala -= 1; initValoarea(); anuntaModificareaValorii(); AllowModification(this.lEcranInModificare); } catch (Exception ex) { Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message, IHMUtile.getText(605)); } }
private void BtnAdaugaLucrareRapida_Click(object sender, EventArgs e) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); //Adaugam lucrarea //Minim clinica si lucrarea trebuie sa fie selectate if (this.ctrlADCautareClinica.AreValoare() && this.ctrlADCautareLucrare.AreValoare()) { if (this.ctrlADCautareEtapa.AreValoare() || !this.ctrlADCautaTehnician.AreValoare()) { Tuple <string, string> numePrenumePac = CUtil.GetNumePrenumeDinText(this.txtADPacient.Text); BClientiComenzi.Add(this.ctrlADCautareClinica.GetIdClient(), this.ctrlADCautareMedicClinica.GetIdMedic(), numePrenumePac.Item1, numePrenumePac.Item2, 0, 0, this.ctrlADDataOraPrimire.DataAfisata, CConstante.DataNula, string.Empty, this.ctrlADCautareCabinetClinica.GetIdCabinet(), this.ctrlADCautareLucrare.GetIdLucrare(), false, 0, 0, this.txtADNrElemente.ValoareIntreaga, this.ctrlADCautareEtapa.GetIdEtapa(), this.ctrlADCautaTehnician.GetIdTehnician(), CConstante.DataNula, false, 0, this.txtADCuloare.Text, string.Empty, false, string.Empty, null); this.ctrlADCautareLucrare.Goleste(); this.ctrlADDataOraPrimire.DataAfisata = DateTime.Now; ConstruiesteRanduriDGV(); this.dgvListaComenzi.ScrollToBottom(); } else { if (this.ctrlADCautaTehnician.AreValoare()) { this.ctrlADCautareEtapa.DeschideLista(); } } } else { Mesaj.Eroare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SelectatiCelPutinClinicaSiLucrarea)); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void ControlGestiuneCuloare_Click(object sender, EventArgs e) { if (!this.lEcranInModificare) { return; } try { CautaCuloare(false); } catch (Exception ex) { Mesaj.Eroare(this.GetFormParinte(), ex.Message, string.Empty); } }
private void btnImprimaImaginea_Click(object sender, EventArgs e) { if (this.picZonaImagine.Image == null) { return; } try { this.lImprimaDoarImagineaCurenta = true; imprima(); } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void txtPret_KeyUpPersonalizat(object sender, KeyEventArgs e) { try { //Actualizam ajustarea if (this.lPretVechi != 0) { this.txtAjustare.Text = Convert.ToString(Math.Round((this.txtPret.ValoareDouble * 100) / this.lPretVechi, 2) - 100); } else { this.txtAjustare.Goleste(); } } catch (Exception ex) { Mesaj.Eroare(this, ex.Message); } }
private void txtValoare_AfterUpdate(Control sender, string sNumeProprietateAtasata, string sNouaValoare) { try { int nouaValoare = this.txtValoare.ValoareIntreaga; if (nouaValoare <= this.lValoareMaxima && nouaValoare >= this.lValoareMinima) { this.lValoareActuala = nouaValoare; anuntaModificareaValorii(); AllowModification(this.lEcranInModificare); } else { this.txtValoare.ValoareIntreaga = this.lValoareActuala; } } catch (Exception ex) { Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message, IHMUtile.getText(605)); } }