ปรับปรุงการแจ้งเตือน

This commit is contained in:
nakorn
2021-10-23 16:08:43 +07:00
parent 77c8e31dcd
commit f6b58c8406
4 changed files with 20 additions and 4 deletions

View File

@@ -196,7 +196,16 @@ namespace TodoAPI2.Models
entity.limit_quota = 0;
entity.limit_frame_quota = 0;
var all_emp = (from i in emp.GetListByemployee_type(null, null) where i.workingstatus == "สถานะปฏิบัติงาน" select i).ToList();
var active_emp = (from i in _repository.Context.eva_adjust_postponement_detail
join j in _repository.Context.eva_adjust_postponement on i.adjust_postponement_id equals j.id
where j.fiscal_year == model.fiscal_year
&& j.theRound == model.theRound
select i.employee_id).ToList();
var all_emp = (from i in emp.GetListByemployee_type(null, null)
where i.workingstatus != "คณะกรรมการเนติบัณฑิตยสภา"
&& active_emp.Contains(i.id)
select i).ToList();
var all_emp_id_list = (from i in all_emp select i.id).ToList();
entity.limit = AddMultipleDetail(entity.id, all_emp_id_list, entity.fiscal_year, entity.theRound, all_emp);