add the exeRange

This commit is contained in:
hmm 2014-09-09 16:33:32 +08:00
parent 0ec2f364f7
commit ed8161f13d
1 changed files with 2 additions and 1 deletions

View File

@ -73,9 +73,10 @@ function getScriptId(scriptName) {
}
function getPointModelList(allocation,requireLoadArrayObj,executeRangeArrayObj){
var pointModelList = new Array();
var preExeRange = 0;
for(var i=1;i< requireLoadArrayObj.length;i++){
var realLoad = parseInt(parseInt(requireLoadArrayObj[i].value)*allocation/100);
var pointModel = new WebPointModel(parseInt(executeRangeArrayObj[i].value),realLoad);
var pointModel = new WebPointModel(preExeRange+=parseInt(executeRangeArrayObj[i].value),realLoad);
pointModelList.push(pointModel);
}
return pointModelList;