/* 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 java.sql.Date;
import ro.emid.common.constants.AppConstants;
import ro.emid.common.constants.NomConstants;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Set;
import java.util.HashSet;
import ro.emid.common.utils.StringUtils;
import org.apache.log4j.Logger;
import java.io.File;
import ro.emid.incidente.util.raport.RaportEchipamenteExcelExporter;
import ro.emid.common.types.*;
import ro.emid.incidente.IncidenteSessionUtils;
import ro.emid.common.db.*;
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_echipamente_2d_componente_1596674070820 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-echipamente-componente.jsp";from=(33,0);to=(35,2)]

    private static java.text.SimpleDateFormat _df = new java.text.SimpleDateFormat("yyyyMMdd");
// 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-echipamente-componente.jsp";from=(1,34);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-echipamente-componente.jsp";from=(2,58);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-echipamente-componente.jsp";from=(3,58);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-echipamente-componente.jsp";from=(4,37);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-echipamente-componente.jsp";from=(5,41);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-echipamente-componente.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-echipamente-componente.jsp";from=(7,38);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-echipamente-componente.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-echipamente-componente.jsp";from=(9,44);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-echipamente-componente.jsp";from=(10,33);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-echipamente-componente.jsp";from=(11,81);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-echipamente-componente.jsp";from=(12,43);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-echipamente-componente.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-echipamente-componente.jsp";from=(14,40);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-echipamente-componente.jsp";from=(15,59);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/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-echipamente-componente.jsp";from=(17,47);to=(22,12)]
			out.print("\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-echipamente-componente.jsp";from=(22,57);to=(23,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-echipamente-componente.jsp";from=(23,63);to=(23,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-echipamente-componente.jsp";from=(23,89);to=(27,67)]
			out.print("?action=rapoarte\">Rapoarte</A>\r\n            <span class=\"slash\">/</span> Echipamente\r\n        </TD>\r\n        <TD align=\"RIGHT\">\r\n            <IMG alt=FAQ 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-echipamente-componente.jsp";from=(27,67);to=(27,137)]
			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-echipamente-componente.jsp";from=(27,137);to=(33,0)]
			out.print("\">\r\n            <A href=\"#\" onClick=\"openConfigurareFiltruRapoarte(); return false\" class=\"link\">Configurare FILTRU</A>\r\n        </TD>\r\n    </TR>\r\n</TABLE>\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-echipamente-componente.jsp";from=(35,2);to=(38,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-echipamente-componente.jsp";from=(38,0);to=(165,2)]
			

    String publicPath = null;

    if( request.getParameter("firstShow") != null){
        IncidenteSessionUtils.setTipRaport(session, "ECHIPAMENTE");
        IncidenteSessionUtils.resetParametriRaport(session);
    }

    long filialaId = IncidenteSessionUtils.getFilialaId(session);
    long sucursalaId = IncidenteSessionUtils.getSucursalaId(session);
    long centruId = IncidenteSessionUtils.getCentruId(session);

    Category sFiliala = (Category) session.getAttribute("filiala");
    Category sSucursala = (Category) session.getAttribute("sucursala");
    Category sCentru = (Category) session.getAttribute("centru");

    if (sFiliala != null && sFiliala.getId() > 0) filialaId = sFiliala.getId();
    if (sSucursala != null && sSucursala.getId() > 0) sucursalaId = sSucursala.getId();
    if (sCentru != null && sCentru.getId() > 0) centruId = sCentru.getId();



    Category filialaRaport = CategoryAccessDB.getById(filialaId);
    if (filialaRaport == null) filialaRaport = new Category();

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

    Category centru = CategoryAccessDB.getById(centruId);
    if (centru == null) centru = new Category();

    Long sdata_start = (Long) session.getAttribute("data_start_e");
    long data_start = 0;
    if (sdata_start != null) data_start = sdata_start.longValue();

    Long sdata_stop = (Long) session.getAttribute("data_stop_e");
    long data_stop = System.currentTimeMillis();
    if (sdata_stop != null) data_stop = sdata_stop.longValue();

    Long sessionLong;
    sessionLong = (Long) session.getAttribute("f_formatie");
    long f_formatie = -1;
    if (sessionLong != null) {
        f_formatie = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_ansamblu");
    long f_ansamblu = -1;
    if (sessionLong != null) {
        f_ansamblu = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_echipamentComponenta");
    long f_echipamentComponenta = -1;
    if (sessionLong != null) {
        f_echipamentComponenta = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_statie");
    long f_statie = -1;
    if (sessionLong != null) {
        f_statie = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_bobina");
    long f_bobina = -1;
    if (sessionLong != null) {
        f_bobina = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_celula");
    long f_celula = -1;
    if (sessionLong != null) {
        f_celula = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_bara");
    long f_bara = -1;
    if (sessionLong != null) {
        f_bara = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_linie");
    long f_linie = -1;
    if (sessionLong != null) {
        f_linie = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_derivatie");
    long f_derivatie = -1;
    if (sessionLong != null) {
        f_derivatie = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_pa_pt");
    long f_pa_pt = -1;
    if (sessionLong != null) {
        f_pa_pt = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_trafo");
    long f_trafo = -1;
    if (sessionLong != null) {
        f_trafo = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_grupa");
    long f_grupa = -1;
    if (sessionLong != null) {
        f_grupa = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_cauza");
    long f_cauza = -1;
    if (sessionLong != null) {
        f_cauza = sessionLong.longValue();
    }

    sessionLong = (Long) session.getAttribute("f_nivel_tensiune");
    long f_nivel_tensiune = -1;
    if (sessionLong != null) {
        f_nivel_tensiune = sessionLong.longValue();
    }

    ro.emid.common.types.CategoryCheckData checkData = IncidenteSessionUtils.getCategoriiSelectate(session);
    String append_to = EchipamentAccessDB.setFilterParameters (checkData, centru.getId(), f_formatie, f_ansamblu, f_echipamentComponenta, f_statie, f_bobina, f_celula, f_bara, f_linie, f_derivatie, f_pa_pt, f_trafo, f_grupa, f_cauza, f_nivel_tensiune);

// 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-echipamente-componente.jsp";from=(165,2);to=(172,0)]
			out.print("\r\n\r\n\r\n<table width=\"100%\" border=0>\r\n<TR>\r\n<TD align=\"center\" valign=\"middle\">\r\n<span style=\"font-size:16px; font-weight:bold;\">Situatia deteriorarilor echipamentelor</span><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-echipamente-componente.jsp";from=(172,0);to=(306,2)]
			
    String mesaj_filtru = "";

    if (f_ansamblu != -1) {
        Nomenclator ansamblu = NomAccessDB.getNom(f_ansamblu);
        mesaj_filtru += "<b>ansamblu</b> - " + ansamblu.getDescriere() + ";";
    }

    if (f_echipamentComponenta != -1) {
        Nomenclator echipamentComponenta = NomAccessDB.getNom(f_echipamentComponenta);
        mesaj_filtru += "<b>echipament</b> - " + echipamentComponenta.getDescriere() + ";";
    }

    long l = new Long(10).longValue();
    DataObj dataObj = null;
    if (f_statie != -1) {
        dataObj = DataDB.getById(f_statie, DataDB.isLocFunctional( NomConstants.NOM_STATII));
        if (dataObj != null) mesaj_filtru += " <b>statia</b> - " + dataObj.getNume() + ";";
    }

    Nomenclator nom = null;
    if (f_linie != -1) {
        dataObj = DataDB.getById(f_linie, DataDB.isLocFunctional( NomConstants.NOM_LINII));
        mesaj_filtru += " <b>linia</b> - " + dataObj != null ? dataObj.getNume() : "-" + ";";
    }

    if (f_derivatie != -1) {
        dataObj = DataDB.getById(f_derivatie, DataDB.isLocFunctional( NomConstants.NOM_DERIVATIE));
        mesaj_filtru += " <b>derivatia</b> - " + dataObj != null ? dataObj.getNume() : "-" + ";";
    }

    if (f_pa_pt != -1) {
        dataObj = DataDB.getById(f_pa_pt, DataDB.isLocFunctional(NomConstants.NOM_PA_PT));
        mesaj_filtru += " <b>pa_pt</b> - " + dataObj != null ? dataObj.getNume() : "-" + ";";
    }
    if (f_grupa != -1) {
        nom = NomAccessDB.getNom(f_grupa);
        mesaj_filtru += " <b>grupa</b> - " + nom != null ? nom.getDescriere() : "-" + ";";
    }

    if (f_cauza != -1) {
        nom = NomAccessDB.getNom(f_cauza);
        mesaj_filtru += " <b>cauza</b> - " + nom != null ? nom.getDescriere() : "-" + ";";
    }

    if (mesaj_filtru.equals("")) {
        mesaj_filtru = "total nefiltrat";
    } else {
        mesaj_filtru = "filtrare dupa: " + mesaj_filtru.substring(0, mesaj_filtru.length() - 1);
    }

    RaportByCauzeRow[] rows1;
    RaportByCauzeRow[] rows2;
    if (sucursalaRaport.getId() != -1) {
        rows2 = EchipamentAccessDB.get_raport_by_cauze_by_sucursala(sucursalaRaport.getId(), data_start, data_stop, append_to);
        rows1 = EchipamentAccessDB.get_raport_by_grupe_cauze_by_sucursala(sucursalaRaport.getId(), data_start, data_stop, append_to);
    } else {
        rows2 = EchipamentAccessDB.get_raport_by_cauze_by_filiala(filialaRaport.getId(), data_start, data_stop, append_to);
        rows1 = EchipamentAccessDB.get_raport_by_grupe_cauze_by_filiala(filialaRaport.getId(), data_start, data_stop, append_to);
    }




    RaportRow_01[] rowsAnsamble;
    RaportRow_01[] rowsComponente;
    if (sucursalaRaport.getId() != -1) {
        rowsAnsamble = EchipamentAccessDB.get_ans_raport_by_sucursala(sucursalaRaport.getId(), data_start, data_stop, append_to);
        rowsComponente = EchipamentAccessDB.get_componenta_raport_by_sucursala(sucursalaRaport.getId(), data_start, data_stop, append_to);
    } else {
        rowsAnsamble = EchipamentAccessDB.get_ans_raport_by_filiala(filialaRaport.getId(), data_start, data_stop, append_to);
        rowsComponente = EchipamentAccessDB.get_componenta_raport_by_filiala(filialaRaport.getId(), data_start, data_stop, append_to);
    }


    if( rowsAnsamble != null) Arrays.sort(rowsAnsamble, new Comparator() {
        public int compare(Object o1, Object o2) {
            RaportRow_01 r1 = (RaportRow_01)o1;
            RaportRow_01 r2 = (RaportRow_01)o2;

            if( r1.ansamblu.getId() == -1) return 1;
            if( r2.ansamblu.getId() == -1) return -1;
            return new Integer(r1.ansamblu.getCod()).compareTo( new Integer( r2.ansamblu.getCod()));
        }
    });

    if( rowsComponente != null) Arrays.sort(rowsComponente, new Comparator() {
        public int compare(Object o1, Object o2) {
            RaportRow_01 r1 = (RaportRow_01)o1;
            RaportRow_01 r2 = (RaportRow_01)o2;

            //if( r1.componenta.getId() == -1) return 1;
            //if( r2.componenta.getId() == -1) return -1;
            return new Integer(r1.componenta.getCod()).compareTo( new Integer( r2.componenta.getCod()));
        }
    });

    if( !StringUtils.isZeroLength( request.getParameter("toExport"))){
        String root = AppConstants.PUBLIC_RESOURCE_PATH + File.separator + "raport";
        String folder = _df.format( new java.util.Date());
        //cleanup...
        File[]folders = new File( root).listFiles();
        if( folders != null) for (int i = 0; i < folders.length; i++) {
            File file = folders[i];
            if( !file.getName().equals( folder)){
                File[]d=file.listFiles();
                if( d!=null) for (int j = 0; j < d.length; j++) {
                    File file1 = d[j];
                    file1.delete();
                }
                file.delete( );  //cleanup
            }
        }

        File f = new File( root, folder);
        if( !f.exists()) f.mkdir();

        String fileName = "Raport echipamente - " + System.currentTimeMillis() + ".xls";
        String privatePath = root + File.separator + folder + File.separator + fileName;

        publicPath = AppConstants.WEB_RESOURCE_PATH + "/raport/" + folder + "/" + fileName;

        String templatePath = AppConstants.PRIVATE_PATH + File.separator + "template" + File.separator + "Raport Echipamente.xls";

        f = new File( privatePath);
        if( f.exists()){
            f.delete();
        }

        RaportEchipamenteExcelExporter exporter = new RaportEchipamenteExcelExporter( );
        exporter.begin( templatePath, privatePath);
        exporter.export( rows1, rows2, rowsAnsamble, rowsComponente);
        exporter.end();
    }

// 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-echipamente-componente.jsp";from=(306,2);to=(307,1)]
			out.print("\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-echipamente-componente.jsp";from=(307,1);to=(307,18)]
			out.print(mesaj_filtru);
// 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-echipamente-componente.jsp";from=(307,18);to=(308,23)]
			out.print(")<BR>\r\n[<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-echipamente-componente.jsp";from=(308,23);to=(308,49)]
			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-echipamente-componente.jsp";from=(308,49);to=(311,29)]
			out.print("?action=resetFiltru&fromRaport=true\">reset filtru</a>] <br>\r\n<span style=\"font-size:16px; font-weight:bold;\" >Deteriorari pe tipuri de echipamente</span>\r\n<div class=\"spacer\"></div>\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-echipamente-componente.jsp";from=(311,29);to=(311,55)]
			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-echipamente-componente.jsp";from=(311,55);to=(315,12)]
			out.print("\" method=\"post\">\r\n    <INPUT TYPE=\"hidden\" NAME=\"action\" VALUE=\"saveRapoarteEchipamente\" />\r\n    <table class=\"gsaptd\" width=\"100%\" border=\"0\">\r\n        <tr><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-echipamente-componente.jsp";from=(315,12);to=(315,52)]
			 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-echipamente-componente.jsp";from=(315,52);to=(318,93)]
			out.print("\r\n            <nobr>\r\n                Filiala:\r\n                <SELECT name=\"filiala\" onchange=\"fill_sucursala_select()\" class=\"gSAPSelect\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(318,93);to=(318,161)]
			out.print(user.getIeLevel() == RoleConstants.NIVEL_FULL ? "" : "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-echipamente-componente.jsp";from=(318,161);to=(320,20)]
			out.print(" >\r\n                    <OPTION value=\"-1\">ELECTRICA SA:</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-echipamente-componente.jsp";from=(320,20);to=(321,82)]
			  Category [] filiale = CategoryAccessDB.getAllCategoriesByParentId(-1);
                        if (filiale != null) for(int i=0;i<filiale.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-echipamente-componente.jsp";from=(321,82);to=(322,28)]
			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-echipamente-componente.jsp";from=(322,28);to=(322,106)]
			out.print((filiale[i].getId() == filialaRaport.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-echipamente-componente.jsp";from=(322,106);to=(322,113)]
			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-echipamente-componente.jsp";from=(322,113);to=(322,136)]
			out.print(filiale[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-echipamente-componente.jsp";from=(322,136);to=(322,138)]
			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-echipamente-componente.jsp";from=(322,138);to=(322,163)]
			out.print(filiale[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-echipamente-componente.jsp";from=(322,163);to=(323,20)]
			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-echipamente-componente.jsp";from=(323,20);to=(323,26)]
			} 
// 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-echipamente-componente.jsp";from=(323,26);to=(357,55)]
			out.print("\r\n                </SELECT>&nbsp;&nbsp;\r\n\r\n                Sucursala:\r\n            <span id=\"sucursalaDiv\">\r\n            <SELECT name=\"sucursala\" class=\"gSAPSelect\" onchange=\"fill_centru_select()\" >\r\n                <option value=\"-1\">Selectati:</option>\r\n            </SELECT></span>&nbsp;&nbsp;\r\n\r\n                C.E.:\r\n            <span id=\"centruDiv\">\r\n                <SELECT name=\"centruId\" class=\"gSAPSelect\">\r\n                    <OPTION value=\"-1\">Selectati:</OPTION>\r\n                </SELECT>\r\n            </span>&nbsp;&nbsp;\r\n\r\n                <script type=\"text/javascript\">\r\n\r\n                    function fill_sucursala_select(selectedValue, disabled, firstShow){\r\n                        resetComboLeaveFirstOption( document.zaforma.sucursala);\r\n                        resetComboLeaveFirstOption( document.zaforma.centruId);\r\n\r\n                        var filialaId = document.zaforma.filiala[ document.zaforma.filiala.selectedIndex].value;\r\n                        if( filialaId > -1){\r\n                            var params = \"parentId=\"+filialaId + \"&selectName=sucursala&disabled=\" + disabled + (selectedValue ? \"&selectedValue=\" + selectedValue : \"\");\r\n                            //alert( params);\r\n\r\n                            getCategoriesFromServer(params, function(originalRequest){\r\n                                //alert( getResponseMesg (originalRequest.responseText));\r\n                                $( \'sucursalaDiv\').innerHTML = getResponseMesg (originalRequest.responseText);\r\n\r\n                                document.zaforma.sucursala.onchange=fill_centru_select;\r\n\r\n                                if( firstShow){\r\n                                    fill_centru_select(");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(357,55);to=(357,74)]
			out.print(centru.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-echipamente-componente.jsp";from=(357,74);to=(357,76)]
			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-echipamente-componente.jsp";from=(357,76);to=(357,181)]
			out.print(user.getIeLevel() == RoleConstants.NIVEL_CENTRU || user.getIeLevel() == RoleConstants.NIVEL_FORMATIE);
// 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-echipamente-componente.jsp";from=(357,181);to=(378,42)]
			out.print(");\r\n                                }\r\n                            });\r\n                        }\r\n                    }\r\n\r\n                    function fill_centru_select(selectedValue, disabled){\r\n                        resetComboLeaveFirstOption( document.zaforma.centruId);\r\n\r\n                        var sucursalaId = document.zaforma.sucursala[ document.zaforma.sucursala.selectedIndex].value;\r\n                        if( sucursalaId > -1){\r\n                            var params = \"parentId=\"+sucursalaId + \"&selectName=centruId&disabled=\" + disabled + (selectedValue ? \"&selectedValue=\" + selectedValue : \"\");\r\n                            //alert( params);\r\n\r\n                            getCategoriesFromServer(params,function(originalRequest){\r\n                                //alert( getResponseMesg (originalRequest.responseText));\r\n                                $( \'centruDiv\').innerHTML = getResponseMesg (originalRequest.responseText);\r\n                            });\r\n                        }\r\n                    }\r\n\r\n                    fill_sucursala_select(");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(378,42);to=(378,70)]
			out.print(sucursalaRaport.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-echipamente-componente.jsp";from=(378,70);to=(378,72)]
			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-echipamente-componente.jsp";from=(378,72);to=(378,231)]
			out.print(user.getIeLevel() == RoleConstants.NIVEL_SUCURSALA || user.getIeLevel() == RoleConstants.NIVEL_CENTRU || user.getIeLevel() == RoleConstants.NIVEL_FORMATIE);
// 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-echipamente-componente.jsp";from=(378,231);to=(382,12)]
			out.print(", true);\r\n                </script>\r\n            </nobr>\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-echipamente-componente.jsp";from=(382,12);to=(382,69)]
			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-echipamente-componente.jsp";from=(382,69);to=(383,183)]
			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-echipamente-componente.jsp";from=(383,183);to=(383,253)]
			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-echipamente-componente.jsp";from=(383,253);to=(388,56)]
			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-echipamente-componente.jsp";from=(388,56);to=(388,82)]
			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-echipamente-componente.jsp";from=(388,82);to=(391,12)]
			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-echipamente-componente.jsp";from=(391,12);to=(391,19)]
			 } 
// 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-echipamente-componente.jsp";from=(391,19);to=(392,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-echipamente-componente.jsp";from=(392,12);to=(392,22)]
			}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-echipamente-componente.jsp";from=(392,22);to=(393,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-echipamente-componente.jsp";from=(393,12);to=(442,14)]
			
                StringBuffer strCategorii = new StringBuffer("");
                long idCentre[] = checkData.getIdCentre();
                Set sucursaleSelectate = new HashSet();
                Set filialeSelectate = new HashSet();
                for (int i = 0; i < idCentre.length; i++) {
                    long id = idCentre[i];
                    Category c = CategoryAccessDB.getById(id);
                    if (c != null) {
                        Category s = CategoryAccessDB.getById(c.getId_parent());
                        if (s != null) {
                            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()));
                            }
                        }
                    }
                }

                long idSucursale[] = checkData.getIdSucursale();
                for (int i = 0; i < idSucursale.length; i++) {
                    long id = idSucursale[i];
                    if( !sucursaleSelectate.contains( new Long( id))){
                        Category s = CategoryAccessDB.getById( id );
                        if( s != null){
                            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());
                            }
                        }
                    }
                }

                long idFiliale[] = checkData.getIdFiliale();
                for (int i = 0; i < idFiliale.length; i++) {
                    long id = idFiliale[i];
                    if( !filialeSelectate.contains( new Long( id))){
                        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-echipamente-componente.jsp";from=(442,14);to=(445,16)]
			out.print("\r\n\r\n            <table><tr><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-echipamente-componente.jsp";from=(445,16);to=(445,33)]
			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-echipamente-componente.jsp";from=(445,33);to=(447,12)]
			out.print("\r\n            </td></tr></table>\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-echipamente-componente.jsp";from=(447,12);to=(447,19)]
			 } 
// 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-echipamente-componente.jsp";from=(447,19);to=(451,12)]
			out.print("\r\n        </td>\r\n\r\n        <td align=\"right\"><nobr>\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-echipamente-componente.jsp";from=(451,12);to=(454,14)]
			
                Date dataStart = data_start != 0 ? new Date(data_start) : null;
                Date dataStop = data_stop != 0 ? new Date(data_stop) : 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-echipamente-componente.jsp";from=(454,14);to=(457,26)]
			out.print("\r\n\r\n            <label title=\"Selectati date egale pentru a trece prin toate echipamentele\">\r\n                Perioada: ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(457,26);to=(457,97)]
			// CustomJspTag.action() - start
			// TagBeginGenerator - start [emid:datefield]
			/* ----  emid:datefield ---- */
			web.tag_datefield_1875650_1561483953449 _jspx_th_emid_datefield_0 = new web.tag_datefield_1875650_1561483953449();
			_jspx_resourceInjector.inject(_jspx_th_emid_datefield_0);
			_jspx_th_emid_datefield_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_datefield_0.setParent(null);
			_jspx_th_emid_datefield_0.setName("data_start");
			_jspx_th_emid_datefield_0.setValue(dataStart);
			_jspx_th_emid_datefield_0.setWidth("80px");
			_jspx_th_emid_datefield_0.doTag();
			// TagBeginGenerator - end [emid:datefield]
				// TagEndGenerator - start[emid:datefield]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_datefield_0);
				// TagEndGenerator - end [emid:datefield]
			// CustomJspTag.action() - end
