1.修复产品名称带值问题

This commit is contained in:
zhangbb 2018-08-13 20:58:09 +08:00
parent b8f2cf610f
commit 671db23795

View File

@ -108,6 +108,11 @@
pc.getProductFundRules(doTemp, productId);
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();
//非车辆产品,融资额可编辑
String productType = Sqlca.getString(new SqlObject("select attribute2 from business_type where typeno='"+productId+"'"));
if("2".equals(productType)){
@ -124,6 +129,7 @@
doTemp.setJboClass(tcb.getCondition_tb());
doTemp.setDefaultValue(planCName, plannumber);
doTemp.setDefaultValue("flowunid", flowunid);
doTemp.setDefaultValue("PRODUCT_NAME", productName);
doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'");
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcCondtionInfoArachiveShow");//如果是历史则新显示历史数据
@ -169,10 +175,7 @@
//dwTemp.replaceColumn("even_subsection", "<iframe type='iframe' id='frame_even_break' name=\"frame_even_subsection\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation/subsection/LCCalcSubsectionList.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&calType="+calType+"\"></iframe>", CurPage.getObjectWindowOutput());
//dwTemp.replaceColumn("knowing_config", "<iframe type='iframe' id='frame_list_knowing' name=\"frame_list_knowing\" width=\"100%\" height=\"400px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation/KnowConfigList.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&IsHistory="+ishistory+"NodeNo="+nodeNo+"&RightType="+RightType+"&calType="+calType+"\"></iframe>", CurPage.getObjectWindowOutput());
String businessDate = DateHelper.getBusinessDate();
//ťńČĄ˛úơĂűłĆ
BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID")
.setParameter("productID", productId).getSingleResult(false);
String productName = (bo==null)?"":bo.getAttribute("typename").getString();
//获取对应车辆指导价
BizObject bo1 = JBOFactory.createBizObjectQuery(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME,"PROJECT_ID=:projectId")
.setParameter("projectId",projectId).getSingleResult(false);
@ -191,8 +194,6 @@ var adjustType;
var count = 0;
$(function(){
changgeCompare();
var productName="<%=productName%>";
setItemValue(0,0,"PRODUCT_NAME",productName);
//document.getElementById('div_my0').innerHTML = '<div style="width:1160px;overflow: scroll;">'+document.getElementById('div_my0').innerHTML+'</div>';
if("ReadOnly"!="<%=RightType%>"){
CalcControl.InitStartDate();