<%@ include file="/oemNoscript.jspf" %> <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem"%> <%@ page import= 'oracle.sysman.eml.ip.render.elem.emr.services.bean.SLViolationsBean' %> <%@ page import='oracle.sysman.emSDK.page.seg.PageSegmentContext' %> <%@ page import='oracle.sysman.emSDK.sec.auth.LoginUtil' %> <%@ page import='java.util.ArrayList' %> <%@ page import='java.util.HashMap' %> <%@page import='oracle.cabo.ui.data.ListDataObjectList' %> <%@page import=' oracle.cabo.ui.data.DictionaryData' %> <%@ page import='oracle.sysman.resources.eml.ip.emr.services.ServicesMsgID' %> <%@ page import='oracle.sysman.resources.eml.ip.emr.services.ServicesMsg' %> <%@ page import='oracle.sysman.emSDK.util.jdk.NLSUtil' %> <%@ page import='oracle.sysman.emSDK.util.jdk.URLUtil' %> <%@ page import='java.util.ResourceBundle' %> <% HashMap rowMap = null; ArrayList rowList = new ArrayList(); for(int rowNum=0;rowNum<3;rowNum++) { rowMap = new HashMap(); rowMap.put("outageType","cell "+rowNum+"1"); rowMap.put("stDate","cell "+rowNum+"2"); rowMap.put("enDate","cell "+rowNum+"3"); rowMap.put("duration","cell "+rowNum+"4"); rowMap.put("shortDescription","cell "+rowNum+"5"); rowList.add(rowMap); } request.setAttribute("violationsTableData",rowList); ListDataObjectList list = new ListDataObjectList(); DictionaryData dd = new DictionaryData(); dd.put("status1", "outageType"); dd.put("startDate1", "stDate"); dd.put("endDate1", "enDate"); dd.put("duration1", "duration"); dd.put("description1", "shortDescription"); dd.put("rendered","true"); dd.put("sortableStatus","yes"); list.addItem(dd); request.setAttribute("columnHeaderData",list); PageSegmentContext psc = (PageSegmentContext)request.getAttribute("pageSegmentContext"); SLViolationsBean violBean = (SLViolationsBean)psc.getPageSegmentBean(); ResourceBundle scRB= null; scRB = NLSUtil.getBundle(ServicesMsg.class.getName(),request); String actionURL="/em/console/target/svclvl/sldetails?serviceName=" + URLUtil.encode(violBean.getSelServiceName()); actionURL +="&serviceType="+ URLUtil.encode(violBean.getselServiceType()); actionURL +="&comboIndex="+ violBean.getComboIndex_str(); %> <% for(int i=0; i <% } %> <%if(violBean.getPieRows()!=null) { %> <%-- set label and color for pie slices--%> <%-- red --%> <%-- orange --%> <% boolean showBusinessMetrics = violBean.getShowBusinessMetrics(); if (showBusinessMetrics) { %> <%-- Blue --%> <% } %> <% int i=3; if (showBusinessMetrics) { i = 4; } if(violBean.getShowBlack()) { %> <%-- black --%> <%i++; } if(violBean.getShowWhite()) { %> <%-- white --%> <% } %> <%} else { %> <% } %>