// 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-echipamente-componente.jsp";from=(457,97);to=(460,12)]
			out.print("\r\n            </label>\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-echipamente-componente.jsp";from=(460,12);to=(460,81)]
			// CustomJspTag.action() - start
			// TagBeginGenerator - start [emid:datefield]
			/* ----  emid:datefield ---- */
			web.tag_datefield_1875650_1561483953449 _jspx_th_emid_datefield_2 = new web.tag_datefield_1875650_1561483953449();
			_jspx_resourceInjector.inject(_jspx_th_emid_datefield_2);
			_jspx_th_emid_datefield_2.setJspContext(_jspx_pageContext);
			_jspx_th_emid_datefield_2.setParent(null);
			_jspx_th_emid_datefield_2.setName("data_stop");
			_jspx_th_emid_datefield_2.setValue(dataStop);
			_jspx_th_emid_datefield_2.setWidth("80px");
			_jspx_th_emid_datefield_2.doTag();
			// TagBeginGenerator - end [emid:datefield]
				// TagEndGenerator - start[emid:datefield]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_datefield_2);
				// TagEndGenerator - end [emid:datefield]
			// CustomJspTag.action() - end
// 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-echipamente-componente.jsp";from=(460,81);to=(488,12)]
			out.print("\r\n\r\n            <input type=\"submit\" value=\"Ruleaz\u0103\" class=\"ml10\"/>\r\n            <input type=\"hidden\" name=\"toExport\" value=\"\"/>\r\n            <input type=\"button\" value=\"Export\" onclick=\"this.form.toExport.value = \'do\'; this.form.submit(); \" /></nobr>\r\n        </td></tr>\r\n    </table>\r\n</FORM>\r\n<div class=\"spacer\"></div>\r\n</TD>\r\n</TR>\r\n<TR>\r\n    <TD>\r\n        <TABLE border=1 cellPadding=2 cellSpacing=1 width=\"100%\" class=\"gSAPTHEAD\" style=\"BACKGROUND-COLOR: white\">\r\n            <TR>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Cod<br>Ansamblu</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Cod<br>Echipament</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Echipament</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Nr.Echipamente</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Durata indisp.</TH>\r\n                <TH class=\"gsapthead\" noWrap colspan=\"4\">Cheltuieli (ron)</TH>\r\n            </TR>\r\n            <TR>\r\n                <TH class=\"gsapthead\" noWrap>Ment.</TH>\r\n                <TH class=\"gsapthead\" noWrap>Daune</TH>\r\n                <TH class=\"gsapthead\" noWrap>Exploatare</TH>\r\n                <TH class=\"gsapthead\" noWrap>Total</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-echipamente-componente.jsp";from=(488,12);to=(499,92)]
			
                long oneDay = 24 * 60 * 60 * 1000;
                data_stop += oneDay;

                session.setAttribute( "rapoarteEchipamenteFiltru.data_start", new Long( data_start));
                session.setAttribute( "rapoarteEchipamenteFiltru.data_stop", new Long( data_stop));
                session.setAttribute( "rapoarteEchipamenteFiltru.append_to", append_to);

                if (null != rowsAnsamble && rowsComponente != null) {
                    for (int i = 0; i < rowsAnsamble.length; i++) {
                        String classul = "";
                        if (i + 1 == rowsAnsamble.length) classul = "class=\"gsapthead\"";
// 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-echipamente-componente.jsp";from=(499,92);to=(500,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-echipamente-componente.jsp";from=(500,12);to=(500,29)]
			if (i > 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-echipamente-componente.jsp";from=(500,29);to=(506,12)]
			out.print("\r\n            <tr>\r\n                <td colspan=\"15\">\r\n                    &nbsp;\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-echipamente-componente.jsp";from=(506,12);to=(506,17)]
			}
// 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-echipamente-componente.jsp";from=(506,17);to=(508,35)]
			out.print("\r\n            <TR class=\"gsapthead\">\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-echipamente-componente.jsp";from=(508,35);to=(508,209)]
			out.print((rowsAnsamble[i].ansamblu.getId() == -1) ? "&nbsp" : String.valueOf( (nom = NomAccessDB.getNom( rowsAnsamble[i].ansamblu.getId())) != null ? "" + nom.getCod() : "&nbsp"));
// 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-echipamente-componente.jsp";from=(508,209);to=(511,20)]
			out.print("</TD>\r\n                <td>&nbsp;</td>\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-echipamente-componente.jsp";from=(511,20);to=(511,58)]
			if( i + 1 < rowsAnsamble.length ){
// 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-echipamente-componente.jsp";from=(511,58);to=(511,190)]
			out.print("<a class=\"link\" href=\"javascript: void(null)\" title=\"Click pentru a vizualiza Echipamentele\" onclick=\"openEchipamenteByComponentaId(");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(511,190);to=(511,227)]
			out.print(rowsAnsamble[i].ansamblu.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-echipamente-componente.jsp";from=(511,227);to=(511,230)]
			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-echipamente-componente.jsp";from=(511,230);to=(511,235)]
			}
// 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-echipamente-componente.jsp";from=(511,235);to=(512,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-echipamente-componente.jsp";from=(512,20);to=(512,64)]
			out.print(rowsAnsamble[i].ansamblu.getDescriere());
// 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-echipamente-componente.jsp";from=(512,64);to=(513,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-echipamente-componente.jsp";from=(513,20);to=(513,58)]
			if( i + 1 < rowsAnsamble.length ){
// 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-echipamente-componente.jsp";from=(513,58);to=(513,64)]
			out.print(" </a> ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(513,64);to=(513,69)]
			}
// 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-echipamente-componente.jsp";from=(513,69);to=(515,34)]
			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-echipamente-componente.jsp";from=(515,34);to=(515,69)]
			out.print(rowsAnsamble[i].t_nr_incidente);
// 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-echipamente-componente.jsp";from=(515,69);to=(516,34)]
			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-echipamente-componente.jsp";from=(516,34);to=(516,100)]
			if("Totale".equals( rowsAnsamble[i].ansamblu.getDescriere())){
// 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-echipamente-componente.jsp";from=(516,100);to=(516,106)]
			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-echipamente-componente.jsp";from=(516,106);to=(516,116)]
			}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-echipamente-componente.jsp";from=(516,116);to=(516,117)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(516,117);to=(516,156)]
			out.print(rowsAnsamble[i].t_durata_indisp/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-echipamente-componente.jsp";from=(516,156);to=(516,158)]
			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-echipamente-componente.jsp";from=(516,158);to=(516,197)]
			out.print(rowsAnsamble[i].t_durata_indisp%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-echipamente-componente.jsp";from=(516,197);to=(516,199)]
			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-echipamente-componente.jsp";from=(516,199);to=(516,204)]
			}
// 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-echipamente-componente.jsp";from=(516,204);to=(517,34)]
			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-echipamente-componente.jsp";from=(517,34);to=(517,87)]
			out.print(AppConstants.format3(rowsAnsamble[i].chelt_ment));
// 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-echipamente-componente.jsp";from=(517,87);to=(518,34)]
			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-echipamente-componente.jsp";from=(518,34);to=(518,88)]
			out.print(AppConstants.format3(rowsAnsamble[i].chelt_daune));
// 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-echipamente-componente.jsp";from=(518,88);to=(519,34)]
			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-echipamente-componente.jsp";from=(519,34);to=(519,89)]
			out.print(AppConstants.format3(rowsAnsamble[i].chelt_altele));
// 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-echipamente-componente.jsp";from=(519,89);to=(520,34)]
			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-echipamente-componente.jsp";from=(520,34);to=(520,91)]
			out.print(AppConstants.format3(rowsAnsamble[i].t_chelt_totale));
// 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-echipamente-componente.jsp";from=(520,91);to=(522,12)]
			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-echipamente-componente.jsp";from=(522,12);to=(522,142)]
			 for (int j = 0; j < rowsComponente.length; j++) if( rowsComponente[j].ansamblu.getId() == rowsAnsamble[i].ansamblu.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-echipamente-componente.jsp";from=(522,142);to=(523,16)]
			out.print("\r\n            <TR ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(523,16);to=(523,28)]
			out.print(classul);
// 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-echipamente-componente.jsp";from=(523,28);to=(525,35)]
			out.print(">\r\n                <td>&nbsp;</td>\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-echipamente-componente.jsp";from=(525,35);to=(525,217)]
			out.print((rowsComponente[j].componenta.getId() == -1) ? "&nbsp" : String.valueOf( (nom = NomAccessDB.getNom( rowsComponente[j].componenta.getId())) != null ? "" + nom.getCod() : "&nbsp"));
// 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-echipamente-componente.jsp";from=(525,217);to=(527,152)]
			out.print("</TD>\r\n                <TD>\r\n                    <a class=\"link\" href=\"javascript: void(null)\" title=\"Click pentru a vizualiza Echipamentele\" onclick=\"openEchipamenteByComponentaId(");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(527,152);to=(527,189)]
			out.print(rowsAnsamble[i].ansamblu.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-echipamente-componente.jsp";from=(527,189);to=(527,191)]
			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-echipamente-componente.jsp";from=(527,191);to=(527,232)]
			out.print(rowsComponente[j].componenta.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-echipamente-componente.jsp";from=(527,232);to=(528,24)]
			out.print(")\">\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-echipamente-componente.jsp";from=(528,24);to=(528,72)]
			out.print(rowsComponente[j].componenta.getDescriere());
// 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-echipamente-componente.jsp";from=(528,72);to=(531,34)]
			out.print("\r\n                    </a>\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-echipamente-componente.jsp";from=(531,34);to=(531,71)]
			out.print(rowsComponente[j].t_nr_incidente);
// 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-echipamente-componente.jsp";from=(531,71);to=(532,34)]
			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-echipamente-componente.jsp";from=(532,34);to=(532,102)]
			if("Totale".equals( rowsComponente[j].ansamblu.getDescriere())){
// 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-echipamente-componente.jsp";from=(532,102);to=(532,108)]
			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-echipamente-componente.jsp";from=(532,108);to=(532,118)]
			}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-echipamente-componente.jsp";from=(532,118);to=(532,119)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(532,119);to=(532,160)]
			out.print(rowsComponente[j].t_durata_indisp/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-echipamente-componente.jsp";from=(532,160);to=(532,162)]
			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-echipamente-componente.jsp";from=(532,162);to=(532,203)]
			out.print(rowsComponente[j].t_durata_indisp%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-echipamente-componente.jsp";from=(532,203);to=(532,205)]
			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-echipamente-componente.jsp";from=(532,205);to=(532,210)]
			}
// 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-echipamente-componente.jsp";from=(532,210);to=(533,34)]
			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-echipamente-componente.jsp";from=(533,34);to=(533,89)]
			out.print(AppConstants.format3(rowsComponente[j].chelt_ment));
// 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-echipamente-componente.jsp";from=(533,89);to=(534,34)]
			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-echipamente-componente.jsp";from=(534,34);to=(534,90)]
			out.print(AppConstants.format3(rowsComponente[j].chelt_daune));
// 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-echipamente-componente.jsp";from=(534,90);to=(535,34)]
			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-echipamente-componente.jsp";from=(535,34);to=(535,91)]
			out.print(AppConstants.format3(rowsComponente[j].chelt_altele));
// 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-echipamente-componente.jsp";from=(535,91);to=(536,34)]
			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-echipamente-componente.jsp";from=(536,34);to=(536,93)]
			out.print(AppConstants.format3(rowsComponente[j].t_chelt_totale));
// 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-echipamente-componente.jsp";from=(536,93);to=(538,12)]
			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-echipamente-componente.jsp";from=(538,12);to=(538,19)]
			 } 
// 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-echipamente-componente.jsp";from=(538,19);to=(539,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-echipamente-componente.jsp";from=(539,12);to=(539,19)]
			 } 
// 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-echipamente-componente.jsp";from=(539,19);to=(540,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-echipamente-componente.jsp";from=(540,12);to=(540,24)]
			} 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-echipamente-componente.jsp";from=(540,24);to=(546,12)]
			out.print("\r\n            <TR>\r\n                <TD>\r\n                    Nu exista informatii...\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-echipamente-componente.jsp";from=(546,12);to=(546,17)]
			}
// 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-echipamente-componente.jsp";from=(546,17);to=(574,12)]
			out.print("\r\n        </TABLE>\r\n    </TD>\r\n</TR>\r\n<TR>\r\n    <TD align=\"center\">\r\n        <BR>\r\n        <span style=\"font-size:16px; font-weight:bold;\" >Deteriorari de echipamente pe cauze</span>\r\n    </TD>\r\n</TR>\r\n<TR>\r\n    <TD>\r\n        <TABLE border=1 cellPadding=2 cellSpacing=1 width=\"100%\" class=\"gSAPTHEAD\" style=\"BACKGROUND-COLOR: white\">\r\n            <TR>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Cod<BR>grupa</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\" width=\"50\">Cod<BR>cauza</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\" width=\"100\">Cauza</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Nr.Echipamente</TH>\r\n                <TH class=\"gsapthead\" noWrap rowspan=\"2\">Durata indisp.</TH>\r\n                <TH class=\"gsapthead\" noWrap colspan=\"4\">Cheltuieli (ron)</TH>\r\n            </TR>\r\n            <TR>\r\n                <TH class=\"gsapthead\" noWrap>Ment.</TH>\r\n                <TH class=\"gsapthead\" noWrap>Daune</TH>\r\n                <TH class=\"gsapthead\" noWrap>Exploatare</TH>\r\n                <TH class=\"gsapthead\" noWrap>Total</TH>\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-echipamente-componente.jsp";from=(574,12);to=(580,82)]
			
                String classul = "class=";
                int j = 0;

                if ( null != rows1 && null != rows2) { //  sint date
                    for (int i = 0; i < rows1.length ; i++) {
                        if (i+1 == rows1.length) classul="class=\"gsapthead\""; 
// 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-echipamente-componente.jsp";from=(580,82);to=(581,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-echipamente-componente.jsp";from=(581,12);to=(581,29)]
			if (i > 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-echipamente-componente.jsp";from=(581,29);to=(587,12)]
			out.print("\r\n            <tr>\r\n                <td colspan=\"15\">\r\n                    &nbsp;\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-echipamente-componente.jsp";from=(587,12);to=(587,17)]
			}
// 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-echipamente-componente.jsp";from=(587,17);to=(589,16)]
			out.print("\r\n            <TR class=\"gsapthead\">\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-echipamente-componente.jsp";from=(589,16);to=(589,199)]
			 String codGrupa = (rows1[i].cauzaGrupa.getId() == -1) ? "&nbsp" : String.valueOf( (nom = NomAccessDB.getNom( rows1[i].cauzaGrupa.getId())) != null ? "" + nom.getCod() : "&nbsp");
// 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-echipamente-componente.jsp";from=(589,199);to=(590,48)]
			out.print("\r\n                <TD align=\"center\" valign=\"top\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(590,48);to=(590,61)]
			out.print(codGrupa);
// 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-echipamente-componente.jsp";from=(590,61);to=(593,20)]
			out.print("</TD>\r\n                <td>&nbsp;</td>\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/rapoarte/raport-echipamente-componente.jsp";from=(593,67);to=(594,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-echipamente-componente.jsp";from=(594,20);to=(594,49)]
			if( i+1 < rows1.length ){
// 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-echipamente-componente.jsp";from=(594,49);to=(594,130)]
			out.print("<a class=\"link\" href=\"javascript: void(null)\" onclick=\"openEchipamenteByCauzaID( ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(594,130);to=(594,162)]
			out.print(rows1[i].cauzaGrupa.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-echipamente-componente.jsp";from=(594,162);to=(594,166)]
			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-echipamente-componente.jsp";from=(594,166);to=(594,171)]
			}
// 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-echipamente-componente.jsp";from=(594,171);to=(595,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-echipamente-componente.jsp";from=(595,20);to=(595,59)]
			out.print(rows1[i].cauzaGrupa.getDescriere());
// 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-echipamente-componente.jsp";from=(595,59);to=(596,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-echipamente-componente.jsp";from=(596,20);to=(596,49)]
			if( i+1 < rows1.length ){
// 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-echipamente-componente.jsp";from=(596,49);to=(596,53)]
			out.print("</a>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(596,53);to=(596,58)]
			}
// 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-echipamente-componente.jsp";from=(596,58);to=(598,34)]
			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-echipamente-componente.jsp";from=(598,34);to=(598,62)]
			out.print(rows1[i].t_nr_incidente);
// 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-echipamente-componente.jsp";from=(598,62);to=(599,34)]
			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-echipamente-componente.jsp";from=(599,34);to=(599,95)]
			if("Totale".equals( rows1[i].cauzaGrupa.getDescriere())){
// 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-echipamente-componente.jsp";from=(599,95);to=(599,103)]
			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-echipamente-componente.jsp";from=(599,103);to=(599,113)]
			}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-echipamente-componente.jsp";from=(599,113);to=(599,114)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(599,114);to=(599,146)]
			out.print(rows1[i].t_durata_indisp/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-echipamente-componente.jsp";from=(599,146);to=(599,148)]
			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-echipamente-componente.jsp";from=(599,148);to=(599,180)]
			out.print(rows1[i].t_durata_indisp%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-echipamente-componente.jsp";from=(599,180);to=(599,182)]
			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-echipamente-componente.jsp";from=(599,182);to=(599,187)]
			}
// 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-echipamente-componente.jsp";from=(599,187);to=(600,34)]
			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-echipamente-componente.jsp";from=(600,34);to=(600,80)]
			out.print(AppConstants.format3(rows1[i].chelt_ment));
// 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-echipamente-componente.jsp";from=(600,80);to=(601,34)]
			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-echipamente-componente.jsp";from=(601,34);to=(601,81)]
			out.print(AppConstants.format3(rows1[i].chelt_daune));
// 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-echipamente-componente.jsp";from=(601,81);to=(602,34)]
			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-echipamente-componente.jsp";from=(602,34);to=(602,82)]
			out.print(AppConstants.format3(rows1[i].chelt_altele));
// 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-echipamente-componente.jsp";from=(602,82);to=(603,34)]
			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-echipamente-componente.jsp";from=(603,34);to=(603,84)]
			out.print(AppConstants.format3(rows1[i].t_chelt_totale));
// 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-echipamente-componente.jsp";from=(603,84);to=(605,12)]
			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-echipamente-componente.jsp";from=(605,12);to=(605,116)]
			 for (; (j < rows2.length) && (rows2[j].cauzaGrupa.getId() == rows1[i].cauzaGrupa.getId()) ; j++) { 
// 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-echipamente-componente.jsp";from=(605,116);to=(606,16)]
			out.print("\r\n            <TR ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(606,16);to=(606,28)]
			out.print(classul);
// 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-echipamente-componente.jsp";from=(606,28);to=(608,35)]
			out.print(">\r\n                <TD align=\"center\">&nbsp;</TD>\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-echipamente-componente.jsp";from=(608,35);to=(608,190)]
			out.print((rows2[j].cauza.getId() == -1) ? "&nbsp" :  String.valueOf( (nom = NomAccessDB.getNom( rows2[j].cauza.getId())) != null ? "" + nom.getCod() : "&nbsp"));
// 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-echipamente-componente.jsp";from=(608,190);to=(610,20)]
			out.print("</TD>\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/rapoarte/raport-echipamente-componente.jsp";from=(610,62);to=(611,101)]
			out.print("\r\n                    <a class=\"link\" href=\"javascript: void(null)\" onclick=\"openEchipamenteByCauzaID( ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(611,101);to=(611,133)]
			out.print(rows1[i].cauzaGrupa.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-echipamente-componente.jsp";from=(611,133);to=(611,135)]
			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-echipamente-componente.jsp";from=(611,135);to=(611,162)]
			out.print(rows2[j].cauza.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-echipamente-componente.jsp";from=(611,162);to=(612,24)]
			out.print(")\" >\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-echipamente-componente.jsp";from=(612,24);to=(612,58)]
			out.print(rows2[j].cauza.getDescriere());
// 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-echipamente-componente.jsp";from=(612,58);to=(615,34)]
			out.print("\r\n                    </a>\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-echipamente-componente.jsp";from=(615,34);to=(615,62)]
			out.print(rows2[j].t_nr_incidente);
// 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-echipamente-componente.jsp";from=(615,62);to=(616,34)]
			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-echipamente-componente.jsp";from=(616,34);to=(616,66)]
			out.print(rows2[j].t_durata_indisp/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-echipamente-componente.jsp";from=(616,66);to=(616,68)]
			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-echipamente-componente.jsp";from=(616,68);to=(616,100)]
			out.print(rows2[j].t_durata_indisp%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-echipamente-componente.jsp";from=(616,100);to=(617,34)]
			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-echipamente-componente.jsp";from=(617,34);to=(617,80)]
			out.print(AppConstants.format3(rows2[j].chelt_ment));
// 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-echipamente-componente.jsp";from=(617,80);to=(618,34)]
			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-echipamente-componente.jsp";from=(618,34);to=(618,81)]
			out.print(AppConstants.format3(rows2[j].chelt_daune));
// 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-echipamente-componente.jsp";from=(618,81);to=(619,34)]
			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-echipamente-componente.jsp";from=(619,34);to=(619,82)]
			out.print(AppConstants.format3(rows2[j].chelt_altele));
// 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-echipamente-componente.jsp";from=(619,82);to=(620,34)]
			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-echipamente-componente.jsp";from=(620,34);to=(620,84)]
			out.print(AppConstants.format3(rows2[j].t_chelt_totale));
// 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-echipamente-componente.jsp";from=(620,84);to=(622,12)]
			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-echipamente-componente.jsp";from=(622,12);to=(622,32)]
			 } // for cauze 
// 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-echipamente-componente.jsp";from=(622,32);to=(623,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-echipamente-componente.jsp";from=(623,12);to=(623,38)]
			 } // for grupe cauze 
// 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-echipamente-componente.jsp";from=(623,38);to=(624,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-echipamente-componente.jsp";from=(624,12);to=(624,26)]
			 } 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-echipamente-componente.jsp";from=(624,26);to=(630,12)]
			out.print("\r\n            <TR>\r\n                <TD>\r\n                    Nu exista informatii...\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-echipamente-componente.jsp";from=(630,12);to=(630,19)]
			 } 
// 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-echipamente-componente.jsp";from=(630,19);to=(638,4)]
			out.print("\r\n        </table>\r\n\r\n    </TD>\r\n</TR>\r\n</table>\r\n\r\n<script type=\"text/javascript\">\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-echipamente-componente.jsp";from=(638,4);to=(638,35)]
			 if ( publicPath != 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-echipamente-componente.jsp";from=(638,35);to=(641,27)]
			out.print("\r\n\r\n    setTimeout(function(){\r\n        window.location = \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(641,27);to=(641,42)]
			out.print(publicPath);
// 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-echipamente-componente.jsp";from=(641,42);to=(644,4)]
			out.print("\';\r\n    }, 500);\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-echipamente-componente.jsp";from=(644,4);to=(644,11)]
			 } 
// 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-echipamente-componente.jsp";from=(644,11);to=(647,27)]
			out.print("\r\n\r\n    function reloadPage(){\r\n        window.location = \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(647,27);to=(647,53)]
			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-echipamente-componente.jsp";from=(647,53);to=(652,32)]
			out.print("?action=raport-echipamente\";\r\n    }\r\n\r\n    var echipamenteWindow = null;\r\n    function openEchipamenteByComponentaId( idAnsamblu, idComponenta){\r\n        openEchipamenteWindow( \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(652,32);to=(652,58)]
			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-echipamente-componente.jsp";from=(652,58);to=(656,32)]
			out.print("?action=showEchipamenteFromRaport&idAnsamblu=\'+idAnsamblu + \"&idComponenta=\"+idComponenta);\r\n    }\r\n\r\n    function openEchipamenteByCauzaID( idCauzaGrupa, idCauza){\r\n        openEchipamenteWindow( \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/raport-echipamente-componente.jsp";from=(656,32);to=(656,58)]
			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-echipamente-componente.jsp";from=(656,58);to=(669,0)]
			out.print("?action=showEchipamenteFromRaport&idCauzaGrupa=\'+idCauzaGrupa+\'&idCauza=\'+idCauza);\r\n    }\r\n\r\n    function openEchipamenteWindow( url){\r\n        if( echipamenteWindow != null) echipamenteWindow.close();\r\n        echipamenteWindow = window.open( url,\'echipamenteRaport\', \'top=50,left=50,width=950, height=550, status=yes,resizable=yes,dependent=yes,alwaysRaised=yes, scrollbars=yes\');\r\n    }\r\n\r\n    function categoriesChecked(){\r\n        document.zaforma.submit();\r\n    }\r\n</script>\r\n\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);
		}
	}

}
