แก้บักการดึงข้อมูลคนที่ลาออกไปแล้ว
This commit is contained in:
@@ -79,7 +79,7 @@ namespace TodoAPI2.Models
|
||||
{
|
||||
var entity = _repository.Get(id);
|
||||
var i = Mapper.Map<eva_adjust_postponement_detail_migrationWithSelectionViewModel>(entity);
|
||||
var all_emp = emp.GetListByemployee_type(null, null);
|
||||
var all_emp = emp.GetAllEmployee();
|
||||
i.item_employee_id = all_emp.ToList();
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace TodoAPI2.Models
|
||||
public eva_adjust_postponement_detail_migrationWithSelectionViewModel GetBlankItem()
|
||||
{
|
||||
var i = new eva_adjust_postponement_detail_migrationWithSelectionViewModel();
|
||||
var all_emp = emp.GetListByemployee_type(null, null);
|
||||
var all_emp = emp.GetAllEmployee();
|
||||
i.item_employee_id = all_emp.ToList();
|
||||
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace TodoAPI2.Models
|
||||
var entity = _repository.Get(id);
|
||||
var i = Mapper.Map<eva_adjust_postponement_migrationWithSelectionViewModel>(entity);
|
||||
i.item_create_evaluation_id = (from x in _repository.Context.eva_create_evaluation select x).ToList();
|
||||
var all_emp = emp.GetListByemployee_type(null, null);
|
||||
var all_emp = emp.GetAllEmployee();
|
||||
i.item_managed_by = all_emp.ToList();
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace TodoAPI2.Models
|
||||
{
|
||||
var i = new eva_adjust_postponement_migrationWithSelectionViewModel();
|
||||
i.item_create_evaluation_id = (from x in _repository.Context.eva_create_evaluation select x).ToList();
|
||||
var all_emp = emp.GetListByemployee_type(null, null);
|
||||
var all_emp = emp.GetAllEmployee();
|
||||
i.item_managed_by = all_emp.ToList();
|
||||
|
||||
|
||||
@@ -240,6 +240,8 @@ namespace TodoAPI2.Models
|
||||
item.adjust_postponement_id = id;
|
||||
item.adjust_postponement_quota_id = id;
|
||||
|
||||
if (employee_no != null) employee_no = employee_no.Trim().Replace(" ", "");
|
||||
|
||||
var employee = (from qq in all_emp where qq.employee_no == employee_no select qq).FirstOrDefault();
|
||||
if (employee == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user