/* 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.action.dispecer.JSP_OD;
import ro.emid.common.constants.AppConstants;
import ro.emid.common.constants.RoleConstants;
import ro.emid.common.types.CategoryOD;
import ro.emid.common.types.User;
import ro.emid.common.utils.SessionUtils;
import java.util.Date;
import java.util.List;
import java.util.Map;

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

public class JEE_jsp_WEB_2d_INF_pagelet_dispecer_structura_2d_od_2d_evenimente_1557227329760 extends com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase{
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(23,0);to=(43,2)]

    private long getCount(Map<Long, Map<String, Object>> statistics, CategoryOD categoryOD) {
        Map<String, Object> categoryStatistics = statistics.get(categoryOD.getId());
        if (categoryStatistics == null) return 0;

        Long count = (Long) categoryStatistics.get("count");
        if (count == null) return 0;

        return count;
    }

    private Date getDate(Map<Long, Map<String, Object>> statistics, CategoryOD categoryOD) {
        Map<String, Object> categoryStatistics = statistics.get(categoryOD.getId());
        if (categoryStatistics == null) return null;

        Date date = (Date) categoryStatistics.get("lastDate");
        if (date == null) return null;

        return date;
    }
// 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-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.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/dispecer/structura-od-evenimente.jsp";from=(2,58);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/dispecer/structura-od-evenimente.jsp";from=(3,59);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/dispecer/structura-od-evenimente.jsp";from=(4,52);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(5,46);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/dispecer/structura-od-evenimente.jsp";from=(6,54);to=(7,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(7,35);to=(8,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(8,35);to=(9,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(9,34);to=(11,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(11,50);to=(14,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(14,0);to=(21,2)]
			
    User user = SessionUtils.getUserLogat(session);

    /** @see ro.emid.lpod.action.dispecer.LoadStructuraOdEvenimenteAction */
    final List filiale = (List) request.getAttribute(JSP_OD.RECORDS);

    final Map<Long, Map<String, Object>> statistics = (Map<Long, Map<String, Object>>) request.getAttribute("statistics");

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(21,2);to=(23,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(43,2);to=(45,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(45,0);to=(45,45)]
			// TagBeginGenerator - start [emid:template-od]
			/* ----  emid:template-od ---- */
			web.tag_template_2d_od_1875650_1618159820883 _jspx_th_emid_template_2d_od_0 = new web.tag_template_2d_od_1875650_1618159820883();
			_jspx_resourceInjector.inject(_jspx_th_emid_template_2d_od_0);
			_jspx_th_emid_template_2d_od_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_template_2d_od_0.setParent(null);
			_jspx_th_emid_template_2d_od_0.setTitle("Structura dispeceri");
						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/dispecer/structura-od-evenimente.jsp";from=(46,37);to=(47,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(47,8);to=(47,29)]
			// CustomJspTag.action() - start
			if (_jspx_method_emid_localizare_2d_od_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/dispecer/structura-od-evenimente.jsp";from=(47,29);to=(48,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_od_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/dispecer/structura-od-evenimente.jsp";from=(49,31);to=(76,12)]
			out.print("\r\n\r\n        <style type=\"text/css\">\r\n            .filiala {\r\n                background-color: #CACADF;\r\n                height: 30px;\r\n            }\r\n\r\n            .sucursala {\r\n                /*background-color: #D9D9E8;*/\r\n                background-color: #E9EEF4;\r\n                height: 30px;\r\n            }\r\n\r\n            .centru {\r\n                background-color: #f7faff;\r\n                height: 30px;\r\n            }\r\n\r\n        </style>\r\n\r\n        <table 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>Structura dispeceri:</th>\r\n                <th class=\"gsapthead\" nowrap width=120>Num\u0103r evenimente</th>\r\n                <th class=\"gsapthead\" nowrap width=200>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/dispecer/structura-od-evenimente.jsp";from=(76,12);to=(78,63)]
			
                long total = 0;
                if (null == filiale || filiale.size() == 0) {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(78,63);to=(84,12)]
			out.print("\r\n            <TR>\r\n                <TD>\r\n                    Nu sunt filiale 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/dispecer/structura-od-evenimente.jsp";from=(84,12);to=(93,14)]
			
            } else {
                long itemCount = 0;
                final int nivelOD = user.getOdLevel();
                final String idCategOD = "" + user.getOdCategoryId();
                for (int i = 0; i < filiale.size(); i++) {
                    final CategoryOD itemFiliala = (CategoryOD) filiale.get(i);

                    final List sucursale = itemFiliala.getChildren();
            
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(93,14);to=(95,12)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(95,12);to=(95,58)]
			 if (AppConstants.runAtAparatCentral()) { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(95,58);to=(99,53)]
			out.print("\r\n            <tr class=\"filiala\">\r\n                <td></td>\r\n                <td style=\"padding-left:2px\">\r\n                    <A title=\"Setare filiala curenta ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(99,53);to=(99,79)]
			out.print(itemFiliala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(99,79);to=(100,29)]
			out.print("\" class=\"link\"\r\n                       href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(100,29);to=(100,55)]
			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/dispecer/structura-od-evenimente.jsp";from=(100,55);to=(100,86)]
			out.print("?action=setLocatieOD&idFiliala=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(100,86);to=(100,110)]
			out.print(itemFiliala.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(100,110);to=(101,24)]
			out.print("&redirect=structura-od-evenimente\">\r\n                        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(101,24);to=(101,50)]
			out.print(itemFiliala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(101,50);to=(107,36)]
			out.print("\r\n                    </A>&nbsp;\r\n\r\n                </td>\r\n                <td align=\"center\">\r\n                                <SPAN class=gensmall>\r\n                                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(107,36);to=(107,87)]
			out.print(itemCount = getCount(statistics, itemFiliala));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(107,87);to=(111,20)]
			out.print("\r\n                                </SPAN>\r\n                </td>\r\n                <td align=\"center\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(111,20);to=(111,93)]
			out.print(AppConstants.formatZiSaptaminaData(getDate(statistics, itemFiliala)));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(111,93);to=(115,12)]
			out.print("\r\n                </td>\r\n            </tr>\r\n\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(115,12);to=(115,19)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(115,19);to=(117,12)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(117,12);to=(120,14)]
			 if (sucursale != null && sucursale.size() > 0) for (int j = 0; j < sucursale.size(); j++) {
                final CategoryOD itemSucursala = (CategoryOD) sucursale.get(j);

            
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(120,14);to=(125,20)]
			out.print("\r\n            <tr class=\"sucursala\">\r\n                <td></td>\r\n                <td style=\"padding-left:10px\">\r\n\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(125,20);to=(125,173)]
			 if (nivelOD == RoleConstants.NIVEL_FULL || nivelOD <= RoleConstants.NIVEL_DED && (String.valueOf(itemSucursala.getId())).indexOf(idCategOD) == 0) { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(125,173);to=(126,56)]
			out.print("\r\n                    <A title=\"Lista operatiuni dispecer ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(126,56);to=(126,84)]
			out.print(itemSucursala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(126,84);to=(127,29)]
			out.print("\" class=\"link\"\r\n                       href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(127,29);to=(127,55)]
			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/dispecer/structura-od-evenimente.jsp";from=(127,55);to=(127,86)]
			out.print("?action=setLocatieOD&idFiliala=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(127,86);to=(127,110)]
			out.print(itemFiliala.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(127,110);to=(127,123)]
			out.print("&idSucursala=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(127,123);to=(127,149)]
			out.print(itemSucursala.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(127,149);to=(128,24)]
			out.print("&redirect=lista-evenimente-dispecer\">\r\n                        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(128,24);to=(128,52)]
			out.print(itemSucursala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(128,52);to=(130,20)]
			out.print("\r\n                    </A>&nbsp;\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(130,20);to=(130,34)]
			 } else { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(130,34);to=(132,40)]
			out.print("\r\n                                    <span>\r\n                                        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(132,40);to=(132,68)]
			out.print(itemSucursala.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(132,68);to=(134,20)]
			out.print("\r\n                                    </span>\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(134,20);to=(134,27)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(134,27);to=(139,36)]
			out.print("\r\n\r\n                </td>\r\n                <td align=\"center\">\r\n                                <SPAN class=gensmall>\r\n                                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(139,36);to=(139,89)]
			out.print(itemCount = getCount(statistics, itemSucursala));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(139,89);to=(140,36)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(140,36);to=(140,61)]
			 total += itemCount; 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(140,61);to=(144,20)]
			out.print("\r\n                                </SPAN>\r\n                </td>\r\n                <td align=\"center\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(144,20);to=(144,95)]
			out.print(AppConstants.formatZiSaptaminaData(getDate(statistics, itemSucursala)));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(144,95);to=(148,12)]
			out.print("\r\n                </td>\r\n            </tr>\r\n\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(148,12);to=(153,14)]
			
                final List centre = itemSucursala.getChildren();
                if (centre != null && centre.size() > 0) for (int k = 0; k < centre.size(); k++) {
                    final CategoryOD itemCentru = (CategoryOD) centre.get(k);

            
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(153,14);to=(158,20)]
			out.print("\r\n            <tr class=\"centru\">\r\n                <td></td>\r\n                <td style=\"padding-left:30px\">\r\n\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(158,20);to=(158,172)]
			 if (nivelOD == RoleConstants.NIVEL_FULL || nivelOD <= RoleConstants.NIVEL_DED_L && (String.valueOf(itemCentru.getId())).indexOf(idCategOD) == 0) { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(158,172);to=(159,56)]
			out.print("\r\n                    <A title=\"Lista operatiuni dispecer ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(159,56);to=(159,81)]
			out.print(itemCentru.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(159,81);to=(160,29)]
			out.print("\" class=\"link\"\r\n                       href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(160,29);to=(160,55)]
			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/dispecer/structura-od-evenimente.jsp";from=(160,55);to=(160,86)]
			out.print("?action=setLocatieOD&idFiliala=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(160,86);to=(160,110)]
			out.print(itemFiliala.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(160,110);to=(160,123)]
			out.print("&idSucursala=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(160,123);to=(160,149)]
			out.print(itemSucursala.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(160,149);to=(160,159)]
			out.print("&idCentru=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(160,159);to=(160,182)]
			out.print(itemCentru.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(160,182);to=(161,24)]
			out.print("&redirect=lista-evenimente-dispecer\">\r\n                        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(161,24);to=(161,49)]
			out.print(itemCentru.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(161,49);to=(163,20)]
			out.print("\r\n                    </A>&nbsp;\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(163,20);to=(163,34)]
			 } else { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(163,34);to=(165,48)]
			out.print("\r\n                                            <span>\r\n                                                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(165,48);to=(165,73)]
			out.print(itemCentru.getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(165,73);to=(167,20)]
			out.print("\r\n                                            </span>\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(167,20);to=(167,27)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(167,27);to=(171,44)]
			out.print("\r\n                </td>\r\n                <td align=center>\r\n                                        <SPAN class=gensmall>\r\n                                            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(171,44);to=(171,94)]
			out.print(itemCount = getCount(statistics, itemCentru));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(171,94);to=(172,44)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(172,44);to=(172,69)]
			 total += itemCount; 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(172,69);to=(176,20)]
			out.print("\r\n                                        </SPAN>\r\n                </td>\r\n                <td align=center>\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(176,20);to=(176,92)]
			out.print(AppConstants.formatZiSaptaminaData(getDate(statistics, itemCentru)));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(176,92);to=(179,12)]
			out.print("\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/dispecer/structura-od-evenimente.jsp";from=(179,12);to=(181,14)]
			
                    }
            
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(181,14);to=(183,12)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(183,12);to=(185,14)]
			
                    }
            
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(185,14);to=(186,12)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(186,12);to=(186,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(186,17);to=(189,53)]
			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/dispecer/structura-od-evenimente.jsp";from=(189,53);to=(189,63)]
			out.print(total);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(189,63);to=(193,12)]
			out.print("\r\n                </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/dispecer/structura-od-evenimente.jsp";from=(193,12);to=(193,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(193,17);to=(196,4)]
			out.print("\r\n        </table>\r\n\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_od_0.setBody(_jspx_jspAttr1);
			_jspx_th_emid_template_2d_od_0.doTag();
			// TagBeginGenerator - end [emid:template-od]
// end
				// TagEndGenerator - start[emid:template-od]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_template_2d_od_0);
				// TagEndGenerator - end [emid:template-od]
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/structura-od-evenimente.jsp";from=(197,19);to=(199,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_od_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-od]
			/* ----  emid:localizare-od ---- */
			web.tag_localizare_2d_od_1875650_1618159819417 _jspx_th_emid_localizare_2d_od_0 = new web.tag_localizare_2d_od_1875650_1618159819417();
			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_od_0);
			_jspx_th_emid_localizare_2d_od_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_localizare_2d_od_0.doTag();
			// TagBeginGenerator - end [emid:localizare-od]
				// TagEndGenerator - start[emid:localizare-od]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_localizare_2d_od_0);
		return false;
	}
				// TagEndGenerator - end [emid:localizare-od]
	// CustomJspTag.action() - end

}
