<%@ page import="ro.emid.common.utils.ObjectUtils" %>
<%@ page import="ro.emid.common.types.LocConsumOpen" %>
<%@ page import="ro.emid.common.constants.AppConstants" %>

<%
    final long idStrada = ObjectUtils.getLongValue(request.getParameter("idStrada"), -1);

    //todo:
    //final LocConsumOpen[] lcs =  OpenSCGAccessDB.searchLocConsum( idStrada);
    final LocConsumOpen[] lcs = new LocConsumOpen[]{};
%>

<TABLE id="tableLocuriConsum" class="gSAPTHEAD" style="BACKGROUND-COLOR: white" width="100%" cellspacing="1" cellpadding="0">
    <thead>
        <TR noSelect="true" align="">
            <TD class="gsapthead" >Nr.</TD>
            <TD class="gsapthead" title="DUPLICADOR/CGV_SUM" >D|C</TD>
            <TD class="gsapthead" >NLC</TD>
            <TD class="gsapthead" >Client</TD>
        </TR>
    </thead>

    <tbody>
        <% if( lcs == null || lcs.length == 0){%>
            <tr>
                <td colspan="5" noSelect="true">Nu exista date ...</td>
            </tr>
        <% }else for (int i = 0; i < lcs.length; i++) {
            final LocConsumOpen lc  = lcs[i]; %>

            <tr valign="top">
                <td class="bordered-bottom" align="right"><%=AppConstants.format(lc.getNumar())%></td>
                <td class="bordered-bottom"><%=AppConstants.format(lc.getDuplicador())%>|<%=AppConstants.format(lc.getCgvSum())%></td>
                <td class="bordered-bottom">&nbsp;<%=AppConstants.format(lc.getNlc())%>&nbsp;</td>
                <td class="bordered-bottom"><%=AppConstants.format(lc.getClient())%></td>
            </tr>
        <% } %>
    </tbody>
</TABLE>
