Bug #1942
[Performance Management Review 4] - Validasi Weight
Description
Mas Azid,
Mohon dibantu untuk validasi weight Responsible di Review 4 belum jalan.
Terima kasih.
Port: http://remote.minovais.com:51121/
DB: remote.minovais.com,1445 | MinovaES_Rohto_Prod
Files
Updated by Fiona Avangeline Jonathan almost 2 years ago
- Subject changed from [Performance Management] - Validasi Weight to [Performance Management Review 4] - Validasi Weight
Updated by Fiona Avangeline Jonathan almost 2 years ago
- Project changed from CLIENT SUPPORT to ROHTO BUGS
Updated by M Azid Wahyudi almost 2 years ago
- Status changed from Assigned to QA Test
- Assignee changed from M Azid Wahyudi to Fiona Avangeline Jonathan
dear fiona udah bisa di test ya
package :
- Bizproc (beforesubmit)
debugger;
var isSubmit = 1;
var taskID = MinovaUtil.WORKFLOW.getTaskId();
if (taskID 'start' || taskID 'create' || taskID == '') {
var StoreAppraiser = Ext.StoreManager.lookup('storePHRPA0048ESS_3');
var Appraiserlen = StoreAppraiser.getCount();
var AppraiserWeightsum = 0;
var AppraiserQualsum = 0;
for (var i = 0; i < Appraiserlen; i++) {
AppraiserWeightsum = AppraiserWeightsum + Number(Math.round(StoreAppraiser.getRange()[i].get('KPIWeight_48_3') + 'e2') + 'e-2');
AppraiserQualsum = AppraiserQualsum + Number(Math.round(StoreAppraiser.getRange()[i].get('QualificationWeight_48_3') + 'e2') + 'e-2');
}
if (AppraiserWeightsum != '100' || AppraiserQualsum != '100' ) {
MinovaMessageError("Error", "VAL100KPI", "");
isSubmit = 0;
}
var RESPONKPI = Ext.StoreManager.lookup('storeCRESPONKPI_3');
var RESPONKPIlen = RESPONKPI.getCount();
var ARESPONKPIsum = 0;
for (var i = 0; i < RESPONKPIlen; i++) {
ARESPONKPIsum = ARESPONKPIsum + Number(Math.round(RESPONKPI.getRange()[i].get('Responweight_3') + 'e2') + 'e-2');
}
if (ARESPONKPIsum != '100') {
MinovaMessageError("Error", "VAL100KPI", "");
isSubmit = 0;
}
}
if (isSubmit === 1) {
submit();
}
makasih
Updated by Fiona Avangeline Jonathan almost 2 years ago
- Status changed from QA Test to Closed
Done, terima kasih.