Example #1
0
        public RawDataViewModel()
        {
            DurationList = new[] { "18 hours", "24 hours", "Custom" }.ToSelectListItems();

            GetStartHoursList("StartHours");

            GetStartHoursList("EndingHours");

            GetMonthList();

            YearList = CRCDataAccess.GetScheduleYearsList(2).ToSelectListItems().SetSelected(DateTime.UtcNow.Year);

            StationStatusList = new[] { "Flagship and Non-100%(Partial) Repeater", "100% Repeater", "All Statuses" }.ToSelectListItems();

            GetStationStatusList();

            GetMemberStatusList();

            //StationList = CRCDataAccess.GetStationsList().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();

            StationList = CRCDataAccess.GetStationsList().ToSelectListItems().AddBlankFirstItem();

            //FormatTypeList = new[] { "Excel", "CSV", "PDF" }.ToSelectListItems();

            FormatTypeList = new[] { "Excel", "CSV" }.ToSelectListItems();

            GetBandList();
        }
Example #2
0
 public LeadInLeadOutViewModel()
 {
     CarriageType       = new[] { "Regular", "NPR Newscasts" }.ToSelectListItems();
     ProgramEnabledList = new[] { "Yes", "No", "Both" }.ToSelectListItems();
     //ProgramList = new[] { "abc", "abc", "abc" }.ToSelectListItems();
     ProgramList      = CRCDataAccess.GetProgramLookup_ED("Yes").ToSelectListItems("ProgramID", "ProgramName").OrderBy(li => li.Text).AddBlankFirstItem();;
     MonthsFromList   = CRCDataAccess.GetMonthsList().ToSelectListItems("MonthNumber", "MonthName").SetSelected(DateTime.UtcNow.Month);
     YearsFromList    = CRCDataAccess.GetScheduleYearsList(2).ToSelectListItems().SetSelected(DateTime.UtcNow.Year);
     MonthsToList     = CRCDataAccess.GetMonthsList().ToSelectListItems("MonthNumber", "MonthName").SetSelected(DateTime.UtcNow.Month);
     YearsToList      = CRCDataAccess.GetScheduleYearsList(2).ToSelectListItems().SetSelected(DateTime.UtcNow.Year);
     ReportFormatList = new[] { "Excel", "CSV", "PDF" }.ToSelectListItems();
     //BandList = new[] { "Terrestrial", "Terrestrial & HD Multicast", "HD Multicast", "HD All" }.ToSelectListItems();
     GetBandList();
     StationEnabledList = new[] { "Yes", "No", "Both" }.ToSelectListItems();
     MemberStatusList   = CRCDataAccess.GetMemberStatusEnabled().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     StationList        = CRCDataAccess.GetStationsList().ToSelectListItems("StationId", "DisplayName").OrderBy(li => li.Text).AddBlankFirstItem();
     StationStateList   = CRCDataAccess.GetStates().ToSelectListItems("StateId", "Abbreviation").OrderBy(li => li.Text).AddBlankFirstItem();
     StationCityList    = CRCDataAccess.GetCities().ToSelectListItems("City", "City").OrderBy(li => li.Text).AddBlankFirstItem();
     DaysList           = new[] { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }.ToSelectListItems();
     StartTimeList      = new[] {
         "12:00 AM", "12:15 AM", "12:30 AM", "12:45 AM", "1:00 AM", "1:15 AM", "1:30 AM", "1:45 AM", "2:00 AM", "2:15 AM", "2:30 AM", "2:45 AM", "3:00 AM", "3:15 AM", "3:30 AM", "3:45 AM", "4:00 AM", "4:15 AM", "4:30 AM", "4:45 AM", "5:00 AM", "5:15 AM", "5:30 AM", "5:45 AM", "6:00 AM", "6:15 AM", "6:30 AM", "6:45 AM", "7:00 AM", "7:15 AM", "7:30 AM", "7:45 AM", "8:00 AM", "8:15 AM", "8:30 AM", "8:45 AM", "9:00 AM", "9:15 AM", "9:30 AM", "9:45 AM", "10:00 AM", "10:15 AM", "10:30 AM", "10:45 AM", "11:00 AM", "11:15 AM", "11:30 AM", "11:45 AM", "12:00 PM", "12:15 PM", "12:30 PM", "12:45 PM", "1:00 PM", "1:15 PM", "1:30 PM", "1:45 PM", "2:00 PM", "2:15 PM", "2:30 PM", "2:45 PM", "3:00 PM", "3:15 PM", "3:30 PM", "3:45 PM", "4:00 PM", "4:15 PM", "4:30 PM", "4:45 PM", "5:00 PM", "5:15 PM", "5:30 PM", "5:45 PM", "6:00 PM", "6:15 PM", "6:30 PM", "6:45 PM", "7:00 PM", "7:15 PM", "7:30 PM", "7:45 PM", "8:00 PM", "8:15 PM", "8:30 PM", "8:45 PM", "9:00 PM", "9:15 PM", "9:30 PM", "9:45 PM", "10:00 PM", "10:15 PM", "10:30 PM", "10:45 PM", "11:00 PM", "11:15 PM", "11:30 PM", "11:45 PM"
     }.ToSelectListItems();
     EndTimeList = new[] {
         "12:15 AM", "12:30 AM", "12:45 AM", "1:00 AM", "1:15 AM", "1:30 AM", "1:45 AM", "2:00 AM", "2:15 AM", "2:30 AM", "2:45 AM", "3:00 AM", "3:15 AM", "3:30 AM", "3:45 AM", "4:00 AM", "4:15 AM", "4:30 AM", "4:45 AM", "5:00 AM", "5:15 AM", "5:30 AM", "5:45 AM", "6:00 AM", "6:15 AM", "6:30 AM", "6:45 AM", "7:00 AM", "7:15 AM", "7:30 AM", "7:45 AM", "8:00 AM", "8:15 AM", "8:30 AM", "8:45 AM", "9:00 AM", "9:15 AM", "9:30 AM", "9:45 AM", "10:00 AM", "10:15 AM", "10:30 AM", "10:45 AM", "11:00 AM", "11:15 AM", "11:30 AM", "11:45 AM", "12:00 PM", "12:15 PM", "12:30 PM", "12:45 PM", "1:00 PM", "1:15 PM", "1:30 PM", "1:45 PM", "2:00 PM", "2:15 PM", "2:30 PM", "2:45 PM", "3:00 PM", "3:15 PM", "3:30 PM", "3:45 PM", "4:00 PM", "4:15 PM", "4:30 PM", "4:45 PM", "5:00 PM", "5:15 PM", "5:30 PM", "5:45 PM", "6:00 PM", "6:15 PM", "6:30 PM", "6:45 PM", "7:00 PM", "7:15 PM", "7:30 PM", "7:45 PM", "8:00 PM", "8:15 PM", "8:30 PM", "8:45 PM", "9:00 PM", "9:15 PM", "9:30 PM", "9:45 PM", "10:00 PM", "10:15 PM", "10:30 PM", "10:45 PM", "11:00 PM", "11:15 PM", "11:30 PM", "11:45 PM", "Midnight"
     }.ToSelectListItems();
 }
