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

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

@@ -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 =>

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);

View File

@@ -146,7 +146,7 @@ function eva_adjust_postponement_detail_quota_02_Get(a, blankItem) {
tag += '<td><input onchange="CalculateRemainQuota(false);" class="form-control" type="number" id="eva_adjust_postponement_detail_quota_02_receive_quota_' + (i + 1) + '" /></td>';
tag += '<td><p id="eva_adjust_postponement_detail_quota_02_new_sarary_with_quota_' + (i + 1) + '" /></td>';
tag += '<td style="display:none;"><p id="eva_adjust_postponement_detail_quota_02_reward_new2_' + (i + 1) + '" /></td>';
tag += '<td><input class="form-control" type="number" id="eva_adjust_postponement_detail_quota_02_new_cost_living_' + (i + 1) + '" /></td>';
tag += '<td><input class="form-control" disabled type="number" id="eva_adjust_postponement_detail_quota_02_new_cost_living_' + (i + 1) + '" /></td>';
tag += '<td><p id="eva_adjust_postponement_detail_quota_02_remark_' + (i + 1) + '" /></td>';

View File

@@ -181,8 +181,15 @@ function Oneva_adjust_postponement_detail_normal_02_promoted_percentageChanged(m
var new_added = Math.ceil(((percentage * middle) / 100) / 10) * 10;
var new_salary = parseFloat(old_salary + new_added);
//if (new_salary > themax) {
// alert("เงินเดือนเกินกรอบวงเงินขั้นสูงของพนักงานคือ " + formatNumber(themax) + " บาท แต่สามารถหยอดได้ถึง " + formatNumber(salary_max) + " บาท กรุณาหยอดร้อยละที่ได้เลื่อนอีกครั้งค่ะ");
//}
if (new_salary > salary_max) {
alert("เงินเดือนเกินกรอบวงเงินขั้นสูงของพนักงานคือ " + formatNumber(themax) + " บาท แต่สามารถหยอดได้ถึง " + formatNumber(salary_max) + " บาท กรุณาหยอดร้อยละที่ได้เลื่อนอีกครั้งค่ะ");
alert("เงินเดือนใหม่ที่ได้รับ เกินกรอบวงเงินสูงสุด(1 ขั้น) ของพนักงาน คือ " + formatNumber(salary_max) + " บาท");
percentage = 0.000;
$("#eva_adjust_postponement_detail_normal_02_promoted_percentage_" + i).val("0.000");
new_added = Math.ceil(((percentage * middle) / 100) / 10) * 10;
new_salary = parseFloat(old_salary + new_added);
}
var format_new_added = coreFormatPrice(new_added, 3);