Project

General

Profile

Bug #1854

[ESS-PMS] core values tidak bisa di edit karena read only.

Added by Muhammad Bintar almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Start date:
12/06/2022
Due date:
12/09/2022
% Done:

0%

Estimated time:
Spent time:

Description

Dear tim developer mohon supportnya untuk perbaikan pada form ESS PMS dimana saat ini jika menambahkan core values, itu tidak bisa diisi karena read only.

remote.minovais.com: 6161

MinovaHR_ESS_Indomobil_Production


Files

clipboard-202212061457-d8gvx.png (133 KB) clipboard-202212061457-d8gvx.png Muhammad Bintar, 12/06/2022 02:57 PM
ctr_pfdir.js (84.7 KB) ctr_pfdir.js package_update M Azid Wahyudi, 12/07/2022 11:18 AM
#1

Updated by M Azid Wahyudi almost 2 years ago

  • File ctr_pfdir.js ctr_pfdir.js added
  • Status changed from New to QA Test
  • Assignee changed from M Azid Wahyudi to Muhammad Bintar

Dear masbin , udah bisa di test ya

perubahan :

if (taskId === "start" || taskId === "create") {
Body.down('grid[name=KPI]').down('[dataIndex=kpi_kpi_id]').getEditor().setReadOnly(true);
Body.down('grid[name=KPI]').down('[dataIndex=kpi_weight]').getEditor().setReadOnly(true);
Body.down('grid[name=KPI]').down('[dataIndex=kpi_description]').getEditor().setReadOnly(true);
//Body.down('grid[name=KPI]').down('[dataIndex=kpi_notes]').getEditor().setReadOnly(true);
// Body.down('grid[name=KPI]').down('[dataIndex=kpi_unit]').getEditor().setReadOnly(true);
// Body.down('grid[name=KPI]').down('[dataIndex=kpi_remark]').getEditor().setReadOnly(true);
Body.down('grid[name=QUAL]').down('[dataIndex=qual_qual_id]').getEditor().setReadOnly(false);    // menjadi false yang tadinya true
Body.down('grid[name=QUAL]').down('[dataIndex=qual_weight]').getEditor().setReadOnly(false); // menjadi false yang tadinya true

penambahan validasi :

kpi_nilai = parseInt(rec.data.kpi_self_value);
if (kpi_nilai = 'NaN'){
alert(w_sscore);
not_submit = '1';
return false; // penambahan
}

Body.down('grid[name=QUAL]').getStore().each(function (rec) {
kpi_nilai = parseInt(rec.data.qual_self_value);
if (kpi_nilai = 'NaN'){ // penambahan start
alert(w_sscore);
not_submit = '1';
return false;
} // penambahan end
if (kpi_nilai <= 0) {
alert(w_sscore);
not_submit = '1';
return false;
}
});

package : file silahakan download atau E:\APP\BMS\WebClient\erp\controller\wf\pmsperform\ctr_pfdir.js

makasih

#2

Updated by Muhammad Bintar almost 2 years ago

  • Status changed from QA Test to Closed
  • Assignee changed from Muhammad Bintar to M Azid Wahyudi

okeh sudah di deploy ....

Also available in: Atom PDF