Ejemplo n.º 1
1
 public Boolean addSkillToRecruitee(Guid RecruiteeId, String SkillId)
 {
     RecruiteeManager mgr = new RecruiteeManager();
     Recruitee rec = Recruitee.createRecruitee(RecruiteeId, null, 0, "", "", "", "", "", "", "");
     Recruitee obj = mgr.selectRecruiteeById(rec);
     return mgr.addSkillToRecruitee(obj, SkillId);
 }
Ejemplo n.º 2
0
 public Boolean deleteRecruitee(RecruiteeDto dto)
 {
     Recruitee obj = Recruitee.createRecruitee(dto.RecruiteeId, dto.RankingId, (decimal)dto.RankingValue, dto.Email,
                        dto.FirstName, dto.LastName, dto.Gender, dto.AgeId, dto.EducationId, dto.IncomeId);
     RecruiteeManager mgr = new RecruiteeManager();
     return mgr.deleteRecruitee(obj);
 }
Ejemplo n.º 3
0
 public Boolean deleteRecruitee(Guid RecruiteeId, String RankingId, double RankingValue, String Email,
                String FirstName, String LastName, String Gender, String AgeId, String EducationId, String IncomeId)
 {
     Recruitee obj = Recruitee.createRecruitee(RecruiteeId, RankingId, (decimal)RankingValue, Email,
                        FirstName, LastName, Gender, AgeId, EducationId, IncomeId);
     RecruiteeManager mgr = new RecruiteeManager();
     return mgr.deleteRecruitee(obj);
 }
Ejemplo n.º 4
0
    public Boolean updateRecruitee(Guid RecruiteeId, String RankingId, double RankingValue, String Email,
                   String FirstName, String LastName, String Gender, String AgeId, String EducationId, String IncomeId)
    {
        if (AgeId.Equals(""))
        {
            AgeId = null;
        }

        if (EducationId.Equals(""))
        {
            EducationId = null;
        }

        if (IncomeId.Equals(""))
        {
            IncomeId = null;
        }

        if (RankingId.Equals(""))
        {
            RankingId = null;
        }
        Recruitee obj = Recruitee.createRecruitee(RecruiteeId, RankingId, (decimal)RankingValue, Email,
                           FirstName, LastName, Gender, AgeId, EducationId, IncomeId);
        RecruiteeManager mgr = new RecruiteeManager();
        return mgr.updateRecruitee(obj);
    }
Ejemplo n.º 5
0
 public Guid[] selectRecruiteeNames()
 {
     RecruiteeManager mgr = new RecruiteeManager();
     return mgr.selectRecruiteeNames();
 }
Ejemplo n.º 6
0
    public List<RecruiteeDto> selectRecruiteeBySkillId(String skillId)
    {
        RecruiteeManager mgr = new RecruiteeManager();
        List<Recruitee> recList = mgr.selectRecruiteeBySkillId(skillId);
        List<RecruiteeDto> dtoList = new List<RecruiteeDto>();

        foreach (Recruitee rec in recList)
        {
            dtoList.Add(RecruiteeDto.createRecruiteeDTO(rec));
        }

        return dtoList;
    }
Ejemplo n.º 7
0
    public RecruiteeDto selectRecruiteeById(Guid RecruiteeId)
    {
        RecruiteeManager mgr = new RecruiteeManager();
        Recruitee obj = new Recruitee();
        obj.RecruiteeId = RecruiteeId;
        obj = mgr.selectRecruiteeById(obj);

        if (obj != null)
        {
            return RecruiteeDto.createRecruiteeDTO(obj);
        }
        else
        {
            return null;
        }
    }
Ejemplo n.º 8
0
    public RecruiteeDto selectRecruiteeByEmail(String Email)
    {
        RecruiteeManager mgr = new RecruiteeManager();
        Recruitee obj = new Recruitee();
        obj.Email = Email;
        obj = mgr.selectRecruiteeByEmail(obj);

        if (obj != null)
        {
            return RecruiteeDto.createRecruiteeDTO(obj);
        }
        else
        {
            return null;
        }
    }
Ejemplo n.º 9
0
    public List<RecruiteeDto> selectAllRecruitee()
    {
        RecruiteeManager mgr = new RecruiteeManager();
        List<Recruitee> recList = mgr.selectAllRecruitee();
        List<RecruiteeDto> dtoList = new List<RecruiteeDto>();

        foreach (Recruitee rec in recList)
        {
            dtoList.Add(RecruiteeDto.createRecruiteeDTO(rec));
        }

        return dtoList;
    }
Ejemplo n.º 10
0
    public Boolean updateRecruitee(RecruiteeDto dto)
    {
        if (dto.AgeId != null && dto.AgeId.Equals(""))
        {
            dto.AgeId = null;
        }

        if (dto.EducationId != null && dto.EducationId.Equals(""))
        {
            dto.EducationId = null;
        }

        if (dto.IncomeId != null && dto.IncomeId.Equals(""))
        {
            dto.IncomeId = null;
        }

        if (dto.RankingId != null && dto.RankingId.Equals(""))
        {
            dto.RankingId = null;
        }
        Recruitee obj = Recruitee.createRecruitee(dto.RecruiteeId, dto.RankingId, (decimal)dto.RankingValue, dto.Email,
                           dto.FirstName, dto.LastName, dto.Gender, dto.AgeId, dto.EducationId, dto.IncomeId);
        RecruiteeManager mgr = new RecruiteeManager();
        return mgr.updateRecruitee(obj);
    }