38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
<%@ 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<BizObject> custType=JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.CUSTOMER_TYPE","customerid=:customerid").setParameter("customerid", customerid).getResultList(false);
|
||
String sTabStrip[][] = {};
|
||
if(custType==null){
|
||
|
||
}else{
|
||
List<String> mainType=new ArrayList<String>();
|
||
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<mainType.size();i++){
|
||
String sMainType=mainType.get(i);
|
||
String param="mainType="+sMainType+"&customerid="+customerid;
|
||
sTabStrip[i]=new String[]{"true", NameManager.getItemName("MainType",sMainType), "/Tenwa/Comm/CustomerDoc/CustomerList.jsp", param};
|
||
}
|
||
}
|
||
%><%@ include file="/Resources/CodeParts/Tab01.jsp"%>
|
||
<%@ include file="/IncludeEnd.jsp"%> |