แก้ไขตามผล Unit Test, ทดสอบทั้ง Flow, ส่งทดสอบ System Test
This commit is contained in:
@@ -195,6 +195,7 @@ namespace TodoAPI2.Models
|
||||
if (model.status_mode == "nextA")
|
||||
{
|
||||
existingEntity.status_self_a_click_date = MyHelper.RemoveTimeFromDate(DateTime.Now);
|
||||
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();
|
||||
@@ -323,7 +324,7 @@ values('{Guid.NewGuid().ToString()}','App\Notifications\WorkflowNotification','A
|
||||
List<NpgsqlParameter> para = new List<NpgsqlParameter>();
|
||||
para.Add(data);
|
||||
|
||||
//db.ExecuteNonQueryNpgsql(sql, para);
|
||||
db.ExecuteNonQueryNpgsql(sql, para);
|
||||
}
|
||||
|
||||
public string UpdateMultiple(List<eva_create_evaluation_detail_statusInputModel> model)
|
||||
|
||||
@@ -269,7 +269,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-12">
|
||||
<div class="form-group col-md-12 reject_section">
|
||||
<label id="lab_eva_create_evaluation_detail_review0A_chief_a_reject_reason" for="eva_create_evaluation_detail_review0A_chief_a_reject_reason">เหตุผลการส่งคืนเอกสาร</label>
|
||||
<textarea class="form-control" rows="4" cols="50" id="eva_create_evaluation_detail_review0A_chief_a_reject_reason" iLabel="เหตุผลการส่งคืนเอกสาร" iRequire="false" iGroup="eva_create_evaluation_detail_review0A"></textarea>
|
||||
</div>
|
||||
@@ -320,9 +320,12 @@
|
||||
$("#status").text("");
|
||||
$(".approve_section").hide();
|
||||
$("#s2_text").hide();
|
||||
$(".reject_section").hide();
|
||||
|
||||
if (role_code === "1") { // ผู้ประเมิน
|
||||
$(".approve_section").show();
|
||||
$(".reject_section").show();
|
||||
|
||||
if (status_self_a === "Y") {
|
||||
$(".status_chief").show();
|
||||
}
|
||||
@@ -330,15 +333,18 @@
|
||||
$("#status").text("ข้อตกลงการประเมิน ได้รับการอนุมัติไปแล้ว");
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_chief").hide();
|
||||
$("#eva_create_evaluation_detail_review0A_chief_a_reject_reason").prop("disabled", true);
|
||||
}
|
||||
else if (status_chief_a === "N") {
|
||||
$("#status").text("คุณตีกลับข้อตกลงการประเมิน กรูณารอผู้ประเมินแก้ไขและส่งกลับ");
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_chief").hide();
|
||||
$("#eva_create_evaluation_detail_review0A_chief_a_reject_reason").prop("disabled", true);
|
||||
}
|
||||
|
||||
$("#s1_text").text("ส่วนที่ 1 ข้อตกลงการปฏิบัติงาน");
|
||||
$("#s2_text").show();
|
||||
|
||||
|
||||
} else if (role_code === "") { // ผู้รับการประเมิน
|
||||
$(".status_self").show();
|
||||
@@ -347,21 +353,15 @@
|
||||
}
|
||||
if (status_chief_a === "Y") {
|
||||
$("#status").text("ข้อตกลงการประเมิน ได้รับการอนุมัติไปแล้ว");
|
||||
$(".approve_section").show();
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_self").hide();
|
||||
}
|
||||
else if (status_chief_a === "N") {
|
||||
$("#status").text("ข้อตกลงการประเมินของคุณถูกตีกลับ กรุณาแก้ไข และส่งใหม่");
|
||||
$(".approve_section").show();
|
||||
$(".approve_item").prop("disabled", true);
|
||||
$(".status_self").show();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$(".reject_section").show();
|
||||
$("#eva_create_evaluation_detail_review0A_chief_a_reject_reason").prop("disabled", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user