ปรับปรุง ปรับเลื่อน ค่าตอบแทน
This commit is contained in:
@@ -87,6 +87,26 @@ namespace TodoAPI2.Models
|
||||
i.item_managed_by = all_emp.ToList();
|
||||
i.item_org_id = (from x in ext.GetDepartmentData() select x).ToList();
|
||||
|
||||
var data_fiscal_year = (from f_y in _repository.Context.eva_adjust_postponement
|
||||
group f_y by f_y.fiscal_year into new_group
|
||||
orderby new_group.Key descending
|
||||
select new
|
||||
{
|
||||
fiscal_year = new_group.Key
|
||||
}
|
||||
).ToList();
|
||||
var result = new List<external_linkageViewModel>();
|
||||
foreach (var x in data_fiscal_year)
|
||||
{
|
||||
result.Add(new external_linkageViewModel
|
||||
{
|
||||
external_id = x.fiscal_year,
|
||||
external_code = x.fiscal_year.ToString(),
|
||||
external_name = x.fiscal_year.ToString()
|
||||
});
|
||||
}
|
||||
|
||||
i.item_fiscal_year = result;
|
||||
|
||||
return i;
|
||||
}
|
||||
@@ -104,6 +124,15 @@ namespace TodoAPI2.Models
|
||||
fiscal_year = new_group.Key
|
||||
}
|
||||
).ToList();
|
||||
var result = new List<external_linkageViewModel>();
|
||||
foreach(var x in data_fiscal_year)
|
||||
{
|
||||
result.Add(new external_linkageViewModel {
|
||||
external_id = x.fiscal_year,
|
||||
external_code = x.fiscal_year.ToString(),
|
||||
external_name = x.fiscal_year.ToString()
|
||||
});
|
||||
}
|
||||
|
||||
var i = new eva_adjust_postponement_normalWithSelectionViewModel();
|
||||
var temp = create.GetListBySearch(new eva_create_evaluationSearchModel());
|
||||
@@ -112,6 +141,7 @@ namespace TodoAPI2.Models
|
||||
i.item_managed_by = all_emp.ToList();
|
||||
i.item_org_id = (from x in ext.GetDepartmentData() select x).ToList();
|
||||
|
||||
i.item_fiscal_year = result;
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace TodoAPI2.Models
|
||||
{
|
||||
public class eva_adjust_postponement_normalWithSelectionViewModel: eva_adjust_postponement_normalViewModel
|
||||
{
|
||||
public List<external_linkageViewModel> item_fiscal_year { get; set; }
|
||||
public List<eva_create_evaluationViewModel> item_create_evaluation_id { get; set; }
|
||||
public List<external_employeeViewModel> item_managed_by { get; set; }
|
||||
public List<external_linkageViewModel> item_org_id { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user