<%@ taglib uri="/core" prefix="c"%> <%@ taglib uri="/fmt" prefix="fmt"%> <%@ taglib uri="/RfxTags" prefix="rfx"%> <%@page import="java.util.*"%> <%@page import="com.reflexis.rta.payrule.service.TaEmpPayService"%> <%@page import="etrace.rws.RwsUtil"%> <%@page import="com.reflexis.util.ReflexisCache"%> <% int pCostSegmentId = 0; String strStartDate = request.getParameter("startDate"); String strEndDate = request.getParameter("endDate"); int pPersonId = 0; if(empId != null && !empId.equals("")) pPersonId = Integer.parseInt(empId); String pUnitId = null; String pDeptId = null; String pEarningCode = null; String pPayCategory = null; int pSegmentStartDate = 20080804; int pSegmentEndDate = 20080810; try{ TaEmpPayService empPayService = new TaEmpPayService(); empPayService.setDbConn(dbConn); Hashtable dataHash = null; Hashtable earnCodeHash = null; if(pPersonId != 0) { dataHash = empPayService.getTaCostSegmentHash(ownerId, clientId, pPersonId, pCostSegmentId, pSegmentStartDate, pSegmentEndDate, pUnitId, pDeptId, pEarningCode, pPayCategory, "D"); earnCodeHash = empPayService.getTaCostSegmentVectorByEarnCodeHash(ownerId, clientId, pPersonId, pCostSegmentId, pSegmentStartDate, pSegmentEndDate, pUnitId, pDeptId, pEarningCode, pPayCategory); } if(dataHash != null && dataHash.size() > 0) { Set dateKeys = dataHash.keySet(); System.out.println("dataHash size: " + dataHash.size()); pageContext.setAttribute("PAY_RESULTS_DATE_KEYS", dateKeys); pageContext.setAttribute("PAY_RESULTS_HASH", dataHash); } HashMap deptMap = (HashMap) ReflexisCache.getValue("RFX_DEPT_DESCRIPTION"); Vector earnCategory = (Vector) ReflexisCache.getValue("RTA_EARN_CAT"); Hashtable unitHash = (Hashtable) ReflexisCache.getValue("UNIT_ID_NAME"); //Hashtable jobCodeHash = (Hashtable) ReflexisCache.getValue("JOB_CODE"); // already defined in tcard.jsp pageContext.setAttribute("DEPT_MAP", deptMap); pageContext.setAttribute("EARN_CATEGORY_VEC", earnCategory); pageContext.setAttribute("UNIT_HASH", unitHash); pageContext.setAttribute("JOB_CODE_HASH", jobCodeHash); pageContext.setAttribute("PAY_RESULTS_VEC", earnCodeHash); %> <% if(earnCodeHash != null && earnCodeHash.size() > 0) { Set unitKeys = earnCodeHash.keySet(); Iterator iterUnit = unitKeys.iterator(); while(iterUnit.hasNext()) { String unitIdKey = (String) iterUnit.next(); Hashtable deptHash = (Hashtable) earnCodeHash.get(unitIdKey); %> <%} } %>
 
By Pay Category
 
Store: <%=unitIdKey%>-<%=unitHash.get(unitIdKey).toString()%>
 
 
<% } catch (Exception e) { dbConn.rollbackTransaction(); dbConn.dbEnd(); LogMessage.error("Error in payResults.jsp : " + e); e.printStackTrace(); } %> <%@ include file="/include/CloseDBConn.jspf"%>