<%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBegin.jsp"%> <%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> <%@ page import="java.util.List" %> <%@ page import="java.util.Map" %> <%@ page import="com.amarsoft.dict.als.manage.NameManager" %> <%@ page import="com.amarsoft.app.util.ProductParamUtil" %><% /* Author: undefined 2017-04-26 Content: 通过数组定义生成Tab框架页面示例 History Log: */ //定义tab数组: //参数:0.是否显示, 1.标题,2.URL,3,参数串 String customerid = CurPage.getParameter("customerId"); //对象类型 List custType=JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.CUSTOMER_TYPE","customerid=:customerid").setParameter("customerid", customerid).getResultList(false); String sTabStrip[][] = {}; if(custType==null){ }else{ List mainType=new ArrayList(); for(BizObject type:custType){ if(type.getAttribute("custtype").getString().equals("cust_type.cust")){ mainType.add("Customer"); }else if(type.getAttribute("custtype").getString().equals("cust_type.assuror")){ mainType.add("Guarantee"); } } sTabStrip =new String[mainType.size()][]; for(int i=0;i<%@ include file="/Resources/CodeParts/Tab01.jsp"%> <%@ include file="/IncludeEnd.jsp"%>