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);
        }
        private void cargarComboEstados()
        {
            List <ESTADOS> lstresultado = PreConsulta_BLL.consultarEstadosMascota();

            this.comboBox1.DataSource = lstresultado;
            comboBox1.ValueMember     = "ID_Estados";
            comboBox1.DisplayMember   = "Nombre";
            comboBox1.Refresh();
        }
        private void cargarCitaEnCurso()
        {
            this.dataGridView1.DataSource = null;
            this.dataGridView1.Refresh();

            this.dataGridView1.DataSource = PreConsulta_BLL.consultarCitaEnCursoPantalla();

            this.dataGridView1.Refresh();
        }
Exemplo n.º 4
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();
        }