Exemple #1
0
        private void BMunicipio_Click(object sender, EventArgs e)
        {
            string           Prov = Tprovincia.Text.ToString().Trim();
            Mant_C_Municipio CP   = new Mant_C_Municipio(Prov);

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

            if (id.Trim() != "")
            {
                string descr = funciones.Lee_Descr_Municipio(id);
                Tmunicipio.Text = id;
                if (descr.Trim() == "0")
                {
                    if (Prov.Trim() != "")
                    {
                        MessageBox.Show("No Existe esta Municipio para la Provincia Seleccionada");
                    }
                    else
                    {
                        MessageBox.Show("No Existe este Municipio en la Base de Datos");
                    }

                    return;
                }
                Tdescr_municipio.Text = descr.ToString().Trim().ToUpper();
            }
        }
Exemple #2
0
        private void consultarToolStripMenuItem3_Click(object sender, EventArgs e)
        {
            Mant_C_Municipio form = new Mant_C_Municipio("");

            form.ShowDialog();
        }