合同信息查询增加影像资料清单功能

This commit is contained in:
zhanglei@ap-leasing.com.cn 2023-05-25 09:41:12 +08:00
parent 68a1a0a26f
commit be5944da6d

View File

@ -81,6 +81,7 @@
String sButtons[][] =new String[][] {
{"true","","Button","流程信息","流程信息","viewAllFlow()","","","","btn_icon_detail",""},
{"true","","Button","附件信息","附件信息","viewAllFlowAttachment()","","","","btn_icon_detail",""},
{"true","","Button","资料清单","资料清单","openFileList()","","","","btn_icon_saveNew",""},
{"true","","Button","合同信息","合同信息","viewContractInfo()","","","","btn_icon_detail",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
@ -126,5 +127,25 @@ function viewContractInfo(){
var sparm='ContractId='+sPara+"&ProjectId="+getItemValue(0,getRow(0),'project_id')+"&ShowType="+ShowType+"&RightType=ReadOnly&IsHistory=false"+"&contract_no="+contract_no+"&productId="+productId+"&FlowUnid="+FlowUnid;
AsControl.OpenTab(sUrl,sparm,{title:'合同基本信息【'+ getItemValue(0,getRow(0),'contract_no')+'】'});
}
function openFileList(){
let proj_id=getItemValue(0,getRow(0),'project_id');
openFileListByProjectId(proj_id);
}
function openFileListByProjectId(proj_id){
let url = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestUrl","");
let params = getRequestParam(proj_id);
if(params=='error'){
alert('未找到对应的影像配置,请联系管理员');
return;
}
if(params!=null){
AsControl.postICMS(url,params);
}
}
function getRequestParam(proj_id){
let code = 'ECM0002';
let param = RunJavaMethodTrans("com.ample.icms.service.ImageQueryService","getRequestParamByProjectIdJMT","projectId="+proj_id+",code="+code);
return param;
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>