示例#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();
                }
            }
        }