2018-06-03 22:26:41 +08:00

38 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ 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.URL3参数串
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"%>