Esempio n. 1
0
        private void DgvListaPacienti_EditareLinie(CCL.UI.DataGridViewPersonalizat pDGVSender, int pIndexRand)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                BClientiPacienti pacientDeModificat = this.dgvListaPacienti.Rows[pIndexRand].Tag as BClientiPacienti;

                if (pacientDeModificat != null && !this.btnActivInactiv.Selectat)
                {
                    int idPacModificat = pacientDeModificat.Id;
                    FormDetaliuPacient.Afiseaza(this.GetFormParinte(), IdClient, ref idPacModificat, string.Empty);
                    ConstruiesteRanduriDGV();
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }
Esempio n. 2
0
        private void BtnAdaugaPacienti_Click(object sender, EventArgs e)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                if (FormDetaliuPacient.Afiseaza(this.GetFormParinte(), IdClient, ref IdPacient, string.Empty))
                {
                    ConstruiesteRanduriDGV();
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }