private void GetDefaultParameters()
        {
            tbFromDate.Text = DateTime.Now.ToShortDateString();
            tbToDate.Text   = DateTime.Now.ToShortDateString();
            using (var dataAccess = new ParamaterListItemGenerator())
            {
                ddlTopics.Items.AddRange(dataAccess.GenerateAvailabilityTopicList().ToArray());
            }

            using (var dataAccess = new BaseDataAccess())
            {
                lbFleet.Items.AddRange(dataAccess.GetFleetTypesList(ModuleType.Availability).ToArray());
                var daysOfWeek = dataAccess.GetDayOfWeeks();
                daysOfWeek.Insert(0, new ListItem("All", string.Empty));
                ddlDayOfWeek.Items.AddRange(daysOfWeek.ToArray());
                lbMovementType.Items.AddRange(dataAccess.GetMovementTypesList().ToArray());
                lbOperationalStatus.Items.AddRange(dataAccess.GetOperationalStatusList().ToArray());
            }
            AddPredicamentDropDownValues();

            if (SessionStoredAvailabilityParameters != null)
            {
                ExtractParametersFromSession();
            }
            else
            {
                rblPercentOrValues.Items[2].Selected = true;
                rblDayGrouping.Items[0].Selected     = true;
                rblShowValuesAs.Items[0].Selected    = true;
            }
        }
        private void GetDefaultParameters()
        {
            using (var dataAccess = new BaseDataAccess())
            {
                lbFleet.Items.AddRange(dataAccess.GetFleetTypesList(ModuleType.NonRev).ToArray());
                var daysOfWeek = dataAccess.GetDayOfWeeks();
                daysOfWeek.Insert(0, new ListItem("All", string.Empty));

                var movTypes = dataAccess.GetMovementTypesList();
                movTypes.ForEach(d => d.Selected = d.Text != "R-O");
                var opStatuses = dataAccess.GetOperationalStatusList();
                opStatuses.ForEach(d => d.Selected = d.Text == "RT");
                lbMovementType.Items.AddRange(movTypes.ToArray());
                lbOperationalStatus.Items.AddRange(opStatuses.ToArray());
            }
        }