public override Inps TranslateToModel(INPS entity) { try { Inps nps = null; if (entity != null) { nps = new Inps(); nps.Id = entity.Inps_ID; nps.Type = inpsTypeTranslator.Translate(entity.INPS_TYPE); nps.Staff = staffTranslator.Translate(entity.STAFF); nps.Kpi = entity.Kpi; nps.Measure = entity.Measure; nps.DataSource = entity.Data_Source; nps.ResponsibleDepartment = departmentTranslator.Translate(entity.DEPARTMENT); nps.Target = entity.Target; nps.Score = entity.Score; nps.Period = PeriodTranslator.Translate(entity.PERIOD); } return(nps); } catch (Exception) { throw; } }
public override Appraisal TranslateToModel(APPRAISAL_HEADER entity) { try { Appraisal model = null; if (entity != null) { model = new Appraisal(); model.Id = entity.Appraisal_Header_ID; model.Period = periodTranslator.Translate(entity.PERIOD); model.Staff = staffTranslator.Translate(entity.STAFF); model.Supervisor = staffTranslator.Translate(entity.STAFF1); model.AppraisalDate = entity.Appraisal_Date; model.ResponseDate = entity.Staff_Response_Date; model.Hod = staffTranslator.Translate(entity.STAFF2); model.HodAppraisalDate = entity.Hod_Appraisal_Date; model.Status = statusTranslator.Translate(entity.STATUS); } return(model); } catch (Exception) { throw; } }
public override Metrics TranslateToModel(METRIC entity) { try { Metrics metrics = null; if (entity != null) { metrics = new Metrics(); metrics.Id = entity.Metric_ID; metrics.Perspective = metricsPerspectiveTranslator.Translate(entity.METRIC_PERSPECTIVE); metrics.CompanyDepartmentJobRole = companyDepartmentJobRoleTranslator.Translate(entity.COMPANY_DEPARTMENT_JOB_ROLE); metrics.Kpi = entity.Kpi; metrics.Measure = entity.Measure; metrics.DataSource = entity.Data_Source; metrics.ResponsibleDepartment = departmentTranslator.Translate(entity.DEPARTMENT); metrics.Target = entity.Target; metrics.Score = entity.Score; metrics.Period = PeriodTranslator.Translate(entity.PERIOD); metrics.JobRoleName = metrics.CompanyDepartmentJobRole.JobRole.Name; } return(metrics); } catch (Exception) { throw; } }
public override CurrentPeriod TranslateToModel(CURRENT_PERIOD currentPeriodEntity) { try { CurrentPeriod currentPeriod = null; if (currentPeriodEntity != null) { currentPeriod = new CurrentPeriod(); currentPeriod.Period = periodTranslator.Translate(currentPeriodEntity.PERIOD); } return(currentPeriod); } catch (Exception) { throw; } }
public override AssessmentLevel TranslateToModel(POTENTIAL_ASSESSMENT_JOB_ROLE_LEVEL entity) { try { AssessmentLevel model = null; if (entity != null) { model = new AssessmentLevel(); model.Id = entity.Potential_Assessment_Job_Role_Level_Id; model.Level = levelTranslator.Translate(entity.JOB_ROLE_LEVEL); model.Period = periodTranslator.Translate(entity.PERIOD); } return(model); } catch (Exception) { throw; } }
public override StaffLocation TranslateToModel(STAFF_LOCATION entity) { try { StaffLocation staffLocation = null; if (entity != null) { staffLocation = new StaffLocation(); staffLocation.Staff = staffTranslator.Translate(entity.STAFF); staffLocation.Location = locationTranslator.Translate(entity.LOCATION); staffLocation.Period = periodTranslator.Translate(entity.PERIOD); } return(staffLocation); } catch (Exception) { throw; } }
public override AssessmentPeriod TranslateToModel(POTENTIAL_ASSESSMENT_PERIOD entity) { try { AssessmentPeriod model = null; if (entity != null) { model = new AssessmentPeriod(); model.Id = entity.Potential_Assessment_Id; model.Assessment = assessmentTranslator.Translate(entity.POTENTIAL_ASSESSMENT); model.Period = periodTranslator.Translate(entity.PERIOD); } return(model); } catch (Exception) { throw; } }
public override StaffLevel TranslateToModel(STAFF_JOB_ROLE_LEVEL entity) { try { StaffLevel staffLevel = null; if (entity != null) { staffLevel = new StaffLevel(); staffLevel.Staff = staffTranslator.Translate(entity.STAFF); staffLevel.Level = levelTranslator.Translate(entity.JOB_ROLE_LEVEL); staffLevel.Period = periodTranslator.Translate(entity.PERIOD); } return(staffLevel); } catch (Exception) { throw; } }
public override StaffCdjr TranslateToModel(STAFF_COMPANY_DEPARTMENT_JOB_ROLE entity) { try { StaffCdjr staffCdjr = null; if (entity != null) { staffCdjr = new StaffCdjr(); staffCdjr.Staff = staffTranslator.Translate(entity.STAFF); staffCdjr.CompanyDepartmentJobRole = companyDepartmentJobRoleTranslator.Translate(entity.COMPANY_DEPARTMENT_JOB_ROLE); staffCdjr.Period = periodTranslator.Translate(entity.PERIOD); } return(staffCdjr); } catch (Exception) { throw; } }
public override StaffLearning TranslateToModel(STAFF_LEARNING entity) { try { StaffLearning staffLearning = null; if (entity != null) { staffLearning = new StaffLearning(); staffLearning.Staff = staffTranslator.Translate(entity.STAFF); staffLearning.Period = periodTranslator.Translate(entity.PERIOD); staffLearning.TrainingScore = entity.Training_Score; staffLearning.PercentScore = entity.Percentage_Score; } return(staffLearning); } catch (Exception) { throw; } }
public override JobRoleHod TranslateToModel(JOB_ROLE_HOD entity) { try { JobRoleHod jobRoleHod = null; if (entity != null) { jobRoleHod = new JobRoleHod(); jobRoleHod.HodCompanyDepartmentJobRole = companyDepartmentJobRoleTranslator.Translate(entity.COMPANY_DEPARTMENT_JOB_ROLE); jobRoleHod.StaffCompanyDepartmentJobRole = companyDepartmentJobRoleTranslator.Translate(entity.COMPANY_DEPARTMENT_JOB_ROLE1); jobRoleHod.Period = periodTranslator.Translate(entity.PERIOD); //jobRoleHod.Period = new Period() { Id = entity.Period_Id }; } return(jobRoleHod); } catch (Exception) { throw; } }
public override JobRoleSupervisor TranslateToModel(JOB_ROLE_SUPERVISOR entity) { try { JobRoleSupervisor jobRoleSupervisor = null; if (entity != null) { jobRoleSupervisor = new JobRoleSupervisor(); jobRoleSupervisor.SupervisorCompanyDepartmentJobRole = companyDepartmentJobRoleTranslator.Translate(entity.COMPANY_DEPARTMENT_JOB_ROLE1); jobRoleSupervisor.StaffCompanyDepartmentJobRole = companyDepartmentJobRoleTranslator.Translate(entity.COMPANY_DEPARTMENT_JOB_ROLE); jobRoleSupervisor.Period = periodTranslator.Translate(entity.PERIOD); //jobRoleSupervisor.Period = new Period() { Id = entity.Period_Id }; } return(jobRoleSupervisor); } catch (Exception) { throw; } }
public override MetricRating TranslateToModel(METRIC_RATING entity) { try { MetricRating metricRating = null; if (entity != null) { metricRating = new MetricRating(); metricRating.Metrics = metricsTranslator.Translate(entity.METRIC); metricRating.Rating = ratingTranslator.Translate(entity.RATING); metricRating.From = entity.From; metricRating.To = entity.To; metricRating.RatingType = ratingTypeTranslator.Translate(entity.RATING_TYPE); metricRating.Period = periodTranslator.Translate(entity.PERIOD); } return(metricRating); } catch (Exception) { throw; } }
public override InpsRating TranslateToModel(INPS_RATING entity) { try { InpsRating npsRating = null; if (entity != null) { npsRating = new InpsRating(); npsRating.Type = inpsTypeTranslator.Translate(entity.INPS_TYPE); npsRating.Rating = ratingTranslator.Translate(entity.RATING); npsRating.From = entity.From; npsRating.To = entity.To; npsRating.RatingType = ratingTypeTranslator.Translate(entity.RATING_TYPE); npsRating.Period = periodTranslator.Translate(entity.PERIOD); } return(npsRating); } catch (Exception) { throw; } }