Example #3
0
        public SearchCRCUsersViewModel()
        {
            EnabledList        = new[] { "Yes", "No", "Both" }.ToSelectListItems();
            UserRoleList       = new[] { "All", "Station User", "Administrator" }.ToSelectListItems();
            UserPermissionList = new[] { "All", "Primary Users Only", "Grid Write Users Only" }.ToSelectListItems();
            BandList           = new[] { "Terrestrial", "HD" }.ToSelectListItems().AddBlankFirstItem();

            StationList       = CRCDataAccess.GetStationsList().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
            StationStatusList = CRCDataAccess.GetRepeaterStatuses().ToSelectListItems().AddBlankFirstItem();
        }
 public SearchStationsViewModel()
 {
     StationList        = CRCDataAccess.GetStationsList().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     RepeaterStatusList = CRCDataAccess.GetRepeaterStatuses().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     MetroMarketList    = CRCDataAccess.GetMetroMarkets().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     DMAMarketList      = CRCDataAccess.GetDMAMarkets().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     MemberStatusList   = CRCDataAccess.GetMemberStatuses().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     GetBandList();
     //BandList = CRCDataAccess.GetBands().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     StateList        = CRCDataAccess.GetStates().ToSelectListItems("StateId", "Abbreviation").OrderBy(li => li.Text).AddBlankFirstItem();
     LicenseeTypeList = CRCDataAccess.GetDropDownLicenseeTypes().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     AffiliateList    = CRCDataAccess.GetAffiliates().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     EnabledList      = new[] { "Yes", "No", "Both" }.ToSelectListItems();
 }
 public CarriageListByProgramViewModel()
 {
     CarriageType       = new[] { "Regular", "NPR Newscasts" }.ToSelectListItems();
     ProgramEnabledList = new[] { "Yes", "No", "Both" }.ToSelectListItems();
     //ProgramList = new[] { "abc", "abc", "abc" }.ToSelectListItems();
     ProgramList      = CRCDataAccess.GetProgramLookup().ToSelectListItems("ProgramID", "ProgramName").OrderBy(li => li.Text).AddBlankFirstItem();;
     MonthsFromList   = CRCDataAccess.GetMonthsList().ToSelectListItems("MonthNumber", "MonthName").SetSelected(DateTime.UtcNow.Month);
     YearsFromList    = CRCDataAccess.GetScheduleYearsList(2).ToSelectListItems().SetSelected(DateTime.UtcNow.Year);
     MonthsToList     = CRCDataAccess.GetMonthsList().ToSelectListItems("MonthNumber", "MonthName").SetSelected(DateTime.UtcNow.Month);
     YearsToList      = CRCDataAccess.GetScheduleYearsList(2).ToSelectListItems().SetSelected(DateTime.UtcNow.Year);
     ReportFormatList = new[] { "Excel", "CSV", "PDF" }.ToSelectListItems();
     //BandList = new[] { "Terrestrial", "Terrestrial & HD Multicast", "HD Multicast", "HD All" }.ToSelectListItems();
     GetBandList();
     StationEnabledList = new[] { "Yes", "No", "Both" }.ToSelectListItems();
     MemberStatusList   = CRCDataAccess.GetMemberStatusEnabled().ToSelectListItems().OrderBy(li => li.Text).AddBlankFirstItem();
     StationList        = CRCDataAccess.GetStationsList().ToSelectListItems("StationId", "DisplayName").OrderBy(li => li.Text).AddBlankFirstItem();
     StationStateList   = CRCDataAccess.GetStates().ToSelectListItems("StateId", "Abbreviation").OrderBy(li => li.Text).AddBlankFirstItem();
     StationCityList    = CRCDataAccess.GetCities().ToSelectListItems("City", "City").OrderBy(li => li.Text).AddBlankFirstItem();
 }