<%@ page import="com.fenalco.entities.Company"%>
<%@ page import="com.fenalco.entities.User"%>
<%@ page import="com.fenalco.entities.DataAccess"%>
<%@ page import="com.fenalco.entities.StoreList"%>
<%@ page import="com.fenalco.entities.Store"%>
<%@ page import="java.util.Vector"%>
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<title>Datos de la empresa</title>
<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-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #333333}
.Estilo11 { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; }
-->
</style>
</head>

<%
    String url_images_winpop = "../images/sysmanager/";
    Company companyData = (Company)request.getAttribute("company");
    
    StoreList storeList = null;
    if(companyData.getType()==1){
        storeList = new StoreList(companyData.getId());
    }    
        
%>

<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="3"><img src="<%=url_images_winpop%>cabezote-winpop.jpg" width="515" height="85"></td>
  </tr>

  <tr>
    <td width="81" align="right" valign="top"><img src="<%=url_images_winpop%>win1.gif" width="25" height="17"></td>
    <td width="263" bgcolor="#FFFFFF"><span class="Estilo1">Datos de la empresa </span></td>
    <td width="171" align="left" valign="top"><img src="<%=url_images_winpop%>win2.gif" width="25" height="17"></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
  
  <tr align="center">
    <td colspan="3"><table width="368" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" bgcolor="#D1D99F">&nbsp;</td>
        <td width="130" align="left" bgcolor="#D1D99F"><span class="Estilo10">Raz&oacute;n Social </span></td>
        <td width="15" bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td width="208" align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getSocialName()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Nombre Comercial </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getCommercialName()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">Descripci&oacute;n </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getDescription()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">NIT </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getNit()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">Tipo de Empresa </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%=companyData.getTypeName()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Sector Econ&oacute;mico </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getSectorName()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">Direcci&oacute;n </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getAddress()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Tel&eacute;fono 1 </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getPhoneNumber1()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">Tel&eacute;fono 2 </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getPhoneNumber2()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Contacto 1 </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getContact1()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">Contacto 2 </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getContact2()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Fax </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getFax()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">Email </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getEmail()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Numero Afiliaci&oacute;n Fenalco </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getFenalcoNumber()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">C&oacute;digo Ciiu </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getCiiuCode()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Ciudad </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getCityName()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">GLN </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%=companyData.getGln()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D9AA">&nbsp;</td>
        <td align="left" bgcolor="#D1D9AA"><span class="Estilo10">Fecha de Registro </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getRegisterDate()%></span></td>
        </tr>
      <tr>
        <td bgcolor="#D1D99F">&nbsp;</td>
        <td align="left" bgcolor="#D1D99F"><span class="Estilo10">Fecha de Activaci&oacute;n </span></td>
        <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
        <td align="left" bgcolor="#D1DFAA"><span class="Estilo11"><%= companyData.getActivationDate()%></span></td>
        </tr>
      <tr>
        <td colspan="4">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
  
  <%
    if(companyData.getType()==1 && storeList!=null && storeList.getStores().size()>0){
        Vector stores = storeList.getStores();
  %>
  <tr>
    <td width="81" align="right" valign="top"><img src="<%=url_images_winpop%>win1.gif" width="25" height="17"></td>
    <td width="263" bgcolor="#FFFFFF"><span class="Estilo1">Establecimientos </span></td>
    <td width="171" align="left" valign="top"><img src="<%=url_images_winpop%>win2.gif" width="25" height="17"></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr align="center">
    <td colspan="3"><table width="368" border="0" cellspacing="0" cellpadding="0">
      <%
          for(int i=0; i<stores.size(); i++){
              Store store = (Store)stores.get(i);
      %>
            <tr>
                <td bgcolor="#D1D99F">&nbsp;</td>
                <td align="left" bgcolor="#D1D99F" width='35%'><span class="Estilo10">Nombre </span></td>
                <td bgcolor="#D1DFAA"><span class="Estilo11"></span></td>
                <td align="left" bgcolor="#D1DFAA"><span class="Estilo11">&nbsp;&nbsp;&nbsp;&nbsp;<%= store.getName()%></span></td>
            </tr>
  <%    }
    }  
  %>
    </table></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/.”