Exemplo n.º 1
0
        private void BConsultorio_Click(object sender, EventArgs e)
        {
            Mant_C_Oferta form = new Mant_C_Oferta("", "e");

            if (form.ShowDialog() == DialogResult.OK)
            {
                string id = form.Id;
                if (id.ToString().Trim() != "" && id.ToString().Trim() != "0")
                {
                    TOferta.Text    = id.ToString();
                    TDescOfert.Text = funciones.Lee_Descr_Tipo(id.ToString(), "oferta");
                }
            }
        }
Exemplo n.º 2
0
        private void BTHabitacion_Click(object sender, EventArgs e)
        {
            Mant_C_Oferta CP = new Mant_C_Oferta("", "e");

            CP.ShowDialog();
            string id = CP.Id.ToString().Trim();

            if (id.Trim() != "0")
            {
                string descr = funciones.Lee_Descr_Tipo(id, "Oferta");
                if (descr.Trim() != "")
                {
                    TOferta.Text     = id;
                    TdescOferta.Text = descr;
                    List <Clases.EOfertatalojamiento> int_med_Esp = funciones.Lee_Oferta_Talojamiento(id);
                    if (int_med_Esp != null)
                    {
                        DialogResult dialogResult = MessageBox.Show("Ya Existe Asignacion de Tipos de Alojamiento para esta Oferta , Desea Modificar?", "Alerta", MessageBoxButtons.YesNo);
                        if (dialogResult == DialogResult.No)
                        {
                            TOferta.Text = "";
                            return;
                        }
                        aa_modo              = "m";
                        TOferta.Enabled      = true;
                        aa_EOFerta.id_oferta = int_med_Esp[0].id_oferta_det01;
                        Pasa_Datos();
                    }
                }
                else
                {
                    MessageBox.Show("No Existe esta Oferta en la Base de Datos");
                    return;
                }
            }
        }
Exemplo n.º 3
0
        private void consultarToolStripMenuItem25_Click(object sender, EventArgs e)
        {
            Mant_C_Oferta form = new Mant_C_Oferta("", "c");

            form.ShowDialog();
        }