业务变更、合同制作、合同变更点击某一个放大镜可以查看全部资料清单

This commit is contained in:
tangfutang 2020-12-24 18:53:54 +08:00
parent 75bdb21a5a
commit e5450f808a
4 changed files with 10 additions and 4 deletions

View File

@ -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);

View File

@ -97,7 +97,7 @@ for(int i=0;i<list.size();i++) {
<script>
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);

View File

@ -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);

View File

@ -496,7 +496,13 @@ public class DocListInitAction {
BizObject boLDR = null;
List<BizObject> 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)