Exemplo n.º 1
0
 protected void LimpiarForm()
 {
     FuncionGlobal.comboparametro(this.dl_tipo_direccion, "TDIR");
     FuncionGlobal.combocapitales(this.dl_ciudad);
     FuncionGlobal.combocomunabycapitales(this.dl_comuna, Convert.ToInt16(this.dl_ciudad.SelectedValue));
     this.hdn_id_direccion.Value = "0";
     this.txt_direccion.Text     = "";
     this.txt_numero.Text        = "";
     this.txt_complemento.Text   = "";
 }
Exemplo n.º 2
0
        protected void MostrarForm(int id)
        {
            this.LimpiarForm();
            Direcciones direccion = (from d in new DireccionesBC().getdirecciones(this.Rut)
                                     where d.Id_direccion == id
                                     select d).FirstOrDefault <Direcciones>();

            if (direccion != null)
            {
                this.hdn_id_direccion.Value  = direccion.Id_direccion.ToString();
                this.txt_direccion.Text      = direccion.Direccion.Trim().ToUpper();
                this.txt_numero.Text         = direccion.Numero.Trim().ToUpper();
                this.txt_complemento.Text    = direccion.Complemento.Trim().ToUpper();
                this.dl_ciudad.SelectedValue = direccion.Comuna.Ciudad.Region.Id_region.ToString();
                FuncionGlobal.combocomunabycapitales(this.dl_comuna, Convert.ToInt16(this.dl_ciudad.SelectedValue));
                this.dl_comuna.SelectedValue = direccion.Comuna.Id_Comuna.ToString();
            }
        }
Exemplo n.º 3
0
 protected void dl_ciudad_SelectedIndexChanged(object sender, EventArgs e)
 {
     FuncionGlobal.combocomunabycapitales(this.dl_comuna, Convert.ToInt16(this.dl_ciudad.SelectedValue));
 }