<%@page import="com.tenwa.reckon.product.ProductCondition"%> <%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> <%@ 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"%> <% String sTempletNo = "LoanSimulationBasicInfo_old";//--模板号-- String applytype=CurPage.getParameter("ApplyType"); //如果是汽车的提请结清用汽车的模板 if("ContractTerminateApply".equals(applytype)){ sTempletNo = "LoanSimulationBasicInfo_old_Car";//--模板号-- } ASObjectModel doTemp = new ASObjectModel(sTempletNo); String flowunid = CurPage.getParameter("FlowUnid"); String plannumber=CurPage.getParameter("plannumber"); BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid); String productId=flow.getAttribute("productId").getString(); String calType ="pay_process"; String planCName="PAYMENT_NUMBER"; BizObject condtion=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP","flowunid=:flowunid and PAYMENT_NUMBER is not null").setParameter("flowunid", flowunid).getSingleResult(false); if(condtion!=null){ plannumber=condtion.getAttribute(planCName).getString(); } String RightType= CurPage.getParameter("RightType"); Vector vali=new Vector(); //费用规则 ProductCondition pc=new ProductCondition(); String calcRules=pc.getProductRules(doTemp, productId,vali,flowunid); //获取产品名称 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"); String nodeNo=CurPage.getParameter("NodeNo"); if(null!=ishistory&&ishistory.equals("true")){ //doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据 } dwTemp.Style = "2";//freeform if((null!=RightType&&RightType.equals("ReadOnly"))){ dwTemp.ReadOnly = "1";//只读模式 }else{ } isShowButton=false; dwTemp.setAttr("inputWidth","120"); dwTemp.setAttr("spanWidth","107"); dwTemp.setAttr("showRatio", true); dwTemp.genHTMLObjectWindow(plannumber); CurPage.getCurComp().setAttribute("RightType", RightType); String compClientID = request.getParameter("CompClientID"); dwTemp.replaceColumn("condition_plan", "", CurPage.getObjectWindowOutput()); dwTemp.replaceColumn("even_subsection", "", CurPage.getObjectWindowOutput()); dwTemp.replaceColumn("knowing_config", "", CurPage.getObjectWindowOutput()); String sButtons[][] = { }; %><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%>