diff --git a/WebContent/Accounting/LoanSimulation_change/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation_change/LoanBasicInfo.jsp index e6d89b9a8..cfc17e810 100644 --- a/WebContent/Accounting/LoanSimulation_change/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation_change/LoanBasicInfo.jsp @@ -1,3 +1,4 @@ +<%@page import="jbo.prd.BUSINESS_TYPE"%> <%@page import="com.amarsoft.awe.control.model.Parameter"%> <%@page import="com.tenwa.reckon.product.ProductCondition"%> <%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> @@ -14,14 +15,14 @@ String plannumber=CurPage.getParameter("plannumber"); String ishistory=CurPage.getParameter("IsHistory"); String nodeNo=CurPage.getParameter("NodeNo"); - String FlowNo=CurPage.getParameter("FlowNo");//流程名称 + String FlowNo=CurPage.getParameter("FlowNo");//流程名称 String taskno = CurPage.getParameter("TaskNo"); if(null!=ishistory&&ishistory.equals("true")){ // doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcCondtionInfoArachiveShow");//如果是历史则新显示历史数据 } BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid); String productId=flow.getAttribute("productId").getString(); - + String calType ="pay_process"; String planCName="PAYMENT_NUMBER"; if(plannumber==null){ @@ -31,13 +32,17 @@ } } String RightType= CurPage.getParameter("RightType"); - + Vector vali=new Vector(); - + //费用规则 ProductCondition pc=new ProductCondition(); String calcRules=pc.getProductRules(doTemp, productId,vali); - + //获取产品名称 + BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID") + .setParameter("productID", productId).getSingleResult(false); + String productName = (bo==null)?"":bo.getAttribute("typename").getString(); + CurPage.getCurComp().setAttribute("RightType", null); doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'"); doTemp.setVisible("IRR",true); @@ -45,10 +50,10 @@ Parameter p=new Parameter("plannumber",plannumber); Vector v=CurPage.parameterList; v.add(p); - + dwTemp.Style = "2";//freeform if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ - dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.ReadOnly = "1";//只读模式 isShowButton=false; }else{ isShowButton=true; @@ -58,158 +63,161 @@ dwTemp.setAttr("showRatio", true); dwTemp.genHTMLObjectWindow(flowunid); CurPage.getCurComp().setAttribute("RightType", RightType); - + String compClientID = request.getParameter("CompClientID"); - dwTemp.replaceColumn("condition_plan", "", CurPage.getObjectWindowOutput()); + dwTemp.replaceColumn("condition_plan", "", CurPage.getObjectWindowOutput()); // dwTemp.replaceColumn("even_subsection", "", CurPage.getObjectWindowOutput()); // dwTemp.replaceColumn("knowing_config", "", CurPage.getObjectWindowOutput()); - + String sButtons[][] = { {"ContractOnhireCarChangeFlow".equals(FlowNo)?"false":"true","","Button","保存","保存所有修改","as_save(0)","","","",""}, }; %><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%>