Bug #1942
- Subject changed from [Performance Management] - Validasi Weight to [Performance Management Review 4] - Validasi Weight
- Project changed from CLIENT SUPPORT to ROHTO BUGS
- 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
- Status changed from QA Test to Closed
Also available in: Atom
PDF