<% String isShowForaml=CurPage.getParameter("IsShowFormal"); String sProjectId=CurPage.getParameter("ProjectId"); String sContractId=CurPage.getParameter("ContractId"); String sProjectIdOrContractId=""; if(isShowForaml==null){isShowForaml="false";} if(isShowForaml.equals("true")){ String queryStr="select O.FORMALCLASS,O.QUERYCONDITION from O where O.NODEID=:nodeId"; BizObjectQuery bq = JBOFactory.createBizObjectQuery("jbo.prd.PRD_NODEINFO", queryStr).setParameter("nodeId",nodeNo); BizObject nodeObject = bq.getSingleResult(false);//²éѯ»ñÈ¡³Ð×âÈËList String formalClass=nodeObject.getAttribute("FORMALCLASS").getString(); String formalWhere=nodeObject.getAttribute("QUERYCONDITION").getString(); String className=doTemp.getJboClass(); String classPath=className.substring(0, className.lastIndexOf(".")+1); doTemp.setJboClass(classPath+formalClass); if("null".equals(sContractId)||null==sContractId){ sProjectIdOrContractId=sProjectId; doTemp.setJboWhere(formalWhere); }else if(("11070".equals(nodeNo)||"11075".equals(nodeNo))&&!("null".equals(sContractId))){ sProjectIdOrContractId=sContractId; doTemp.setJboWhere(formalWhere); }else if(("01300".equals(nodeNo)||"11254".equals(nodeNo)||"11220".equals(nodeNo))&&!("null".equals(sContractId))){ formalWhere="O.id=:ContractId"; sProjectIdOrContractId=sContractId; doTemp.setJboWhere(formalWhere); }else{ sProjectIdOrContractId=sContractId; formalWhere="O.Contract_id=:ContractId"; doTemp.setJboWhere(formalWhere); } } %>