Exemplo n.º 1
0
        private void btnFindPatient_Click(object sender, EventArgs e)
        {
            ///Busca Patient
            using (frmGridPatients form = new frmGridPatients())
            {
                form.Refresh();
                if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    SelectedPatientBE = form.SelectedPatientBE;
                    txtPatient.Text   = SelectedPatientBE.Persona.ApellidoNombre;
                    txSubject.Text    = String.Concat("Reservado para ", SelectedPatientBE.Persona.ApellidoNombre);
                    currentApt.ProfesionalAppointment.PatientId   = SelectedPatientBE.PatientId;
                    currentApt.ProfesionalAppointment.PatientName = SelectedPatientBE.Persona.ApellidoNombre;
                    cmbMutual.Properties.DataSource = form.Mutuales;

                    if (form.Mutuales == null || form.Mutuales.Count == 0)
                    {
                        cmbMutual.Properties.NullText = "No existen mutuales para este paciente";
                        chkPresentaOrden.Enabled      = txtNroAfiliado.Enabled = false;
                    }
                    else
                    {
                        cmbMutual.Properties.NullText = "Seleccione uan opción";
                        chkPresentaOrden.Enabled      = txtNroAfiliado.Enabled = true;
                    }

                    cmbMutual.Refresh();
                }
            }
        }
Exemplo n.º 2
0
 private void btnFindPatient_Click(object sender, EventArgs e)
 {
     ///Busca paciente
     using (frmGridPatients form = new frmGridPatients())
     {
         form.Refresh();
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             SelectedPatientBE = form.SelectedPatientBE;
             txtPatient.Text   = SelectedPatientBE.Persona.ApellidoNombre;
             txSubject.Text    = String.Concat("Reservado para ", SelectedPatientBE.Persona.ApellidoNombre);
         }
     }
 }
Exemplo n.º 3
0
        private void btnFindPatient_Click(object sender, EventArgs e)
        {
            ///Busca Patient 
            using (frmGridPatients form = new frmGridPatients())
            {
                form.Refresh();
                if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    SelectedPatientBE = form.SelectedPatientBE;
                    txtPatient.Text = SelectedPatientBE.Persona.ApellidoNombre;
                    txSubject.Text = String.Concat("Reservado para ", SelectedPatientBE.Persona.ApellidoNombre);
                    currentApt.ProfesionalAppointment.PatientId = SelectedPatientBE.PatientId;
                    currentApt.ProfesionalAppointment.PatientName = SelectedPatientBE.Persona.ApellidoNombre;
                    cmbMutual.Properties.DataSource = form.Mutuales;

                    if (form.Mutuales == null || form.Mutuales.Count==0)
                    {
                        cmbMutual.Properties.NullText = "No existen mutuales para este paciente";
                        chkPresentaOrden.Enabled = txtNroAfiliado.Enabled = false;
                    }
                    else
                    {
                        cmbMutual.Properties.NullText = "Seleccione uan opción";
                        chkPresentaOrden.Enabled=txtNroAfiliado.Enabled = true;
                        
                    }
                    
                    cmbMutual.Refresh();

                }

            }
        }
Exemplo n.º 4
0
        private void btnFindPatient_Click(object sender, EventArgs e)
        {
            ///Busca paciente 
            using (frmGridPatients form = new frmGridPatients())
            {
                form.Refresh();
                if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    SelectedPatientBE = form.SelectedPatientBE;
                    txtPatient.Text = SelectedPatientBE.Persona.ApellidoNombre;
                    txSubject.Text = String.Concat("Reservado para ", SelectedPatientBE.Persona.ApellidoNombre);
                }

            }
        }