Exemple #1
0
        private void BtnDeschide_Click(object sender, EventArgs e)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                BClientiPacienti pacient = FormCuPacienti.Afiseaza(this.GetFormParinte(), BClienti.getClient(this.lIdClient, null), pPacient);

                if (pacient != null)
                {
                    this.Initializeaza(this.lIdClient, new StructIdDenumire(pacient.Id, BClientiPacienti.getPacient(pacient.Id, null).DenumireAfisaj), this.lTipDeschidere);

                    ascundeEcranCautare();
                    anuntaSelectia();
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }
Exemple #2
0
        private void DgvListaPacienti_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                BClientiPacienti pacient = this.dgvListaPacienti.Rows[this.dgvListaPacienti.CurrentCell.RowIndex].Tag as BClientiPacienti;

                if (pacient != null)
                {
                    this.lPacient = pacient;
                    IdPacient     = this.lPacient.Id;

                    //Recunoastere formular parinte
                    FormCuPacienti formCuPacienti = (this.GetFormParinte() as FormCuPacienti);
                    formCuPacienti.pPacient = pacient;
                    formCuPacienti.InchideEcranul();
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }