页面添加资料清单
This commit is contained in:
parent
d449114ed8
commit
0145320755
@ -5,8 +5,13 @@
|
||||
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)){
|
||||
@ -22,9 +27,51 @@
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","","Button","×ÊÁÏÇåµ¥","×ÊÁÏÇåµ¥","openFileList()","","","","btn_icon_saveNew",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ 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"%>
|
||||
Loading…
x
Reference in New Issue
Block a user