Example #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();

        }
Example #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();
        }
Example #3
0
 private void aceptCancelButtonBar1_ClickOkCancelEvent(object sender, DialogResult result)
 {
     SelectedPatientBE = uc_PatientsGrid1.SelectedPatientBE;
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         if (SelectedPatientBE == null)
         {
             MessageViewer.Show("Seleccione algun Patient o precione ESC");
             return;
         }
         this.DialogResult = System.Windows.Forms.DialogResult.OK;
     }
     this.Close();
 }
Example #4
0
 private void aceptCancelButtonBar1_ClickOkCancelEvent(object sender, DialogResult result)
 {
     SelectedPatientBE = uc_PatientsGrid1.SelectedPatientBE;
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         if (SelectedPatientBE == null)
         {
             MessageViewer.Show("Seleccione algun Patient o precione ESC");
             return;
         }
         this.DialogResult = System.Windows.Forms.DialogResult.OK;
     }
     this.Close();
 }
Example #5
0
 private void gridView1_MouseDown(object sender, MouseEventArgs e)
 {
     //  if (e.Button != MouseButtons.Right) return;
     _HitInfo          = gridView1.CalcHitInfo(new Point(e.X, e.Y));
     SelectedPatientBE = ((PatientBE)gridView1.GetRow(_HitInfo.RowHandle));
 }
Example #6
0
 private void gridView1_MouseDown(object sender, MouseEventArgs e)
 {
     //  if (e.Button != MouseButtons.Right) return;
     _HitInfo = gridView1.CalcHitInfo(new Point(e.X, e.Y));
     SelectedPatientBE = ((PatientBE)gridView1.GetRow(_HitInfo.RowHandle));
 }