You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
14 KiB

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Document : PlanoActuacao
Created on : Aug 26, 2008, 3:10:59 PM
Author : lluis
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
<f:view>
<webuijsf:page id="page1">
<webuijsf:html id="html1">
<webuijsf:head id="head1">
<webuijsf:link id="link1" url="/resources/stylesheet.css"/>
<script>
function setButEnviarText(chk, index)
{
if(chk == null) // dropDown
{
hid = document.getElementById("form1:hidValidacao");
if(hid.value == "dns")
{
var butEnviar = document.getElementById("form1:groupPanel2:butEnviar");
var drp = document.getElementById("form1:groupPanel2:drpIrPara");
//var fase = drp.selectedIndex;
var fase = index;
switch(fase)
{
case 0:
butEnviar.value = "Enviar para Responsável de segurança&gt;&gt;";
break;
case 1:
butEnviar.value = "Enviar para Director de loja&gt;&gt;";
break;
}
}
}
//else
//{
// hid = document.getElementById("form1:hidValidacao");
// if(hid.value == "dir_loja")
// {
// var butEnviar = document.getElementById("form1:groupPanel2:butEnviar");
// if(chk.checked)
// {
//
// butEnviar.value = "Enviar para DNS"; }
// else
// {
// butEnviar.value = "Enviar para Responsável de segurança";
// }
// }
//}
}
function showDns()
{
var chk = document.getElementById("form1:groupPanel3:chkValidacao");
hid = document.getElementById("form1:hidValidacao");
if(hid.value == 'dns')
{
if(chk.checked)
{
document.getElementById("form1:gridParecer").className = "";
document.getElementById("form1:groupPanel2:stIrPara").className = "hidden";
document.getElementById("form1:groupPanel2:drpIrPara").className = "hidden";
var butEnviar = document.getElementById("form1:groupPanel2:butEnviar");
butEnviar.value = "Enviar para Técnico de HS&gt;&gt;";
}
else
{
document.getElementById("form1:gridParecer").className = "hidden";
document.getElementById("form1:groupPanel2:stIrPara").className = "";
document.getElementById("form1:groupPanel2:drpIrPara").className = "";
setButEnviarText(null, 0);
}
}
}
function show(chk)
{
hid = document.getElementById("form1:hidValidacao");
if(hid.value == 'dns')
{
if(chk.checked)
{
document.getElementById("form1:gridParecer").className = "";
document.getElementById("_form1:groupPanel2:stIrPara").className = "hidden";
document.getElementById("form1:groupPanel2:drpIrPara").className = "hidden";
var butEnviar = document.getElementById("form1:groupPanel2:butEnviar");
butEnviar.value = "Enviar para Técnico de HS&gt;&gt;";
}
else
{
document.getElementById("form1:gridParecer").className = "hidden";
document.getElementById("_form1:groupPanel2:stIrPara").className = "";
document.getElementById("form1:groupPanel2:drpIrPara").className = "";
setButEnviarText(null, 0);
}
}
else if(hid.value == 'dir_loja')
{
if(chk.checked)
{
var butEnviar = document.getElementById("form1:groupPanel2:butEnviar");
butEnviar.value = "Enviar para Director Nacional de Segurança&gt;&gt;";
}
else
{
var butEnviar = document.getElementById("form1:groupPanel2:butEnviar");
butEnviar.value = "Enviar para Responsável de Segurança&gt;&gt;";
}
}
}
</script>
</webuijsf:head>
<webuijsf:body id="body1">
<webuijsf:form id="form1">
<div style="left: 0px; top: 0px; width: 100%">
<jsp:directive.include file="Header.jspf"/>
</div>
<h:inputHidden binding="#{EditarPlano.hidValidacao}" id="hidValidacao"/>
<h:panelGrid columns="1" id="gridBaseLayout" style="left: 24px; top: 96px; width: 100%" styleClass="centerBlock">
<webuijsf:staticText escape="false" id="staticText1" style="font-size: 36px" text="&amp;nbsp;"/>
<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridMsg" style="height: 24px; width: 100%">
<webuijsf:staticText binding="#{EditarPlano.lblMsg}" id="lblMsg" styleClass="labelMsg "/>
</h:panelGrid>
<webuijsf:staticText binding="#{EditarPlano.lblTop}" escape="false" id="lblTop" style="" styleClass="label"/>
<h:panelGrid binding="#{EditarPlano.gridLayout}" columnClasses="gridColLeft" columns="1" id="gridLayout"
style="height: 24px; width: 80%" styleClass="centerBlock"/>
<h:panelGrid binding="#{EditarPlano.gridPagination}" columnClasses="gridColCenter" columns="1" id="gridPagination"
style="height: 24px; width: 60%" styleClass="centerBlock" width="408">
<webuijsf:panelGroup binding="#{EditarPlano.grpPagination}" id="grpPagination"/>
</h:panelGrid>
<h:panelGrid binding="#{EditarPlano.gridValidar}" columns="1" id="gridValidar" style="height: 24px; width: 80%"
styleClass="centerBlock" width="408">
<h:panelGrid columnClasses="gridColLeft20,gridColLeft80" columns="2" id="gridValidar2" style="height: 24px; width: 100%">
<webuijsf:panelGroup id="groupPanel3">
<webuijsf:staticText id="staticText2" styleClass="label" text="Validar processo:"/>
<webuijsf:checkbox binding="#{EditarPlano.chkValidacao}" id="chkValidacao" onChange="show(this)" valueChangeListenerExpression="#{EditarPlano.chkValidacao_processValueChange}"/>
</webuijsf:panelGroup>
<h:panelGrid binding="#{EditarPlano.gridParecer}" columnClasses="gridColLeft10,gridColLeft90" columns="2" id="gridParecer"
style="height: 24px" width="240">
<webuijsf:staticText id="staticText3" styleClass="label" text="Parecer:"/>
<webuijsf:textArea binding="#{EditarPlano.txtParecer}" columns="60" id="txtParecer" rows="4"/>
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
<h:panelGrid columns="1" id="gridButtons1" style="height: 24px; width: 80%" styleClass="centerBlock">
<h:panelGrid columnClasses="gridColLeft,gridColRight" columns="2" id="gridPanel1" style="height: 24px; width: 100%">
<webuijsf:button actionExpression="#{EditarPlano.butLimparDados_action}" binding="#{EditarPlano.butLimparDados}"
id="butLimparDados" style="width: 95px" text="Limpar dados"/>
<webuijsf:panelGroup id="groupPanel1" style="width: 194px">
<webuijsf:button actionExpression="#{EditarPlano.butGravarPlano_action}" binding="#{EditarPlano.butGravarPlano}"
id="butGravarPlano" style="width: 95px" text="Gravar Plano"/>
<webuijsf:button actionExpression="#{EditarPlano.butGravarRisco_action}" binding="#{EditarPlano.butGravarRisco}"
id="butGravarRisco" style="width: 95px" text="Gravar Risco&gt;&gt;"/>
</webuijsf:panelGroup>
</h:panelGrid>
<h:panelGrid columnClasses="gridColLeft,gridColRight" columns="2" id="gridPanel2" style="height: 24px; width: 100%">
<webuijsf:button actionExpression="#{EditarPlano.butCancelar_action}" binding="#{EditarPlano.butCancelar}" id="butCancelar"
style="width: 95px" text="Cancelar"/>
<webuijsf:panelGroup id="groupPanel2" style="width: 194px">
<webuijsf:staticText binding="#{EditarPlano.stIrPara}" escape="false" id="stIrPara"
style="font-size: 12px; font-weight: bold" text="Enviar para:&amp;nbsp;"/>
<webuijsf:dropDown binding="#{EditarPlano.drpIrPara}" id="drpIrPara" items="#{SessionBean1.irParaOptions}"
onChange="setButEnviarText(null, this.selectedIndex);" selected="#{SessionBean1.irParaChoice}" style=""
valueChangeListenerExpression="#{EditarPlano.drpIrPara_processValueChange}" width="150"/>
<webuijsf:staticText escape="false" id="staticText4" text="&amp;nbsp;&amp;nbsp;"/>
<webuijsf:button actionExpression="#{EditarPlano.butEnviar_action}" binding="#{EditarPlano.butEnviar}" id="butEnviar" style="width: 223px"/>
</webuijsf:panelGroup>
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
</webuijsf:form>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</f:view>
</jsp:root>