diff --git a/Migrations/DataContextModelSnapshot.cs b/Migrations/DataContextModelSnapshot.cs index a394d4e..d6e2810 100644 --- a/Migrations/DataContextModelSnapshot.cs +++ b/Migrations/DataContextModelSnapshot.cs @@ -16,7 +16,7 @@ namespace tb320eva.Migrations #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn) - .HasAnnotation("ProductVersion", "2.2.4-servicing-10062") + .HasAnnotation("ProductVersion", "2.2.6-servicing-10079") .HasAnnotation("Relational:MaxIdentifierLength", 63); modelBuilder.Entity("TodoAPI2.Models.activity_log_evaEntity", b => diff --git a/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs b/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs index 17f6d38..903ff0f 100644 --- a/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs +++ b/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs @@ -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); diff --git a/wwwroot/js/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02_inline.js b/wwwroot/js/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02_inline.js index 86c7450..a4d9d94 100644 --- a/wwwroot/js/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02_inline.js +++ b/wwwroot/js/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02_inline.js @@ -146,7 +146,7 @@ function eva_adjust_postponement_detail_quota_02_Get(a, blankItem) { tag += '