<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<repositoryVO id="__m3PvrAVJEbWuu1nE8bJ">
  <name>echoFunction</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <content><![CDATA[function echoFunction(doc,idArr){
println("我有用库");
  var arrto = splitText(idArr,";");  
//println("idArr==>" +idArr);
  for(var i=0;i<arrto.length;i++){
    var datart = findDocument(arrto[i]);
    //println("arrto[i]==>" +arrto[i]);
    for(var iter=datart.getItems().iterator();iter.hasNext();){      
      var itemInfo=iter.next(); 
      var item = doc.findItem(itemInfo.getName());
      if(item != null){
        item.setValue(itemInfo.getValue() != null ? itemInfo.getValue() : "");
      }
    }
  }
}]]></content>
  <version>1</version>
</repositoryVO>