Esempio n. 1
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);
 }
Esempio n. 2
0
 public static RecruiteeDto createRecruiteeDTO(Recruitee obj)
 {
     RecruiteeDto rec = new RecruiteeDto();
     rec.RecruiteeId = obj.RecruiteeId;
     rec.RankingId = obj.RankingId;
     rec.RankingValue = (double)obj.RankingValue;
     rec.Email = obj.Email;
     rec.FirstName = obj.FirstName;
     rec.LastName = obj.LastName;
     rec.Gender = obj.Gender;
     rec.AgeId = obj.AgeId;
     rec.EducationId = obj.EducationId;
     rec.IncomeId = obj.IncomeId;
     return rec;
 }
Esempio n. 3
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);
    }
Esempio n. 4
0
    public RecruiteeDto selectRecruiteeById(RecruiteeDto dto)
    {
        RecruiteeManager mgr = new RecruiteeManager();
        Recruitee obj = new Recruitee();
        obj.RecruiteeId = dto.RecruiteeId;
        obj = mgr.selectRecruiteeById(obj);

        if (obj != null)
        {
            return RecruiteeDto.createRecruiteeDTO(obj);
        }
        else
        {
            return null;
        }
    }
Esempio n. 5
0
 public static RecruiteeDto createRecruiteeDTO(Guid RecruiteeId, String RankingId, double RankingValue, String Email,
            String FirstName, String LastName, String Gender, String AgeId, String EducationId, String IncomeId)
 {
     RecruiteeDto rec = new RecruiteeDto();
     rec.RecruiteeId = RecruiteeId;
     rec.RankingId = RankingId;
     rec.RankingValue = (double)RankingValue;
     rec.Email = Email;
     rec.FirstName = FirstName;
     rec.LastName = LastName;
     rec.Gender = Gender;
     rec.AgeId = AgeId;
     rec.EducationId = EducationId;
     rec.IncomeId = IncomeId;
     return rec;
 }