Feature #1829
[ESS-PMS Final] kolom appraiser name minta di read only saja agar tidak bisa diedit oleh requester.
Description
dear tim developer mohon support nya untuk perbaikan pada kolom ESS dimana pada ada beberapa kolom yang minta di read only saja.
appraiser
remote.minovais.com:6161
username minovais
database sql server 2014
remote.minovais.com ,1452
Files
Updated by M Azid Wahyudi about 2 years ago
- Status changed from Assigned to QA Test
- Assignee changed from Saswanto Tampan to Muhammad Bintar
dear masbin ,, udah bisa di test ya
package :
E:\APP\BMS\WebClient\erp\controller\wf\pmsperform\ctr_pfdir.js
if (taskId === 'start' || taskId === '' || taskId === 'revise_creator') {
if (taskId !== 'revise_creator') {
me.loadHeader();
}
//me.loadPeriod();
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=KPI]').down('button[name=calculate]').hide(true);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=QUAL]').down('button[name=calculate]').hide(true);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=SubKPI]').down('button[name=calculate]').hide(true);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=KPI]').down('button[name=add]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=KPI]').down('button[name=copy]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=KPI]').down('button[name=remove]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=SubKPI]').down('button[name=add]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=SubKPI]').down('button[name=copy]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=SubKPI]').down('button[name=remove]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=Appraiser]').down('button[name=add]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=Appraiser]').down('button[name=copy]').setDisabled(false);
MinovaUtil.WORKFLOW.getViewBodyWorkflow().down('grid[name=Appraiser]').down('button[name=remove]').setDisabled(false);
//start update
// Body.down('grid[name=KPI]').down('[dataIndex=kpi_kpi_group]').getEditor().setReadOnly(false);
// Body.down('grid[name=KPI]').down('[dataIndex=kpi_kpi_id]').getEditor().setReadOnly(false);
// Body.down('grid[name=KPI]').down('[dataIndex=kpi_weight]').getEditor().setReadOnly(false);
// Body.down('grid[name=KPI]').down('[dataIndex=kpi_description]').getEditor().setReadOnly(false);
// Body.down('grid[name=KPI]').down('[dataIndex=kpi_unit]').getEditor().setReadOnly(false);
Body.down('grid[name=SubKPI]').down('[dataIndex=subkpi_kpi_id]').getEditor().setReadOnly(false);
Body.down('grid[name=SubKPI]').down('[dataIndex=subkpi_sub_kpi]').getEditor().setReadOnly(false);
Body.down('grid[name=SubKPI]').down('[dataIndex=subkpi_description]').getEditor().setReadOnly(false);
Body.down('grid[name=SubKPI]').down('[dataIndex=subkpi_weight]').getEditor().setReadOnly(false);
Body.down('grid[name=SubKPI]').down('[dataIndex=subkpi_target]').getEditor().setReadOnly(false);
Body.down('grid[name=SubKPI]').down('[dataIndex=subkpi_unit]').getEditor().setReadOnly(false);
// Body.down('button[name=cal_adjusted]').setDisabled(true);
// end update
start update
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(true);
Body.down('grid[name=QUAL]').down('[dataIndex=qual_weight]').getEditor().setReadOnly(true);
// Body.down('grid[name=QUAL]').down('[dataIndex=qual_remark]').getEditor().setReadOnly(true);
}
end update
makasih
Updated by M Azid Wahyudi about 2 years ago
note : uncomment aja karena di requester tidak bisa calculate
Body.down('button[name=cal_adjusted]').setDisabled(true);
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