예제 #1
0
 protected void ddl_zona_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.ddl_posicion.ClearSelection();
     if (this.ddl_zona.SelectedIndex != 0)
     {
         int     id_zona = Convert.ToInt32(this.ddl_zona.SelectedValue);
         PlayaBC playa   = new PlayaBC();
         if (rb_mantenimiento.Checked)
         {
             utils.CargaDrop(this.ddl_playa, "ID", "DESCRIPCION", playa.ObtenerPlayasXCriterio(null, null, id_zona, false, null));
         }
         else
         {
             utils.CargaDrop(this.ddl_playa, "ID", "DESCRIPCION", playa.ObtenerPlayasXCriterioTipoCarga(null, null, id_zona, false, Convert.ToInt32(this.ddl_tipo_carga.SelectedValue), "200"));
         }
         ddl_playa.Enabled = true;
         ddl_playa_SelectedIndexChanged(null, null);
     }
     else
     {
         ddl_posicion.Enabled = false;
         ddl_playa.Enabled    = false;
         ddl_posicion.ClearSelection();
         ddl_playa.ClearSelection();
     }
 }