diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index 11d6c14f2..1e8a38396 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -109,9 +109,9 @@ String calcRules=pc.getProductRules(doTemp, productId,vali); //获取产品名称 - BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID") + BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID") .setParameter("productID", productId).getSingleResult(false); - String productName = (bo==null)?"":bo.getAttribute("typename").getString(); + String productName = (bo==null)?"":bo.getAttribute("typename").getString(); //非车辆产品,融资额可编辑 String productType = Sqlca.getString(new SqlObject("select attribute2 from business_type where typeno='"+productId+"'")); diff --git a/WebContent/Accounting/LoanSimulation_old/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation_old/LoanBasicInfo.jsp index 10a630965..eec35e6d7 100644 --- a/WebContent/Accounting/LoanSimulation_old/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation_old/LoanBasicInfo.jsp @@ -3,6 +3,10 @@ <%@ page import="java.util.Vector" %> <%@ page import="com.amarsoft.awe.dw.ui.validator.ValidateRule" %> <%@ page import="com.tenwa.reckon.product.ASObjectWindowCalc" %> +<%@page import="com.amarsoft.are.jbo.BizObject"%> +<%@page import="com.amarsoft.are.jbo.JBOException"%> +<%@page import="com.amarsoft.are.jbo.JBOFactory"%> +<%@page import="jbo.prd.BUSINESS_TYPE"%> <%@ page contentType="text/html; charset=GBK"%> <%@ include file="/Frame/resources/include/include_begin_info.jspf"%> <% @@ -33,8 +37,13 @@ //费用规则 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.setDefaultValue("PRODUCT_NAME", productName); doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'"); ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request); String ishistory=CurPage.getParameter("IsHistory"); @@ -44,7 +53,7 @@ } dwTemp.Style = "2";//freeform if((null!=RightType&&RightType.equals("ReadOnly"))){ - dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.ReadOnly = "0";//只读模式 }else{ } isShowButton=false; @@ -64,8 +73,10 @@ %><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>