/* 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.types.Nomenclator;
import ro.emid.common.db.NomAccessDB;
import ro.emid.common.types.Reclamatie;
import ro.emid.common.constants.*;
import ro.emid.common.db.CategoryAccessDB;
import org.apache.log4j.Logger;
import ro.emid.common.utils.*;
import ro.emid.common.types.User;
import ro.emid.common.types.Category;
import ro.emid.common.utils.SessionUtils;
import ro.emid.callcenter.CallcenterSessionUtils;

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

public class JEE_jsp_WEB_2d_INF_pagelet_callcenter_atasareReclamatii_1758633155641 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/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(1,53);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(2,50);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(3,52);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(4,47);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(5,55);to=(6,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(6,44);to=(7,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(7,43);to=(9,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/declaratii.jsp";from=(1,46);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/declaratii.jsp";from=(2,50);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/declaratii.jsp";from=(3,54);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/declaratii.jsp";from=(4,62);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/declaratii.jsp";from=(5,50);to=(7,0)]
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/declaratii.jsp";from=(7,0);to=(14,2)]
			
    final User user = SessionUtils.getUserLogat(session);
    final boolean printVersion = request.getParameter("printVersion") != null && "true".equals( request.getParameter("printVersion")) || request.getAttribute("printVersion") != null && "true".equals( request.getAttribute("printVersion")) ;
    final Category filiala = CallcenterSessionUtils.getFiliala(session);
    final Category sucursala = CallcenterSessionUtils.getSucursala(session);
    final Category centruExploatare = CallcenterSessionUtils.getCentru(session);
    final Category formatiaDeLucru = CallcenterSessionUtils.getFormatia(session);

// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(9,35);to=(11,0)]
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(11,0);to=(20,2)]
			

    int trimiteLa = -1;
    final Object o = session.getAttribute(ro.emid.common.constants.SessionConstants.TRIMITE_LA_TIP);
    if (o != null) trimiteLa = ((Integer) o).intValue();

    if (trimiteLa == -1) {
        trimiteLa = Reclamatie.LEGAT_LA_INCIDENT;
    }

// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(20,2);to=(57,42)]
			out.print("\r\n\r\n<style type=\"text/css\">\r\n    #reclamatiiTableContainer{\r\n        width: 100%;\r\n        height: 470px;\r\n    }\r\n\r\n    #destinationObjectTableContainer{\r\n        height: 470px;\r\n        width: 100%;\r\n    }\r\n\r\n    fieldset{\r\n        margin: 2px;\r\n    }\r\n\r\n\r\n    .bb{\r\n        border-bottom:#cccccc 1px solid;\r\n    }\r\n\r\n    .left-side{\r\n        float: left;\r\n        width: 60%;\r\n    }\r\n\r\n    .right-side{\r\n        float: right;\r\n        width: 39.5%;\r\n    }\r\n\r\n    .top-side{\r\n\r\n    }\r\n</style>\r\n\r\n<form id=\"zaforma\" name=\"zaforma\" action=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(57,42);to=(57,68)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(57,68);to=(66,20)]
			out.print("\" method=\"post\" style=\"margin-top: 0px\">\r\n<table width=\"100%\" border=\"0\">\r\n    <INPUT TYPE=\"hidden\" NAME=\"action\" VALUE=\"save-atasare-reclamatii\" />\r\n    <tr valign=\"top\">\r\n        <td colspan=\"2\">\r\n            <div class=\"left-side\">\r\n                <div class=\"top-side\">\r\n                    &nbsp;Lista Reclamatii:&nbsp;\r\n\r\n                    ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(66,20);to=(66,72)]
			 Long []ids = UserUtils.getIdLocatiiFull(user); 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(66,72);to=(67,20)]
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(67,20);to=(67,61)]
			 if( ids != null && ids.length > 0){ 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(67,61);to=(70,24)]
			out.print("\r\n                    &nbsp;&nbsp;\r\n                    <select id=\"zonaSelectata\" name=\"zonaSelectata\" onchange=\"loadReclamatii();\" class=\"gSAPSelect\">\r\n                        ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(70,24);to=(70,50)]
			 if( ids.length > 1){ 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(70,50);to=(72,24)]
			out.print("\r\n                        <option value=\"-1\">Toate locatiile:</option>\r\n                        ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(72,24);to=(72,31)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(72,31);to=(73,24)]
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(73,24);to=(79,44)]
			 for (int i = 0; i < ids.length; i++) {

                            long idLocatie = ids[i].longValue();

                            Category c = CategoryAccessDB.getById(idLocatie);

                            if(c != null){
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(79,44);to=(80,39)]
			out.print("\r\n                        <option value=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(80,39);to=(80,53)]
			out.print(c.getId());
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(80,53);to=(80,55)]
			out.print("\">");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(80,55);to=(80,71)]
			out.print(c.getName());
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(80,71);to=(81,24)]
			out.print("</option>\r\n                        ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(81,24);to=(81,29)]
			}
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(81,29);to=(82,24)]
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(82,24);to=(82,29)]
			}
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(82,29);to=(84,20)]
			out.print("\r\n                    </select>\r\n                    ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(84,20);to=(84,26)]
			 }
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(84,26);to=(86,20)]
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(86,20);to=(88,22)]
			
                        final int tipCount = ro.emid.common.utils.ObjectUtils.getIntValue(session.getAttribute("tipCountReclamatii"), 1);
                    
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(88,22);to=(89,75)]
			out.print("\r\n                    <input type=\"radio\" name=\"tipCount\" value=\"1\" id=\"100\" ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(89,75);to=(89,104)]
			out.print(tipCount==1?"checked":"");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(89,104);to=(90,75)]
			out.print(" onclick=\"loadReclamatii(null, 1)\"><label for=\"100\">Ultimele 100</label>&nbsp;\r\n                    <input type=\"radio\" name=\"tipCount\" value=\"2\" id=\"all\" ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(90,75);to=(90,104)]
			out.print(tipCount==2?"checked":"");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(90,104);to=(100,39)]
			out.print(" onclick=\"loadReclamatii(null, 2)\"><label for=\"all\">Toate</label>&nbsp;\r\n                </div>\r\n                <div id=\"reclamatiiTableContainer\" class=\"tableContainer\">\r\n                    <!-- se incarca la apelul metodei loadReclamatii(); -->\r\n                </div>\r\n            </div>\r\n            <div class=\"right-side\" style=\"display: inline\">\r\n                <div class=\"top-side\">\r\n                    Lista &nbsp;&nbsp;\r\n                    <select name=\"trimiteLa\" onchange=\"loadDestinationObjectList(); $(\'configurareFiltru\').focus();\" class=\"gSAPSelect\">\r\n                        <option value=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(100,39);to=(100,72)]
			out.print(Reclamatie.LEGAT_LA_INCIDENT);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(100,72);to=(100,74)]
			out.print("\" ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(100,74);to=(100,151)]
			out.print(trimiteLa == Reclamatie.LEGAT_LA_INCIDENT ? "selected=\"selected\"" : "");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(100,151);to=(101,39)]
			out.print(" >Incidente</option>\r\n                        <option value=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(101,39);to=(101,75)]
			out.print(Reclamatie.LEGAT_LA_DERANJAMENT);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(101,75);to=(101,77)]
			out.print("\" ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(101,77);to=(101,157)]
			out.print(trimiteLa == Reclamatie.LEGAT_LA_DERANJAMENT ? "selected=\"selected\"" : "");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(101,157);to=(103,24)]
			out.print(" >Deranjamente</option>\r\n\r\n                        ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(103,24);to=(103,66)]
			 if(AppConstants.MODUL_LP1_ENABLED ){ 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(103,66);to=(104,43)]
			out.print("\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(104,43);to=(104,75)]
			out.print(Reclamatie.LEGAT_LA_LUCRARE);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(104,75);to=(104,77)]
			out.print("\" ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(104,77);to=(104,153)]
			out.print(trimiteLa == Reclamatie.LEGAT_LA_LUCRARE ? "selected=\"selected\"" : "");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(104,153);to=(105,43)]
			out.print(" >LP</option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(105,43);to=(105,76)]
			out.print(Reclamatie.LEGAT_LA_LUCRARE2);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(105,76);to=(105,78)]
			out.print("\" ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(105,78);to=(105,155)]
			out.print(trimiteLa == Reclamatie.LEGAT_LA_LUCRARE2 ? "selected=\"selected\"" : "");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(105,155);to=(106,24)]
			out.print(" >LP2</option>\r\n                        ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(106,24);to=(106,36)]
			 }else{ 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(106,36);to=(107,43)]
			out.print("\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(107,43);to=(107,76)]
			out.print(Reclamatie.LEGAT_LA_LUCRARE2);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(107,76);to=(107,78)]
			out.print("\" ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(107,78);to=(107,155)]
			out.print(trimiteLa == Reclamatie.LEGAT_LA_LUCRARE2 ? "selected=\"selected\"" : "");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(107,155);to=(108,24)]
			out.print(" >LP</option>\r\n                        ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(108,24);to=(108,31)]
			 } 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(108,31);to=(121,12)]
			out.print("\r\n                    </select>\r\n                    &nbsp; <input type=\"button\" id=\"configurareFiltru\" title=\"Click pentru a specifica criterii de filtrare\" onclick=\"showFiltru()\" value=\"Configurare filtru\"/>&nbsp;\r\n                </div>\r\n                <div id=\"destinationObjectTableContainer\" class=\"tableContainer\">\r\n                    <!-- se incarca la apelul metodei loadDestinationObjectList(); -->\r\n                </div>\r\n            </div>\r\n        </td>\r\n    </tr>\r\n\r\n    <tr>\r\n        <td align=\"left\">\r\n            ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(121,12);to=(121,49)]
			if(GlobalAppConstants.CIR_ACTIV){
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(121,49);to=(122,16)]
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(122,16);to=(122,95)]
			 final Nomenclator[] ciruri = NomAccessDB.getAllNom(NomConstants.NOM_CIR); 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(122,95);to=(124,30)]
			out.print("\r\n                Retransmite catre:&nbsp;\r\n                <select name=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(124,30);to=(124,62)]
			out.print(ReclamatieConstants.COD_CIR);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(124,62);to=(126,20)]
			out.print("\" class=\"gSAPSelect\" onchange=\" enableRetransmiteButton()\">\r\n                    <option value=\"-1\">Selectati:</option>\r\n                    ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(126,20);to=(126,67)]
			 for (int i = 0; i < ciruri.length; i++) { 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(126,67);to=(127,39)]
			out.print("\r\n                        <option value=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(127,39);to=(127,62)]
			out.print(ciruri[i].getCod());
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(127,62);to=(127,65)]
			out.print("\" >");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(127,65);to=(127,94)]
			out.print(ciruri[i].getDescriere());
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(127,94);to=(128,20)]
			out.print("</option>\r\n                    ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(128,20);to=(128,26)]
			} 
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(128,26);to=(131,12)]
			out.print("\r\n                </select>&nbsp;&nbsp;\r\n                <input type=\"button\" name=\"retransmiteButton\" onclick=\"retransmitere()\" value=\"Retransmite\" /> &nbsp;&nbsp;\r\n            ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(131,12);to=(131,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(131,17);to=(136,12)]
			out.print("\r\n            <input type=\"button\" name=\"arhivareButton\" disabled=\"disabled\" onclick=\"arhivareReclamatii()\" value=\"Arhivare Reclamatii\" />\r\n        </td>\r\n        <td align=\"right\">\r\n            <input type=\"button\" name=\"save\" value=\"Atasare Reclamatii\" disabled onclick=\"onSalveaza()\">\r\n            ");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(136,92);to=(142,29)]
			out.print("\r\n        </td>\r\n    </tr>\r\n</table>\r\n</form>\r\n\r\n<form name=\"refresh\" action=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(142,29);to=(142,61)]
			out.print(GlobalAppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(142,61);to=(156,12)]
			out.print("\" method=\"post\">\r\n    <input type=\"hidden\" name=\"action\" value=\"callcenter_legareReclamatii\">\r\n</form>\r\n\r\n\r\n<span id=\"waitPopup\" style=\"position: absolute; left: 0; top: 0; font-size: 12px; background-color: #ff6666; color: black; display: none\">\r\n    Va rugam asteptati ...\r\n</span>\r\n\r\n<span id=\"messagePopup\" style=\"padding:5px; font-weight:bold; z-index: 10000; position: absolute; left: 200px; top: 50px; font-size: 12px; border:1px solid red; background-color: #ffffcc; color: black; display: none\">\r\n    <span id=\"messageContainer\">Message goes here ...</span>&nbsp; <a href=\"javascript: onOK();\">OK</a>\r\n</span>\r\n\r\n\r\n<embed src=\"");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(156,12);to=(156,47)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(156,47);to=(158,0)]
			out.print("/newItems.wav\" autostart=false width=0 height=0 id=\"newItems\" enablejavascript=\"true\">\r\n\r\n");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(158,67);to=(210,26)]
			out.print("\r\n\r\n\r\n\r\n<script type=\"text/javascript\">\r\n    function simulateNewMessage(){\r\n        showPopupMessage(\"A fost inregistrata o noua reclamatie\");\r\n        playNewItems();\r\n    }\r\n\r\n    function playNewItems() {\r\n        try{\r\n            var thissound=document.getElementById(\"newItems\");\r\n            thissound.Play();\r\n        }catch(e){\r\n        }\r\n    }\r\n\r\n    function showPopupMessage( message){\r\n        $(\"messageContainer\").innerHTML = message;\r\n        Element.show( \"messagePopup\");\r\n    }\r\n    \r\n    function onOK(){\r\n        $(\"messageContainer\").innerHTML = \"\";\r\n        Element.hide(\"messagePopup\");\r\n    }\r\n\r\n    function arhivareReclamatii(){\r\n        var countReclamatii = getCountReclamatiiSelected();\r\n\r\n        if( countReclamatii > 0){\r\n            var message = \"Doriti sa ARHIVATI reclamatiile selectate ?\";\r\n            if( confirm( message)){\r\n                document.zaforma.action.value = \"callcenter_arhivareReclamatii\";\r\n                document.zaforma.submit();\r\n            }\r\n        }\r\n    }\r\n\r\n    function enableArhivare(){\r\n        document.zaforma.arhivareButton.disabled = getCountReclamatiiSelected() == 0;\r\n    }\r\n\r\n    function onReclamatieChecked(oCheck, fromCheck){\r\n        if( !fromCheck) oCheck.checked = !oCheck.checked;\r\n        hightLightRow(oCheck, \'checked\', \'normal\')\r\n        enableSave();\r\n        enableRetransmiteCir();\r\n        enableArhivare();\r\n\r\n        var params = \"idReclamatie=\"+oCheck.value + \"&checked=\"+(oCheck.checked?1:0);\r\n        new Ajax.Request(\'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(210,26);to=(210,58)]
			out.print(GlobalAppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(210,58);to=(262,26)]
			out.print("?action=callcenterSetReclamatieChecked\',\r\n            {\r\n                    method: \'post\',\r\n                    parameters: params,\r\n                    onComplete: function ( originalRequest){\r\n                        // nothing ...\r\n                    }\r\n            }\r\n        );\r\n    }\r\n\r\n    var lastRadio = null;\r\n    var trimiteLaSelected = false;\r\n    function onObjectChecked( oRadio){\r\n        trimiteLaSelected = true;\r\n\r\n        if( lastRadio != null) hightLightRow(lastRadio, \'checked\', \'normal\')\r\n        hightLightRow( lastRadio = oRadio, \'checked\', \'normal\')\r\n        enableSave();\r\n    }\r\n    \r\n\r\n    /* de pastrat in sesiune :\r\n        - order column\r\n        - order type la reclamatii\r\n        - reclamatii checked\r\n        - destionationObjectType\r\n    */\r\n\r\n    /**\r\n     * Incarca Html pt tabelul cu reclamatii.\r\n     * oAnchor este colana dupa care se vrea ordonarea\r\n     */\r\n    function loadReclamatii( oAnchor, tipCountReclamatii){\r\n        var params = \"\";\r\n        if( oAnchor){\r\n            var sortColumn = oAnchor.getAttribute(\"sortColumn\");\r\n            var sortType   = oAnchor.getAttribute(\"sortType\");\r\n\r\n            params = \"sortColumn=\"+sortColumn+\"&sortType=\"+sortType;\r\n        }\r\n\r\n        if( tipCountReclamatii){\r\n            params+=\"&tipCountReclamatii=\"+tipCountReclamatii;\r\n        }\r\n\r\n        var zonaSelect = $(\"zonaSelectata\");\r\n        if( zonaSelect ){\r\n            params+=\"&zonaSelectata=\"+$F(\"zonaSelectata\");\r\n        }\r\n\r\n        $(\"reclamatiiTableContainer\").innerHTML = \"Se incarca ...\";\r\n        new Ajax.Request(\'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(262,26);to=(262,52)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(262,52);to=(296,26)]
			out.print("?action=get-table-reclamatii-noi\',\r\n            {\r\n                    method: \'post\',\r\n                    parameters: params,\r\n                    onComplete: function (originalRequest){\r\n                        try{\r\n                            var response = getResponseMesg( originalRequest.responseText);\r\n                            $(\"reclamatiiTableContainer\").innerHTML = response;\r\n                            startTimeoutCheckReclamatiiNoi();\r\n                            enableSave();\r\n                            enableArhivare();\r\n                        }catch(e){\r\n                            alert(\"Eroare la incarcare lista reclamatii\\n  Error: \" + e.message);\r\n                        }\r\n                    }\r\n            }\r\n        );\r\n    }\r\n\r\n    /**\r\n     * Incarca Html pt tabelul cu obiecte la care se ataseaza reclamatiile (Lucrari programate/Deranjamente/Little Incidente)\r\n     * Tipul obiectelor este stabilit de selectul \"trimiteLa\"\r\n     */\r\n    function loadDestinationObjectList( oAnchor){\r\n        lastRadio = null;\r\n        trimiteLaSelected = false;\r\n        var params = \"trimiteLa=\" + $F(document.zaforma.trimiteLa);\r\n        if( oAnchor){\r\n            var sortColumn = oAnchor.getAttribute(\"sortColumn\");\r\n            var sortType   = oAnchor.getAttribute(\"sortType\");\r\n\r\n            params += \"&sortColumn=\"+sortColumn+\"&sortType=\"+sortType;\r\n        }\r\n        $(\"destinationObjectTableContainer\").innerHTML = \"Se incarca ...\";\r\n        new Ajax.Request(\'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(296,26);to=(296,52)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(296,52);to=(319,26)]
			out.print("?action=callcenterGetTableDestinationObject\',\r\n            {\r\n                    method: \'post\',\r\n                    parameters: params,\r\n                    onComplete: function (originalRequest){\r\n                        try{\r\n                            var response = getResponseMesg( originalRequest.responseText);\r\n                            $(\"destinationObjectTableContainer\").innerHTML = response;\r\n\r\n                            ScriptsUtils.evalScripts( response, true);\r\n                            enableSave();\r\n                        }catch(e){\r\n                            alert(\"Eroare la incarcare lista obiecte destinatie\\n  Error: \" + e.message);\r\n                        }\r\n                    }\r\n            }\r\n        );\r\n    }\r\n\r\n\r\n    var CHECK_RECLAMATII_NOI_TIMEOUT = 30*1000;\r\n    function checkReclamatiiNoi(){\r\n        var params = \"\";\r\n        new Ajax.Request(\'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(319,26);to=(319,52)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(319,52);to=(368,29)]
			out.print("?action=check-reclamatii-noi\',\r\n            {\r\n                method: \'post\',\r\n                parameters: params,\r\n                onComplete: function ( originalRequest){\r\n                        try{\r\n                            var response = getResponseMesg( originalRequest.responseText);\r\n                            if( response == null) response = \"\";\r\n                            response = response.trim();\r\n//                            alert( response);\r\n                            var respObj = eval(\"(\" + response + \")\");\r\n\r\n                            var diferenta = respObj.diferentaCountReclamatii;\r\n                            if( diferenta == 0){\r\n                                startTimeoutCheckReclamatiiNoi();\r\n                            }else{\r\n                                alertReclamatiiNoi( diferenta);\r\n                                loadReclamatii();\r\n                            }\r\n                        }catch( e){\r\n                            alert( \"Eroare La incarcare Reclamatii:\\n  Server response: \" + response + \"\\n  Exception: \" + e.message);\r\n                        }\r\n                    }\r\n            });\r\n    }\r\n\r\n    function alertReclamatiiNoi( count){\r\n        var message = \"\";\r\n        if( count > 1){\r\n            message = \"Au fost inregistrate \"+ count  + \" reclamatii noi\";\r\n        }else if( count == 1){\r\n            message = \"A fost inregistrata o reclamatie noua \";\r\n        }else if( count == -1){\r\n            message = \"A fost atasata o reclamatie\";\r\n        }else if( count < -1){\r\n            message = \"Au fost atasate \"+ (-1 * count)  + \" reclamatii\";\r\n        }\r\n//        return confirm( message)\r\n//        alert( message);\r\n        showPopupMessage( message);\r\n        playNewItems();\r\n    }\r\n\r\n    function enableSave(){\r\n        document.zaforma.save.disabled = getCountReclamatiiSelected() == 0 || !trimiteLaSelected;\r\n    }\r\n\r\n    function enableRetransmiteCir(){\r\n        try{\r\n            document.zaforma.");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(368,29);to=(368,61)]
			out.print(ReclamatieConstants.COD_CIR);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(368,61);to=(376,75)]
			out.print(".disabled = ( getCountReclamatiiSelected() == 0);\r\n\r\n            enableRetransmiteButton();\r\n        }catch(e){}\r\n    }\r\n\r\n    function enableRetransmiteButton(){\r\n        try{\r\n            document.zaforma.retransmiteButton.disabled = document.zaforma.");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(376,75);to=(376,107)]
			out.print(ReclamatieConstants.COD_CIR);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(376,107);to=(376,137)]
			out.print(".disabled || document.zaforma.");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(376,137);to=(376,169)]
			out.print(ReclamatieConstants.COD_CIR);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(376,169);to=(393,57)]
			out.print(".selectedIndex == 0;\r\n        }catch(e){}\r\n    }\r\n\r\n    function getCountReclamatiiSelected(){\r\n        var countReclamatiiSelected = 0;\r\n        var arr = getAllCheckReclamatii();\r\n        for( var i = 0; i < arr.length; i++ ){\r\n            if( arr[i].checked) countReclamatiiSelected++;\r\n        }\r\n        return countReclamatiiSelected;\r\n    }\r\n\r\n    function  retransmitere(){\r\n        var savedAction = document.zaforma.action.value;\r\n        try{\r\n            var countReclamatii = getCountReclamatiiSelected();\r\n            if( countReclamatii == 0 || document.zaforma.");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(393,57);to=(393,89)]
			out.print(ReclamatieConstants.COD_CIR);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(393,89);to=(396,47)]
			out.print(".selectedIndex == 0){\r\n                return;\r\n            }\r\n            var selectedCir = document.zaforma.");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(396,47);to=(396,79)]
			out.print(ReclamatieConstants.COD_CIR);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(396,79);to=(396,106)]
			out.print(".options[ document.zaforma.");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(396,106);to=(396,138)]
			out.print(ReclamatieConstants.COD_CIR);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(396,138);to=(410,35)]
			out.print(".selectedIndex].text;\r\n            if( confirm(\"Doriti sa retransmiteti \"+(countReclamatii==1?\" o reclamatie\" :  countReclamatii + \" reclamatii\") + \" catre \" + selectedCir + \" ?\")){\r\n                document.zaforma.action.value = \"callcenter_retransmiteReclamatii\";\r\n                document.zaforma.submit();\r\n            }\r\n        }catch(e){\r\n            document.zaforma.action.value = savedAction;\r\n            alert( e.message);\r\n        }\r\n    }\r\n\r\n\r\n    function toggleReclamatii(index){\r\n        if( $(\'reclamatii\' + index).style.display == \'none\'){\r\n            $(\'img\' +index).src = \'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(410,35);to=(410,92)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/images/minus.bmp");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(410,92);to=(413,35)]
			out.print("\';\r\n            Element.show(\'reclamatii\' + index);\r\n        }else{\r\n            $(\'img\' +index).src = \'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(413,35);to=(413,91)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/images/plus.bmp");
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(413,91);to=(454,25)]
			out.print("\';\r\n            Element.hide(\'reclamatii\' + index);\r\n        }\r\n    }\r\n    \r\n\r\n    function startTimeoutCheckReclamatiiNoi(){\r\n        setTimeout( \"checkReclamatiiNoi()\", CHECK_RECLAMATII_NOI_TIMEOUT);\r\n    }\r\n\r\n    function getAllCheckReclamatii(){\r\n        return document.getElementsByName( \'reclamatieId\');\r\n    }\r\n\r\n    function checkAllReclamatii( oCheck){\r\n        var arr = getAllCheckReclamatii();\r\n        for( var i = 0; i < arr.length; i++){\r\n            arr[ i].checked = !oCheck.checked;\r\n            onReclamatieChecked(arr[ i] , false);\r\n        }\r\n    }\r\n\r\n    function onSalveaza(){\r\n        var countReclamatii = getCountReclamatiiSelected();\r\n        var trimiteLaSelected = true;\r\n        if( countReclamatii > 0 && trimiteLaSelected){\r\n            var catreText = lastRadio.getAttribute(\"catre\");\r\n            var message = \"Doriti sa atasati \" + (countReclamatii == 1 ? \" o reclamatie\" : countReclamatii + \" reclamatii\") + \" catre \" + catreText + \" ?\";\r\n            if( confirm( message)){\r\n                document.zaforma.submit();\r\n            }\r\n        }\r\n    }\r\n\r\n    function reloadDeranjamente(){\r\n        loadDestinationObjectList();\r\n    }\r\n\r\n    function showFiltru(){\r\n        var trimiteLa = $F(document.zaforma.trimiteLa);\r\n\r\n        if( trimiteLa == ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(454,25);to=(454,58)]
			out.print(Reclamatie.LEGAT_LA_INCIDENT);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(454,58);to=(456,31)]
			out.print("){\r\n            showFiltruLittleIncidente();\r\n        }else if( trimiteLa == ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(456,31);to=(456,67)]
			out.print(Reclamatie.LEGAT_LA_DERANJAMENT);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(456,67);to=(458,31)]
			out.print("){\r\n            showFiltruDeranjamente();\r\n        }else if( trimiteLa == ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(458,31);to=(458,63)]
			out.print(Reclamatie.LEGAT_LA_LUCRARE);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(458,63);to=(458,80)]
			out.print(" || trimiteLa == ");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(458,80);to=(458,113)]
			out.print(Reclamatie.LEGAT_LA_LUCRARE2);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(458,113);to=(468,51)]
			out.print("){\r\n            showFiltruLucrariProgramate();\r\n        }else{\r\n            alert( \"ERROR: Tip Obiect destinatie necunoscut !!!\");\r\n        }\r\n    }\r\n\r\n    var filtruLittleIncidenteWindow = null;\r\n    function showFiltruLittleIncidente(){\r\n        if( filtruLittleIncidenteWindow != null) filtruLittleIncidenteWindow.close();\r\n        filtruLittleIncidenteWindow = window.open(\'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(468,51);to=(468,83)]
			out.print(GlobalAppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(468,83);to=(475,43)]
			out.print("?action=filtru-incidente\',\'filtruLittleIncidente\', \'top=100,left=100,width=750, height=500, status=yes,resizable=yes,dependent=yes,alwaysRaised=yes\');\r\n    }\r\n\r\n\r\n    var filtruLucrariWindow = null;\r\n    function showFiltruLucrariProgramate(){\r\n        if( filtruLucrariWindow != null) filtruLucrariWindow.close();\r\n        filtruLucrariWindow = window.open(\'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(475,43);to=(475,75)]
			out.print(GlobalAppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(475,75);to=(490,30)]
			out.print("?action=showFiltruLucrari\',\'filtruLucrari\', \'top=100,left=100,width=750, height=500, status=yes,resizable=yes,dependent=yes,alwaysRaised=yes\');\r\n    }\r\n  \r\n    function reloadListaLittleIncidente(){\r\n//        alert( \"reloadListaLittleIncidente:  Not implemented\");\r\n        loadDestinationObjectList();\r\n    }\r\n\r\n    function reloadListaLucrariProgramate(){\r\n//        alert( \"reloadListaLucrariProgramate:  Not implemented\");\r\n        loadDestinationObjectList();\r\n    }\r\n\r\n    function scoateReclamatieCuAjax(idReclamatie){\r\n        if( confirm(\'Confirmati actiunea.\'))\r\n            new Ajax.Request(\'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(490,30);to=(490,56)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(490,56);to=(494,39)]
			out.print("?action=scoate-reclamatia2&id=\' + idReclamatie,\r\n            {\r\n                method: \'post\',\r\n                onComplete: function( originalRequest){\r\n                    window.location = \'");
// end
// begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(494,39);to=(494,65)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/QOR/J00/j2ee/cluster/apps/JavaEE/emid-callcenter/servlet_jsp/emid-callcenter/root/WEB-INF/pagelet/callcenter/atasareReclamatii.jsp";from=(494,65);to=(505,0)]
			out.print("?action=callcenter_legareReclamatii\';\r\n                }\r\n            });\r\n    }\r\n\r\n    enableRetransmiteCir();\r\n    enableRetransmiteButton();\r\n\r\n    loadReclamatii();\r\n    loadDestinationObjectList();\r\n</script>\r\n");
// 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);
		}
	}

}
