<%@ page import="com.fenalco.entities.User"%>
<%@ page import="com.fenalco.entities.DataAccess"%>
<%@ page import="com.fenalco.entities.SupplierProduct"%>
<%@ page import="java.sql.Date"%>
<html>
<head>
<title>Detalle del producto</title>
</head>
<style type="text/css">
<!--
body {
	background-color: #D1D990;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.Estilo1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 12px;
}
-->
</style>
<link href="../css/fuentes.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo9 {color: #FFFFFF; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.Estilo10 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Estilo11 { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; }
-->
</style>
<body>
<%
   SupplierProduct product = (SupplierProduct)request.getAttribute("product");
%>
<table width='515' border="0" cellspacing="0" cellpadding="0">
    <tr> 
        <td colspan="4"><img src="../images/sysmanager/cabezote-winpop.jpg" width="515" height="85"></td>
    </tr>
    <tr>
        <td colspan='4'>
            <table width='100%' border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="81" align="right" valign="top"><img src="../images/sysmanager/win1.gif" width="25" height="17" border='0'></td>
                <td width="263" bgcolor="#FFFFFF"><span class="Estilo1">Informaci&oacute;n General</span></td>
                <td width="171" align="left" valign="top"><img src="../images/sysmanager/win2.gif" width="25" height="17" border='0'></td>
            </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
        <td colspan='2' align='center'><img src='<%String image = product.getImage();
                                                   String alt = "";
                                                   boolean hasImage = ((Boolean)request.getAttribute("hasImage")).booleanValue();
                                                    if(hasImage){
                                                        %><%=image%><%
                                                    }else{
                                                        %><%="/images/products/0.gif"%><% 
                                                        alt = "No disponible";
                                                    }%>' alt="<%=alt%>" height='100' width='100'></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Descripci&oacute;n corta</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String shortDescription = product.getShortDescription();
               if(shortDescription!=null && !shortDescription.equals("") && !shortDescription.equals("null")){
                    %><%=shortDescription%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>C&oacute;digo de barras</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String code = product.getCode();
               if(code!=null && !code.equals("") && !code.equals("null")){
                    %><%=code%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Descripci&oacute;n larga</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String longDescription = product.getLongDescription();
               if(longDescription!=null && !longDescription.equals("") && !longDescription.equals("null")){
                    %><%=longDescription%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Categor&iacute;a</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String categoryName = product.getCategoryName();
               if(categoryName!=null && !categoryName.equals("") && !categoryName.equals("null")){
                    %><%=categoryName%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Marca</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String brand = product.getBrand();
               if(brand!=null && !brand.equals("") && !brand.equals("null")){
                    %><%=brand%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
        <td colspan='4'>
            <table width='100%' border="0" cellspacing="0" cellpadding="0">
            <tr bgcolor="#FFFFFF"> 
                <td height="1" colspan="3"><img src="images/sysmanager/fondo-lineawinpop.gif" width="1" height="1"></td>
            </tr>
            <tr>
                <td width="81" align="right" valign="top"><img src="../images/sysmanager/win1.gif" width="25" height="17"></td>
                <td width="263" bgcolor="#FFFFFF"><span class="Estilo1">Informaci&oacute;n Comercial</span></td>
                <td width="171" align="left" valign="top"><img src="../images/sysmanager/win2.gif" width="25" height="17"></td>
            </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
        <td colspan='2' bgcolor='#D1D99F' class='Estilo11'><strong>Precio Base</td>
        <td colspan='2' bgcolor='#D1DFAA' class='Estilo11'><%=DataAccess.getCurrency( product.getBasePrice() ) %></td>
    </tr>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
        <td colspan='4'>
            <table width='100%' border="0" cellspacing="0" cellpadding="0">
            <tr bgcolor="#FFFFFF"> 
                <td height="1" colspan="3"><img src="images/sysmanager/fondo-lineawinpop.gif" width="1" height="1"></td>
            </tr>
            <tr>
                <td width="81" align="right" valign="top"><img src="../images/sysmanager/win1.gif" width="25" height="17"></td>
                <td width="263" bgcolor="#FFFFFF"><span class="Estilo1">Informaci&oacute;n T&eacute;cnica</span></td>
                <td width="171" align="left" valign="top"><img src="../images/sysmanager/win2.gif" width="25" height="17"></td>
            </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Nombre Funcional</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String functionalName = product.getFunctionalName();
               if(functionalName!=null && !functionalName.equals("") && !functionalName.equals("null")){
                    %><%=functionalName%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Fabricante</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String manufacturerName = product.getManufacturerName();
               if(manufacturerName!=null && !manufacturerName.equals("") && !manufacturerName.equals("null")){
                    %><%=manufacturerName%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Contenido Neto</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% float netContent  = product.getNetContent();
               String netContentUnit = product.getNetContentUnit();
               if(netContent!=0 && netContentUnit!=null && !netContentUnit.equals("") && !netContentUnit.equals("null")){
                    %><%=netContent + " " + netContentUnit%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Registro Sanitario</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String sanitaryRegistry = product.getSanitaryRegistry();
               if(sanitaryRegistry!=null && !sanitaryRegistry.equals("") && !sanitaryRegistry.equals("null")){
                    %><%=sanitaryRegistry%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Fecha Registro Sanitario</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% Date sanitaryRegistryDate = product.getSanitaryRegistryDate();
               if(sanitaryRegistryDate!=null && !(sanitaryRegistryDate.toString()).equals("") && !(sanitaryRegistryDate.toString()).equals("null")){
                    %><%=sanitaryRegistryDate.toString()%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>      
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Alto</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% float height  = product.getHeight();
               String heightUnit = product.getHeightUnit();
               if(height!=0 && heightUnit!=null && !heightUnit.equals("") && !heightUnit.equals("null")){
                    %><%=height + " " + heightUnit%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Ancho</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% float width  = product.getWidth();
               String widthUnit = product.getWidthUnit();
               if(width!=0 && widthUnit!=null && !widthUnit.equals("") && !widthUnit.equals("null")){
                    %><%=width + " " + widthUnit%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Profundidad</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% float depth  = product.getDepth();
               String depthUnit = product.getDepthUnit();
               if(depth!=0 && depthUnit!=null && !depthUnit.equals("") && !depthUnit.equals("null")){
                    %><%=depth + " " + depthUnit%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Peso Neto</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% float netWeight  = product.getNetWeight();
               String netWeightUnit = product.getNetWeightUnit();
               if(netWeight!=0 && netWeightUnit!=null && !netWeightUnit.equals("") && !netWeightUnit.equals("null")){
                    %><%=netWeight + " " + netWeightUnit%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Temperatura M&iacute;nima</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% float minimumTemperature  = product.getMinimumTemperature();
               String temperatureUnit = product.getTemperatureUnit();
               if(minimumTemperature!=0 && temperatureUnit!=null && !temperatureUnit.equals("")){
                    %><%=minimumTemperature + " " + temperatureUnit%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Temperatura M&aacute;xima</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% float maximumTemperature  = product.getMaximumTemperature();
               if(maximumTemperature!=0 && temperatureUnit!=null && !temperatureUnit.equals("") && !temperatureUnit.equals("null")){
                    %><%=maximumTemperature + " " + temperatureUnit%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Color</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String color = product.getColor();
               if(color!=null && !color.equals("") && !color.equals("null")){
                    %><%=color%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Principio Activo</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String activePrinciple = product.getActivePrinciple();
               if(activePrinciple!=null && !activePrinciple.equals("") && !activePrinciple.equals("null")){
                    %><%=activePrinciple%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Tipo de empaque</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String packagingType = product.getPackagingType();
               if(packagingType!=null && !packagingType.equals("") && !packagingType.equals("null")){
                    %><%=packagingType%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Piezas</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% int pieces = product.getPieces();
               if(pieces!=0){
                    %><%=pieces%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Estilo</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String style = product.getStyle();
               if(style!=null && !style.equals("") && !style.equals("null")){
                    %><%=style%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Talla</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String size = product.getSize();
               if(size!=null && !size.equals("") && !size.equals("null")){
                    %><%=size%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>Variante</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String variant = product.getVariant();
               if(variant!=null && !variant.equals("") && !variant.equals("null")){
                    %><%=variant%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td bgcolor='#D1D99F' class='Estilo11'><strong>F&oacute;rmula Farmace&uacute;tica</td>
        <td bgcolor='#D1DFAA' class='Estilo11'><% String pharmaceuticalForm = product.getPharmaceuticalForm();
               if(pharmaceuticalForm!=null && !pharmaceuticalForm.equals("") && !pharmaceuticalForm.equals("null")){
                    %><%=pharmaceuticalForm%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
        <td colspan='4'>
            <table width='100%' border="0" cellspacing="0" cellpadding="0">
            <tr bgcolor="#FFFFFF"> 
                <td height="1" colspan="3"><img src="images/sysmanager/fondo-lineawinpop.gif" width="1" height="1"></td>
            </tr>
            <tr>
                <td width="81" align="right" valign="top"><img src="../images/sysmanager/win1.gif" width="25" height="17"></td>
                <td width="263" bgcolor="#FFFFFF"><span class="Estilo1">Informaci&oacute;n Log&iacute;stica</span></td>
                <td width="171" align="left" valign="top"><img src="../images/sysmanager/win2.gif" width="25" height="17"></td>
            </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
        <td colspan='2' bgcolor='#D1D99F' class='Estilo11'><strong>M&aacute;ximo Unidades Apilables</td>
        <td colspan='2' bgcolor='#D1DFAA' class='Estilo11'><% int stackingWeightMaximum = product.getStackingWeightMaximum();
               if(stackingWeightMaximum!=0){
                    %><%=stackingWeightMaximum%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td colspan='2' bgcolor='#D1D99F' class='Estilo11'><strong>Capas por Unidad Log&iacute;stica</td>
        <td colspan='2' bgcolor='#D1DFAA' class='Estilo11'><% int completeLayers = product.getCompleteLayers();
               if(completeLayers!=0){
                    %><%=completeLayers%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
    <tr>
        <td colspan='2' bgcolor='#D1D99F' class='Estilo11'><strong>Productos por Capa</td>
        <td colspan='2' bgcolor='#D1DFAA' class='Estilo11'><% int itemsContainedInALayer = product.getItemsContainedInALayer();
               if(itemsContainedInALayer!=0){
                    %><%=itemsContainedInALayer%><%
               }else{
                    %><%="No disponible"%><%
               }%></td>
    </tr>
    <tr>
        <td colspan='4'>&nbsp;</td>
    </tr>
</table>
</body>
</html>
// “Copyright (C) <2008> Multilateral Investment Fund of the Inter-American Development Bank.
// Este archivo es parte de <ICT4BUS-PVL>
// < ICT4BUS-PVL > es software libre: usted puede redistribuirlo y/o modificarlo bajo los términos de la Licencia Pública General GNU publicada por la Fundación para el Software Libre, ya sea la versión 3 de la Licencia, o (a su elección) cualquier versión posterior.
// < ICT4BUS-PVL > se distribuye con la esperanza de que sea útil, pero SIN GARANTÍA ALGUNA; ni siquiera la garantía implícita MERCANTIL o de APTITUD PARA UN PROPÓSITO DETERMINADO. 
// Consulte los detalles de la Licencia Pública General GNU para obtener una información más detallada. 
// Debería haber recibido una copia de la Licencia Pública General GNU junto a este programa. En caso contrario, consulte http://www.gnu.org/licenses/.”