แก้ไข Change OP 2558
This commit is contained in:
@@ -94,6 +94,10 @@ function eva_create_evaluation_detail_agreement_GoEdit(a) {
|
||||
window_open(appsite + "/eva_create_evaluation_detail_agreementView/eva_create_evaluation_detail_agreement_d?id=" + a);
|
||||
}
|
||||
|
||||
function eva_create_evaluation_detail_agreement_GoSelfReview(a) {
|
||||
window_open(appsite + "/eva_create_evaluation_detail_processView/eva_create_evaluation_detail_process_d?id=" + a);
|
||||
}
|
||||
|
||||
function eva_create_evaluation_detail_agreement_SetEditForm(a) {
|
||||
var successFunc = function (result) {
|
||||
eva_create_evaluation_detail_agreement_editMode = "UPDATE";
|
||||
@@ -192,6 +196,8 @@ console.log(result);
|
||||
{ "data": "org_id_external_linkage_external_name" },
|
||||
{ "data": "status_chief" },
|
||||
{ "data": "status_supervisor" },
|
||||
|
||||
{ "data": "id" }
|
||||
|
||||
],
|
||||
"columnDefs": [
|
||||
@@ -201,6 +207,16 @@ console.log(result);
|
||||
"render": function (data, type, row, meta) {
|
||||
return "<button type='button' class='btn btn-warning btn-sm' onclick='javascript:eva_create_evaluation_detail_agreement_GoEdit(" + tmp + data + tmp + ")'><i class='fa fa-pencil'></i></button> ";
|
||||
}
|
||||
},
|
||||
{
|
||||
"targets": -1,
|
||||
"data": "id",
|
||||
"render": function (data, type, row, meta) {
|
||||
if(row.status_chief === "Y"){
|
||||
return "<button type='button' class='btn btn-warning btn-sm' onclick='javascript:eva_create_evaluation_detail_agreement_GoSelfReview(" + tmp + data + tmp + ")'><i class='fa fa-pencil'></i></button> ";
|
||||
}
|
||||
|
||||
}
|
||||
}],
|
||||
"language": {
|
||||
"url": appsite + "/DataTables-1.10.16/thai.json"
|
||||
|
||||
Reference in New Issue
Block a user