public List <JobKpiEntity> LoadAllJobKpiAssessmentList() { List <JobKpiEntity> JobKpiAssessmentList = new List <JobKpiEntity>(); DataTable JobKpiAssessmentDataTable = JobKpiAssessmentDAL.LoadAll(); EmployeeBLL employeeBLL = new EmployeeBLL(); foreach (DataRow row in JobKpiAssessmentDataTable.Rows) { JobKpiEntity jobKpiEntity = new JobKpiEntity(); jobKpiEntity.ID = (int)row[0]; jobKpiEntity.Employee = employeeBLL.LoadOnePerID((int)row[1]); jobKpiEntity.CreatedDate = (DateTime)row[2]; jobKpiEntity.RoleInAssessment = (JobRankValue)row[3]; jobKpiEntity.Status = (AssessmentStatusValue)row[4]; JobKpiAssessmentList.Add(jobKpiEntity); } return(JobKpiAssessmentList); }
public DataTable LoadAllJobKpiAssessmentDataTable() { return(JobKpiAssessmentDAL.LoadAll()); }
public JobKpiAssessmentBLL() { jobKpiAssessmentDAL = new JobKpiAssessmentDAL(); }