<?xml version='1.0' encoding='windows-1252'?>
<!--$Id: SRManage.jspx,v 1.8 2006/04/06 12:19:18 steve Exp $-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces"
          xmlns:afc="http://xmlns.oracle.com/adf/faces/webcache">
  <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <f:loadBundle basename="oracle.srdemo.view.resources.UIResources"
                  var="res"/>
    <af:document title="#{res['srdemo.browserTitle']}">
      <af:form>
        <af:panelPage title="#{res['srmanage.pageTitle']}">
          <!--Page Content Start-->
          <af:panelBorder>
            <f:facet name="top"/>
            <f:facet name="bottom"/>
            <f:facet name="start"/>
            <f:facet name="end"/>
            <f:facet name="left">
              <af:panelGroup layout="vertical">
                <af:objectSpacer width="300" height="10"/>
                <af:outputText value="#{res['srmanage.treeHeader']}"/>
                <af:objectSeparator/>
                <af:tree value="#{bindings.StaffWithOpenRequests.treeModel}"
                         var="node">
                  <f:facet name="nodeStamp">
                    <af:switcher facetName="#{backing_SRManage.treeLevel[node.hierType.viewDefName]}">
                      <f:facet name="StaffNode">
                        <af:commandLink text="#{node}"
                                        action="#{backing_SRManage.staffLinkDrilldown}"
                                        actionListener="#{bindings.setCurrentStaffRowWithKey.execute}"/>
                      </f:facet>
                      <f:facet name="ServiceRequestsNode">
                        <af:panelGroup>
                          <af:outputText  value="[#{node.Status}] "/>
                          <af:commandLink text="#{node.ProblemDescription}"
                                        action="#{backing_SRManage.problemLinkDrilldown}"
                                        actionListener="#{bindings.setCurrentProblemAndAssigneeRows.execute}"/>
                        </af:panelGroup>
                      </f:facet>
                    </af:switcher>                  
                    </f:facet>
                </af:tree>
              </af:panelGroup>
            </f:facet>
            <af:panelHorizontal binding="#{backing_SRManage.staffInfoPanel}"
                           rendered="false">
              <af:objectSpacer width="20" height="10"/>
              <af:panelGroup>
                <af:panelHeader text="#{res['srmanage.staffInfo.panelTitle']} #{bindings.FirstName} #{bindings.LastName}"/>
                <af:table value="#{bindings.ExpertiseAreas.collectionModel}"
                          var="row"
                          rows="#{bindings.ExpertiseAreas.rangeSize}"
                          first="#{bindings.ExpertiseAreas.rangeStart}">
                  <af:column headerText="#{res['srmanage.productHeader']}">
                    <af:outputText value="#{row.Name}"/>
                  </af:column>
                  <af:column headerText="#{res['srmanage.expertiseHeader']}">
                    <af:outputText value="#{row.ExpertiseLevel}"/>
                  </af:column>
                </af:table>
              </af:panelGroup>
            </af:panelHorizontal>
            <af:panelHorizontal binding="#{backing_SRManage.problemInfoPanel}"
                           rendered="false">
              <af:objectSpacer width="20" height="10"/>
              <af:panelGroup layout="vertical">
                <af:panelHeader text="#{res['srmanage.problemInfo.panelTitle']} #{bindings.SvrId}"/>
                <af:panelBox background="light" width="400">
                  <af:panelGroup layout="vertical">
                    <af:panelHorizontal>
                      <af:outputText value="#{bindings.Status.inputValue}"
                                     inlineStyle="font-weight:bold;"/>
                      <af:outputText value="#{res['srmanage.problemCreated']}"/>
                      <af:outputText value="#{bindings.RequestDate.inputValue}"
                                     inlineStyle="font-style:italic;">
                        <af:convertDateTime dateStyle="long" type="both"/>
                      </af:outputText>
                      <f:facet name="separator">
                        <af:objectSpacer width="4"/>
                      </f:facet>
                    </af:panelHorizontal>
                    <af:objectSpacer height="6"/>
                    <af:outputText value="#{res['srmanage.problemInfo.panelSubTitle']}"
                                   inlineStyle="font-weight:bold;"/>
                    <af:objectSeparator/>
                    <af:outputText value="#{bindings.ProblemDescription.inputValue}"/>
                  </af:panelGroup>
                </af:panelBox>
                <af:iterator rows="#{bindings.ServiceHistories.estimatedRowCount}"
                             value="#{bindings.ServiceHistories.collectionModel}"
                             var="row">
                  <af:panelHorizontal>
                    <af:objectSpacer width="15"/>
                    <af:outputText value="#{row.SvhDate}"
                                   inlineStyle="font-style:italic;">
                      <af:convertDateTime dateStyle="long" type="both"/>
                    </af:outputText>
                    <af:outputText value=" - #{row.FirstName} #{row.LastName}"/>
                  </af:panelHorizontal>
                  <af:objectSpacer height="5"/>
                  <af:panelHorizontal>
                    <af:objectSpacer width="15"/>
                    <af:switcher facetName="#{row.SvhType}">
                      <f:facet name="Hidden">
                        <af:outputText value="#{row.Notes}"
                                       inlineStyle="color:rgb(255,0,0);"/>
                      </f:facet>
                      <f:facet name="Technician">
                        <af:outputText value="#{row.Notes}"
                                       inlineStyle="color:rgb(0,0,255);"/>
                      </f:facet>
                      <f:facet name="Customer">
                        <af:outputText value="#{row.Notes}"/>
                      </f:facet>
                    </af:switcher>
                  </af:panelHorizontal>
                  <af:objectSpacer height="5"/>
                  <af:objectSeparator/>
                </af:iterator>
              </af:panelGroup>
            </af:panelHorizontal>
          </af:panelBorder>
          <!-- Page Content End -->
          <f:facet name="branding">
            <af:objectImage height="69" width="340"
                            source="/images/SRBranding.gif"/>
          </f:facet>
          <f:facet name="menu1">
            <afc:cache duration="864000" 
                   varyBy="userInfo.userName">
              <af:menuTabs var="menuTab" value="#{menuModel.model}">
                <f:facet name="nodeStamp">
                  <af:commandMenuItem text="#{menuTab.label}"
                                      action="#{menuTab.getOutcome}"
                                      rendered="#{menuTab.shown and menuTab.type=='default'}"
                                      disabled="#{menuTab.readOnly}"/>
                </f:facet>
              </af:menuTabs>
            </afc:cache>
          </f:facet>
          <f:facet name="menuGlobal">
            <f:subview id="globalMenufragment">
              <jsp:include page="/app/globalMenu.jspx"/>
            </f:subview>
          </f:facet>
          <f:facet name="menu2">
            <!-- Sub Tabs shown in the header bar -->
            <af:menuBar var="menuSubTab" startDepth="1"
                        value="#{menuModel.model}">
              <f:facet name="nodeStamp">
                <af:commandMenuItem text="#{menuSubTab.label}"
                                    action="#{menuSubTab.getOutcome}"
                                    rendered="#{menuSubTab.shown and menuSubTab.type=='default'}"
                                    disabled="#{menuSubTab.readOnly}"/>
              </f:facet>
            </af:menuBar>
          </f:facet>
          <f:facet name="messages">
            <af:messages/>
          </f:facet>
          <f:facet name="appCopyright">
            <!--Copyright msg-->
            <af:outputText value="#{res['srdemo.copyright']}"/>
          </f:facet>
          <f:facet name="appAbout">
              <!-- The About this Application Link-->
              <af:commandLink text="#{res['srdemo.about']}" action="GlobalAbout"
                              immediate="true"/>
          </f:facet>
          <f:facet name="infoUser">
            <!-- Show the Logged in user -->
            <h:outputFormat value="#{res['srdemo.connectedUser']}"
                            rendered="#{userInfo.authenticated}" escape="false">
              <f:param value="#{userInfo.userName}"/>
            </h:outputFormat>
          </f:facet>
        </af:panelPage>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>
