Exemple #1
0
 private void tsbAnular_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(Mensajes.ANULAR_FORM, Mensajes.NOMBRE_SOFT, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         try
         {
             EmpresaDAL.anular(empresa);
             GeneralC.posAnular(this, tstMenuPatron, tsbNuevo, tsbBuscar, Mensajes.CONFIRMACION_ANULADO);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
Exemple #2
0
 private void tsbAnular_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(Mensajes.ANULAR_FORM, Mensajes.NOMBRE_SOFT, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         objListaPrecio.idLista = (txtBCodigo.Text.Equals(String.Empty) ? 0 : int.Parse(txtBCodigo.Text));
         try
         {
             ListaPrecioEquivalenciaDAL.anular(objListaPrecio);
             GeneralC.posAnular(this, tstMenuPatron, tsbNuevo, tsbBuscar, Mensajes.CONFIRMACION_ANULADO);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
Exemple #3
0
 private void tsbAnular_Click_1(object sender, EventArgs e)
 {
     if (MessageBox.Show(Mensajes.ANULAR_FORM, Mensajes.NOMBRE_SOFT, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         try
         {
             paciente.eliminar();
             GeneralC.posAnular(this, tstMenuPatron, tsbNuevo, tsbBuscar, Mensajes.CONFIRMACION_ANULADO);
             btnSalir.Enabled = true;
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
Exemple #4
0
 private void tsBtAnular_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(Mensajes.ANULAR_FORM, Mensajes.NOMBRE_SOFT, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         try
         {
             evolucionMedica.borrar();
             GeneralC.posAnular(this, tstMenuEvolucion, tsBtNuevo, tsBtBuscar, Mensajes.CONFIRMACION_ANULADO);
             evolucionMedica.idEvolucion = ConstanteGeneral.PREDETERMINADO;
             dtpFecha.Text = Convert.ToString(GeneralC.obtenerFechaServidor());
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
 private void tsbAnular_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(Mensajes.ANULAR_FORM, Mensajes.NOMBRE_SOFT, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         try
         {
             medicamento.anular();
             GeneralC.posAnular(this, tstMenuPatron, tsbNuevo, tsbBuscar, Mensajes.CONFIRMACION_ANULADO);
             medicamento.idSolicitud = ConstanteGeneral.PREDETERMINADO;
             btnSalir.Enabled        = true;
             btBuscarOrden.Enabled   = true;
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
Exemple #6
0
        private void tsBtAnular_Click(object sender, EventArgs e)
        {
            if (Mensajes.preguntaAnular())
            {
                try
                {
                    OrdenClinicaDAL.anularOrdenMedica(ordenClinica);

                    GeneralC.posAnular(this, tstMenuOrdenMedica, tsBtNuevo, tsBtBuscar, Mensajes.CONFIRMACION_ANULADO);
                    ordenClinica.nuevaOrden();
                    desactivarEdicion();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
 private void tsbAnular_Click(object sender, EventArgs e)
 {
     try
     {
         if (Mensajes.preguntaAnular() == true)
         {
             if (SolicitudLabDAL.anularSolicitudLab(solicitudLab.idSolicitud) == true)
             {
                 GeneralC.posAnular(this, tstMenuPatron, tsbNuevo, tsbBuscar);
             }
             else
             {
                 Mensajes.mensajeAdvertencia("Solicitud imposible de anular, ya a sido procesada");
             }
         }
     }
     catch (Exception ex) {
         Mensajes.mensajeError(ex);
     }
 }
Exemple #8
0
 private void tsbAnular_Click(object sender, EventArgs e)
 {
     if (Mensajes.preguntaAnular() == true)
     {
         try
         {
             if (EcocardiogramaDAL.anularEcocardiograma(ecocardiograma.idEco, ecocardiograma.auditoria) == true)
             {
                 GeneralC.posAnular(this, tstMenuPatron, tsbNuevo, tsbBuscar);
                 btnSalir.Enabled = true;
                 Mensajes.mensajeInformacion(Mensajes.CONFIRMACION_ANULADO);
             }
             else
             {
                 Mensajes.mensajeInformacion(Mensajes.IMPOSIBLE_ANULA);
             }
         }
         catch (Exception ex) {
             Mensajes.mensajeError(ex);
         }
     }
 }
Exemple #9
0
 private void tsbAnular_Click(object sender, EventArgs e)
 {
     if (usuario.idUsuario == 1)
     {
         MessageBox.Show("No se puede eliminar el usuario administrador!", Mensajes.NOMBRE_SOFT, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         if (MessageBox.Show(Mensajes.ANULAR_FORM, Mensajes.NOMBRE_SOFT, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             try
             {
                 UsuarioDAL.anular(usuario);
                 GeneralC.posAnular(this, tstMenuPatron, tsbNuevo, tsbBuscar, Mensajes.CONFIRMACION_ANULADO);
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.Message);
             }
         }
     }
 }