예제 #1
0
        private void uc_PatientsGrid1_OnDoubleClickEvent(object sender, EventArgs e)
        {
            if (uc_PatientsGrid1.SelectedPatientBE == null) return;

            SelectedPatientBE = uc_PatientsGrid1.SelectedPatientBE;

            if (State == Fwk.Bases.EntityUpdateEnum.UPDATED)
            {
                using (FrmABMPatient frm = new FrmABMPatient(Fwk.Bases.EntityUpdateEnum.UPDATED))
                {
                    frm.Patient = SelectedPatientBE;
                    frm.Refresh();
                    if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {

                    }
                }
                return;
            }
            //if (State == Fwk.Bases.EntityUpdateEnum.UPDATED)
            //{
            //    this.Mutuales = Controller.GetPatient_Mutuals(SelectedPatientBE.IdPatient);

            //}

            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();

        }
예제 #2
0
        private void uc_PatientsGrid1_OnDoubleClickEvent(object sender, EventArgs e)
        {
            if (uc_PatientsGrid1.SelectedPatientBE == null)
            {
                return;
            }

            SelectedPatientBE = uc_PatientsGrid1.SelectedPatientBE;

            if (State == Fwk.Bases.EntityUpdateEnum.UPDATED)
            {
                using (FrmABMPatient frm = new FrmABMPatient(Fwk.Bases.EntityUpdateEnum.UPDATED))
                {
                    frm.Patient = SelectedPatientBE;
                    frm.Refresh();
                    if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                    }
                }
                return;
            }
            //if (State == Fwk.Bases.EntityUpdateEnum.UPDATED)
            //{
            //    this.Mutuales = Controller.GetPatient_Mutuals(SelectedPatientBE.IdPatient);

            //}

            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
예제 #3
0
 private void iCrearPatient_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (FrmABMPatient frm = new FrmABMPatient())
     {
         //frm.Refresh();
         frm.ShowDialog();
     }
 }
예제 #4
0
 private void btnCreatePatient_Click(object sender, EventArgs e)
 {
     using (FrmABMPatient frm = new FrmABMPatient())
     {
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             Refresh();
         }
     }
 }
예제 #5
0
        private void btnCreatePatient_Click(object sender, EventArgs e)
        {
            using (FrmABMPatient frm = new FrmABMPatient())
            {

                if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    Refresh();
                }
            }
        }