예제 #1
0
        public async Task OnGet()
        {
            _logger.LogInformation($"University Student Engineering positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Shoreside
            //Architecture, Engineering ENG-02
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(11, "02"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Engineering and Scientific Support EG-02 to EG-05
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(6, "02"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(6, "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(6, "04"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(6, "05"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Seagoing
            //Ship's Officer MAO-02 to MAO-03 (engineering)
            SeagoingPositionIds = "&PositionId=109&PositionId=114&PositionId=115";
            SeagoingPositions   = await _jobpositionService.GetJobPositionByIdValues(SeagoingPositionIds);
        }
예제 #2
0
        public async Task OnGetAsync(int id, string level, string subgroupcode, int positionid)
        {
            _logger.LogInformation($"Current position selection page visited at {DateTime.UtcNow.ToLongTimeString()}");
            JobGroup = await _jobcategoryService.GetJobGroupById(id);

            JobGroupLevels = await _jobcategoryService.GetSubGroupLevelsByGroupId(id);

            JobGroupPositions = string.IsNullOrEmpty(subgroupcode) ? await _jobcategoryService.GetJobGroupPositionsByLevel(id, level) : await _jobcategoryService.GetJobGroupPositionsBySubGroupLevel(id, subgroupcode, level);

            Position = positionid == 0 ? null : await _jobcategoryService.GetJobPositionById(positionid);
        }
예제 #3
0
        public async Task OnGetAsync(int idobj, string levelobj, string subgroupcodeobj, int objectiveid)
        {
            _logger.LogInformation($"Objective positions page visited at {DateTime.UtcNow.ToLongTimeString()}");
            JobGroup = await _jobcategoryService.GetJobGroupById(idobj);

            JobGroupLevels = await _jobcategoryService.GetSubGroupLevelsByGroupId(idobj);

            JobGroupPositions = string.IsNullOrEmpty(subgroupcodeobj) ? await _jobcategoryService.GetJobGroupPositionsByLevel(idobj, levelobj) : await _jobcategoryService.GetJobGroupPositionsBySubGroupLevel(idobj, subgroupcodeobj, levelobj);

            ObjectivePosition = objectiveid == 0 ? null : await _jobcategoryService.GetJobPositionById(objectiveid);
        }
예제 #4
0
        public async Task OnGet()
        {
            _logger.LogInformation($"University Student Computer Science positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Computer Systems CS-01 to CS-02
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(3, "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(3, "02"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
        }
예제 #5
0
        public async Task OnGet()
        {
            _logger.LogInformation($"College Student Geographical Information positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Engineering and Scientific Support EG-05
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(6, "05"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
        }
예제 #6
0
        public async Task OnGet()
        {
            _logger.LogInformation($"College Student Electronics positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Electronics EL-04
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(23, "04"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
        }
예제 #7
0
        public async Task OnGet()
        {
            _logger.LogInformation($"High School Student Computer positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Computer Systems CS-01
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(3, "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Radio Operators RO-03
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(21, "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
        }
예제 #8
0
        public async Task OnGet()
        {
            _logger.LogInformation($"High School Student Administrative positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Shoreside
            //Clerical and Regulatory CR-03
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(2, "CR", "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Clerical and Regulatory CR-04
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(2, "CR", "04"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Purchasing and Supply PG-01
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(7, "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Office Equipement OE-01
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(19, "DEO", "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
        }
예제 #9
0
        public async Task OnGet()
        {
            _logger.LogInformation($"University Student General Arts positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Shoreside
            //Administrative Services AS-01 to AS-03
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(2, "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(2, "02"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(2, "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Economics and Social Science Services EC-01 to EC-02
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(13, "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(13, "02"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Programme Administration PM-03 to PM-04
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(20, "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(20, "04"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
        }
예제 #10
0
        public async Task OnGet(string positionids)
        {
            _logger.LogInformation($"High School Student Trades positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Shoreside
            //General Labour and Trades (GL-COI)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "COI", "09"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "COI", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "COI", "11"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //General Labour and Trades (GL-EIM)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "EIM", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "EIM", "11"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //General Labour and Trades (GL-MAM)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAM", "09"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAM", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAM", "11"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //General Labour and Trades (GL-MAN)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAN", "05"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAN", "06"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAN", "07"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAN", "08"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAN", "09"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MAN", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            //General Labour and Trades (GL-MDO)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MDO", "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MDO", "04"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MDO", "05"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MDO", "06"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MDO", "07"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            //General Labour and Trades (GL-MOC)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MOC", "05"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "MOC", "07"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            //General Labour and Trades (GL-PCF)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "PCF", "06"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "PCF", "07"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "PCF", "08"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            //General Labour and Trades (GL-PRW)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "PRW", "08"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "PRW", "09"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "PRW", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "PRW", "11"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            //General Labour and Trades (GL-VHE)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "VHE", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            //General Labour and Trades (GL-WOW)
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "WOW", "09"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "WOW", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //General Services FOS-02
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(4, "FOS", "02"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //General Technician GT-01 to GT-03
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(1, "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(1, "02"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(1, "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Lightkeepers LI-03
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(5, "03"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Purchasing and Supply PG-01
            foreach (var position in await _jobgroupService.GetJobGroupPositionsByLevel(7, "01"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Seagoing
            //Ship's Crew DED-02
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(9, "DED", "02"))
            {
                if (!position.Equals(null))
                {
                    SeagoingPositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    SeagoingPositions.Add(position);
                }
            }
            //Ship's Crew ERD-03
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(9, "ERD", "03"))
            {
                if (!position.Equals(null))
                {
                    SeagoingPositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    SeagoingPositions.Add(position);
                }
            }
            //Ship's Crew STD-01
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(9, "STD", "01"))
            {
                if (!position.Equals(null))
                {
                    SeagoingPositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    SeagoingPositions.Add(position);
                }
            }
        }