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