56 lines
2.0 KiB
Plaintext
56 lines
2.0 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 sObjectType = CurPage.getParameter("ObjectType"); //对象类型
|
||
String sObjectNo = CurPage.getParameter("FlowUnid"); //对象编号
|
||
String sRightType=CurPage.getParameter("RightType");
|
||
String sTempletNo=CurPage.getParameter("TempletNo");//模板号
|
||
|
||
String sFlowNo= CurPage.getParameter("FlowNo");
|
||
BizObject flow=GetFlowAction.getFlowBussinessObject(sObjectNo);
|
||
String product=flow.getAttribute("productId").getString();
|
||
List<Object> list=ProductParamUtil.getProductDocInfo(product,"PRD0412");
|
||
String type="";
|
||
String docList="";
|
||
List<Map<String,String>> l=null;
|
||
for(int i=0;i<list.size();i++){
|
||
Map<String,Object> map=(Map<String,Object>)list.get(i);
|
||
if(sFlowNo.equals(map.get("FLOW_INFO").toString())){
|
||
l=(List<Map<String,String>>)map.get("DOCCONFIG");
|
||
}
|
||
}
|
||
|
||
if(sTempletNo==null){
|
||
sTempletNo="FlowDocList";
|
||
}
|
||
|
||
String sParam= "ObjectType="+sObjectType+"&ObjectNo="+sObjectNo+"&RightType="+sRightType+"&TempletNo="+sTempletNo;
|
||
|
||
String sTabStrip[][] = {
|
||
|
||
};
|
||
//System.out.println(sParam);
|
||
if(l==null){
|
||
|
||
}else{
|
||
sTabStrip =new String[l.size()][];
|
||
for(int i=0;i<l.size();i++){
|
||
String mainType=l.get(i).get("MAINTYPE");
|
||
String param=sParam+"&DOCNO="+l.get(i).get("DOCNO")+"&mainType="+mainType;
|
||
sTabStrip[i]=new String[]{"true", NameManager.getItemName("MainType",mainType), "/Tenwa/Comm/DocList/CustomerDocList.jsp", param};
|
||
}
|
||
}
|
||
%><%@ include file="/Resources/CodeParts/Tab01.jsp"%>
|
||
<%@ include file="/IncludeEnd.jsp"%> |