|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
打印报表,其中有图片,在java文件中获取图片的url提示错误:can't find process in invokeActions:/OA/asset/process/assetBuyApply/assetBuyApply,获取url代码如下,其中报错的/OA/asset/process/assetBuyApply/assetBuyApply是在相应的文件下点“属性”复制过来的:public static String getSign(String id, String activity){ String ksql="select a.* from SA_OPPerson a left join SA_Task b on b.sExecutorPersonName=a.sName where b.sData1='"+id+"' and b.sActivityName='"+activity+"'";
String url="";
Table t=SQL.select(ksql, null, "/system/data");
Iterator<Row> it=t.iterator();
while(it.hasNext()){
Row r=it.next();
System.out.print(r.getValue("SPHOTO"));
//if(r.getBlob("SPHOTO")!=null){
try{
url="/UI2/system/components/justep/blob/server/download.j"
+ "?process=/OA/asset/process/assetBuyApply/assetBuyApply" //流程名称
+ "&activity=printActivity" //环节名称
+ "&action=blobDownloadAction" //调用的Action
+ "&blobDataModel=/system/data" //数据模块目录
+ "&blobConcept=SA_OPPerson" //概念名
+ "&blobRelation=sPhoto" //关系名
+ "&blobConceptValue="
+ r.getValue("SID") //行ID
+"&$query-version="
+ com.justep.system.util.CommonUtils.createGUID();
//可新建一字段来接收url
//r.setString("sHomePlace", addBsessionid(url)); //将url存入table对象
//System.out.print(url);
url=addBsessionid(url);
System.out.print(url);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//}else
//url="https://activity.hdslb.com/blackboard/activity13825/static/img/nodata.e940835.png";
}
return url;
}
|
|