protected void drop_SelectedIndexChanged(object sender, EventArgs e) { PlayaBC p = new PlayaBC(); p.SITE_ID = Convert.ToInt32(dropsite.SelectedValue); p.ID_TIPOPLAYA = 100; p.ID_TIPOZONA = 200; utils.CargaDropTodos(this.ddl_buscarPlaya, "ID", "DESCRIPCION", p.ObtenerTodas()); ObtenerTrailer(true); }
protected void ddl_buscarSite_SelectedIndexChanged(object sender, EventArgs e) { PlayaBC p = new PlayaBC(); p.SITE_ID = Convert.ToInt32(this.ddl_buscarSite.SelectedValue); p.ID_TIPOPLAYA = 100; this.utils.CargaDropTodos(this.ddl_buscarPlaya, "ID", "DESCRIPCION", p.ObtenerTodas()); this.ddl_buscarPlaya_SelectedIndexChanged(null, null); this.ObtenerSolicitudes(true); }
public void Playa_Todos(System.Web.UI.WebControls.DropDownList ddl, int zona_id = 0, int site_id = 0) { UtilsWeb u = new UtilsWeb(); DataTable dt; if (zona_id != 0) { dt = p.ObtenerXZona(zona_id); } else if (site_id != 0) { dt = p.ObtenerXSite(site_id); } else { dt = p.ObtenerTodas(); } DataView dw = dt.AsDataView(); dw.Sort = "DESCRIPCION ASC"; u.CargaDropTodos(ddl, "ID", "DESCRIPCION", dw.ToTable()); }