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

import ro.emid.common.db.AccessDB;
import ro.emid.common.db.CategoryAccessDB;
import ro.emid.common.db.EchipamentAccessDB;
import ro.emid.common.db.NomAccessDB;
import ro.emid.common.db.framework.DatabaseException;
import ro.emid.common.db.framework.Filter;
import ro.emid.common.db.framework.IFilter;
import ro.emid.common.types.Category;
import ro.emid.common.types.Echipament;
import ro.emid.common.types.Nomenclator;
import ro.emid.common.utils.ObjectUtils;
import ro.emid.common.utils.pagination.PaginationController;
import ro.emid.common.utils.pagination.PaginationData;
import ro.emid.incidente.IncidenteSessionUtils;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;
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 javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

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

	public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
	{
		//isXml=false
		JspFactory  _jspFactory     = JspFactory.getDefaultFactory();
		PageContext pageContext = _jspFactory.getPageContext(this,request,response,null,true,32768,true);
		ServletConfig config = pageContext.getServletConfig();
		ServletContext application = pageContext.getServletContext();
		com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext = (com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl) pageContext;
		com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();
		HttpSession session = pageContext.getSession();
		if (!response.isCommitted()) {
		response.setContentType("text/html;charset=UTF-8");
		}
		JspWriter   out     = pageContext.getOut();
		java.lang.Object page = this;
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(1,47);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/showEchipamenteFromRaport.jsp";from=(2,55);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(3,57);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/showEchipamenteFromRaport.jsp";from=(4,50);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/showEchipamenteFromRaport.jsp";from=(5,66);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/showEchipamenteFromRaport.jsp";from=(6,55);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/showEchipamenteFromRaport.jsp";from=(7,56);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/showEchipamenteFromRaport.jsp";from=(8,50);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/showEchipamenteFromRaport.jsp";from=(9,52);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/showEchipamenteFromRaport.jsp";from=(10,53);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/showEchipamenteFromRaport.jsp";from=(11,53);to=(12,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(12,73);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/showEchipamenteFromRaport.jsp";from=(13,67);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/showEchipamenteFromRaport.jsp";from=(14,60);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/showEchipamenteFromRaport.jsp";from=(15,42);to=(16,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(16,39);to=(17,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(17,44);to=(18,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/showEchipamenteFromRaport.jsp";from=(18,38);to=(19,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(19,34);to=(21,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/showEchipamenteFromRaport.jsp";from=(21,48);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/rapoarte/showEchipamenteFromRaport.jsp";from=(23,0);to=(117,2)]
			

    final long idAnsamblu = ObjectUtils.getLongValue( request.getParameter("idAnsamblu"), -2);
    final long idComponenta = ObjectUtils.getLongValue( request.getParameter("idComponenta"), -2);
    final long idCauzaGrupa = ObjectUtils.getLongValue(request.getParameter("idCauzaGrupa"), -2);
    final long idCauza = ObjectUtils.getLongValue( request.getParameter("idCauza"), -2);


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

    final Category sFiliala = (Category) session.getAttribute("filiala");
    final Category sSucursala = (Category) session.getAttribute("sucursala");
    final 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 centruRaport = CategoryAccessDB.getById(centruId);
    if (centruRaport == null) centruRaport = new Category();


    final String append_to = (String )session.getAttribute("rapoarteEchipamenteFiltru.append_to");
    final Long sData_start = (Long )session.getAttribute("rapoarteEchipamenteFiltru.data_start");
    final Long sData_stop = (Long )session.getAttribute("rapoarteEchipamenteFiltru.data_stop");

    final StringBuffer condSql = new StringBuffer( append_to != null ? append_to : "");

    if( filialaRaport.getId() > 0){
        condSql.append(" AND FILIALA_ID = ").append( filialaRaport.getId());
    }

    if( sucursalaRaport.getId() > 0){
        condSql.append(" AND SUCURSALA_ID = ").append( sucursalaRaport.getId());
    }

    if( centruRaport.getId() > 0){
        condSql.append(" AND SECTIE_ID = ").append( centruRaport.getId());
    }

    if( idAnsamblu > 0 || idAnsamblu == -1){
        condSql.append( " AND ANSAMBLU_ID=").append( idAnsamblu);

        if( idComponenta > 0 || idComponenta == -1){
            condSql.append( " AND COMPONENTA_ID=").append( idComponenta);
        }
    }else {
        if( idCauzaGrupa > 0 || idCauzaGrupa == -1){
            condSql.append( " AND CAUZA_GR_ID=").append( idCauzaGrupa);
        }

        if( idCauza > 0 || idCauza == -1){
            condSql.append( " AND CAUZA_ID=").append( idCauza);
        }
    }

    final IFilter filtru = new Filter().addStringCriteria( condSql.toString());
    if( sData_start != null && sData_start.longValue() > 0){
        filtru.addOrSetCriteria(" AND ", "DATA_DETERIORARE", ">=", new Timestamp( sData_start.longValue()));
    }

    if( sData_stop != null && sData_stop.longValue() > 0){
        filtru.addOrSetCriteria(" AND ", "DATA_DETERIORARE", "<=", new Timestamp( sData_stop.longValue()));
    }


    final PaginationData pd = PaginationController.getPaginationData(request, 500);

    final Echipament[] echipamente = EchipamentAccessDB.getAllEchipamente( filtru, "FILIALA_ID ASC, SUCURSALA_ID ASC, SECTIE_ID", "ASC", pd.getStartIndex(), pd.getQueryEndIndex());

    final Integer tc = (Integer) AccessDB.executeSQL(new AccessDB("Get Incidente count") {
        protected Object doWork() throws SQLException, DatabaseException {
            Integer obj = new Integer(0);
            createStatementFromString(MessageFormat.format("SELECT count(*) CNT FROM echipamente e WHERE 0=0 {0} ", new String[]{filtru.getSqlFilterCondition()}));
            filtru.bindStatement(this.statement);
            getResultSetFromQuery();
            if (resultSet.next()) {
                obj = new Integer(resultSet.getInt("CNT"));
            }

            return obj;
        }
    });

    pd.setResultRowCount( echipamente != null ? echipamente.length : 0 );
    pd.setTotalRowsCount( tc != null ? tc.intValue() : 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/showEchipamenteFromRaport.jsp";from=(117,2);to=(131,8)]
			out.print("\r\n\r\n<form method=\"post\" action=\"\">\r\n    <TABLE id=\"echipamente\" border=0 cellPadding=2 cellSpacing=1 width=\"97%\" class=\"gSAPTHEAD\" style=\"BACKGROUND-COLOR: white;margin: 10px\">\r\n        <col align=\"right\" style=\"padding-right:5px\">\r\n        <col align=\"right\" style=\"padding-right:5px\">\r\n        <tr noSelect=\"true\">\r\n            <TH class=\"gsapthead\" height=25 width=\"100px\" align=\"center\">&nbsp;Nr. Fisa<br/>Echipament:&nbsp;</TH>\r\n            <TH class=\"gsapthead\" height=25 width=\"3%\" align=\"center\" style=\"font-size:12px\" noWrap>&nbsp;Nr. Echipamente<br>Identice deteriorate:&nbsp;</TH>\r\n            <TH class=\"gsapthead\" height=25 noWrap align=\"left\">&nbsp;Localizare:&nbsp;</TH>\r\n            <TH class=\"gsapthead\" height=25 noWrap align=\"left\">&nbsp;Ansamblu:&nbsp;</TH>\r\n            <TH class=\"gsapthead\" height=25 width=\"1%\" noWrap align=\"left\">&nbsp;Op.:&nbsp;</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/showEchipamenteFromRaport.jsp";from=(131,8);to=(131,42)]
			 if( echipamente.length == 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/showEchipamenteFromRaport.jsp";from=(131,42);to=(135,8)]
			out.print("\r\n            <tr>\r\n                <td>No data ...</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/showEchipamenteFromRaport.jsp";from=(135,8);to=(135,20)]
			 }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/showEchipamenteFromRaport.jsp";from=(135,20);to=(136,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(136,8);to=(136,41)]
			  long totalEchipamente = 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/showEchipamenteFromRaport.jsp";from=(136,41);to=(137,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(137,8);to=(137,39)]
			  long centruCurentId = -1;
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(137,39);to=(138,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(138,8);to=(138,55)]
			  final Map cacheAnsamblu = new HashMap(); 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(138,55);to=(139,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(139,8);to=(165,10)]
			  for (int i = 0; i < echipamente.length; i++) {
            final Echipament echipament = echipamente[i];
            totalEchipamente += echipamente[ i].getNumarEchipIdenticeDet();

            Category f = CategoryAccessDB.getById( echipament.getFilialaId());
            if( f == null) f =  new Category();

            Category s = CategoryAccessDB.getById( echipament.getSucursalaId());
            if( s == null) s = new Category();

            Category c = CategoryAccessDB.getById( echipament.getCentruId());
            if( c == null) c = new Category();

            Nomenclator ansamblu = (Nomenclator) cacheAnsamblu.get(String.valueOf(echipament.getAnsambluId()));
            if( ansamblu == null){
                ansamblu = NomAccessDB.getNom(echipament.getAnsambluId());
                if( ansamblu != null){
                    cacheAnsamblu.put(String.valueOf(echipament.getAnsambluId()), ansamblu);
                }
            }

            String className = "";
            if( centruCurentId != c.getId()){
                centruCurentId = c.getId();
                className = "underlined";
            }
        
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(165,10);to=(167,45)]
			out.print("\r\n\r\n            <tr ondblclick=\"printEchipament( ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(167,45);to=(167,68)]
			out.print(echipament.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/showEchipamenteFromRaport.jsp";from=(167,68);to=(168,36)]
			out.print(")\" title=\"Dubluclick pentru a vizualiza Fisa de Echipament\">\r\n                <td align=\"\" class=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(168,36);to=(168,50)]
			out.print(className);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(168,50);to=(169,20)]
			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/showEchipamenteFromRaport.jsp";from=(169,20);to=(169,51)]
			out.print(echipament.getNumarFI_FE());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(169,51);to=(172,20)]
			out.print("\r\n                </td>\r\n                <td align=\"center\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(172,20);to=(172,62)]
			out.print(echipament.getNumarEchipIdenticeDet());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(172,62);to=(174,27)]
			out.print("\r\n                </td>\r\n                <td class=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(174,27);to=(174,41)]
			out.print(className);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(174,41);to=(175,20)]
			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/showEchipamenteFromRaport.jsp";from=(175,20);to=(175,36)]
			out.print(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/showEchipamenteFromRaport.jsp";from=(175,36);to=(175,39)]
			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/showEchipamenteFromRaport.jsp";from=(175,39);to=(175,55)]
			out.print(s.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/showEchipamenteFromRaport.jsp";from=(175,55);to=(175,58)]
			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/showEchipamenteFromRaport.jsp";from=(175,58);to=(175,74)]
			out.print(c.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/showEchipamenteFromRaport.jsp";from=(175,74);to=(178,20)]
			out.print("\r\n                </td>\r\n                <td><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/showEchipamenteFromRaport.jsp";from=(178,20);to=(178,74)]
			out.print(ansamblu != null ? 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/showEchipamenteFromRaport.jsp";from=(178,74);to=(181,93)]
			out.print("\r\n                </nobr></td>\r\n                <td>\r\n                    <a class=\"link\" href=\"javascript: void( null)\" onclick=\"printEchipament( ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(181,93);to=(181,116)]
			out.print(echipament.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/showEchipamenteFromRaport.jsp";from=(181,116);to=(184,12)]
			out.print("); return false;\" title=\"Click pentru a vizualiza Fisa de Echipament\">Vizualizare</a>\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/showEchipamenteFromRaport.jsp";from=(184,12);to=(184,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/showEchipamenteFromRaport.jsp";from=(184,17);to=(187,90)]
			out.print("\r\n            <tr noSelect=\"true\" style=\"font-weight:bold;\">\r\n                <td class=\"gsapthead\">&nbsp;</td>\r\n                <td class=\"gsapthead\" title=\"Numarul total de Echipamente\" 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/showEchipamenteFromRaport.jsp";from=(187,90);to=(187,111)]
			out.print(totalEchipamente);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(187,111);to=(189,20)]
			out.print("</td>\r\n                <td colspan=\"3\" align=\"right\" 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/showEchipamenteFromRaport.jsp";from=(189,20);to=(189,69)]
			out.print(PaginationController.printPaginationData(pd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(189,69);to=(192,8)]
			out.print("\r\n                </td>\r\n            </tr>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(192,8);to=(192,13)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showEchipamenteFromRaport.jsp";from=(192,13);to=(201,7)]
			out.print("\r\n    </TABLE>\r\n</form>\r\n<br>\r\n\r\n<script type=\"text/javascript\">\r\n    var tableEchipamente = new Table(\'echipamente\', \"tableEchipamente\");\r\n</script>\r\n\r\n</span>");
// 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);
		}
	}

}
