Bug #1854
[ESS-PMS] core values tidak bisa di edit karena read only.
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
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
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 ....