95 lines
3.7 KiB
Plaintext
95 lines
3.7 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
|
<%@ page import="java.util.List" %>
|
|
<%@ page import="java.util.Map" %>
|
|
<%@ page import="com.amarsoft.app.util.ProductParamUtil" %>
|
|
<%
|
|
/*
|
|
Author: undefined 2017-06-01
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
|
|
|
|
String sFlowUnid=CurPage.getParameter("FlowUnid");
|
|
String flowNo=CurPage.getParameter("FlowNo");
|
|
String cust_id=CurPage.getParameter("cust_id");
|
|
String cust_name=CurPage.getParameter("cust_name");
|
|
|
|
BizObject flow=GetFlowAction.getFlowBussinessObject(sFlowUnid);
|
|
|
|
String productId=flow.getAttribute("productId").getString();
|
|
String RightType=CurPage.getParameter("RightType");
|
|
Map<String, List<Map<String, String>>> map=ProductParamUtil.getProductComponentDecisionTable(productId, "PRD0415","FLOW_INFO","AssessReport");
|
|
String s="";
|
|
for(int i=0;i<map.get("AssessmentReport").size();i++){
|
|
if(flowNo.equals(map.get("AssessmentReport").get(i).get("FLOW_INFO"))){
|
|
s=map.get("AssessmentReport").get(i).get("AssessReport");
|
|
break;
|
|
}
|
|
}
|
|
String condition="";
|
|
if(s.length()>0){
|
|
String[] evals=s.split(",");
|
|
for(int i=0;i<evals.length;i++){
|
|
condition+="'"+evals[i]+"',";
|
|
}
|
|
}
|
|
if(condition.length()>0){
|
|
condition="MODELNO in ("+condition.substring(0,condition.length()-1)+")";
|
|
}
|
|
|
|
String sTempletNo = "LBProjEvaluate";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
doTemp.setDefaultValue("objectno", cust_id);
|
|
doTemp.setColumnAttribute("MODELNO","coleditsource","jbo.sys.EVALUATE_CATALOG,MODELNO,MODELNAME,"+condition);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
if("ReadOnly".equals(RightType))
|
|
dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(sFlowUnid+","+cust_id);
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","评分","保存所有修改","projEvaluate(0)","","","","btn_icon_edit"},
|
|
{"true","","Button","返回","保存所有修改","closePage()","","","","btn_icon_return"}
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
//企业评估模型
|
|
function projEvaluate(){
|
|
|
|
var sModelNo=getItemValue(0,0,"MODELNO");//评级模型编号
|
|
if(sModelNo.length==0){
|
|
alert("请选择评级模型");
|
|
return;
|
|
}
|
|
|
|
var sObjectType ="PROJECT";//评级对象类型
|
|
var sObjectName ="<%=flow.getAttribute("proj_name").getString()%>";
|
|
var sCustomerID="<%=cust_id%>";
|
|
var sno;
|
|
var serialno=RunJavaMethodTrans("com.tenwa.evaluate.action.EvaluateAction", "getSerialNo", "ObjectNo="+sCustomerID+",modelno="+sModelNo+",objectType="+sObjectType+",proj_id="+"<%=flow.getAttribute("proj_id").getString()%>");
|
|
if(serialno.length==1||serialno.length==4){
|
|
sno=AsControl.RunJsp("/Common/Evaluate/ConsoleEvaluateAction.jsp","Action=get&ModelNo="+sModelNo+"&ObjectType="+sObjectType+"&ObjectNo="+sCustomerID+"&proj_id="+"<%=flow.getAttribute("proj_id").getString()%>");
|
|
}else{
|
|
sno=serialno;
|
|
}
|
|
|
|
var sEditable="true";
|
|
AsControl.OpenView("/Common/Evaluate/EvaluateDetail.jsp","Action=display&Editable="+sEditable+"&CustomerID="+sCustomerID+"&ObjectName="+sObjectName+"&ObjectType="+sObjectType+"&ObjectNo="+sCustomerID+"&SerialNo="+sno+"&ModelNo="+sModelNo+"&FlowUnid="+'<%=sFlowUnid%>'+"&RightType="+'<%=RightType%>',"_self","");
|
|
|
|
}
|
|
function checkModified(){
|
|
return true;
|
|
}
|
|
function closePage(){
|
|
var RightType='<%=RightType%>';
|
|
var param="FlowUnid="+"<%=sFlowUnid%>"+"&FlowNo="+"<%=flowNo%>";
|
|
if(RightType=="ReadOnly") param=param+"&RightType='ReadOnly'";
|
|
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/LBProjEvalute/LBProjEvaluateList.jsp",param,"_self","");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|