修改付款申请批量下载
This commit is contained in:
parent
469a9ff09f
commit
534b0cbda1
@ -243,7 +243,7 @@ function downloadZipFile(){
|
||||
var sParams="projectId="+projectId+",classItemnos="+classItemnos+",objectType="+objectType;
|
||||
var ids = RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","getLibraryIds",sParams);
|
||||
var filePath="<%=CurConfig.getConfigure("FileSavePath")%>";
|
||||
var param="&flowunid=<%=flowunid%>&type=<%=type%>&ids="+ids;
|
||||
var param="&flowunid=<%=flowunid%>&type=<%=type%>&ids="+ids+"&proj_id="+projectId;
|
||||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||||
window.open(sWebRootPath+"/servlet/view/docFlowDownloadZipServlet?CompClientID=<%=sCompClientID%>&filePath="+filePath+param, "downloadTemplate");
|
||||
}
|
||||
|
||||
@ -66,11 +66,10 @@ import com.tenwa.util.ZipFileUtil;
|
||||
BizObject contract=JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME, "ID='"+req.getParameter("contract_id")+"'").getSingleResult(false);
|
||||
|
||||
zipName=contract.getAttribute("CONTRACT_NUMBER").getString();
|
||||
}else if (type=="fundPay"){
|
||||
}else if ("fundPay".equals(type)){
|
||||
otherWhere=" and (rela.objecttype='FundPaymentCarFlow' AND rela.proj_id='"+req.getParameter("proj_id")+"')";
|
||||
BizObject contract=JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME, "ID='"+req.getParameter("contract_id")+"'").getSingleResult(false);
|
||||
|
||||
zipName=contract.getAttribute("CONTRACT_NUMBER").getString();
|
||||
BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);//Á÷³Ì¶ÔÏó
|
||||
zipName=flow.getAttribute("proj_name").getString().replace("/", "-");
|
||||
}
|
||||
|
||||
//³õʼ»¯ZIP´æ´¢Ä¿Â¼
|
||||
@ -82,7 +81,7 @@ import com.tenwa.util.ZipFileUtil;
|
||||
ZipOutputStream out = new ZipOutputStream(new FileOutputStream(file));
|
||||
for(BizObject lib:libs){
|
||||
@SuppressWarnings("unchecked")
|
||||
List<BizObject> attrs=JBOFactory.createBizObjectQuery(LB_DOCATTRIBUTE.CLASS_NAME,"library_id=:id and deleteed<>'Y' OR deleteed IS NULL").setParameter("id",lib.getAttribute("id").getString()).getResultList(false);
|
||||
List<BizObject> attrs=JBOFactory.createBizObjectQuery(LB_DOCATTRIBUTE.CLASS_NAME,"library_id=:id and (deleteed<>'Y' OR deleteed IS NULL )").setParameter("id",lib.getAttribute("id").getString()).getResultList(false);
|
||||
if(attrs.size()==0){
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user