64 lines
1.7 KiB
Plaintext
64 lines
1.7 KiB
Plaintext
<%@ 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"%> |