其它支付流程增加通用型资料清单(tab详情页签增加判断)

This commit is contained in:
ap007 2022-12-09 22:29:39 +08:00
parent 5158602c79
commit bf3ffadd3d
2 changed files with 75 additions and 8 deletions

View File

@ -0,0 +1,64 @@
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBegin.jsp"%><%
/*
Author: undefined 2017-10-24
Content:
History Log:
*/
%>
<%
String FlowNo=CurPage.getParameter("FlowNo");
String FlowUnid=CurPage.getParameter("ObjectNo");
String sPhaseNo = CurPage.getParameter("PhaseNo");
String userId= CurUser.getUserID();
String userName = CurUser.getUserName();
%>
<script type="text/javascript">
function openFileList(){
debugger;
let appInfo = getAppInfo();
let index = appInfo.indexOf("@");
if(index==-1){
alert(appInfo);
return;
}
let appCode = appInfo.substr(0,index);
let appName = appInfo.substr(index+1,appInfo.length);
if(appCode=='0000'){
alert(appName);
return;
}
openAppointFileList(appCode,appName);
}
function openAppointFileList(appCode,appName){
let url = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestUrl","");
let code = getCode();
let params = getRequestParam(appCode,appName,code);
if(params!=null){
AsControl.postICMS(url,params);
}
}
function getAppInfo(){
let appInfo = RunJavaMethod("com.ample.icms.util.GetInfoUtil", "getAppInfoByFlowNoRJM", "flowNo=<%=FlowNo%>");
return appInfo;
}
function getCode(){
let code = 'ECM0002';
if("<%=sPhaseNo%>"=="0010"){
code = 'ECM0001';
}
return code;
}
function getRequestParam(appCode,appName,code){
let busiNo = "<%=FlowUnid%>";
let param = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestParam","appCode="+appCode+",appName="+appName+",code="+code+",busiNo="+busiNo+",userCode=<%=userId%>"+",userName=<%=userName%>");
return param;
}
$(function(){
openFileList();
});
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -1,12 +1,5 @@
package com.tenwa.flow.tabviewservice;
import java.util.List;
import jbo.sys.FLOW_MODEL;
import jbo.sys.FLOW_TASK;
import jbo.sys.OBJECTTYPE_CATALOG;
import jbo.sys.OBJECTTYPE_RELA;
import com.amarsoft.app.awe.config.InitDBType;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
@ -14,6 +7,12 @@ import com.amarsoft.are.jbo.BizObjectQuery;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.util.StringFunction;
import com.amarsoft.awe.ui.widget.Button;
import jbo.sys.FLOW_MODEL;
import jbo.sys.FLOW_TASK;
import jbo.sys.OBJECTTYPE_CATALOG;
import jbo.sys.OBJECTTYPE_RELA;
import java.util.List;
public class FlowTaskViewTab {
private String flowNo; //Á÷³ÌÅäÖñàºÅ
@ -114,7 +113,11 @@ public class FlowTaskViewTab {
BizObjectManager bm = null;
BizObjectQuery bq = null;
bm = JBOFactory.getFactory().getManager(OBJECTTYPE_RELA.CLASS_NAME);
bq = bm.createQuery("O.OBJECTTYPE=:OBJECTTYPE and isinuse='Y' order by O.sortno ").setParameter("OBJECTTYPE", this.getObjectType());
String sql = "O.OBJECTTYPE=:OBJECTTYPE and isinuse='Y' order by O.sortno ";
if("OtherPayFlow".equals(getFlowNo())){
sql = "O.OBJECTTYPE=:OBJECTTYPE and (isinuse='Y' or ATTRIBUTE1='flow') order by O.sortno ";
}
bq = bm.createQuery(sql).setParameter("OBJECTTYPE", this.getObjectType());
this.viewTabItemList=bq.getResultList(true);