1.提前结清原商务条件产品名称带值问题。

This commit is contained in:
zhangbb 2019-01-14 11:40:16 +08:00
parent 0bee00149a
commit 0e9aaf97fb
2 changed files with 15 additions and 4 deletions

View File

@ -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+"'"));

View File

@ -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"%>
<script type="text/javascript">
var calcRules=eval("(<%=calcRules%>)");
var productName="<%=productName%>";
setItemValue(0, 0, "PRODUCT_NAME", productName);
$(function(){
document.getElementById('div_my0').innerHTML = '<div style="width:1160px;overflow: scroll;">'+document.getElementById('div_my0').innerHTML+'</div>';
// document.getElementById('div_my0').innerHTML = '<div style="width:1160px;overflow: scroll;">'+document.getElementById('div_my0').innerHTML+'</div>';
changeSettleMethod();
});
//×â½ðÍÆËã·½·¨