private void AgregarRecetabtn_Click(object sender, EventArgs e)
        {
            //modificar Mascota
            MASCOTAS mascota = new MASCOTAS();

            mascota.ID_Mascota = idMascota;
            mascota.Tamaño     = Convert.ToDecimal(tamaniotxt.Text, System.Globalization.CultureInfo.InvariantCulture);
            mascota.Estado     = Convert.ToInt32(id_estado);

            mascota.Edad = Convert.ToInt32(edadtxt.Text);

            mascota.Peso = Convert.ToDecimal(pesotxt.Text, System.Globalization.CultureInfo.InvariantCulture);
//            mascota.Estado = Convert.ToInt32(id_estado);


            PreConsulta_BLL.ModificarMascotaPreConsulta(mascota);

            //Agregar observaciones a la cita
            OBSERVACIONES observaciones = new OBSERVACIONES();

            observaciones.ID_Cita     = idCita;
            observaciones.Descripcion = observacionestxt.Text;
            PreConsulta_BLL.agregarObservaciones(observaciones);
            MessageBox.Show("Preconsulta agregada", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Пример #2
0
 public static bool agregarObservaciones(OBSERVACIONES observaciones)
 {
     try
     {
         SQLSentencia sentencia = new SQLSentencia();
         sentencia.Peticion = @"EXEC SP_AGREGAR_OBSERVACIONES '" + observaciones.ID_Cita + "','" + observaciones.Descripcion + "'";
         DA acceso = new DA();
         return(acceso.ejecutarSentecia(sentencia));
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #3
0
        private void btn_Agregar_Click(object sender, EventArgs e)
        {
            listita.RemoveAll(x => x.Nombre == textBox1.Text);
            alertadeFacturacion = true;
            //Agregar observaciones a la cita
            OBSERVACIONES observaciones = new OBSERVACIONES();

            observaciones.ID_Cita     = idCita;
            observaciones.Descripcion = textBox2.Text;
            PreConsulta_BLL.agregarObservaciones(observaciones);
            MessageBox.Show("Datos Agregados agregada", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information);


            //limpiar lista de examenes
            listita.Clear();
        }
Пример #4
0
        private void CargarObservacionesPreConsulta()
        {
            List <OBSERVACIONES> lo = new List <OBSERVACIONES>();

            lo = Consulta_BLL.consultarObservaciones();
            OBSERVACIONES observaciones = new OBSERVACIONES();

            foreach (OBSERVACIONES o in lo)
            {
                observaciones.ID_Cita     = o.ID_Cita;
                observaciones.Descripcion = o.Descripcion;
                textBox5.Text             = observaciones.Descripcion;
                idCita        = observaciones.ID_Cita;
                textBox1.Text = idCita.ToString();
            }
        }