77 lines
2.8 KiB
Plaintext
77 lines
2.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2017-06-17
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String userId= CurUser.getUserID();
|
|
String userName = CurUser.getUserName();
|
|
String ishistory = CurPage.getParameter("IsHistory");
|
|
String flowunid = CurPage.getParameter("FlowUnid");
|
|
String phaseNo = CurPage.getParameter("PhaseNo");
|
|
String projectNo=CurPage.getParameter("ProjectNo");
|
|
String FlowNo = CurPage.getParameter("FlowNo");
|
|
String productid = Sqlca.getString("select PRODUCT_ID from LB_CONTRACT_INFO_TEMP where flowunid = '"+flowunid+"'");
|
|
String sTempletNo = "LBContractInfoTemp";//--模板号--
|
|
if("004".equals(productid)){
|
|
sTempletNo = "LBContractInfoTemp_Car";
|
|
}
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
if(null!=ishistory&&ishistory.equals("true")&&!"AccountChangeFlow".equals(CurPage.getParameter("FlowNo"))){
|
|
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
|
}
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";
|
|
dwTemp.ReadOnly = "-2";
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","资料清单","资料清单","openFileList()","","","","btn_icon_saveNew",""}
|
|
};
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function openFileList(){
|
|
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("<%=phaseNo%>"=="0010"){
|
|
code = 'ECM0001';
|
|
}
|
|
return code;
|
|
}
|
|
function getRequestParam(appCode,appName,code){
|
|
let busiNo = '<%=projectNo%>';
|
|
if(busiNo==null||busiNo==""||busiNo=="null"){
|
|
busiNo = RunJavaMethod("com.ample.icms.util.GetInfoUtil", "getProjectNoByFlowUnidRJM", "flowUnid=<%=flowunid%>");
|
|
}
|
|
let param = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestParam","appCode="+appCode+",appName="+appName+",code="+code+",busiNo="+busiNo+",userCode=<%=userId%>"+",userName=<%=userName%>");
|
|
return param;
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |