<%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="" %>
<%@ page import="com.fenalco.entities.PriceScale"%>
<%@ page import="java.util.Vector"%>
<%@ page import="com.fenalco.entities.DataAccess"%>
<%
    PriceScale scale = ( PriceScale )request.getAttribute( "scale" );
    String prodName = ( String )request.getAttribute( "prodName" );
    String suppName = ( String )request.getAttribute( "suppName" );
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel='stylesheet' style='text/css' href='../css/tablas.css'>
<title>Escala de Precios</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
    <table>
        <tr>
            <td>Producto:</td>
            <td><%=prodName%></td>
        </tr>
        <tr>
            <td>Proveedor:</td>
            <td><%=suppName%></td>
        </tr>
    </table>
    <table align="center" border='0'>
        <tr class='tableheader'>
            <td align="center">M&iacute;nimo</td>
            <td align="center">M&aacute;ximo</td>
            <td align="center">Valor</td>
        </tr>
        <%
            Vector scales = scale.getValues();
            for( int i = 0; i < scales.size(); i++ )
            {
                Vector s = ( Vector )scales.elementAt( i );
            %>
                <tr>
                    <td align="right"><%=s.elementAt( 1 )%></td>
                    <td align="right"><%=s.elementAt( 2 )%></td>
                    <td align="right"><%=DataAccess.getCurrency( ( ( Double ) s.elementAt( 3 ) ).doubleValue() )%></td>
                </tr>
            <%
            }
        %>
    </table>
</body>
</html>
