ปรับปรุงเพิ่มเติม ตามที่้น้องเพลงแจ้ง
This commit is contained in:
@@ -190,7 +190,7 @@ namespace TodoAPI2.Models
|
||||
int? owner_eva_employee_id = existingEntity.employee_id;
|
||||
string noti_message = "กรุณาตรวจสอบแบบประเมินของ {0}";
|
||||
string noti_url = "/eva/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d2?id=" + existingEntity.id.ToString();
|
||||
|
||||
bool need_noti = true;
|
||||
|
||||
if (model.status_mode == "nextA")
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace TodoAPI2.Models
|
||||
existingEntity.status_chief_a_click_date = null;
|
||||
noti_to_employee_id = existingEntity.chief;
|
||||
noti_message = "กรุณาตรวจสอบ ข้อตกลงการประเมิน ของ {0}";
|
||||
noti_url = "/eva/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_firstdoc_d?id=" + existingEntity.id.ToString();
|
||||
noti_url = "/eva/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d?id=" + existingEntity.id.ToString();
|
||||
}
|
||||
else if (model.status_mode == "backB")
|
||||
{
|
||||
@@ -206,7 +206,7 @@ namespace TodoAPI2.Models
|
||||
existingEntity.status_self_a_click_date = null;
|
||||
noti_to_employee_id = existingEntity.employee_id;
|
||||
noti_message = "ข้อตกลงการประเมินของคุณ ({0}) ถูกตีกลับ";
|
||||
noti_url = "/eva/eva_create_evaluation_detail_agreementView/eva_create_evaluation_detail_firstdoc_d?id=" + existingEntity.id.ToString();
|
||||
noti_url = "/eva/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d?id=" + existingEntity.id.ToString();
|
||||
}
|
||||
else if (model.status_mode == "nextB")
|
||||
{
|
||||
@@ -219,6 +219,7 @@ namespace TodoAPI2.Models
|
||||
{
|
||||
noti_to_employee_id = current_eva.employee_id;
|
||||
}
|
||||
need_noti = false;
|
||||
}
|
||||
else if (model.status_mode == "next0")
|
||||
{
|
||||
@@ -286,7 +287,10 @@ namespace TodoAPI2.Models
|
||||
noti_url = "/eva/eva_create_evaluation_detail_agreementView/eva_create_evaluation_detail_agreement_d2?id=" + existingEntity.id.ToString();
|
||||
}
|
||||
|
||||
SendNotification(noti_to_employee_id, owner_eva_employee_id, existingEntity.id, noti_message, noti_url);
|
||||
if (need_noti)
|
||||
{
|
||||
SendNotification(noti_to_employee_id, owner_eva_employee_id, existingEntity.id, noti_message, noti_url);
|
||||
}
|
||||
|
||||
var updated = _repository.Update(id, existingEntity);
|
||||
return Get(updated.id);
|
||||
|
||||
Reference in New Issue
Block a user