diff --git a/WebContent/Tenwa/Comm/DocList/BussinessApproveDocList.jsp b/WebContent/Tenwa/Comm/DocList/BussinessApproveDocList.jsp index 333e59745..615fc0d3f 100644 --- a/WebContent/Tenwa/Comm/DocList/BussinessApproveDocList.jsp +++ b/WebContent/Tenwa/Comm/DocList/BussinessApproveDocList.jsp @@ -169,7 +169,7 @@ function showWord(id,name){ } function showImage(id,name){ var sUrl="/Tenwa/Comm/DocList/showImage.jsp"; - var param="attrid="+id; + var param="attrid="+id+"&objecttype=<%=sObjectType%>&flowunid=<%=flowunid%>"; AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;",function(message){ },name); diff --git a/WebContent/Tenwa/Comm/Document/DocImageShow.jsp b/WebContent/Tenwa/Comm/Document/DocImageShow.jsp index 4c2172b73..0a1b3049c 100644 --- a/WebContent/Tenwa/Comm/Document/DocImageShow.jsp +++ b/WebContent/Tenwa/Comm/Document/DocImageShow.jsp @@ -97,7 +97,7 @@ for(int i=0;i function showImage(id,name){ var sUrl="/Tenwa/Comm/DocList/showImage.jsp"; - var param="attrid="+id+"&flowunid=<%=flowunid%>"; + var param="attrid="+id+"&objecttype=<%=sObjectType%>&flowunid=<%=flowunid%>"; AsDialog.PopView(sUrl,param,"dialogWidth="+(parent.innerWidth-100)+"px;dialogHeight="+(parent.innerHeight+80)+"px;",function(message){ },name); diff --git a/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp b/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp index 62c67e95d..cddfada96 100644 --- a/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp +++ b/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp @@ -151,7 +151,7 @@ function showWord(id,name){ } function showImage(id,name){ var sUrl="/Tenwa/Comm/DocList/showImage.jsp"; - var param="attrid="+id; + var param="attrid="+id+"&objecttype=<%=sObjectType%>&flowunid=<%=flowunid%>"; AsDialog.PopView(sUrl,param,"dialogWidth="+(parent.innerWidth-100)+"px;dialogHeight="+(parent.innerHeight+80)+"px;",function(message){ },name); diff --git a/src_core/com/tenwa/doc/action/DocListInitAction.java b/src_core/com/tenwa/doc/action/DocListInitAction.java index e4983622c..3edeadb88 100644 --- a/src_core/com/tenwa/doc/action/DocListInitAction.java +++ b/src_core/com/tenwa/doc/action/DocListInitAction.java @@ -496,7 +496,13 @@ public class DocListInitAction { BizObject boLDR = null; List boListLDR = null; if(objecttype!=null){ - if(objecttype!=""){ + if("BusinessChangeFlow".equals(objecttype)||"BContractApproveFlow".equals(objecttype)||"BContractChangeFlow".equals(objecttype)){ + BizObjectManager fboManage = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME); + BizObject fbo = fboManage.createQuery(" flow_unid=:flow_unid ").setParameter("flow_unid", flowunid).getSingleResult(false); + boListLDR = bomLDR.createQuery(" proj_id =:proj_id and objecttype='BusinessApplyFlow'") + .setParameter("proj_id", fbo==null?"":fbo.getAttribute("proj_id").getString()) + .getResultList(false); + }else if(objecttype!=""){ boLDR = bomLDR.createQuery("flow_unid =:flowunid and objecttype=:objecttype") .setParameter("flowunid", flowunid) .setParameter("objecttype", objecttype)