Edit D:\app\Administrator\product\11.2.0\dbhome_1\j2ee\OC4J_EM\applications\em\em\target\svclvl\slDetailsRenderConsole.jsp
<%@ 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' %> <oem:pageSegment> <uix:dataScope> <uix:bundle name="servicesBundle" class="oracle.sysman.resources.eml.ip.emr.services.ServicesMsg"/> <uix:document> <% 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(); %> <uix:metaContainer> </uix:metaContainer> <uix:contents> <uix:form name="slDetailsForm" destination="<%=actionURL%>" method="POST"> <uix:breadCrumbs > <uix:contents> <uix:link textBinding="svcNameBreadCrumb@pageSegmentBean@" destinationBinding="svcHomePageURL@pageSegmentBean@" /> <uix:link textBinding="svcNameTitle@pageSegmentBean@" /> </uix:contents> </uix:breadCrumbs> <uix:tableLayout width="100%" borderWidth="0" > <uix:rowLayout vAlign="center"> <uix:cellFormat hAlign="left" vAlign="center" > <uix:tableLayout width="100%" borderWidth="0" cellPadding ="1" > <uix:rowLayout vAlign="center"> <uix:cellFormat hAlign="left" vAlign="center" columnSpan="2"> <uix:spacer height="10" /> </uix:cellFormat> </uix:rowLayout > <uix:rowLayout vAlign="center"> <uix:cellFormat hAlign="left" vAlign="center" width="100%"> <uix:header textBinding="svcNameTitle@pageSegmentBean@" size="0"/> <uix:spacer width="2" /> </uix:cellFormat> </uix:rowLayout > </uix:tableLayout > <uix:tableLayout width="100%" borderWidth="0" cellPadding ="1" > <uix:rowLayout vAlign="center"> <uix:cellFormat width="40%" vAlign="center" > <uix:spacer width="20" /> </uix:cellFormat> <uix:cellFormat wrappingDisabled="true" hAlign="right" vAlign="center"> <uix:styledText styleClass="OraTipText" textBinding="REFRESH_STRING@servicesBundle" /> <uix:spacer width="5" /> <uix:styledText styleClass="OraTipLabel" textBinding="dateString@pageSegmentBean@" /> </uix:cellFormat> <uix:cellFormat hAlign="center" vAlign="center" > <uix:spacer width="5" /> <uix:button textBinding="REFRESH@servicesBundle" onClick="document.slDetailsForm.submit()"/> <uix:spacer width="5" /> </uix:cellFormat> <uix:cellFormat hAlign="center" wrappingDisabled="true" vAlign="center" > <uix:styledText styleClass="OraFieldText" textBinding="VIEW_DATA_BLAF@servicesBundle" /> <uix:spacer width="2" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="center"> <uix:labeledFieldLayout> <uix:choice name="durationIndex0" selectedIndexBinding= "durationIndex_str@pageSegmentBean@" shortDescBinding="VIEW_DATA_BLAF@servicesBundle" onChange="javascript:document.forms[0].submit();" > <% for(int i=0; i<violBean.getTimeRangesToShow().size(); i++) { %> <uix:option text="<%=violBean.getTimeRangesToShow(i)%>" value = "<%=i%>"/> <% } %> </uix:choice> </uix:labeledFieldLayout> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout vAlign="center"> <uix:cellFormat vAlign="center" columnSpan="5"> <uix:spacer width="1" /> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout borderWidth="0" width="100%" cellPadding ="1" hAlign="left" > <uix:rowLayout> <uix:cellFormat vAlign="center" hAlign="center" > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat vAlign="top" hAlign="left" > <uix:tableLayout borderWidth="0" width="100%" > <uix:rowLayout vAlign="top"> <uix:cellFormat vAlign="top" hAlign="left" > <uix:header textBinding="GENERAL@servicesBundle" size="1"/> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:spacer height="10" /> <uix:tableLayout borderWidth="0" cellPadding ="0" cellSpacing="0" width="100%" > <uix:rowLayout vAlign="top"> <uix:cellFormat wrappingDisabled="true" vAlign="center" hAlign="right" > <uix:styledText styleClass="OraPromptText" textBinding= "ACTUAL_SERVICE_LEVEL@servicesBundle"/> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="10" /> </uix:cellFormat> <uix:cellFormat wrappingDisabled="true" vAlign="center" hAlign="left" > <uix:styledText styleClassBinding= "inlineTextStyle@pageSegmentBean@" textBinding="actualSL@pageSegmentBean@" /> <uix:spacer width="10" /> <uix:button textBinding="EDIT_RULE@servicesBundle" renderedBinding="privilege@pageSegmentBean@" destinationBinding="slEditURI@pageSegmentBean@" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat wrappingDisabled="true" vAlign="center" hAlign="right"> <uix:styledText styleClass="OraPromptText" textBinding= "EXPECTED_SERVICE_LEVEL@servicesBundle" /> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="10" /> </uix:cellFormat> <uix:cellFormat wrappingDisabled="true" vAlign="center" hAlign="left" > <uix:styledText styleClass="OraDataText" textBinding="expectedSL@pageSegmentBean@" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout vAlign="top"> <uix:cellFormat wrappingDisabled="true" vAlign="top" hAlign="right"> <uix:styledText styleClass="OraPromptText" textBinding="BUSINESS_HOURS@servicesBundle" /> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="10" /> </uix:cellFormat> <uix:cellFormat wrappingDisabled="true" vAlign="center" hAlign="left" > <uix:styledText styleClass="OraDataText" textBinding="businessHrs@pageSegmentBean@" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout vAlign="top"> <uix:cellFormat wrappingDisabled="true" vAlign="top" hAlign="right"> <uix:styledText styleClass="OraPromptText" textBinding="BUSINESS_DAYS@servicesBundle"/> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="10" /> </uix:cellFormat> <uix:cellFormat wrappingDisabled="true" vAlign="center" hAlign="left" > <uix:styledText styleClass="OraDataText" textBinding="dateSeq_BHrs@pageSegmentBean@" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout vAlign="top"> <uix:cellFormat wrappingDisabled="true" vAlign="top" hAlign="right"> <uix:styledText styleClass="OraPromptText" textBinding="BUSINESS_TZ@servicesBundle" /> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="10" /> </uix:cellFormat> <uix:cellFormat wrappingDisabled="true" vAlign="center" hAlign="left" > <uix:styledText styleClass="OraDataText" textBinding="timeZone_BHrs_DisplayName@pageSegmentBean@"/> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:cellFormat> <uix:cellFormat vAlign="center" hAlign="center" > <uix:spacer width="20" /> </uix:cellFormat> <uix:cellFormat vAlign="top" hAlign="left" > <uix:tableLayout borderWidth="0" width="100%" > <uix:rowLayout vAlign="top"> <uix:cellFormat vAlign="top" hAlign="left" > <uix:header textBinding="OVERALL_SERVICE_LEVEL@servicesBundle" size="1"/> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" borderWidth="0" cellPadding ="1" > <uix:rowLayout vAlign="center" hAlign="left"> <%if(violBean.getPieRows()!=null) { %> <uix:cellFormat width="100%" vAlign="center" hAlign="left"> <oem:chart chartType="pieChart" shadowEffect="3d" titleBinding = "OVERALL_SERVICE_LEVEL@servicesBundle" titleVisible = "false" pieSlicesFromColumn="true" pieValuesInLegend ="percent" legendVisible="true" backgroundColor ="#FFFFFE" showSlicePercentLabels="false" widthBinding="chartWidth@servletRequest" heightBinding="chartHeight@servletRequest" hideZeroSlices="false" legendWidthFraction ="2.0"> <oem:boundChartDataSource chartDataSourceBinding="pie@pageSegmentBean@"/> <%-- set label and color for pie slices--%> <oem:chartColumn displayLabel= "<%=scRB.getString(ServicesMsgID.NO_ISSUES)%>" sourceIndex="0" itemColor="#CCFFCC" /> <oem:chartColumn displayLabel= "<%=scRB.getString(ServicesMsgID.AVAILABILITY_ISSUES)%>" sourceIndex="1" itemColor="#FC6666" isKey = "true"/> <%-- red --%> <oem:chartColumn displayLabel= "<%=scRB.getString(ServicesMsgID.SC_PERFORMANCE_ISSUES)%>" sourceIndex="2" itemColor="#FF9999" /> <%-- orange --%> <% boolean showBusinessMetrics = violBean.getShowBusinessMetrics(); if (showBusinessMetrics) { %> <oem:chartColumn displayLabel= "<%=scRB.getString(ServicesMsgID.BUSINESS_ISSUES)%>" sourceIndex="3" itemColor="#99CCFF" /> <%-- Blue --%> <% } %> <% int i=3; if (showBusinessMetrics) { i = 4; } if(violBean.getShowBlack()) { %> <oem:chartColumn displayLabel= "<%=scRB.getString(ServicesMsgID.SC_BLACKOUT)%>" sourceIndex="<%=i%>" itemColor="#000000" /> <%-- black --%> <%i++; } if(violBean.getShowWhite()) { %> <oem:chartColumn displayLabel= "<%=scRB.getString(ServicesMsgID.UNKNOWN_M)%>" sourceIndex="<%=i%>" itemColor="#FFFFFF" /> <%-- white --%> <% } %> </oem:chart> </uix:cellFormat> <%} else { %> <uix:cellFormat vAlign="center" hAlign="center" > <uix:stackLayout> <uix:spacer height="20"/> <uix:styledText textBinding="SC_ERROR@servicesBundle" styleClass="OraNonCompactTableTextStyle"/> <uix:spacer width="60"/> </uix:stackLayout> </uix:cellFormat> <% } %> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout borderWidth="0" > <uix:rowLayout> <uix:cellFormat hAlign="right"> <uix:include nodeBinding ="legend@pageSegmentBean@"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat height ="5" columnSpan ="2"> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" vAlign="center" width="100%" styleClass="OraTableCellTextBand" columnSpan="2"> <uix:include nodeBinding="chartNode@pageSegmentBean@" /> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat vAlign="center" hAlign="center" columnSpan="4"> <uix:spacer width="10" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout vAlign="top"> <uix:cellFormat vAlign="center" hAlign="center" > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat vAlign="top" hAlign="left" columnSpan="3"> <uix:header textBinding= "SERVICE_VIOLATIONS_TABLE@servicesBundle" size="1"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout vAlign="top"> <uix:cellFormat vAlign="center" hAlign="center" > <uix:spacer width="10" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat vAlign="center" hAlign="center" > <uix:spacer width="10" /> </uix:cellFormat> <uix:cellFormat columnSpan="3"> <uix:link name="violationsTable"/> <uix:labeledFieldLayout> <uix:formValue name="sortOrder" value="<%=violBean.getSortOrder()%>" /> <uix:formValue name="sortBy" value="<%=violBean.getSortBy()%>"/> </uix:labeledFieldLayout> <uix:table width="100%" name="complianceHostTable" id="complianceHostTableID" summary="<%=scRB.getString(ServicesMsgID.SC_ERROR)%>" blockSize="<%=violBean.getPaginationBlockSize()%>" showAll="yes" maxValue ="<%=violBean.getTotalNumOfRows()%>" value="<%=violBean.getPaginationValue()%>" formSubmitted="true" alternateTextBinding="NO_VIOLATIONS@servicesBundle" tableDataBinding="violationsTableData@pageSegmentBean@" columnHeaderDataBinding="columnHeaderData@pageSegmentBean@"> <uix:tableFormat tableBanding="rowBanding" /> <uix:columnHeaderStamp> <uix:sortableHeader sortable="yes" text="text" /> </uix:columnHeaderStamp> <uix:contents> <uix:column> <uix:columnHeader> <uix:sortableHeader sortableBinding="sortable" textBinding="SC_OUTAGE_TYPE@servicesBundle" destinationBinding="destination"/> </uix:columnHeader> <uix:contents> <uix:flowLayout> <uix:image sourceBinding="imgSource" shortDescBinding="imgDesc" /> <uix:spacer width="3" /> <uix:styledText shortDescBinding="outageType" textBinding="shortOutageType" rendered="true" /> </uix:flowLayout> </uix:contents> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader sortableBinding="sortable" textBinding= "SC_STARTDATE@servicesBundle" destinationBinding="destination"/> </uix:columnHeader> <uix:contents> <uix:styledText textBinding="stDate" rendered="true" /> </uix:contents> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader sortableBinding="sortable" textBinding= "SC_ENDDATE@servicesBundle" destinationBinding="destination"/> </uix:columnHeader> <uix:contents> <uix:styledText textBinding="enDate" rendered="true" /> </uix:contents> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader sortableBinding="sortable" textBinding= "SC_DURATION@servicesBundle" destinationBinding= "destination"/> </uix:columnHeader> <uix:contents> <uix:styledText textBinding="duration" rendered="true" /> </uix:contents> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader sortableBinding="sortable" textBinding= "SC_REMARKS@servicesBundle" destinationBinding="destination"/> </uix:columnHeader> <uix:contents> <uix:styledText shortDescBinding="description" textBinding="shortDescription" rendered="true" /> </uix:contents> </uix:column> </uix:contents> </uix:table> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout vAlign="top"> <uix:cellFormat vAlign="center" hAlign="center" > <uix:spacer width="10" /> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:form> </uix:contents> </uix:document> </uix:dataScope> </oem:pageSegment>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de