protected void DatabindCarClass(bool allSelected) { DropDownListCarClass.Items.Clear(); DropDownListCarClass.DataSource = ReportLookups.GetCarClassesWithCarSegments(); DropDownListCarClass.DataBind(); AddInitialValueToDropDown(this.DropDownListCarClass, allSelected); }
protected void DatabindCountries(bool allSelected) { this.DropDownListCountries.Items.Clear(); this.DropDownListCountries.DataSource = ReportLookups.GetCountriesAll(); this.DropDownListCountries.DataBind(); this.AddInitialValueToDropDown(this.DropDownListCountries, allSelected); }
protected void DatabindCarSegments(bool allSelected) { this.DropDownListCarSegment.Items.Clear(); this.DropDownListCarSegment.DataSource = ReportLookups.GetCarSegmentsWithCountries(); this.DropDownListCarSegment.DataBind(); this.AddInitialValueToDropDown(this.DropDownListCarSegment, allSelected); }
protected void LoadCountries() { this.DropDownListCountries.Items.Clear(); this.DropDownListCountries.DataSource = ReportLookups.GetCountries(); this.DropDownListCountries.DataBind(); this.AddInitialValueToDropDown(this.DropDownListCountries, true); }
protected void DatabindOPSRegions(bool allSelected) { this.DropDownListOPSRegions.Items.Clear(); this.DropDownListOPSRegions.DataSource = ReportLookups.GetOPSRegionsWithCountry(); this.DropDownListOPSRegions.DataBind(); this.AddInitialValueToDropDown(this.DropDownListOPSRegions, allSelected); }
protected void DatabindCMSLocationGroups(bool allSelected) { this.DropDownListCMSLocationGroupCode.Items.Clear(); this.DropDownListCMSLocationGroupCode.DataSource = ReportLookups.GetCMSLocationGroupsWithCMSPools(); this.DropDownListCMSLocationGroupCode.DataBind(); this.AddInitialValueToDropDown(this.DropDownListCMSLocationGroupCode, allSelected); }
protected void DatabindCMSPools(bool allSelected) { this.DropDownListCMSPool.Items.Clear(); this.DropDownListCMSPool.DataSource = ReportLookups.GetCMSPoolsWithCountry(); this.DropDownListCMSPool.DataBind(); this.AddInitialValueToDropDown(this.DropDownListCMSPool, allSelected); }
protected void DatabindCountries() { this.DropDownListCountriesOwner.Items.Clear(); this.DropDownListCountriesOwner.DataSource = ReportLookups.GetCountries(); this.DropDownListCountriesOwner.DataBind(); this.DropDownListCountriesRent.Items.Clear(); this.DropDownListCountriesRent.DataSource = ReportLookups.GetCountries(); this.DropDownListCountriesRent.DataBind(); }
private void SetFleetSelections() { ddlFleet.Items.Clear(); var li = new ListItem(LocalizedParameterControl.AllParameterSelection, LocalizedParameterControl.AllParameterSelection); ddlFleet.Items.Insert(0, li); foreach (var f in ReportLookups.GetFleet()) { FleetName name; if (Enum.TryParse(f.Fleet_Name.Replace(" ", ""), true, out name)) { var spacedName = Regex.Replace(name.ToString(), "(\\B[A-Z])", " $1"); ddlFleet.Items.Add(new ListItem(spacedName, name.ToString())); } } ddlFleet.DataBind(); }