/* 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.types.Category;
import ro.emid.common.types.CategoryInfo;
import java.util.Map;

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

public class JEE_jsp_WEB_2d_INF_pagelet_lucrariProgramate_showCentre_1471595260038 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-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(1,58);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(2,50);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(3,54);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(4,34);to=(6,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(6,50);to=(9,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(9,0);to=(16,2)]
			
    /**
     * @see ro.emid.lpod.action.category.ShowCentreAction
     */
    final Category[] centre = (Category[]) request.getAttribute("centre");
    final Map<Long, CategoryInfo> categoryInfoMap = (Map<Long, CategoryInfo>) request.getAttribute("categoryInfoMap");
    final Long nrIncidenteTotal = (Long) request.getAttribute("nrIncidenteTotal");

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(16,2);to=(19,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(19,0);to=(19,43)]
			// TagBeginGenerator - start [emid:template-lp]
			/* ----  emid:template-lp ---- */
			web.tag_template_2d_lp_1875650_1618159820409 _jspx_th_emid_template_2d_lp_0 = new web.tag_template_2d_lp_1875650_1618159820409();
			_jspx_resourceInjector.inject(_jspx_th_emid_template_2d_lp_0);
			_jspx_th_emid_template_2d_lp_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_template_2d_lp_0.setParent(null);
			_jspx_th_emid_template_2d_lp_0.setTitle("Centre exploatare");
						out = _jspx_pageContext.pushBody();// Start _jspx_jspAttr0
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(20,37);to=(21,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(21,8);to=(21,29)]
			// CustomJspTag.action() - start
			if (_jspx_method_emid_localizare_2d_lp_0(_jspx_pageContext, null)) {
				return;
			}
			// CustomJspTag.action() - end
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(21,29);to=(22,4)]
// end
			String _jspx_jspAttr0 = ((javax.servlet.jsp.tagext.BodyContent)out).getString();
			_jspx_jspAttr0 = _jspx_jspAttr0.trim();
			out = _jspx_pageContext.popBody();// END _jspx_jspAttr0
			_jspx_th_emid_template_2d_lp_0.setBreadcrumb(_jspx_jspAttr0);
						out = _jspx_pageContext.pushBody();// Start _jspx_jspAttr1
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(23,31);to=(30,12)]
			out.print("\r\n        <table border=0 cellpadding=2 cellspacing=1 width=\"100%\" class=\"gSAPTHEAD\" style=\"background-color: white\">\r\n            <tr>\r\n                <th class=\"gsapthead\" colSpan=2 height=25 nowrap>Centre de Exploatare Electrica:</th>\r\n                <th class=\"gsapthead\" nowrap width=80>Nr. lucr\u0103ri</th>\r\n                <th class=\"gsapthead\" nowrap width=150>Data ultimei edit\u0103ri</th>\r\n            </tr>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(30,12);to=(30,38)]
			 if (null == centre) {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(30,38);to=(36,12)]
			out.print("\r\n            <tr>\r\n                <td>\r\n                    No sunt centre definite ...\r\n                </td>\r\n            </tr>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(36,12);to=(37,55)]
			} else {
                for(int i=0; i<centre.length; i++) { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(37,55);to=(38,20)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(38,20);to=(38,92)]
			 CategoryInfo categoryInfo = categoryInfoMap.get(centre[i].getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(38,92);to=(39,34)]
			out.print("\r\n                    <tr class=\"row");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(39,34);to=(39,42)]
			out.print(i%2);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(39,42);to=(43,37)]
			out.print("\">\r\n                        <td height=50 valign=\"middle\" align=\"center\" width=\"1%\">\r\n                            <img\r\n                                height=25\r\n                                src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(43,37);to=(43,101)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/images/folder_big.gif");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(43,101);to=(46,57)]
			out.print("\"\r\n                                width=46></td>\r\n                        <td height=50>\r\n                            <span style=\"font-size:12px\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(46,57);to=(46,104)]
			out.print(AppConstants.format(centre[i].getCodSap()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(46,104);to=(47,57)]
			out.print("</span> -\r\n                            <A title=\"Lucr\u0103ri programate ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,57);to=(47,81)]
			out.print(centre[i].getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,81);to=(47,102)]
			out.print("\" class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,102);to=(47,128)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,128);to=(47,164)]
			out.print("?action=lucrari-programate&centruId=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,164);to=(47,186)]
			out.print(centre[i].getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,186);to=(47,188)]
			out.print("\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,188);to=(47,212)]
			out.print(centre[i].getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(47,212);to=(48,34)]
			out.print("</A>\r\n                            &nbsp;");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(48,34);to=(48,114)]
			out.print((centre[i].getDescription() == null) ? "": '-' + centre[i].getDescription());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(48,114);to=(51,49)]
			out.print("\r\n                        </td>\r\n                        <td height=50 valign=\"middle\" align=\"center\">\r\n                            <span class=gensmall>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(51,49);to=(51,105)]
			out.print(AppConstants.format(categoryInfo.getCountFise(),""));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(51,105);to=(54,49)]
			out.print("</span>\r\n                        </td>\r\n                        <td height=50 noWrap valign=\"middle\" align=\"center\">\r\n                            <span class=gensmall>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(54,49);to=(54,116)]
			out.print(AppConstants.formatZiSaptaminaData(categoryInfo.getLastDate()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(54,116);to=(57,16)]
			out.print("</span>\r\n                        </td>\r\n                    </tr>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(57,16);to=(57,21)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(57,21);to=(60,57)]
			out.print("\r\n                <tr style=\"font-weight:bold;\">\r\n                    <td class=\"gsapthead\" colspan=\"2\" align=\"right\">&nbsp;Total:&nbsp;</td>\r\n                    <td class=\"gsapthead\" align=\"center\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(60,57);to=(60,78)]
			out.print(nrIncidenteTotal);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(60,78);to=(63,12)]
			out.print("</td>\r\n                    <td class=\"gsapthead\">&nbsp;</td>\r\n                </tr>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(63,12);to=(63,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(63,17);to=(65,4)]
			out.print("\r\n        </table>\r\n    ");
// end
			String _jspx_jspAttr1 = ((javax.servlet.jsp.tagext.BodyContent)out).getString();
			_jspx_jspAttr1 = _jspx_jspAttr1.trim();
			out = _jspx_pageContext.popBody();// END _jspx_jspAttr1
			_jspx_th_emid_template_2d_lp_0.setBody(_jspx_jspAttr1);
			_jspx_th_emid_template_2d_lp_0.doTag();
			// TagBeginGenerator - end [emid:template-lp]
// end
				// TagEndGenerator - start[emid:template-lp]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_template_2d_lp_0);
				// TagEndGenerator - end [emid:template-lp]
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showCentre.jsp";from=(66,19);to=(67,0)]
// 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);
		}
	}


	// CustomJspTag.action() - start
	private boolean _jspx_method_emid_localizare_2d_lp_0(com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext, javax.servlet.jsp.tagext.JspTag _jspx_parent) throws Throwable {
		JspWriter out = _jspx_pageContext.getOut();
			// TagBeginGenerator - start [emid:localizare-lp]
			/* ----  emid:localizare-lp ---- */
			web.tag_localizare_2d_lp_1875650_1618159819121 _jspx_th_emid_localizare_2d_lp_0 = new web.tag_localizare_2d_lp_1875650_1618159819121();
			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();
			_jspx_resourceInjector.inject(_jspx_th_emid_localizare_2d_lp_0);
			_jspx_th_emid_localizare_2d_lp_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_localizare_2d_lp_0.doTag();
			// TagBeginGenerator - end [emid:localizare-lp]
				// TagEndGenerator - start[emid:localizare-lp]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_localizare_2d_lp_0);
		return false;
	}
				// TagEndGenerator - end [emid:localizare-lp]
	// CustomJspTag.action() - end

}
