예제 #1
0
 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);
 }
예제 #3
0
 protected void DatabindCarSegments(bool allSelected)
 {
     this.DropDownListCarSegment.Items.Clear();
     this.DropDownListCarSegment.DataSource = ReportLookups.GetCarSegmentsWithCountries();
     this.DropDownListCarSegment.DataBind();
     this.AddInitialValueToDropDown(this.DropDownListCarSegment, allSelected);
 }
예제 #4
0
 protected void LoadCountries()
 {
     this.DropDownListCountries.Items.Clear();
     this.DropDownListCountries.DataSource = ReportLookups.GetCountries();
     this.DropDownListCountries.DataBind();
     this.AddInitialValueToDropDown(this.DropDownListCountries, true);
 }
예제 #5
0
 protected void DatabindOPSRegions(bool allSelected)
 {
     this.DropDownListOPSRegions.Items.Clear();
     this.DropDownListOPSRegions.DataSource = ReportLookups.GetOPSRegionsWithCountry();
     this.DropDownListOPSRegions.DataBind();
     this.AddInitialValueToDropDown(this.DropDownListOPSRegions, allSelected);
 }
예제 #6
0
 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);
 }
예제 #8
0
        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();
        }