/* Automatically generated.
 * Copyright (c) 2000-2006 by SAP AG, Walldorf.,
 * http://www.sap.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of SAP AG, Walldorf. You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with SAP.
 * Do not edit.
 */

import ro.emid.common.utils.pagination.PaginationController;
import ro.emid.common.utils.sort.SortController;
import ro.emid.common.utils.sort.SortData;
import ro.emid.common.utils.pagination.PaginationConstants;
import ro.emid.common.db.AccessDB;
import java.sql.SQLException;
import ro.emid.common.db.framework.DatabaseException;
import ro.emid.common.utils.StringUtils;
import ro.emid.common.db.CategoryAccessDB;
import java.util.*;
import ro.emid.common.utils.ObjectUtils;
import ro.emid.common.constants.AppConstants;
import ro.emid.incidente.IncidenteSessionUtils;
import ro.emid.common.types.*;
import ro.emid.common.utils.pagination.PaginationData;
import ro.emid.common.constants.GlobalAppConstants;
import ro.emid.common.constants.RoleConstants;
import ro.emid.common.types.Category;
import ro.emid.incidente.IncidenteSessionUtils;
import ro.emid.common.utils.SessionUtils;
import ro.emid.common.types.User;
import ro.emid.common.constants.AppConstants;
import ro.emid.common.constants.RoleConstants;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public class JEE_jsp_WEB_2d_INF_pagelet_rapoarte_raport_2d_top10_2d_fi_2d_fe_1495030460399 extends com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase{

	public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
	{
		//isXml=false
		JspFactory  _jspFactory     = JspFactory.getDefaultFactory();
		PageContext pageContext = _jspFactory.getPageContext(this,request,response,null,true,32768,true);
		ServletConfig config = pageContext.getServletConfig();
		ServletContext application = pageContext.getServletContext();
		com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext = (com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl) pageContext;
		com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();
		HttpSession session = pageContext.getSession();
		if (!response.isCommitted()) {
		response.setContentType("text/html;charset=UTF-8");
		}
		JspWriter   out     = pageContext.getOut();
		java.lang.Object page = this;
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(1,73);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(2,61);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(3,55);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(4,72);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(5,47);to=(6,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(6,42);to=(7,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(7,66);to=(8,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(8,53);to=(9,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(9,55);to=(10,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(10,32);to=(11,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(11,53);to=(12,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(12,58);to=(13,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(13,60);to=(14,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(14,43);to=(15,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(15,67);to=(16,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(16,64);to=(17,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(17,59);to=(19,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/incidente/declaratii.jsp";from=(1,50);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/incidente/declaratii.jsp";from=(2,60);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/incidente/declaratii.jsp";from=(3,54);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/incidente/declaratii.jsp";from=(4,46);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/incidente/declaratii.jsp";from=(5,58);to=(6,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/incidente/declaratii.jsp";from=(6,50);to=(8,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/incidente/declaratii.jsp";from=(8,0);to=(34,2)]
			
    final boolean printVersion = request.getParameter("printVersion") != null && "true".equals( request.getParameter("printVersion")) || request.getAttribute("printVersion") != null && "true".equals( request.getAttribute("printVersion")) ;

    final User user = SessionUtils.getUserLogat(session);

    Category filiala = IncidenteSessionUtils.getFiliala(session);
    if(filiala == null){
        filiala = new Category();
    }

    Category sucursala = IncidenteSessionUtils.getSucursala(session);
    if(sucursala == null){
        sucursala = new Category();
    }

    Category centruExploatare = IncidenteSessionUtils.getCentru(session);
    if(centruExploatare == null){
        centruExploatare = new Category();
    }

    Category formatiaDeLucru = IncidenteSessionUtils.getFormatia(session);
    if(formatiaDeLucru == null){
        formatiaDeLucru = new Category();
    }

    boolean isCuSectiiSiCentre = ((sucursala != null && sucursala.isCuSectiiSiCentre()) || (centruExploatare != null && centruExploatare.isCuSectiiSiCentre()));

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(19,48);to=(22,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(22,0);to=(68,2)]
			
    class RaportRow{
        long idLf;
        String codLf;
        String denLf;
        String denSucursala;
        String denCentru;

        long cntEvenimente;
        long durataEvenimente;
        double cheltTotalMent;
        double cheltTotalDaune;
        double cheltTotalExpl;
        double cheltTotalEvenimente;
        double energieNelivrata;

        //date din FI
        long cntIncidente;
        long durataIncidente;
        double cheltIncMent;
        double cheltIncExpl;
        double cheltIncDaune;
        double cheltIncTotal;

        //date din FE
        long cntEchipamente;
        long durataEchipamente;

        double cheltEchMent;
        double cheltEchExpl;
        double cheltEchDaune;
        double cheltEchTotal;
    }

    class Totaluri{
        long countIncidente;
        long countEchipamente;
        long countEvenimente;
        long durataEvenimente;
        double energieNelivrata;
        double costMent;
        double costDaune;
        double costExpl;
        double costTotal;
    }


// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(68,2);to=(70,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(70,0);to=(285,2)]
			
    final PaginationData pd = PaginationController.getPaginationData( request, 20);
    final SortData sd = SortController.getSortData(request, "CNT_T", "DESC");

    final Category filialaRaport = filiala;
    final Category sucursalaRaport = sucursala;
    final Category centruRaport = centruExploatare;

    final String tip = StringUtils.getNullSafe( request.getParameter("tip"), "STATIE_COD");
    String tipObCondition = "";

    if( "STATIE_COD".equals( tip)){
        tipObCondition =  "AND lf.TIP_OB = 'UTILIT.ST'";
    }else if ("LINIE_COD".equals( tip)){
        tipObCondition = "AND ( lf.TIP_OB LIKE 'LEA%' OR lf.TIP_OB LIKE 'LES%' )";
    }else if( "PAPT_COD".equals( tip)){
        //tipObCondition =  "AND lf.TIP_OB LIKE 'P%'";
        tipObCondition = "AND lf.TIP_OB IN ('PCAB', 'PTA', 'PTM', 'PT', 'PTS', 'PTZ', 'PTAB', 'PA')";
    }

    final Date dataStart = ObjectUtils.getDateValue( request.getParameter("data_start"), GlobalAppConstants.FORMAT_DATA);
    Date dataStop  = ObjectUtils.getDateValue(request.getParameter("data_stop"), GlobalAppConstants.FORMAT_DATA);
    if( dataStop == null) dataStop = new Date();


    final ro.emid.common.types.CategoryCheckData checkData = IncidenteSessionUtils.getCategoriiSelectate(session);


    final StringBuffer filterIncidente = new StringBuffer();
    final StringBuffer filterEchipamente = new StringBuffer(" AND NVL( INCIDENT_ID, 0) <= 0 ");

    if( filialaRaport != null && filialaRaport.getId() > 0){
        filterIncidente.append(" AND FILIALA_ID = ").append( filialaRaport.getId());
        filterEchipamente.append(" AND FILIALA_ID = ").append( filialaRaport.getId());
    }

    if( sucursalaRaport != null && sucursalaRaport.getId() > 0){
        filterIncidente.append(" AND SUCURSALA_ID = ").append( sucursalaRaport.getId());
        filterEchipamente.append(" AND SUCURSALA_ID = ").append( sucursalaRaport.getId());
    }

    if( centruRaport != null && centruRaport.getId() > 0){
        filterIncidente.append(" AND SECTIE_ID = ").append( centruRaport.getId());
        filterEchipamente.append(" AND SECTIE_ID = ").append( centruRaport.getId());
    }

    if ( dataStart != null){
        filterIncidente.append( " AND DATA >= TO_DATE('").append( AppConstants.format(dataStart)).append("', 'DD.MM.YYYY') " );
        filterEchipamente.append( " AND DATA_DETERIORARE >= TO_DATE('").append( AppConstants.format(dataStart)).append("', 'DD.MM.YYYY') " );
    }

    if ( dataStop != null){
        filterIncidente.append( " AND DATA <= TO_DATE('").append( AppConstants.format(dataStop)).append("', 'DD.MM.YYYY') " );
        filterEchipamente.append( " AND DATA_DETERIORARE <= TO_DATE('").append( AppConstants.format(dataStop)).append("', 'DD.MM.YYYY') " );
    }


    //{Checked Categories
    //Filiale

    long ids[] = checkData.getIdFiliale();
    String condition = " AND (";
    if( ids.length > 0){
        filterIncidente.append( condition);
        filterEchipamente.append( condition);
        filterIncidente.append(" FILIALA_ID IN (");
        filterEchipamente.append(" FILIALA_ID IN (");
        for (int i = 0; i < ids.length; i++) {
            final long id = ids[i];
            filterIncidente.append( id).append( i < ids.length - 1 ? ", " : "") ;
            filterEchipamente.append( id).append( i < ids.length - 1 ? ", " : "") ;
        }
        filterIncidente.append(") ");
        filterEchipamente.append(") ");

        condition = " OR ";
    }

    ids = checkData.getIdSucursale();

    if( ids.length > 0){
        filterIncidente.append( condition);
        filterEchipamente.append( condition);
        filterIncidente.append(" SUCURSALA_ID IN (");
        filterEchipamente.append(" SUCURSALA_ID IN (");
        for (int i = 0; i < ids.length; i++) {
            final long id = ids[i];
            filterIncidente.append( id).append( i < ids.length - 1 ? ", " : "") ;
            filterEchipamente.append( id).append( i < ids.length - 1 ? ", " : "") ;
        }
        filterIncidente.append(") ");
        filterEchipamente.append(") ");

        condition = " OR ";
    }

    ids = checkData.getIdCentre();

    if( ids.length > 0){
        filterIncidente.append( condition);
        filterEchipamente.append( condition);
        filterIncidente.append(" SECTIE_ID IN (");
        filterEchipamente.append(" SECTIE_ID IN (");

        for (int i = 0; i < ids.length; i++) {
            final long id = ids[i];
            filterIncidente.append( id).append( i < ids.length - 1 ? ", " : "") ;
            filterEchipamente.append( id).append( i < ids.length - 1 ? ", " : "") ;
        }

        filterIncidente.append(") ");
        filterEchipamente.append(") ");
        condition = " OR ";
    }

    if( condition.equals(" OR ")){
        filterIncidente.append(')');  //for AND ( FILIALA_ID IN(...) OR SUCURSLA_ID IN (...) OR SECTIE_ID IN (...))
        filterEchipamente.append(')');  //for AND ( FILIALA_ID IN(...) OR SUCURSLA_ID IN (...) OR SECTIE_ID IN (...))
    }
    //}

    final StringBuffer sql = new StringBuffer();

    sql.append("SELECT \n" + "    lf.ID ID_LF, \n" + "    lf.COD_LF, \n" + "    lf.DESC_LF, \n" + "    s.NAME SUCURSALA, \n" + "    c.NAME CENTRU, \n" + "    NVL( i.CNT_INCIDENTE, 0) + NVL( e.CNT_ECHIPAMENTE, 0) CNT_T,\n" + "    NVL( i.DURATA_INCIDENTE, 0) + NVL( e.DURATA_ECHIPAMENTE, 0) DURATA_T,\n" + "    NVL( i.CM, 0) + NVL( e.CM, 0) CM_T,\n" + "    NVL( i.CD, 0) + NVL( e.CD, 0) CD_T,\n" + "    NVL( i.CEXP, 0) + NVL( e.CEXP, 0) CEXP_T,\n" + "    NVL( i.CT, 0) + NVL( e.CT, 0) CT_T, \n" + "    NVL( i.DURATA_INCIDENTE, 0) DURATA_I,\n" + "    NVL( i.CNT_INCIDENTE, 0) CNT_I, \n" + "    NVL( i.CM, 0) CM_I,\n" + "    NVL( i.CD, 0) CD_I,\n" + "    NVL( i.CEXP, 0) CEXP_I,\n" + "    NVL( i.CT, 0) CT_I,\n" + "    NVL( i.EN, 0) EN_I,\n" + "    NVL( e.DURATA_ECHIPAMENTE, 0) DURATA_ECHIPAMENTE,\n" + "    NVL( e.CNT_ECHIPAMENTE, 0) CNT_E,\n" + "    NVL( e.CM, 0) CM_E,\n" + "    NVL( e.CD, 0) CD_E,\n" + "    NVL( e.CEXP, 0) CEXP_E,\n" + "    NVL( e.CT, 0) CT_E\n" + "from lf \n" + "    left join (\n" + "        select \n" + "            /* STATIE_ID */ ").append(tip).append(", \n").append("            COUNT(*) CNT_INCIDENTE,\n").append("            SUM( DURATA_INCIDENT) DURATA_INCIDENTE,\n").append("            SUM( ENERGIE_NELIVR) EN, \n").append("            SUM( CHELT_MENT) CM, \n").append("            SUM( CHELT_DAUNE) CD, \n").append("            SUM( CHELT_EXPLOATARE) CEXP, \n").append("            SUM( CHELT_MENT + CHELT_DAUNE + CHELT_EXPLOATARE) CT\n").append("        from incidente \n").append("        where 0=0  \n").append(filterIncidente.toString()).append('\n').append("        group by /* STATIE_ID */ ").append(tip).append(" \n").append("    )i on (lf.COD_LF = /* i.STATIE_ID */ i.").append(tip).append(" ) \n").append("    left join (\n").append("        select \n").append("            /* STATIE_ID */").append(tip).append(", \n").append("            COUNT(*) CNT_ECHIPAMENTE,\n").append("            SUM( DIAF_ORE * 60 + DIAF_MIN) DURATA_ECHIPAMENTE,\n").append("            SUM( CHELT_MENT) CM, \n").append("            SUM( CHELT_DAUNE) CD, \n").append("            SUM( CHELT_EXPLOATARE) CEXP, \n").append("            SUM( CHELT_MENT + CHELT_DAUNE + CHELT_EXPLOATARE) CT\n").append("        from echipamente \n").append("        WHERE 0=0 \n").append(filterEchipamente.toString()).append('\n').append("        group by /* STATIE_ID */ ").append(tip).append(" \n").append("    ) e on (lf.COD_LF = /* e.STATIE_ID*/ e.").append(tip).append(")\n").append("    INNER JOIN CATEGORIES c ON (lf.CE=c.COD_SAP)\n").append("    INNER JOIN CATEGORIES s ON (c.ID_PARENT=s.ID)\n").append("    INNER JOIN CATEGORIES f ON (s.ID_PARENT=f.ID)\n").append(" WHERE 0=0 ").append(tipObCondition).append(" AND NVL( i.CT, 0) + NVL( e.CT, 0) > 0\n");

    sql.append("ORDER BY ").append(sd.getColumnName()).append(' ').append( sd.getDirection());



    final StringBuffer buffer = new StringBuffer();
    buffer.append( "SELECT * FROM (SELECT a.*, ROWNUM AS rn FROM (\n");
    buffer.append( sql );
    buffer.append( ") a WHERE ROWNUM <= ").append( pd.getQueryEndIndex()).append( " ) WHERE ").append(pd.getStartIndex()).append( " <= rn ");

    //calculare totaluri
    final StringBuffer totalsSql = new StringBuffer("SELECT sum(t.CNT_I) CNT_I, sum(t.CNT_E) CNT_E, sum(t.CNT_T) CNT_T, sum( t.DURATA_T) DURATA_T, sum( EN_I) EN_I, sum(t.CM_T) CM_T, sum(t.CD_T) CD_T, sum(t.CEXP_T) CEXP_T, sum(t.CT_T) CT_T FROM (").append( sql).append(")t ");

    final Totaluri totaluri = (Totaluri) AccessDB.executeSQL( new AccessDB("Raport Top 10 FI FE totaluri") {
        protected Object doWork() throws SQLException, DatabaseException {
            final Totaluri r = new Totaluri();

            createStatementFromString( totalsSql.toString());
            getResultSetFromQuery();

            if (resultSet.next()) {
                final int k = 1;
                r.countIncidente = resultSet.getLong( "CNT_I");
                r.countEchipamente = resultSet.getLong( "CNT_E");
                r.countEvenimente = resultSet.getLong( "CNT_T");
                r.durataEvenimente = resultSet.getLong( "DURATA_T");
                r.energieNelivrata = resultSet.getLong( "EN_I");
                r.costMent = resultSet.getDouble(  "CM_T");
                r.costDaune = resultSet.getDouble( "CD_T");
                r.costExpl = resultSet.getDouble( "CEXP_T");
                r.costTotal = resultSet.getDouble( "CT_T");
            }

            return r;
        }
    });

    final List result = (List) AccessDB.executeSQL( new AccessDB("Raport Top 10 FI FE") {
        protected Object doWork() throws SQLException, DatabaseException {
            final List list = new LinkedList();

            createStatementFromString( buffer.toString());
            getResultSetFromQuery();

            while (resultSet.next()) {
                final RaportRow row = new RaportRow();
                row.idLf = resultSet.getLong( "ID_LF");
                row.codLf = resultSet.getString("COD_LF");
                row.denLf = resultSet.getString("DESC_LF");

                row.denSucursala = resultSet.getString( "SUCURSALA");
                row.denCentru = resultSet.getString("CENTRU");

                row.cntEvenimente = resultSet.getLong( "CNT_T");
                row.durataEvenimente = resultSet.getLong( "DURATA_T");
                row.energieNelivrata = resultSet.getDouble("EN_I");

                row.cntIncidente = resultSet.getLong( "CNT_I");
                row.cntEchipamente = resultSet.getLong( "CNT_E");

                row.cheltTotalMent = resultSet.getLong( "CM_T");
                row.cheltTotalDaune = resultSet.getLong( "CD_T");
                row.cheltTotalExpl = resultSet.getLong( "CEXP_T");
                row.cheltTotalEvenimente = resultSet.getLong( "CT_T");

                list.add( row);
            }

            return list;
        }
    });

    final Integer cnt = (Integer) AccessDB.executeSQL( new AccessDB("cnt") {
        protected Object doWork() throws SQLException, DatabaseException {
            createStatementFromString("SELECT count(*) FROM (" + sql.toString() + " ) ");
            getResultSetFromQuery();

            Integer i = new Integer(0);
            while (resultSet.next()) {
                i = new Integer( resultSet.getInt( 1));
            }
            return i;
        }
    });

    pd.setResultRowCount( result.size());
    pd.setTotalRowsCount( cnt.intValue());


    session.setAttribute("raportTop10_FI_FE_FilterIncidente", filterIncidente);
    session.setAttribute("raportTop10_FI_FE_FilterEchipamente", filterEchipamente);

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(285,2);to=(292,12)]
			out.print("\r\n\r\n\r\n\r\n<TABLE border=0 cellPading=0 cellSpacing=0 width=\"100%\">\r\n    <TR>\r\n        <TD>\r\n            ");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(1,59);to=(2,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(2,0);to=(13,2)]
			
    if (user.getIeLevel() == RoleConstants.NIVEL_SUCURSALA) {
        filiala.setShowAsLink(false);
    } else if (user.getIeLevel() == RoleConstants.NIVEL_CENTRU) {
        filiala.setShowAsLink(false);
        sucursala.setShowAsLink(false);
    } else if (user.getIeLevel() == RoleConstants.NIVEL_FORMATIE) {
        filiala.setShowAsLink(false);
        sucursala.setShowAsLink(false);
        centruExploatare.setShowAsLink(false);
    }

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(13,2);to=(16,0)]
			out.print("\n<span class=\"localizare\">\n<span class=\"bold\">E\u015fti aici:</span>\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(16,0);to=(17,34)]
			if (filiala != null && filiala.getId() != -1) {
    if( filiala.isShowAsLink()){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(17,34);to=(18,34)]
			out.print("\n        <a title=\"Lista sucursale ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(18,34);to=(18,56)]
			out.print(filiala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(18,56);to=(18,77)]
			out.print("\" class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(18,77);to=(18,103)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(18,103);to=(18,126)]
			out.print("?action=showSucursale\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(18,126);to=(18,148)]
			out.print(filiala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(18,148);to=(19,4)]
			out.print("</a>\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(19,4);to=(19,14)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(19,14);to=(20,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(20,8);to=(20,30)]
			out.print(filiala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(20,30);to=(21,4)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(21,4);to=(21,9)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(21,9);to=(23,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(23,0);to=(23,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(23,5);to=(24,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(24,0);to=(24,55)]
			if( sucursala != null && sucursala.getId() != -1){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(24,55);to=(26,4)]
			out.print("\n    <span class=\"slash\">/</span>\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(26,4);to=(26,38)]
			if( sucursala.isShowAsLink()){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(26,38);to=(27,29)]
			out.print("\n        <a title=\"Lista C.E. ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(27,29);to=(27,53)]
			out.print(sucursala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(27,53);to=(27,74)]
			out.print("\" class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(27,74);to=(27,100)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(27,100);to=(27,120)]
			out.print("?action=showCentre\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(27,120);to=(27,144)]
			out.print(sucursala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(27,144);to=(28,4)]
			out.print("</a>\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(28,4);to=(28,14)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(28,14);to=(29,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(29,8);to=(29,32)]
			out.print(sucursala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(29,32);to=(30,4)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(30,4);to=(30,9)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(30,9);to=(31,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(31,0);to=(31,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(31,5);to=(33,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(33,0);to=(33,68)]
			if( centruExploatare != null && centruExploatare.getId() != -1){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(33,68);to=(35,4)]
			out.print("\n    <span class=\"slash\">/</span>\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(35,4);to=(35,45)]
			if( centruExploatare.isShowAsLink()){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(35,45);to=(36,35)]
			out.print("\n        <a title=\"Lista evenimente ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(36,35);to=(36,66)]
			out.print(centruExploatare.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(36,66);to=(36,87)]
			out.print("\" class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(36,87);to=(36,113)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(36,113);to=(36,137)]
			out.print("?action=showEvenimente\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(36,137);to=(36,168)]
			out.print(centruExploatare.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(36,168);to=(37,4)]
			out.print("</a>\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(37,4);to=(37,14)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(37,14);to=(38,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(38,8);to=(38,39)]
			out.print(centruExploatare.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(38,39);to=(39,4)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(39,4);to=(39,9)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(39,9);to=(40,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(40,0);to=(40,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(40,5);to=(42,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(42,0);to=(42,66)]
			if( formatiaDeLucru != null && formatiaDeLucru.getId() != -1){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(42,66);to=(44,4)]
			out.print("\n    <span class=\"slash\">/</span>\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(44,4);to=(44,44)]
			if( formatiaDeLucru.isShowAsLink()){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(44,44);to=(45,35)]
			out.print("\n        <a title=\"Lista evenimente ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(45,35);to=(45,65)]
			out.print(formatiaDeLucru.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(45,65);to=(45,86)]
			out.print("\" class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(45,86);to=(45,112)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(45,112);to=(45,136)]
			out.print("?action=showEvenimente\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(45,136);to=(45,166)]
			out.print(formatiaDeLucru.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(45,166);to=(46,4)]
			out.print("</a>\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(46,4);to=(46,14)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(46,14);to=(47,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(47,8);to=(47,38)]
			out.print(formatiaDeLucru.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(47,38);to=(48,4)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(48,4);to=(48,9)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(48,9);to=(49,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(49,0);to=(49,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/header-localizare.jsp";from=(49,5);to=(50,7)]
			out.print("\n</span>");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(292,57);to=(293,63)]
			out.print("\r\n            <span class=\"slash\">/</span> <A class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(293,63);to=(293,89)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(293,89);to=(300,60)]
			out.print("?action=rapoarte\">Rapoarte</A>\r\n            <span class=\"slash\">/</span> Raport top 10 (FI + FE)\r\n        </TD>\r\n    </TR>\r\n</TABLE>\r\n\r\n\r\n<form name=\"zaforma\" action=\"\" method=\"post\" onsubmit=\"this.");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(300,60);to=(300,94)]
			out.print(PaginationConstants.JSP_RESET);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(300,94);to=(301,4)]
			out.print(".value=\'true\';\">\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(301,4);to=(301,37)]
			out.print(SortController.initSort( sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(301,37);to=(308,43)]
			out.print("\r\n\r\n    <table width=\"100%\">\r\n        <tr>\r\n            <td>\r\n                Tip:\r\n                <select name=\"tip\">\r\n                <option value=\"STATIE_COD\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(308,43);to=(308,91)]
			out.print("STATIE_COD".equals( tip) ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(308,91);to=(309,42)]
			out.print(" >Statii</option>\r\n                <option value=\"LINIE_COD\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(309,42);to=(309,89)]
			out.print("LINIE_COD".equals( tip) ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(309,89);to=(310,41)]
			out.print(" >Linii</option>\r\n                <option value=\"PAPT_COD\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(310,41);to=(310,87)]
			out.print("PAPT_COD".equals( tip) ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(310,87);to=(314,16)]
			out.print(" >PA/PT</option>\r\n                </select>\r\n            </td>\r\n            <td align=\"right\">\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(314,16);to=(314,73)]
			if( user.getIeLevel() < RoleConstants.NIVEL_CENTRU){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(314,73);to=(315,191)]
			out.print("\r\n                    <A href=\"#\" onClick=\"openCheckCategorii(); return false\" class=\"link\"><IMG alt=\"Click pentru a selecta mai multe sucursale/C.E.\" border=0 width=12 height=13 hspace=3 src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(315,191);to=(315,261)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/images/icon_mini_search.gif");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(315,261);to=(320,64)]
			out.print("\"></A>\r\n                    <script type=\"text/javascript\">\r\n                        var checkCategoriiWindow = null;\r\n                        function openCheckCategorii(){\r\n                            if( checkCategoriiWindow) checkCategoriiWindow.close();\r\n                            checkCategoriiWindow = window.open(\'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(320,64);to=(320,90)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(320,90);to=(323,16)]
			out.print("?action=checkCategorie\',\'checkCategorie\', \'width=800 height=620, scrollbars=yes,status=yes,resizable=yes,top=10,left=50,dependent=yes,alwaysRaised=yes\');\r\n                        }\r\n                    </script>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(323,16);to=(323,23)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(323,23);to=(325,85)]
			out.print("\r\n                <span title=\"Perioada producerii deranjamentelor\" style=\"font-weight:bold;\">Perioada:</span>\r\n                <input type=\"text\" id=\"data_start\" name=\"data_start\" size=\"8\" value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(325,85);to=(325,121)]
			out.print(AppConstants.format( dataStart));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(325,121);to=(325,173)]
			out.print("\" /> <a href=\"#\" id=\"trigger_data_start\" ><img src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(325,173);to=(325,228)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/images/cal.gif");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(325,228);to=(326,83)]
			out.print("\" width=\"16\" height=\"16\" border=\"0\" alt=\"Apasa pt. a selecta data.\"></a>&nbsp;&nbsp;-&nbsp;&nbsp;\r\n                <input type=\"text\" id=\"data_stop\" name=\"data_stop\" size=\"8\" value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(326,83);to=(326,118)]
			out.print(AppConstants.format( dataStop));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(326,118);to=(326,169)]
			out.print("\" /> <a href=\"#\" id=\"trigger_data_stop\" ><img src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(326,169);to=(326,224)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/images/cal.gif");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(326,224);to=(333,8)]
			out.print("\" width=\"16\" height=\"16\" border=\"0\" alt=\"Apasa pt. a selecta data.\"></a>\r\n\r\n                &nbsp;&nbsp;\r\n                <input type=\"submit\" value=\"Ruleaza\"/>\r\n            </td>\r\n        </tr>\r\n\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(333,8);to=(333,48)]
			 if( checkData.someDataChecked()){  
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(333,48);to=(336,20)]
			out.print("\r\n            <tr>\r\n                <td>\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(336,20);to=(385,22)]
			
                        final StringBuffer strCategorii = new StringBuffer("");
                        final long[] idCentre = checkData.getIdCentre();
                        final Set sucursaleSelectate = new HashSet();
                        final Set filialeSelectate = new HashSet();
                        for (int i = 0; i < idCentre.length; i++) {
                            final long id = idCentre[i];
                            final Category c = CategoryAccessDB.getById(id);
                            if (c != null) {
                                final Category s = CategoryAccessDB.getById(c.getId_parent());
                                if (s != null) {
                                    final Category f = CategoryAccessDB.getById(s.getId_parent());
                                    if (f != null) {
                                        if (strCategorii.length() > 0) strCategorii.append("<br>");
                                        strCategorii.append(f.getName()).append(", ").append(s.getName()).append(", ").append(c.getName());

                                        sucursaleSelectate.add(new Long(s.getId()));
                                        filialeSelectate.add(new Long(f.getId()));
                                    }
                                }
                            }
                        }

                        final long[] idSucursale = checkData.getIdSucursale();
                        for (int i = 0; i < idSucursale.length; i++) {
                            final long id = idSucursale[i];
                            if( !sucursaleSelectate.contains( new Long( id))){
                                final Category s = CategoryAccessDB.getById( id );
                                if( s != null){
                                    final Category f = CategoryAccessDB.getById( s.getId_parent());
                                    if( f != null){
                                        if( strCategorii.length() > 0) strCategorii.append("<br>");
                                        strCategorii.append(f.getName()).append(", ").append(s.getName());
                                    }
                                }
                            }
                        }

                        final long[] idFiliale = checkData.getIdFiliale();
                        for (int i = 0; i < idFiliale.length; i++) {
                            final long id = idFiliale[i];
                            if( !filialeSelectate.contains( new Long( id))){
                                final Category f = CategoryAccessDB.getById( id);
                                if( f != null){
                                    if( strCategorii.length() > 0) strCategorii.append("<br>");
                                    strCategorii.append(f.getName());
                                }
                            }
                        }
                    
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(385,22);to=(388,20)]
			out.print("\r\n\r\n                    <br/>\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(388,20);to=(388,37)]
			out.print(strCategorii);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(388,37);to=(391,8)]
			out.print("\r\n                <td>\r\n            </tr>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(391,8);to=(391,15)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(391,15);to=(402,23)]
			out.print("\r\n    </table>\r\n\r\n    <TABLE id=\"table\" border=1 cellPadding=2 cellSpacing=1 width=\"100%\" class=\"gSAPTHEAD\" style=\"BACKGROUND-COLOR: white; margin-top:5px\">\r\n        <TR noSelect=\"true\">\r\n            <TH rowspan=\"2\" class=\"gsapthead\" noWrap width=\"10px\">#</TH>\r\n            <TH rowspan=\"2\" class=\"gsapthead\" noWrap >Instalatie</TH>\r\n            <TH rowspan=\"2\" class=\"gsapthead\" noWrap width=\"1%\">Sucursala</TH>\r\n            <TH rowspan=\"2\" class=\"gsapthead\" noWrap width=\"2%\">CE</TH>\r\n            <TH class=\"gsapthead\" noWrap width=\"100px\" style=\"text-decoration:underline\" colspan=\"3\"> Nr. Evenimente </TH>\r\n            <TH rowspan=\"2\" class=\"gsapthead\" noWrap width=\"100px\" style=\"text-decoration:underline\">\r\n                <nobr> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(402,23);to=(402,100)]
			out.print(SortController.printSortableColumn( "Durata Evenimente", "DURATA_T", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(402,100);to=(403,88)]
			out.print("</nobr></TH>\r\n            <TH             class=\"gsapthead\" noWrap style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(403,88);to=(403,159)]
			out.print(SortController.printSortableColumn( "Energie nelivr.", "EN_I", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(403,159);to=(407,91)]
			out.print("</TH>\r\n            <TH colspan=\"4\" class=\"gsapthead\" noWrap >Cheltuieli (ron)</TH>\r\n        </TR>\r\n        <tr noSelect=\"true\">\r\n            <TH class=\"gsapthead\" noWrap align=\"center\" style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(407,91);to=(407,150)]
			out.print(SortController.printSortableColumn( "FI", "CNT_I", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(407,150);to=(408,91)]
			out.print("</TH>\r\n            <TH class=\"gsapthead\" noWrap align=\"center\" style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(408,91);to=(408,150)]
			out.print(SortController.printSortableColumn( "FE", "CNT_E", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(408,150);to=(409,91)]
			out.print("</TH>\r\n            <TH class=\"gsapthead\" noWrap align=\"center\" style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(409,91);to=(409,153)]
			out.print(SortController.printSortableColumn( "Total", "CNT_T", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(409,153);to=(411,91)]
			out.print("</TH>\r\n            <TH class=\"gsapthead\" noWrap align=\"center\">(kWh)</TH>\r\n            <TH class=\"gsapthead\" noWrap align=\"center\" style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(411,91);to=(411,152)]
			out.print(SortController.printSortableColumn( "Ment.", "CM_T", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(411,152);to=(412,91)]
			out.print("</TH>\r\n            <TH class=\"gsapthead\" noWrap align=\"center\" style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(412,91);to=(412,152)]
			out.print(SortController.printSortableColumn( "Daune", "CD_T", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(412,152);to=(413,91)]
			out.print("</TH>\r\n            <TH class=\"gsapthead\" noWrap align=\"center\" style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(413,91);to=(413,154)]
			out.print(SortController.printSortableColumn( "Expl.", "CEXP_T", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(413,154);to=(414,91)]
			out.print("</TH>\r\n            <TH class=\"gsapthead\" noWrap align=\"center\" style=\"text-decoration:underline\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(414,91);to=(414,153)]
			out.print(SortController.printSortableColumn( "Total.", "CT_T", sd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(414,153);to=(416,8)]
			out.print("</TH>\r\n        </tr>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(416,8);to=(416,38)]
			 if( result.size() == 0){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(416,38);to=(420,8)]
			out.print("\r\n            <tr>\r\n                <td colspan=\"12\">Nu exista fise de incident sau echipament conform filtrului specificat.</td>\r\n            </tr>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(420,8);to=(420,21)]
			 }else { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(420,21);to=(420,22)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(420,22);to=(422,10)]
			 for (int i = 0; i < result.size(); i++) {
            final RaportRow row = (RaportRow) result.get(i);
        
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(422,10);to=(425,31)]
			out.print("\r\n\r\n        <tr>\r\n            <td align=\"center\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(425,31);to=(425,39)]
			out.print(i+1);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(425,39);to=(427,38)]
			out.print("</td>\r\n            <td>\r\n                <label title=\"\"><nobr>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(427,38);to=(427,52)]
			out.print(row.denLf);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(427,52);to=(431,20)]
			out.print("</nobr></label>\r\n            </td>\r\n            <td nowrap>\r\n                <label title=\"Sucursala instalatie\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(431,20);to=(431,41)]
			out.print(row.denSucursala);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(431,41);to=(436,20)]
			out.print("\r\n                </label>\r\n            </td>\r\n            <td nowrap>\r\n                <label title=\"Centru Exploatare instalatie\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(436,20);to=(436,38)]
			out.print(row.denCentru);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(436,38);to=(440,81)]
			out.print("\r\n                </label>\r\n            </td>\r\n            <td align=\"center\">\r\n                <a class=\"link\" href=\"javascript: openIncidenteByTipInstalatie( \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(440,81);to=(440,89)]
			out.print(tip);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(440,89);to=(440,97)]
			out.print("\', -1, \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(440,97);to=(440,111)]
			out.print(row.codLf);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(440,111);to=(441,20)]
			out.print("\')\" title=\"Incidente\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(441,20);to=(441,41)]
			out.print(row.cntIncidente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(441,41);to=(445,83)]
			out.print("\r\n                </a>\r\n            </td>\r\n            <td align=\"center\">\r\n                <a class=\"link\" href=\"javascript: openEchipamenteByTipInstalatie( \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(445,83);to=(445,91)]
			out.print(tip);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(445,91);to=(445,99)]
			out.print("\', -1, \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(445,99);to=(445,113)]
			out.print(row.codLf);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(445,113);to=(446,20)]
			out.print("\')\" title=\"Echipamente\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(446,20);to=(446,43)]
			out.print(row.cntEchipamente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(446,43);to=(450,16)]
			out.print("\r\n                </a>\r\n            </td>\r\n            <td align=\"center\">\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(450,16);to=(450,38)]
			out.print(row.cntEvenimente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(450,38);to=(454,16)]
			out.print("\r\n\r\n            </td>\r\n            <td align=\"right\">\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(454,16);to=(454,46)]
			out.print((row.durataEvenimente)/60);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(454,46);to=(454,48)]
			out.print("h ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(454,48);to=(454,78)]
			out.print((row.durataEvenimente)%60);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(454,78);to=(456,31)]
			out.print("\'\r\n            </td>\r\n            <td align=\"right\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(456,31);to=(456,56)]
			out.print(row.energieNelivrata);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(456,56);to=(457,31)]
			out.print(" </td>\r\n            <td align=\"right\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(457,31);to=(457,54)]
			out.print(row.cheltTotalMent);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(457,54);to=(458,31)]
			out.print(" </td>\r\n            <td align=\"right\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(458,31);to=(458,55)]
			out.print(row.cheltTotalDaune);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(458,55);to=(459,31)]
			out.print(" </td>\r\n            <td align=\"right\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(459,31);to=(459,54)]
			out.print(row.cheltTotalExpl);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(459,54);to=(460,31)]
			out.print(" </td>\r\n            <td align=\"right\"> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(460,31);to=(460,60)]
			out.print(row.cheltTotalEvenimente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(460,60);to=(463,8)]
			out.print(" </td>\r\n        </tr>\r\n\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(463,8);to=(463,15)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(463,15);to=(466,16)]
			out.print("\r\n        <tr noSelect=\"true\" class=\"paginationRow\">\r\n            <td colspan=\"4\" align=\"left\">\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(466,16);to=(466,65)]
			out.print(PaginationController.printPaginationData(pd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(466,65);to=(468,49)]
			out.print("\r\n            </td>\r\n            <td align=\"center\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,49);to=(468,75)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,75);to=(468,83)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,83);to=(468,93)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,93);to=(468,94)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,94);to=(468,122)]
			out.print(totaluri.countIncidente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,122);to=(468,123)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,123);to=(468,128)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(468,128);to=(469,49)]
			out.print("</td>\r\n            <td align=\"center\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,49);to=(469,75)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,75);to=(469,83)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,83);to=(469,93)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,93);to=(469,94)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,94);to=(469,124)]
			out.print(totaluri.countEchipamente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,124);to=(469,125)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,125);to=(469,130)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(469,130);to=(470,49)]
			out.print("</td>\r\n            <td align=\"center\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,49);to=(470,75)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,75);to=(470,83)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,83);to=(470,93)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,93);to=(470,94)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,94);to=(470,123)]
			out.print(totaluri.countEvenimente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,123);to=(470,124)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,124);to=(470,129)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(470,129);to=(471,48)]
			out.print("</td>\r\n            <td align=\"right\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,48);to=(471,74)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,74);to=(471,82)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,82);to=(471,92)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,92);to=(471,93)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,93);to=(471,127)]
			out.print(totaluri.durataEvenimente /60);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,127);to=(471,129)]
			out.print("h ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,129);to=(471,163)]
			out.print(totaluri.durataEvenimente %60);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,163);to=(471,164)]
			out.print("\'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,164);to=(471,169)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(471,169);to=(472,48)]
			out.print("</td>\r\n            <td align=\"right\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,48);to=(472,74)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,74);to=(472,82)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,82);to=(472,92)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,92);to=(472,93)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,93);to=(472,145)]
			out.print(AppConstants.format2(totaluri.energieNelivrata));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,145);to=(472,146)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,146);to=(472,151)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(472,151);to=(473,48)]
			out.print("</td>\r\n            <td align=\"right\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,48);to=(473,74)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,74);to=(473,82)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,82);to=(473,92)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,92);to=(473,93)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,93);to=(473,137)]
			out.print(AppConstants.format2(totaluri.costMent));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,137);to=(473,138)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,138);to=(473,143)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(473,143);to=(474,48)]
			out.print("</td>\r\n            <td align=\"right\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,48);to=(474,74)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,74);to=(474,82)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,82);to=(474,92)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,92);to=(474,93)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,93);to=(474,138)]
			out.print(AppConstants.format2(totaluri.costDaune));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,138);to=(474,139)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,139);to=(474,144)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(474,144);to=(475,48)]
			out.print("</td>\r\n            <td align=\"right\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,48);to=(475,74)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,74);to=(475,82)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,82);to=(475,92)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,92);to=(475,93)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,93);to=(475,137)]
			out.print(AppConstants.format2(totaluri.costExpl));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,137);to=(475,138)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,138);to=(475,143)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(475,143);to=(476,48)]
			out.print("</td>\r\n            <td align=\"right\" class=\"totalCell\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,48);to=(476,74)]
			if( totaluri == null){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,74);to=(476,82)]
			out.print(" &nbsp; ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,82);to=(476,92)]
			}else{
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,92);to=(476,93)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,93);to=(476,139)]
			out.print(AppConstants.format02(totaluri.costTotal));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,139);to=(476,140)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,140);to=(476,145)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(476,145);to=(478,8)]
			out.print("</td>\r\n        </tr>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(478,8);to=(478,15)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(478,15);to=(505,40)]
			out.print("\r\n    </TABLE>\r\n</form>\r\n\r\n\r\n<script type=\"text/javascript\">\r\n    var table = new Table(\'table\', \"table\");\r\n\r\n    Calendar.setup({\r\n        inputField  : \"data_start\",         // ID of the input field\r\n        ifFormat    : \"%d.%m.%Y\",    // the date format\r\n        button      : \"trigger_data_start\"       // ID of the button\r\n    });\r\n\r\n    Calendar.setup({\r\n        inputField  : \"data_stop\",         // ID of the input field\r\n        ifFormat    : \"%d.%m.%Y\",    // the date format\r\n        button      : \"trigger_data_stop\"       // ID of the button\r\n    });\r\n\r\n    function categoriesChecked(){\r\n        document.zaforma.submit();\r\n    }\r\n\r\n    var incidenteWindow = null;\r\n    function openIncidenteByTipInstalatie( tipInstalatie, idInstalatie, codInstalatie){\r\n        if( incidenteWindow != null) incidenteWindow.close();\r\n        incidenteWindow = window.open( \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(505,40);to=(505,66)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(505,66);to=(512,42)]
			out.print("?action=showIncidenteFromRaportTop10_FI_FE&tip=\'+tipInstalatie + \"&idInstalatie=\" + idInstalatie + \'&codInstalatie=\' + codInstalatie,\r\n                \'incidenteRaport\', \'top=50,left=50,width=850, height=550, status=yes,resizable=yes,dependent=yes,alwaysRaised=yes, scrollbars=yes\');\r\n    }\r\n\r\n    var echipamenteWindow = null;\r\n    function openEchipamenteByTipInstalatie( tipInstalatie, idInstalatie, codInstalatie){\r\n        if( echipamenteWindow != null) echipamenteWindow.close();\r\n        echipamenteWindow = window.open( \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(512,42);to=(512,68)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-top10-fi-fe.jsp";from=(512,68);to=(523,0)]
			out.print("?action=showEchipamenteFromRaportTop10_FI_FE&tip=\'+tipInstalatie + \"&idInstalatie=\" + idInstalatie +\'&codInstalatie=\' + codInstalatie,\r\n                \'echipamenteRaport\', \'top=50,left=50,width=850, height=550, status=yes,resizable=yes,dependent=yes,alwaysRaised=yes, scrollbars=yes\');\r\n    }\r\n\r\n</script>\r\n\r\n<style type=\"text/css\">\r\n    .totalCell{\r\n        font-weight: bold;\r\n    }\r\n</style>\r\n");
// end
		} catch (ThreadDeath tde) { throw tde;
		} catch (OutOfMemoryError ome) { throw ome;
		} catch (Throwable t) {
			if (!(t instanceof SkipPageException)) {
				try {
					out.clear();
				} catch(java.io.IOException _jspioex) {}
				_jspx_pageContext.handlePageException(t);
			}
		}finally{
			_jspFactory.releasePageContext(pageContext);
		}
	}

}
