/* 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.types.CategoryCheckData;
import ro.emid.common.types.CategoryOD;
import ro.emid.common.utils.Util;
import ro.emid.lpod.LpodSessionUtils;
import java.util.List;

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

public class JEE_jsp_WEB_2d_INF_pagelet_dispecer_rapoarte_select_2d_category_2d_od_1471595258179 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/dispecer/rapoarte/select-category-od.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/rapoarte/select-category-od.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/rapoarte/select-category-od.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/rapoarte/select-category-od.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/rapoarte/select-category-od.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/rapoarte/select-category-od.jsp";from=(6,50);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/rapoarte/select-category-od.jsp";from=(7,35);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/dispecer/rapoarte/select-category-od.jsp";from=(9,0);to=(9,46)]
			 if (request.getAttribute("act") !=null) {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(9,46);to=(14,0)]
			out.print("\r\n    <script type=\"text/javascript\">\r\n        window.opener.categoriesChecked();\r\n        window.close();\r\n    </script>\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/rapoarte/select-category-od.jsp";from=(14,0);to=(14,10)]
			}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/rapoarte/select-category-od.jsp";from=(14,10);to=(31,0)]
			out.print("\r\n\r\n<style type=\"text/css\">\r\n    .filiala{\r\n        color :#990033;\r\n    }\r\n\r\n    .sucursala{\r\n        color: #330099 ;\r\n    }\r\n\r\n    .centru{\r\n        color : #006600;\r\n        \r\n    }\r\n</style>\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/rapoarte/select-category-od.jsp";from=(31,0);to=(36,2)]
			
    /** @see ro.emid.lpod.action.dispecer.LoadStructuraOdEvenimenteAction */
    final List filiale = (List) request.getAttribute(JSP_OD.RECORDS);

    final CategoryCheckData checkData = LpodSessionUtils.getCategoriiSelectate(session);

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(36,2);to=(42,45)]
			out.print("\r\n\r\n<TABLE class=\"gsaptd\" align=center border=0 cellPadding=10 cellSpacing=0 width=\"100%\">\r\n    <TBODY>\r\n        <TR>\r\n            <TD>\r\n                <form name=\"zaforma\" action=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(42,45);to=(42,71)]
			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/rapoarte/select-category-od.jsp";from=(42,71);to=(46,20)]
			out.print("\" method=\"post\" style=\"margin: 0px\">\r\n                    <input type=\"hidden\" name=\"action\" value=\"save-checked-categories-od\" />\r\n                    <div class=\"treeContainer\" id=\"treeCategorii\" style=\"overflow: auto; height: 530px\">\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/rapoarte/select-category-od.jsp";from=(46,20);to=(46,70)]
			 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/rapoarte/select-category-od.jsp";from=(46,70);to=(48,20)]
			out.print("\r\n                            Nu sunt filiale definite ...\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/rapoarte/select-category-od.jsp";from=(48,20);to=(53,69)]
			 } else {

                        for( int i = 0; i < filiale.size(); i++) {
                            final CategoryOD f = (CategoryOD) filiale.get( i);

                            final List sucursale = f.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/rapoarte/select-category-od.jsp";from=(53,69);to=(56,83)]
			out.print("\r\n\r\n\r\n                            <div class=\"filiala\" checkName=\"filialaId\" checkValue=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(56,83);to=(56,97)]
			out.print(f.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/rapoarte/select-category-od.jsp";from=(56,97);to=(56,108)]
			out.print("\" checked=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(56,108);to=(56,162)]
			out.print(Util.exists( checkData.getIdFiliale(), f.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/rapoarte/select-category-od.jsp";from=(56,162);to=(56,174)]
			out.print("\" expanded=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(56,174);to=(56,231)]
			out.print(LpodSessionUtils.getFilialaId( session) == f.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/rapoarte/select-category-od.jsp";from=(56,231);to=(57,55)]
			out.print("\">\r\n                                <span class=\"nodeText\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(57,55);to=(57,71)]
			out.print(f.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/rapoarte/select-category-od.jsp";from=(57,71);to=(59,36)]
			out.print("</span>\r\n                                <div class=\"childsContainer\">\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/rapoarte/select-category-od.jsp";from=(59,36);to=(60,94)]
			 if( sucursale != null && sucursale.size() > 0) for (int j = 0; j < sucursale.size(); j++) {
                                        final CategoryOD s = (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/rapoarte/select-category-od.jsp";from=(60,94);to=(61,99)]
			out.print("\r\n                                        <div class=\"sucursala\" checkName=\"sucursalaId\" checkValue=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(61,99);to=(61,113)]
			out.print(s.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/rapoarte/select-category-od.jsp";from=(61,113);to=(61,124)]
			out.print("\" checked=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(61,124);to=(61,180)]
			out.print(Util.exists( checkData.getIdSucursale(), s.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/rapoarte/select-category-od.jsp";from=(61,180);to=(61,192)]
			out.print("\" expanded=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(61,192);to=(61,251)]
			out.print(LpodSessionUtils.getSucursalaId( session) == s.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/rapoarte/select-category-od.jsp";from=(61,251);to=(62,67)]
			out.print("\" >\r\n                                            <span class=\"nodeText\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(62,67);to=(62,83)]
			out.print(s.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/rapoarte/select-category-od.jsp";from=(62,83);to=(64,49)]
			out.print("</span>\r\n                                            <div class=\"childsContainer\">\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/rapoarte/select-category-od.jsp";from=(64,49);to=(66,108)]
			 final List centre = s.getChildren();
                                                    if( centre != null && centre.size() > 0) for (int k = 0; k < centre.size(); k++) {
                                                        final CategoryOD c = (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/rapoarte/select-category-od.jsp";from=(66,108);to=(67,109)]
			out.print("\r\n                                                        <div class=\"centru\" checkName=\"centruId\" checkValue=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(67,109);to=(67,123)]
			out.print(c.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/rapoarte/select-category-od.jsp";from=(67,123);to=(67,134)]
			out.print("\" checked=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(67,134);to=(67,187)]
			out.print(Util.exists( checkData.getIdCentre(), c.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/rapoarte/select-category-od.jsp";from=(67,187);to=(68,83)]
			out.print("\">\r\n                                                            <span class=\"nodeText\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(68,83);to=(68,99)]
			out.print(c.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/rapoarte/select-category-od.jsp";from=(68,99);to=(70,49)]
			out.print("</span>\r\n                                                        </div>\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/rapoarte/select-category-od.jsp";from=(70,49);to=(70,56)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(70,56);to=(73,36)]
			out.print("\r\n                                            </div>\r\n                                        </div>\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/rapoarte/select-category-od.jsp";from=(73,36);to=(73,43)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(73,43);to=(76,23)]
			out.print("\r\n                                </div>\r\n                             </div>\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/rapoarte/select-category-od.jsp";from=(76,23);to=(76,30)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(76,30);to=(78,20)]
			out.print("\r\n                    </div>\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/rapoarte/select-category-od.jsp";from=(78,20);to=(78,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/rapoarte/select-category-od.jsp";from=(78,27);to=(95,0)]
			out.print("\r\n                    <br>\r\n                    <input type=\"submit\" value=\"OK\">&nbsp;&nbsp;\r\n                    <input type=\"reset\" value=\"Reset\">&nbsp;&nbsp;\r\n                    <input type=\"button\" value=\"Renunta\" onclick=\"window.close()\">\r\n                </form>\r\n            </TD>\r\n        </tr>\r\n    </TBODY>\r\n</TABLE>\r\n\r\n<script type=\"text/javascript\">\r\n    var countSelected = 0;\r\n    var treeCategorii = new StaticTree( \"treeCategorii\", false, true, function( node){\r\n\r\n    });\r\n</script>\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/rapoarte/select-category-od.jsp";from=(95,0);to=(95,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/dispecer/rapoarte/select-category-od.jsp";from=(95,5);to=(98,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);
		}
	}

}
