/* 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.db.framework.ReportStatement;
import ro.emid.common.db.CategoryAccessDB;
import ro.emid.common.db.VolumInstalatiiAccessDB;
import ro.emid.common.constants.NomConstants;
import ro.emid.common.types.VolumInstalatii;
import java.sql.Date;
import java.util.Calendar;
import java.util.List;
import ro.emid.common.utils.ObjectUtils;
import ro.emid.common.types.Category;
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_indici_2d_specifici_1495030459154 extends com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase{
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(287,0);to=(299,3)]
 public long getCount(final List list, final int month, final long centruId) {
    for (int i = 0; i < list.size(); i++) {
        final Object[] o = (Object[])list.get(i);
        final long lMonth    = Long.parseLong ( o[0] != null ? o[0].toString() : "-1");
        final long lCentruId = Long.parseLong ( o[1] != null ? o[1].toString() : "-1");
        final long lCount = Long.parseLong ( o[2] != null ? o[2].toString() : "-1");

        if( lMonth == month && lCentruId == centruId){
            return lCount;
        }
    }
    return 0;
}// end

	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-indici-specifici.jsp";from=(1,64);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-indici-specifici.jsp";from=(2,55);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-indici-specifici.jsp";from=(3,62);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-indici-specifici.jsp";from=(4,58);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-indici-specifici.jsp";from=(5,57);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-indici-specifici.jsp";from=(6,34);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-indici-specifici.jsp";from=(7,39);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-indici-specifici.jsp";from=(8,35);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-indici-specifici.jsp";from=(9,53);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-indici-specifici.jsp";from=(10,50);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-indici-specifici.jsp";from=(11,59);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/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-indici-specifici.jsp";from=(13,48);to=(15,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-indici-specifici.jsp";from=(15,0);to=(29,2)]
			
    long sucursalaId = sucursala.getId();
    final long reqSucursala = ObjectUtils.getLongValue(request.getParameter("sucursalaId"), -1);
    if( reqSucursala != -1) sucursalaId = reqSucursala;

    Category sucursalaRaport = CategoryAccessDB.getById(sucursalaId);
    if (sucursalaRaport == null) sucursalaRaport = new Category();


    Integer ani[] = VolumInstalatiiAccessDB.getAniVolumeInstalatii();
    ani = ro.emid.common.utils.Util.addCurrentYear(ani);

    int anRaport = ObjectUtils.getIntValue( request.getParameter("anRaport"), -1);
    if ( anRaport == -1) anRaport = ro.emid.common.utils.Util.getCurrentYear();

// 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-indici-specifici.jsp";from=(29,2);to=(35,12)]
			out.print("\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-indici-specifici.jsp";from=(35,57);to=(36,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-indici-specifici.jsp";from=(36,63);to=(36,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-indici-specifici.jsp";from=(36,89);to=(42,0)]
			out.print("?action=rapoarte\">Rapoarte</A>\r\n            <span class=\"slash\">/</span> Indicatori Specifici de incident\r\n        </TD>\r\n    </TR>\r\n</TABLE>\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-indici-specifici.jsp";from=(42,0);to=(190,2)]
			

    long centruId = centruExploatare.getId();
    final long reqCentruId = ObjectUtils.getLongValue(request.getParameter("centruId"), -1);
    if (reqCentruId != -1) centruId = reqCentruId;
    Category centruRaport = CategoryAccessDB.getById(centruId);
    if (centruRaport == null) centruRaport = new Category();

    final int currentYear = Calendar.getInstance().get(Calendar.YEAR);

    String localizareIncidentCondition = "";
    String localizareCentreCondition = "";
    String volumInstalatiiCondition = "";
    if (filiala.getId() > 0) {
        localizareIncidentCondition += " AND i.FILIALA_ID = " + filiala.getId();
        volumInstalatiiCondition = " AND FILIALA_ID=" + filiala.getId();

        final StringBuffer csv = new StringBuffer();
        final Category[] sucursale = CategoryAccessDB.getAllCategoriesByParentId(filiala.getId());
        for (int i = 0; i < sucursale.length; i++) {
            final Category s = sucursale[i];
            if (csv.length() > 0) csv.append(',');
            csv.append(s.getId());
        }

        localizareCentreCondition = " AND ID_PARENT IN (" + csv + ')';
    }

    if (sucursalaRaport.getId() > 0) {
        localizareIncidentCondition += " AND i.SUCURSALA_ID=" + sucursalaRaport.getId();
        localizareCentreCondition = " AND ID_PARENT=" + sucursalaRaport.getId();
        volumInstalatiiCondition = " AND SUCURSALA_ID=" + sucursalaRaport.getId();
    }

    if (centruRaport.getId() > 0) {
        localizareIncidentCondition += " AND i.SECTIE_ID = " + centruRaport.getId();
        localizareCentreCondition = " AND ID = " + centruRaport.getId();
        volumInstalatiiCondition = " AND SECTIE_ID=" + centruRaport.getId();
    }

    volumInstalatiiCondition += " AND AN="+anRaport;

    final Category[] centre = CategoryAccessDB.getAllCategories( localizareCentreCondition);
    final VolumInstalatii[] volumuriInstalatii = new VolumInstalatii[centre.length];

    final VolumInstalatii[] allVolumes = VolumInstalatiiAccessDB.getAll( volumInstalatiiCondition);


    for (int i = 0; i < allVolumes.length; i++) {
        final VolumInstalatii v = allVolumes[i];
    }

    int k = 0;
    Date dataRaport = null;
    int minimYear = 0;
    
    for (int i = 0; i < centre.length; i++) {
        VolumInstalatii volumForCentru = null;

        for (int j = 0; j < allVolumes.length; j++) {
            if( allVolumes[j].getSectieId() == centre[i].getId()) {
                volumForCentru = allVolumes[j];
                break;
            }
        }

        if( volumForCentru == null){
            //get Volum Instalatii din anul precedent
            volumForCentru = VolumInstalatiiAccessDB.getEntryByCentruIdAndLessThanYear( centre[ i].getId(), anRaport);
        }


        if (volumForCentru != null) {
            k++;
            volumuriInstalatii[i] = volumForCentru;

            //search ze minim date
            if (dataRaport != null) {
                if (volumForCentru.getDataSave() != null && volumForCentru.getDataSave().compareTo(dataRaport) < 0) {
                    dataRaport = volumForCentru.getDataSave();
                    minimYear  = volumForCentru.getAn();
                }
            } else {
                dataRaport = volumForCentru.getDataSave();
                minimYear  = volumForCentru.getAn();
            }
        }
    }

    //grupate dupa luna si centru
    final ReportStatement countIncidente = new ReportStatement(
            " SELECT TO_NUMBER(TO_CHAR(DATA, 'MM')), SECTIE_ID, COUNT(*) FROM incidente i, nomenclator n ",
            " GROUP BY TO_CHAR(DATA, 'MM'), SECTIE_ID ORDER BY TO_CHAR(DATA, 'MM') ASC, SECTIE_ID ASC"
    ).addStringCriteria( "AND i.ANSAMBLU_ID = n.ID")
     .addStringCriteria( localizareIncidentCondition)
     .addOrSetFilter( " AND ", " TO_CHAR(DATA, 'YYYY')", "=", new Integer( anRaport));


    final ReportStatement countIncidenteLinii = new ReportStatement(
            " SELECT TO_NUMBER(TO_CHAR(DATA, 'MM')), SECTIE_ID, COUNT(*) FROM incidente i, nomenclator n, LF l ",
            " GROUP BY TO_CHAR(DATA, 'MM'), SECTIE_ID ORDER BY TO_CHAR(DATA, 'MM') ASC, SECTIE_ID ASC"
    ).addStringCriteria( "AND i.ANSAMBLU_ID = n.ID AND i.LINIE_COD = l.COD_LF ")
     .addStringCriteria( localizareIncidentCondition)
     .addOrSetFilter( " AND ", " TO_CHAR(DATA, 'YYYY')", "=", new Integer( anRaport));

    final StringBuffer buffer = new StringBuffer();
    buffer.append("=").append(NomConstants.NOM_ANSAMBLURI ).append(
            " AND i.STATIE_ID > 0 AND " ).append(
            "  ( " ).append(
            "        (n.COD IN (13, 19, 22, 46, 47, 48, 49, 53, 57, 521, 542) AND i.PAPT_ID = -1) " ).append(
            "     OR (n.COD IN (21, 60, 62, 541)) " ).append(
            "     OR (n.COD IN (51) AND i.LINIE_ID=-1)    ").append(
            "     OR (n.COD IN (61) AND i.LINIE_ID=-1 AND i.PAPT_ID=-1)    ").append(
            "  )");

    final List resultStatii = countIncidente.addOrSetStringCriteria("AND", "n.TIP", buffer.toString()
    ).getListOfArrays("Get Numar Incidente pentru Statii");

    buffer.delete(0, buffer.length());
    buffer.append("=").append( NomConstants.NOM_ANSAMBLURI ).append(
            " AND i.PAPT_ID > 0 AND " ).append(
            " ( " ).append(
            "       (n.COD IN (13, 19, 22, 46, 47, 48, 49, 53, 57,  61, 521, 542) AND i.STATIE_ID = -1) " ).append(
            "    OR ( n.COD IN ( 58, 59 ))" ).append(
            "    OR ( n.COD IN ( 51) AND i.LINIE_ID=-1 AND i.STATIE_ID=-1)" ).append(
            " )");

    final List resultPaPt = countIncidente.addOrSetStringCriteria("AND", "n.TIP", buffer.toString()
    ).getListOfArrays("Get Numar Incidente pentru PA/PT");

    final List resultLea_110 = countIncidenteLinii.addOrSetStringCriteria("AND",  "n.TIP", "=" + NomConstants.NOM_ANSAMBLURI +
            " AND n.COD IN (50, 522) AND (i.TENSIUNE = 110 OR (i.TENSIUNE=0 AND getNumarFromText( l.DESC_LF) = 110 )) "
    ).getListOfArrays("Get Numar Incidente pentru Lea 110");

    final List resultLea_MT = countIncidenteLinii.addOrSetStringCriteria("AND", "n.TIP",  "=" + NomConstants.NOM_ANSAMBLURI +
            " AND n.COD IN (50, 522) AND (i.TENSIUNE < 110 OR (i.TENSIUNE=0 AND getNumarFromText( l.DESC_LF) < 110 )) "
    ).getListOfArrays("Get Numar Incidente pentru Lea MT");

    final List resultLes_110 = countIncidenteLinii.addOrSetStringCriteria("AND", "n.TIP", "=" + NomConstants.NOM_ANSAMBLURI +
            " AND n.COD = 51 AND (i.TENSIUNE = 110 OR (i.TENSIUNE=0 AND getNumarFromText( l.DESC_LF) = 110 ))"
    ).getListOfArrays("Get Numar Incidente pentru Les 110");

    final List resultLes_MT = countIncidenteLinii.addOrSetStringCriteria("AND", "n.TIP",  "=" + NomConstants.NOM_ANSAMBLURI +
            " AND n.COD = 51 AND (i.TENSIUNE < 110 OR (i.TENSIUNE=0 AND getNumarFromText( l.DESC_LF) < 110 ))"
    ).getListOfArrays("Get Numar Incidente pentru Les MT");

    final String[] luni = new String[]{"Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie"};
    final String[] trimestre = new String[]{"Trimestrul I", "Trimestrul II", "Trimestrul III", "Trimestrul IV"};

// 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-indici-specifici.jsp";from=(190,2);to=(193,0)]
			out.print("\r\n\r\n<table width=\"90%\" 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-indici-specifici.jsp";from=(193,0);to=(193,33)]
			 if( filiala.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/rapoarte/raport-indici-specifici.jsp";from=(193,33);to=(195,0)]
			out.print("\r\n<tr><td align=\"center\">Selectati o filiala</td></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-indici-specifici.jsp";from=(195,0);to=(195,10)]
			}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-indici-specifici.jsp";from=(195,10);to=(198,132)]
			out.print("\r\n<tr><td>\r\n    <center>\r\n        <span style=\"font-size: 18px; font-weight:bold;\">Raport lunar/trimestrial/anual - Indicator specifici de incident - filiala ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(198,132);to=(198,154)]
			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/rapoarte/raport-indici-specifici.jsp";from=(198,154);to=(202,0)]
			out.print("</span>\r\n    </center>\r\n</td></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-indici-specifici.jsp";from=(202,0);to=(203,32)]
			 if( dataRaport != null) {
    if( minimYear < anRaport){
// 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-indici-specifici.jsp";from=(203,32);to=(209,4)]
			out.print("\r\n        <tr>\r\n            <td align=\"center\">\r\n                <span style=\"color: red; font-size: 12px\"> Atentie! Raportul ruleaza cu date din anul precedent</span>\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-indici-specifici.jsp";from=(209,4);to=(209,9)]
			}
// 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-indici-specifici.jsp";from=(209,9);to=(210,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-indici-specifici.jsp";from=(210,0);to=(210,5)]
			}
// 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-indici-specifici.jsp";from=(210,5);to=(217,49)]
			out.print("\r\n\r\n<tr>\r\n    <td>\r\n        <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" class=\"gsaptd\">\r\n            <tr>\r\n                <td>\r\n                    <form name=\"zaforma\" action=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(217,49);to=(217,75)]
			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-indici-specifici.jsp";from=(217,75);to=(220,153)]
			out.print("\" method=\"post\" style=\"margin-bottom:5; margin-top:5\">\r\n                        <input type=\"hidden\" name=\"action\" value=\"raport-indici-specifici\">\r\n                        Sucursala:\r\n                        <SELECT class=\"gSAPSelect\" name=\"sucursalaId\" onchange=\"document.zaforma.centruId.selectedIndex = 0; document.zaforma.submit()\"  ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(220,153);to=(220,273)]
			out.print(user.getIeLevel() == RoleConstants.NIVEL_FULL || user.getIeLevel() == RoleConstants.NIVEL_FILIALA ? "" : "disabled");
// 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-indici-specifici.jsp";from=(220,273);to=(222,28)]
			out.print(" >\r\n                            <option value=\"-1\">Selectati:</option>\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-indici-specifici.jsp";from=(222,28);to=(223,94)]
			if( filiala.getId() > 0){ final Category [] sucursale = CategoryAccessDB.getAllCategoriesByParentId( filiala.getId());
                                if (sucursale != null) for(int i=0;i<sucursale.length;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-indici-specifici.jsp";from=(223,94);to=(224,40)]
			out.print("\r\n                                <OPTION ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(224,40);to=(224,122)]
			out.print((sucursale[i].getId() == sucursalaRaport.getId()) ? "selected=\"true\" " : "");
// 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-indici-specifici.jsp";from=(224,122);to=(224,129)]
			out.print("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-indici-specifici.jsp";from=(224,129);to=(224,154)]
			out.print(sucursale[i].getId());
// 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-indici-specifici.jsp";from=(224,154);to=(224,156)]
			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-indici-specifici.jsp";from=(224,156);to=(224,183)]
			out.print(sucursale[i].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-indici-specifici.jsp";from=(224,183);to=(225,28)]
			out.print("</OPTION>\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-indici-specifici.jsp";from=(225,28);to=(225,34)]
			}}
// 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-indici-specifici.jsp";from=(225,34);to=(228,104)]
			out.print("\r\n                        </SELECT>&nbsp;&nbsp;\r\n                        C.E:\r\n                        <SELECT class=\"gSAPSelect\" name=\"centruId\" onchange=\"document.zaforma.submit()\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(228,104);to=(228,227)]
			out.print(user.getIeLevel() == RoleConstants.NIVEL_CENTRU || user.getIeLevel() == RoleConstants.NIVEL_FORMATIE ? "disabled" : "");
// 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-indici-specifici.jsp";from=(228,227);to=(230,28)]
			out.print(">\r\n                            <option value=\"0\">Selectati:</option>\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-indici-specifici.jsp";from=(230,28);to=(231,81)]
			if (sucursalaRaport.getId() > 0 ){ final Category [] ces = CategoryAccessDB.getAllCategoriesByParentId( sucursalaRaport.getId());
                                if(ces != null) for(int i=0;i<ces.length;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-indici-specifici.jsp";from=(231,81);to=(232,40)]
			out.print("\r\n                                <OPTION ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(232,40);to=(232,113)]
			out.print((ces[i].getId() == centruRaport.getId()) ? "selected=\"true\" " : "");
// 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-indici-specifici.jsp";from=(232,113);to=(232,120)]
			out.print("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-indici-specifici.jsp";from=(232,120);to=(232,139)]
			out.print(ces[i].getId());
// 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-indici-specifici.jsp";from=(232,139);to=(232,141)]
			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-indici-specifici.jsp";from=(232,141);to=(232,162)]
			out.print(ces[i].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-indici-specifici.jsp";from=(232,162);to=(233,28)]
			out.print("</OPTION>\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-indici-specifici.jsp";from=(233,28);to=(233,34)]
			}}
// 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-indici-specifici.jsp";from=(233,34);to=(237,28)]
			out.print("\r\n                        </SELECT>\r\n\r\n                        &nbsp;An:<select name=\"anRaport\"  class=\"gSAPSelect\" onchange=\"document.zaforma.submit()\">\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-indici-specifici.jsp";from=(237,28);to=(237,72)]
			 for (int i = 0; i < ani.length; 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-indici-specifici.jsp";from=(237,72);to=(238,48)]
			out.print("\r\n                                 <option 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-indici-specifici.jsp";from=(238,48);to=(238,59)]
			out.print(ani[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-indici-specifici.jsp";from=(238,59);to=(238,61)]
			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-indici-specifici.jsp";from=(238,61);to=(238,113)]
			out.print(ani[i].intValue() == anRaport ? "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-indici-specifici.jsp";from=(238,113);to=(238,115)]
			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-indici-specifici.jsp";from=(238,115);to=(238,126)]
			out.print(ani[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-indici-specifici.jsp";from=(238,126);to=(239,28)]
			out.print("</option>\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-indici-specifici.jsp";from=(239,28);to=(239,34)]
			 }
// 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-indici-specifici.jsp";from=(239,34);to=(244,20)]
			out.print("\r\n                        </select>\r\n                    </form>\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-indici-specifici.jsp";from=(244,20);to=(244,50)]
			 if( dataRaport != 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-indici-specifici.jsp";from=(244,50);to=(245,70)]
			out.print("                        \r\n                        <span style=\"font-size: 12\">Data actualizare: ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(245,70);to=(245,106)]
			out.print(AppConstants.format(dataRaport));
// 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-indici-specifici.jsp";from=(245,106);to=(246,20)]
			out.print("</span>\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-indici-specifici.jsp";from=(246,20);to=(246,25)]
			}
// 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-indici-specifici.jsp";from=(246,25);to=(287,0)]
			out.print("\r\n                </td>\r\n            </tr>\r\n        </table>\r\n    </td>\r\n</tr>\r\n\r\n<style>\r\n    .explicatii{\r\n        font-size: 10px;\r\n    }\r\n</style>\r\n\r\n<tr>\r\n    <td align=\"center\">\r\n        <table id=\"raportTable\" border=0 width=\"100%\" style=\"BACKGROUND-COLOR: white\" cellspacing=\"1\">\r\n            <tr noSelect=\"true\">\r\n                <td class=\"gsapthead\">&nbsp;</td>\r\n                <TH class=\"gsapthead\" noWrap >\r\n                    Statii<br>\r\n                    <span class=\"explicatii\">(buc.)</span>\r\n                </TH>\r\n                <TH class=\"gsapthead\" noWrap >\r\n                    LEA 110KV<br>\r\n                    <span class=\"explicatii\">(nr. Km / 100)</span>\r\n                </TH>\r\n                <TH class=\"gsapthead\" noWrap >\r\n                    LES 110KV<br>\r\n                    <span class=\"explicatii\">(nr. Km / 100)</span>\r\n                </TH>\r\n                <TH class=\"gsapthead\" noWrap >PA/PT</TH>\r\n                <TH class=\"gsapthead\" noWrap >\r\n                    LEA MT<br>\r\n                    <span class=\"explicatii\">(nr. Km / 100)</span>\r\n                </TH>\r\n                <TH class=\"gsapthead\" noWrap >\r\n                    LES MT<br>\r\n                    <span class=\"explicatii\">(nr. Km / 100)</span>\r\n                </TH>\r\n            </tr>\r\n\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/rapoarte/raport-indici-specifici.jsp";from=(299,3);to=(300,12)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(300,12);to=(349,14)]
			
                double anual_statii  = 0, trimestrial_statii  = 0;
                double anual_lea_110 = 0, trimestrial_lea_110 = 0;
                double anual_les_110 = 0, trimestrial_les_110 = 0;
                double anual_pa_pt   = 0, trimestrial_pa_pt   = 0;
                double anual_lea_mt  = 0, trimestrial_lea_mt  = 0;
                double anual_les_mt  = 0, trimestrial_les_mt  = 0;


                for (int i = 0; i < luni.length; i++) {
                    //calcul indicator
                    double nr_incidente_statii  = 0;
                    double nr_incidente_lea_110 = 0;
                    double nr_incidente_les_110 = 0;
                    double nr_incidente_pa_pt   = 0;
                    double nr_incidente_lea_mt  = 0;
                    double nr_incidente_les_mt  = 0;

                    final VolumInstalatii totalVolumInstalatii = new VolumInstalatii();

                    boolean volumInstalatiiNedefinit = false;
                    for (int j = 0; j < centre.length; j++) {
                        final VolumInstalatii volumInstalatii = volumuriInstalatii[j];
                        if (volumInstalatii == null) {
                            volumInstalatiiNedefinit = true;
                            break; //nu mai are rost de continuat ...
                        }


                        nr_incidente_statii   += getCount( resultStatii, i+1, centre[j].getId());
                        nr_incidente_lea_110  += getCount( resultLea_110, i+1, centre[j].getId());
                        nr_incidente_les_110  += getCount( resultLes_110, i+1, centre[j].getId());
                        nr_incidente_pa_pt    += getCount( resultPaPt, i+1, centre[j].getId());
                        nr_incidente_lea_mt   += getCount( resultLea_MT, i+1, centre[j].getId());
                        nr_incidente_les_mt   += getCount( resultLes_MT, i+1, centre[j].getId());

                        totalVolumInstalatii.setStatii( totalVolumInstalatii.getStatii() + volumInstalatii.getStatii());
                        totalVolumInstalatii.setLea110( totalVolumInstalatii.getLea110() + volumInstalatii.getLea110());
                        totalVolumInstalatii.setLes110( totalVolumInstalatii.getLes110() + volumInstalatii.getLes110());
                        totalVolumInstalatii.setPa_pt(  totalVolumInstalatii.getPa_pt()  + volumInstalatii.getPa_pt());
                        totalVolumInstalatii.setLea_mt( totalVolumInstalatii.getLea_mt() + volumInstalatii.getLea_mt());
                        totalVolumInstalatii.setLes_mt( totalVolumInstalatii.getLes_mt() + volumInstalatii.getLes_mt());
                    }
                    final double indicator_statii  = totalVolumInstalatii.getStatii() != 0 ? nr_incidente_statii  / totalVolumInstalatii.getStatii() : 0;
                    final double indicator_lea_110 = totalVolumInstalatii.getLea110() != 0 ? nr_incidente_lea_110 / totalVolumInstalatii.getLea110() * 100 : 0;
                    final double indicator_les_110 = totalVolumInstalatii.getLes110() != 0 ? nr_incidente_les_110 / totalVolumInstalatii.getLes110() * 100 : 0;
                    final double indicator_pa_pt   = totalVolumInstalatii.getPa_pt()  != 0 ? nr_incidente_pa_pt   / totalVolumInstalatii.getPa_pt()  * 100 : 0;
                    final double indicator_lea_mt  = totalVolumInstalatii.getLea_mt() != 0 ? nr_incidente_lea_mt  / totalVolumInstalatii.getLea_mt() * 100 : 0;
                    final double indicator_les_mt  = totalVolumInstalatii.getLes_mt() != 0 ? nr_incidente_les_mt  / totalVolumInstalatii.getLes_mt() * 100 : 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-indici-specifici.jsp";from=(349,14);to=(351,46)]
			out.print("\r\n                    <tr>\r\n                        <td class=\"gsapthead\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(351,46);to=(351,58)]
			out.print(luni[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-indici-specifici.jsp";from=(351,58);to=(352,42)]
			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-indici-specifici.jsp";from=(352,42);to=(352,126)]
			out.print(volumInstalatiiNedefinit ? "nedefinit" : AppConstants.format3(indicator_statii));
// 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-indici-specifici.jsp";from=(352,126);to=(353,42)]
			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-indici-specifici.jsp";from=(353,42);to=(353,127)]
			out.print(volumInstalatiiNedefinit ? "nedefinit" : AppConstants.format3(indicator_lea_110));
// 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-indici-specifici.jsp";from=(353,127);to=(354,42)]
			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-indici-specifici.jsp";from=(354,42);to=(354,127)]
			out.print(volumInstalatiiNedefinit ? "nedefinit" : AppConstants.format3(indicator_les_110));
// 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-indici-specifici.jsp";from=(354,127);to=(355,42)]
			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-indici-specifici.jsp";from=(355,42);to=(355,125)]
			out.print(volumInstalatiiNedefinit ? "nedefinit" : AppConstants.format3(indicator_pa_pt));
// 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-indici-specifici.jsp";from=(355,125);to=(356,42)]
			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-indici-specifici.jsp";from=(356,42);to=(356,126)]
			out.print(volumInstalatiiNedefinit ? "nedefinit" : AppConstants.format3(indicator_lea_mt));
// 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-indici-specifici.jsp";from=(356,126);to=(357,42)]
			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-indici-specifici.jsp";from=(357,42);to=(357,126)]
			out.print(volumInstalatiiNedefinit ? "nedefinit" : AppConstants.format3(indicator_les_mt));
// 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-indici-specifici.jsp";from=(357,126);to=(359,20)]
			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-indici-specifici.jsp";from=(359,20);to=(366,22)]
			
                        trimestrial_statii  +=  indicator_statii  ;
                        trimestrial_lea_110 +=  indicator_lea_110 ;
                        trimestrial_les_110 +=  indicator_les_110 ;
                        trimestrial_pa_pt   +=  indicator_pa_pt   ;
                        trimestrial_lea_mt  +=  indicator_lea_mt  ;
                        trimestrial_les_mt  +=  indicator_les_mt  ;
                    
// 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-indici-specifici.jsp";from=(366,22);to=(367,20)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(367,20);to=(367,44)]
			if( (i + 1)%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-indici-specifici.jsp";from=(367,44);to=(369,67)]
			out.print("\r\n                        <tr style=\"background-color:#f1f1ff;\">\r\n                            <td class=\"gsapthead\" align=\"right\"><b>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(369,67);to=(369,86)]
			out.print(trimestre[i/3]);
// 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-indici-specifici.jsp";from=(369,86);to=(370,46)]
			out.print("</b></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-indici-specifici.jsp";from=(370,46);to=(370,92)]
			out.print(AppConstants.format03(trimestrial_statii));
// 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-indici-specifici.jsp";from=(370,92);to=(371,46)]
			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-indici-specifici.jsp";from=(371,46);to=(371,93)]
			out.print(AppConstants.format03(trimestrial_lea_110));
// 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-indici-specifici.jsp";from=(371,93);to=(372,46)]
			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-indici-specifici.jsp";from=(372,46);to=(372,93)]
			out.print(AppConstants.format03(trimestrial_les_110));
// 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-indici-specifici.jsp";from=(372,93);to=(373,46)]
			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-indici-specifici.jsp";from=(373,46);to=(373,91)]
			out.print(AppConstants.format03(trimestrial_pa_pt));
// 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-indici-specifici.jsp";from=(373,91);to=(374,46)]
			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-indici-specifici.jsp";from=(374,46);to=(374,92)]
			out.print(AppConstants.format03(trimestrial_lea_mt));
// 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-indici-specifici.jsp";from=(374,92);to=(375,46)]
			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-indici-specifici.jsp";from=(375,46);to=(375,92)]
			out.print(AppConstants.format03(trimestrial_les_mt));
// 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-indici-specifici.jsp";from=(375,92);to=(377,28)]
			out.print("</td>\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-indici-specifici.jsp";from=(377,28);to=(391,30)]
			
                                anual_statii  += trimestrial_statii ;
                                anual_lea_110 += trimestrial_lea_110;
                                anual_les_110 += trimestrial_les_110;
                                anual_pa_pt   += trimestrial_pa_pt  ;
                                anual_lea_mt  += trimestrial_lea_mt ;
                                anual_les_mt  += trimestrial_les_mt ;

                                trimestrial_statii   = 0;
                                trimestrial_lea_110  = 0;
                                trimestrial_les_110  = 0;
                                trimestrial_pa_pt    = 0;
                                trimestrial_lea_mt   = 0;
                                trimestrial_les_mt   = 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-indici-specifici.jsp";from=(391,30);to=(393,20)]
			out.print("\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-indici-specifici.jsp";from=(393,20);to=(393,25)]
			}
// 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-indici-specifici.jsp";from=(393,25);to=(394,16)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(394,16);to=(394,21)]
			}
// 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-indici-specifici.jsp";from=(394,21);to=(396,64)]
			out.print("\r\n                <tr style=\"background-color:#f1f1ff;\">\r\n                    <td class=\"gsapthead\" align=\"right\"><b>Anul ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-indici-specifici.jsp";from=(396,64);to=(396,77)]
			out.print(anRaport);
// 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-indici-specifici.jsp";from=(396,77);to=(397,38)]
			out.print("</b></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-indici-specifici.jsp";from=(397,38);to=(397,78)]
			out.print(AppConstants.format03(anual_statii));
// 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-indici-specifici.jsp";from=(397,78);to=(398,38)]
			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-indici-specifici.jsp";from=(398,38);to=(398,79)]
			out.print(AppConstants.format03(anual_lea_110));
// 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-indici-specifici.jsp";from=(398,79);to=(399,38)]
			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-indici-specifici.jsp";from=(399,38);to=(399,79)]
			out.print(AppConstants.format03(anual_les_110));
// 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-indici-specifici.jsp";from=(399,79);to=(400,38)]
			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-indici-specifici.jsp";from=(400,38);to=(400,77)]
			out.print(AppConstants.format03(anual_pa_pt));
// 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-indici-specifici.jsp";from=(400,77);to=(401,38)]
			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-indici-specifici.jsp";from=(401,38);to=(401,78)]
			out.print(AppConstants.format03(anual_lea_mt));
// 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-indici-specifici.jsp";from=(401,78);to=(402,38)]
			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-indici-specifici.jsp";from=(402,38);to=(402,78)]
			out.print(AppConstants.format03(anual_les_mt));
// 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-indici-specifici.jsp";from=(402,78);to=(407,0)]
			out.print("</td>\r\n                </tr>\r\n        </table>\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-indici-specifici.jsp";from=(407,0);to=(407,5)]
			}
// 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-indici-specifici.jsp";from=(407,5);to=(409,0)]
			out.print("\r\n</table>\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);
		}
	}

}
