เตรียม UI รายงานแบบประเมิน
This commit is contained in:
@@ -18,8 +18,8 @@ namespace TodoAPI2.Models
|
||||
eva_create_evaluation_detail_processWithSelectionViewModel GetWithSelection(int id, int? emp_id, string path);
|
||||
eva_create_evaluation_detail_processWithSelectionViewModel GetBlankItem();
|
||||
|
||||
|
||||
|
||||
eva_create_evaluation_detail_processWithSelectionViewModel Get(int id, int? emp_id, string path);
|
||||
DataContext GetDataContext();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,10 @@ namespace TodoAPI2.Models
|
||||
var data = (
|
||||
from m_eva_create_evaluation_detail_process in _repository.Context.eva_create_evaluation_detail
|
||||
|
||||
join fk_eva_create_evaluation10 in _repository.Context.eva_create_evaluation on m_eva_create_evaluation_detail_process.create_evaluation_id equals fk_eva_create_evaluation10.id
|
||||
into eva_create_evaluationResult10
|
||||
from fk_eva_create_evaluationResult10 in eva_create_evaluationResult10.DefaultIfEmpty()
|
||||
|
||||
join fk_external_employee in allemp on m_eva_create_evaluation_detail_process.employee_id equals fk_external_employee.id
|
||||
into external_employeeResult
|
||||
from fk_external_employee in external_employeeResult.DefaultIfEmpty()
|
||||
@@ -100,9 +104,19 @@ namespace TodoAPI2.Models
|
||||
into external_chiefResult
|
||||
from fk_external_chief in external_chiefResult.DefaultIfEmpty()
|
||||
|
||||
join fk_eva_create_evaluation10 in _repository.Context.eva_create_evaluation on m_eva_create_evaluation_detail_process.create_evaluation_id equals fk_eva_create_evaluation10.id
|
||||
into eva_create_evaluationResult10
|
||||
from fk_eva_create_evaluationResult10 in eva_create_evaluationResult10.DefaultIfEmpty()
|
||||
join fk_external_supervisor2 in allemp on fk_eva_create_evaluationResult10.employee_id equals fk_external_supervisor2.id
|
||||
into external_supervisor2Result
|
||||
from fk_external_supervisor2 in external_supervisor2Result.DefaultIfEmpty()
|
||||
|
||||
join fk_external_supervisor1A in allemp on fk_eva_create_evaluationResult10.supervisor1_id equals fk_external_supervisor1A.id
|
||||
into external_supervisor1AResult
|
||||
from fk_external_supervisor1A in external_supervisor1AResult.DefaultIfEmpty()
|
||||
|
||||
join fk_external_supervisor2A in allemp on fk_eva_create_evaluationResult10.supervisor2_id equals fk_external_supervisor2A.id
|
||||
into external_supervisor2AResult
|
||||
from fk_external_supervisor2A in external_supervisor2AResult.DefaultIfEmpty()
|
||||
|
||||
|
||||
|
||||
where m_eva_create_evaluation_detail_process.id == id
|
||||
|
||||
@@ -111,12 +125,16 @@ namespace TodoAPI2.Models
|
||||
{
|
||||
id = m_eva_create_evaluation_detail_process.id,
|
||||
evaluation_round = fk_eva_create_evaluationResult10.eva_performance_plan.display_text,
|
||||
selected_round = fk_eva_create_evaluationResult10.eva_performance_plan.theTime,
|
||||
fiscal_year = fk_eva_create_evaluationResult10.eva_performance_plan.fiscal_year,
|
||||
employee_code = fk_external_employee.employee_no,
|
||||
employee_fullname = fk_external_employee.fullname,
|
||||
employee_profile_picture = fk_external_employee.profile_picture,
|
||||
employee_position = fk_external_employee.position_name,
|
||||
employee_position_type = fk_external_employee.position_type_name,
|
||||
employee_position_level = fk_external_employee.position_level_text,
|
||||
employee_org = fk_external_employee.department_name,
|
||||
employee_main_dept = ext.GetMainDept(fk_external_employee.department_id),
|
||||
employee_id = m_eva_create_evaluation_detail_process.employee_id,
|
||||
chief_fullname = fk_external_chief.fullname,
|
||||
chief_position = fk_external_chief.position_name,
|
||||
@@ -125,6 +143,13 @@ namespace TodoAPI2.Models
|
||||
search_employee_code = fk_external_employee.employee_no,
|
||||
search_employee_fullname = fk_external_employee.fullname,
|
||||
|
||||
supervisor2_fullname = fk_external_supervisor2.fullname,
|
||||
supervisor2_position = fk_external_supervisor2.position_name,
|
||||
supervisor1A_fullname = fk_external_supervisor1A.fullname,
|
||||
supervisor1A_position = fk_external_supervisor1A.position_name,
|
||||
supervisor2A_fullname = fk_external_supervisor2A.fullname,
|
||||
supervisor2A_position = fk_external_supervisor2A.position_name,
|
||||
|
||||
org_id_external_linkage_external_name = fk_external_employee.department_name,
|
||||
|
||||
create_evaluation_score1 = fk_eva_create_evaluationResult10.score1,
|
||||
@@ -355,6 +380,11 @@ namespace TodoAPI2.Models
|
||||
return "";
|
||||
}
|
||||
|
||||
public DataContext GetDataContext()
|
||||
{
|
||||
return _repository.Context;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace TodoAPI2.Models
|
||||
|
||||
public string employee_fullname { get; set; }
|
||||
|
||||
public string employee_profile_picture { get; set; }
|
||||
|
||||
public string employee_position { get; set; }
|
||||
|
||||
public string employee_position_type { get; set; }
|
||||
@@ -28,12 +30,26 @@ namespace TodoAPI2.Models
|
||||
|
||||
public string employee_org { get; set; }
|
||||
|
||||
public string employee_main_dept { get; set; }
|
||||
|
||||
public int? employee_id { get; set; }
|
||||
|
||||
public string chief_fullname { get; set; }
|
||||
|
||||
public string chief_position { get; set; }
|
||||
|
||||
public string supervisor2_fullname { get; set; }
|
||||
|
||||
public string supervisor2_position { get; set; }
|
||||
|
||||
public string supervisor1A_fullname { get; set; }
|
||||
|
||||
public string supervisor1A_position { get; set; }
|
||||
|
||||
public string supervisor2A_fullname { get; set; }
|
||||
|
||||
public string supervisor2A_position { get; set; }
|
||||
|
||||
public int? create_evaluation_id { get; set; }
|
||||
|
||||
public int? org_id { get; set; }
|
||||
|
||||
@@ -20,5 +20,8 @@ namespace TodoAPI2.Models
|
||||
public DateTime? start_date { get; set; }
|
||||
|
||||
public DateTime? end_date { get; set; }
|
||||
|
||||
public int? selected_round { get; set; }
|
||||
public int? fiscal_year { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user