dorado--dataset 遍历

var record = datasetSciTech.getCurrent();
var sciTechId = datasetSciTech.getCurrent().getValue("techId");
if(record){
  if(sciTechId != -1){
   var techPrizeId = record.getValue("techPrizeId");
   var techTypeId = record.getValue("techTypeId");
   
   var prizeRecord = datasetPrize.getFirstRecord();
   while (prizeRecord) {
	  if(prizeRecord.getValue("sciTechPrizeid")==techPrizeId){
		  datasetPrize.setCurrent(prizeRecord);
		  break;
	  }
	  prizeRecord = prizeRecord.getNextRecord();
   }
    
   var typeRecord = datasetType.getFirstRecord();
   while (typeRecord) {
	  if(typeRecord.getValue("sciTechTypeid")==techTypeId){
		  datasetType.setCurrent(typeRecord);
		  break;
	  }
	  typeRecord = typeRecord.getNextRecord();
   } 
    
   
  }
}

 

你可能感兴趣的:(dataset,dorado)