/* Automatically generated.
 * Copyright (c) 2000-2006 by SAP AG, Walldorf.,
 * http://www.sap.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of SAP AG, Walldorf. You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with SAP.
 * Do not edit.
 */

import ro.emid.common.constants.AppConstants;
import ro.emid.common.job.JobRequest;
import ro.emid.common.utils.pagination.PaginationController;
import ro.emid.common.utils.pagination.PaginationData;
import ro.emid.common.job.JobConstants;

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

public class JEE_jsp_WEB_2d_INF_pagelet_admin_sync_sync_2d_bdi_2d_history_1471592527795 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-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(1,58);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(2,50);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(3,73);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(4,67);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(5,52);to=(8,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(8,0);to=(14,2)]
			
        /**
         * @see ro.emid.administrare.sync.bdi.LoadSyncBdiHistoryAction
         */
    PaginationData pd = (PaginationData) request.getAttribute("pd");
    JobRequest[] jobs = (ro.emid.common.job.JobRequest[]) request.getAttribute("result");

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(14,2);to=(21,0)]
			out.print("\r\n\r\n\r\n<div class=\"mb5\">\r\n    <span class=\"page-title\">Istoric sincronizare nomenclator BDI</span>\r\n</div>\r\n\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(1,0);to=(10,2)]
			
    String[] MESG_ERR = null;
    String[] MESG_INFO = null;

    if (request.getAttribute(ro.emid.common.constants.WebConstants.MESG_ERR) != null) {
        MESG_ERR = (String[]) request.getAttribute(ro.emid.common.constants.WebConstants.MESG_ERR);
    } else if (request.getAttribute(ro.emid.common.constants.WebConstants.MESG_INFO) != null) {
        MESG_INFO = (String[]) request.getAttribute(ro.emid.common.constants.WebConstants.MESG_INFO);
    }

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(10,2);to=(11,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(11,0);to=(11,52)]
			 if (MESG_ERR != null && MESG_ERR.length > 0)  {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(11,52);to=(15,10)]
			out.print("\r\n    <fieldset style=\"width:95%; margin:10px\">\r\n        <legend style=\"font-weight: bold; color: red\">Mesaj eroare</legend>\r\n        <table align=\"left\">\r\n          ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(15,10);to=(15,59)]
			 for (int i = 0; i < MESG_ERR.length; i++ ){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(15,59);to=(16,22)]
			out.print("\r\n              <tr><td>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(16,22);to=(16,90)]
			out.print(ro.emid.common.constants.AppConstants.formatSimple(MESG_ERR[i]));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(16,90);to=(17,10)]
			out.print("</td></tr>\r\n          ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(17,10);to=(17,15)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(17,15);to=(20,0)]
			out.print("\r\n        </table>\r\n    </fieldset>\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(20,0);to=(21,3)]
			 request.removeAttribute(ro.emid.common.constants.WebConstants.MESG_ERR);
}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(21,3);to=(22,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(22,0);to=(22,54)]
			 if (MESG_INFO != null && MESG_INFO.length > 0)  {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(22,54);to=(26,10)]
			out.print("\r\n    <fieldset style=\"width:95%; margin:10px\">\r\n        <legend style=\"font-weight: bold; color: green\">Mesaj informare:</legend>\r\n        <table align=\"left\">\r\n          ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(26,10);to=(26,60)]
			 for (int i = 0; i < MESG_INFO.length; i++ ){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(26,60);to=(27,24)]
			out.print("\r\n                <tr><td>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(27,24);to=(27,93)]
			out.print(ro.emid.common.constants.AppConstants.formatSimple(MESG_INFO[i]));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(27,93);to=(28,10)]
			out.print("</td></tr>\r\n          ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(28,10);to=(28,15)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(28,15);to=(31,0)]
			out.print("\r\n        </table>\r\n    </fieldset>\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(31,0);to=(31,81)]
			  request.removeAttribute(ro.emid.common.constants.WebConstants.MESG_INFO); }
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(21,47);to=(23,14)]
			out.print("\r\n\r\n<form action=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(23,14);to=(23,40)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(23,40);to=(38,4)]
			out.print("?action=sync-bdi-history\" method=\"post\">\r\n<table cellpadding=2 cellspacing=1 width=\"100%\" class=\"table mt10\">\r\n    <thead>\r\n        <tr>\r\n            <th>#</th>\r\n            <th>Status</th>\r\n            <th>Procedura</th>\r\n            <th>Utilizator</th>\r\n            <th>Data lansare</th>\r\n            <th>Data start</th>\r\n            <th>Data finis</th>\r\n            <th>Detalii</th>\r\n        </tr>\r\n    </thead>\r\n    <tbody>\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(38,4);to=(38,33)]
			 if (jobs.length == 0) { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(38,33);to=(42,4)]
			out.print("\r\n        <tr>\r\n            <td colspan=\"10\" class=\"no-data\"> Nu exista comenzi de sincronizare ...</td>\r\n        </tr>\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(42,4);to=(42,48)]
			 } for (JobRequest jobRequest : jobs) { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(42,48);to=(45,16)]
			out.print("\r\n        <tr>\r\n            <td>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(45,16);to=(45,39)]
			out.print(jobRequest.getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(45,39);to=(48,16)]
			out.print("\r\n            </td>\r\n            <td>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(48,16);to=(48,106)]
			out.print(AppConstants.format( JobConstants.JOB_STATUS_TEXT.get(jobRequest.getStatus()), "n/a"));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(48,106);to=(51,16)]
			out.print("\r\n            </td>\r\n            <td>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(51,16);to=(51,42)]
			out.print(jobRequest.getJobId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(51,42);to=(54,16)]
			out.print("\r\n            </td>\r\n            <td>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(54,16);to=(54,66)]
			out.print(AppConstants.format(jobRequest.getUsername()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(54,66);to=(57,16)]
			out.print("\r\n            </td>\r\n            <td>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(57,16);to=(57,77)]
			out.print(AppConstants.formatDataTime(jobRequest.getDateRequest()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(57,77);to=(60,16)]
			out.print("\r\n            </td>\r\n            <td>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(60,16);to=(60,78)]
			out.print(AppConstants.formatDataTime(jobRequest.getDateJobStart()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(60,78);to=(63,16)]
			out.print("\r\n            </td>\r\n            <td>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(63,16);to=(63,76)]
			out.print(AppConstants.formatDataTime(jobRequest.getDateJobEnd()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(63,76);to=(66,16)]
			out.print("\r\n            </td>\r\n            <td width=\"400px\">\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(66,16);to=(66,67)]
			out.print(AppConstants.format(jobRequest.getJobResult()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(66,67);to=(69,4)]
			out.print("\r\n            </td>\r\n        </tr>\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(69,4);to=(69,9)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(69,9);to=(75,68)]
			out.print("\r\n    </tbody>\r\n    <tfoot>\r\n        <tr>\r\n            <td colspan=\"8\">\r\n                <div class=\"pull-left\">\r\n                    <input type=\"button\" value=\"Refresh\" data-href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(75,68);to=(75,94)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(75,94);to=(78,20)]
			out.print("?action=sync-bdi-history\" />\r\n                </div>\r\n                <div class=\"pull-right\">\r\n                    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(78,20);to=(78,69)]
			out.print(PaginationController.printPaginationData(pd));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/sync/sync-bdi-history.jsp";from=(78,69);to=(84,7)]
			out.print("\r\n                </div>\r\n            </td>\r\n        </tr>\r\n    </tfoot>\r\n</table>\r\n</form>");
// 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);
		}
	}

}
