/* 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.constants.AppConstants;
import ro.emid.common.db.*;
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.DataObj;
import ro.emid.common.types.Incident;
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_showIncidenteFromRaport_1495030461545 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/showIncidenteFromRaport.jsp";from=(203,0);to=(276,2)]

    private String getDenAnsamble(final Incident incident){

        final StringBuffer temp = new StringBuffer();
//        final String statie = getNomSAPText(incident.getStatieId(), NomConstants.NOM_STATII);
        final String statie = AppConstants.format(incident.getStatieDen());
//        final String bobina = getNomSAPText(incident.getBobinaId(), NomConstants.NOM_BOBINE);
        final String bobina = AppConstants.format(incident.getBobinaDen());
//        final String celula = getNomSAPText(incident.getCelulaId(), NomConstants.NOM_CELULE);
        final String celula = AppConstants.format(incident.getCelulaDen());
//        final String bara = getNomSAPText(incident.getBaraId(), NomConstants.NOM_BARE);
        final String bara = AppConstants.format(incident.getBaraDen());
//        final String linie = getNomSAPText(incident.getLinieId(), NomConstants.NOM_LINII);
        final String linie = AppConstants.format(incident.getLinieDen());
//        final String derivatie = getNomSAPText(incident.getDerivatieId(), NomConstants.NOM_DERIVATIE);
        final String derivatie = AppConstants.format(incident.getDerivatieDen());
//        final String paPt = getNomSAPText(incident.getPA_PT_Id(), NomConstants.NOM_PA_PT);
        final String paPt = AppConstants.format(incident.getPaptDen());
//        final String trafo = getNomSAPText(incident.getTrafoId(), NomConstants.NOM_TRAFO);
        final String trafo = AppConstants.format(incident.getTrafoDen());

        if(statie != null && statie.length() >= 2){
            temp.append("2.5 Statie : ").append(statie);
            temp.append("<br>");
        }
        if(bobina != null && bobina.length() >= 2){
            temp.append("2.5.1 Bobina : ").append(bobina);
            temp.append("<br>");
        }
        if(celula != null && celula.length() >= 2){
            temp.append("2.6 Celula : ").append(celula);
            temp.append("<br>");
        }
        if(bara != null && bara.length() >= 2){
            temp.append("2.6.1 Bara : ").append(bara);
            temp.append("<br>");
        }
        if(linie != null && linie.length() >= 2){
            temp.append("2.7 Linie : ").append(linie);
            temp.append("<br>");
        }
        if(derivatie != null && derivatie.length() >= 2){
            temp.append("2.7.1 Derivatie : ").append(derivatie);
            temp.append("<br>");
        }
        if(paPt != null && paPt.length() >= 2){
            temp.append("2.8 PA/PT : ").append(paPt);
            temp.append("<br>");
        }
        if(trafo != null && trafo.length() >= 2){
            temp.append("2.9 Trafo : ").append(trafo);
            temp.append("<br>");
        }

        return temp.toString();
    }

    //returns den from nomenclator
    private String getNomSAPText(final long id, final int tip) {
        if (id < 0 ){ return "";}
        DataObj data = null;

        try {
            if( id > 0) data = DataDB.getById(id, DataDB.isLocFunctional(tip));
        } catch (DatabaseException e) {
        }

        String result = "-";
        if (data != null) {
            result = data.getNume();
        }
        return result;
    }
// 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/showIncidenteFromRaport.jsp";from=(1,58);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/showIncidenteFromRaport.jsp";from=(2,40);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/showIncidenteFromRaport.jsp";from=(3,66);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/showIncidenteFromRaport.jsp";from=(4,55);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/showIncidenteFromRaport.jsp";from=(5,56);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/showIncidenteFromRaport.jsp";from=(6,50);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/showIncidenteFromRaport.jsp";from=(7,49);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/showIncidenteFromRaport.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/showIncidenteFromRaport.jsp";from=(9,53);to=(10,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.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/showIncidenteFromRaport.jsp";from=(11,73);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/showIncidenteFromRaport.jsp";from=(12,67);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/showIncidenteFromRaport.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/showIncidenteFromRaport.jsp";from=(14,42);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/showIncidenteFromRaport.jsp";from=(15,39);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/showIncidenteFromRaport.jsp";from=(16,44);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/showIncidenteFromRaport.jsp";from=(17,38);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/showIncidenteFromRaport.jsp";from=(18,34);to=(20,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/showIncidenteFromRaport.jsp";from=(20,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/showIncidenteFromRaport.jsp";from=(23,0);to=(118,2)]
			

    final long idAnsamblu = ObjectUtils.getLongValue( request.getParameter("idAnsamblu"), -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("rapoarteIncidenteFiltru.append_to");
    final Long sData_start = (Long )session.getAttribute("rapoarteIncidenteFiltru.data_start");
    final Long sData_stop = (Long )session.getAttribute("rapoarteIncidenteFiltru.data_stop");

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

    final String _cond = request.getParameter("_cond");
    if( !ro.emid.common.utils.StringUtils.isZeroLength( _cond)){
        condSql.append( _cond);
    }

    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);
    }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", ">=", new Timestamp( sData_start.longValue()));
    }

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


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

    final Incident[] incidente = IncidentAccessDB.getAllIncidente( filtru, "FILIALA_ID ASC, SUCURSALA_ID ASC, SECTIE_ID ASC, NUMAR_INCIDENT ", "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 incidente i 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( incidente != null ? incidente.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/showIncidenteFromRaport.jsp";from=(118,2);to=(140,8)]
			out.print("\r\n\r\n\r\n<style type=\"text/css\">\r\n    .underlined{\r\n        /*border-top-style: solid;*/\r\n        /*border-top-width: 1px;*/\r\n        /*border-top-color: gray;*/\r\n    }\r\n</style>\r\n\r\n<form method=\"post\" action=\"\">\r\n    <TABLE id=\"incidente\" border=0 cellPadding=2 cellSpacing=1 width=\"96%\" class=\"gSAPTHEAD\" style=\"BACKGROUND-COLOR: white; margin: 10px\">\r\n        <col align=\"right\" style=\"padding-right:5px\">\r\n        <tr noSelect=\"true\">\r\n            <TH class=\"gsapthead\" height=25 width=\"3%\" noWrap>&nbsp;Nr. Fisa <br/> Inc.:&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 noWrap align=\"left\">&nbsp;Instalatii afectate:&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/showIncidenteFromRaport.jsp";from=(140,8);to=(140,40)]
			 if( incidente.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/showIncidenteFromRaport.jsp";from=(140,40);to=(144,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/showIncidenteFromRaport.jsp";from=(144,8);to=(144,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/showIncidenteFromRaport.jsp";from=(144,20);to=(145,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(145,8);to=(145,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/showIncidenteFromRaport.jsp";from=(145,39);to=(146,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(146,8);to=(146,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/showIncidenteFromRaport.jsp";from=(146,55);to=(147,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(147,8);to=(173,10)]
			  for (int i = 0; i < incidente.length; i++) {
            final Incident incident = incidente[i];

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

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

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

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

            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/showIncidenteFromRaport.jsp";from=(173,10);to=(175,43)]
			out.print("\r\n\r\n            <tr ondblclick=\"printIncident( ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(175,43);to=(175,64)]
			out.print(incident.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/showIncidenteFromRaport.jsp";from=(175,64);to=(176,36)]
			out.print(")\" title=\"Dublu-click pentru a vizualiza Fisa de Incident\">\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/showIncidenteFromRaport.jsp";from=(176,36);to=(176,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/showIncidenteFromRaport.jsp";from=(176,50);to=(177,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/showIncidenteFromRaport.jsp";from=(177,20);to=(177,52)]
			out.print(incident.getNumarIncident());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(177,52);to=(179,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/showIncidenteFromRaport.jsp";from=(179,27);to=(179,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/showIncidenteFromRaport.jsp";from=(179,41);to=(180,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/showIncidenteFromRaport.jsp";from=(180,20);to=(180,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/showIncidenteFromRaport.jsp";from=(180,36);to=(180,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/showIncidenteFromRaport.jsp";from=(180,39);to=(180,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/showIncidenteFromRaport.jsp";from=(180,55);to=(180,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/showIncidenteFromRaport.jsp";from=(180,58);to=(180,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/showIncidenteFromRaport.jsp";from=(180,74);to=(183,20)]
			out.print("\r\n                </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/showIncidenteFromRaport.jsp";from=(183,20);to=(183,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/showIncidenteFromRaport.jsp";from=(183,74);to=(186,20)]
			out.print("\r\n                </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/showIncidenteFromRaport.jsp";from=(186,20);to=(186,36)]
			out.print(denAnsamblu);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(186,36);to=(189,91)]
			out.print("\r\n                </td>\r\n                <td>\r\n                    <a class=\"link\" href=\"javascript: void( null)\" onclick=\"printIncident( ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(189,91);to=(189,112)]
			out.print(incident.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/showIncidenteFromRaport.jsp";from=(189,112);to=(192,12)]
			out.print("); return false;\" title=\"Click pentru a vizualiza Fisa de Incident\">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/showIncidenteFromRaport.jsp";from=(192,12);to=(192,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/showIncidenteFromRaport.jsp";from=(192,17);to=(193,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(193,8);to=(193,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/showIncidenteFromRaport.jsp";from=(193,13);to=(197,16)]
			out.print("\r\n\r\n        <tr style=\"font-weight:bold;\" noSelect=\"true\">\r\n            <td class=\"gsapthead\" colspan=\"5\" align=\"right\">\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(197,16);to=(197,65)]
			out.print(PaginationController.printPaginationData(pd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/rapoarte/showIncidenteFromRaport.jsp";from=(197,65);to=(203,0)]
			out.print("\r\n            </td>\r\n        </tr>\r\n    </TABLE>\r\n</form>\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/showIncidenteFromRaport.jsp";from=(276,2);to=(281,7)]
			out.print("\r\n\r\n<script type=\"text/javascript\">\r\n    var tableIncidente = new Table(\'incidente\', \"tableIncidente\");\r\n</script>\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);
		}
	}

}
