其它支付流程增加通用型资料清单(tab详情页签增加判断)
This commit is contained in:
parent
5158602c79
commit
bf3ffadd3d
64
WebContent/Tenwa/Comm/Document/LBDocumentICMS.jsp
Normal file
64
WebContent/Tenwa/Comm/Document/LBDocumentICMS.jsp
Normal 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"%>
|
||||
@ -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);
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user