<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ page import='gov.va.med.esr.ui.report.action.ReportConstants' %>
<%@ page import='gov.va.med.esr.ui.report.action.ReportScheduleInfoForm' %>
<%@ page import='gov.va.med.esr.common.model.lookup.ReportPeriodType' %>
<%@ page import='gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy' %>
<%@ page import='gov.va.med.esr.common.model.lookup.ReportFormat' %>
<%@ page import='gov.va.med.esr.common.model.lookup.ReportRunFrequency' %>
<c:set var="mmyyyyText" scope="page"><bean-el:message key="label.mmyyyy"/></c:set>
<c:set var="mmddyyyyText" scope="page"><bean-el:message key="label.mmddyyyy"/></c:set>
<%@ include file="../scripts/ReportScripts.js" %>
<%@ include file="reportParameterConstants.jsp" %>
<!-- Report Parameter Configuration Map based the report id -->
<c:set var="reportParamConfig" value="${reportParamConfigMap[reportInfoForm.reportIdNoSpace]}" />
<c:choose> 
<c:when test="${reportInfoForm.reportIdNoSpace == 'QM28' ||reportInfoForm.reportIdNoSpace == 'QM29' || reportInfoForm.reportIdNoSpace == 'QM30' }">
<c:if test="${reportParamConfig[fromDateParam] != null}">
    <tr id="spaceDateParam"><td colspan="3">&nbsp;</td></tr>
    <tr id="fromDateParam">
	<td class="moduleLabel"><fw:label required="true" property="fromDate" forId="reportDateId"><bean-el:message key="label.report.date" />:</fw:label></td>
	<c:set var="dateText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.date"/> &nbsp;<c:out value="${mmddyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${dateText}" property="fromDate" styleId="reportDateId" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmddyyyy" /></td>
    </tr>    
</c:if>
</c:when>

<c:when test="${reportInfoForm.reportIdNoSpace == 'EED10'}">
<c:if test="${reportParamConfig[fromDateParam] != null}">
    <tr id="spaceDateParam"><td colspan="3">&nbsp;</td></tr>
    <tr id="fromDateParam">
	<td class="moduleLabel"><fw:label required="false" property="fromDate" forId="fromDateId"><bean-el:message key="label.report.fromDate" />:</fw:label></td>
	<c:set var="fromDateText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.fromDate"/> &nbsp;<c:out value="${mmyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${fromDateText}" property="fromDate" styleId="fromDateId" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmyyyy" /></td>
    </tr>
    <tr id="toDateParam">
	<td class="moduleLabel"><fw:label required="false" property="toDate" forId="toDateId"><bean-el:message key="label.report.toDate" />:</fw:label></td>
	<c:set var="toDateText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.toDate"/> &nbsp;<c:out value="${mmyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${toDateText}" property="toDate" styleId="toDateId" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmyyyy" /></td>
    </tr>
</c:if>  
<c:if test="${reportParamConfig[asOfDateParam] != null}">
    <tr id="spaceAsOfDateParam"><td class="moduleLabel">Or</td><td class="moduleLabel">&nbsp;</td></tr>
    <tr id="asOfDateParam">
	<td class="moduleLabel"><fw:label required="false" property="asOfDate" forId="asOfDateId"><bean-el:message key="label.report.asOfDate" />:</fw:label></td>
	<c:set var="asOfDateText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.asOfDate"/>&nbsp;<c:out value="${mmyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${asOfDateText}" property="asOfDate" styleId="asOfDateId" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmyyyy" /></td>
    </tr>
</c:if>
</c:when>

<c:otherwise>
<c:if test="${reportParamConfig[fromDateParam] != null}">
    <tr id="spaceDateParam"><td colspan="3">&nbsp;</td></tr>
    <tr id="fromDateParam">
	<td class="moduleLabel"><fw:label required="true" property="fromDate" forId="reportFromDateId"><bean-el:message key="label.report.fromDate" />:</fw:label></td>
	<c:set var="fromDateText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.fromDate"/> &nbsp;<c:out value="${mmddyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${fromDateText}" property="fromDate" styleId="reportFromDateId" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmddyyyy" /></td>
    </tr>
    <tr id="toDateParam">
	<td class="moduleLabel"><fw:label required="true" property="toDate" forId="reportToDateId"><bean-el:message key="label.report.toDate" />:</fw:label></td>
	<c:set var="toDateText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.toDate"/> &nbsp;<c:out value="${mmddyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${toDateText}" property="toDate" styleId="reportToDateId" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmddyyyy" /></td>
    </tr>
</c:if>
</c:otherwise>
</c:choose>
<c:if test="${reportParamConfig[fromYearParam] != null}">
    <tr id="spaceFromAndToYearParam"><td colspan="3">&nbsp;</td></tr>
    <tr id="fromYearParam">
	<td class="moduleLabel"><fw:label required="true" property="fromYear" forId="reportFromYearId"><bean-el:message key="label.report.fromDate" />:</fw:label></td>
	<c:set var="fromYearText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.fromDate"/>&nbsp;<bean-el:message key="label.yyyy" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${fromYearText}" property="fromYear" styleId="reportFromYearId" styleClass="moduleEdit" size="10" maxlength="4"/>&nbsp;<bean-el:message key="label.yyyy" /></td>
    </tr>
    <tr id="toYearParam">
	<td class="moduleLabel"><fw:label required="true" property="toYear" forId="reportToYearId"><bean-el:message key="label.report.toDate" />:</fw:label></td>
	<c:set var="toYearText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.toDate"/>&nbsp;<bean-el:message key="label.yyyy" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${toYearText}" property="toYear" styleId="reportToYearId" styleClass="moduleEdit" size="10" maxlength="4"/>&nbsp;<bean-el:message key="label.yyyy" /></td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[asOfDateParam] != null && reportInfoForm.reportIdNoSpace != 'EED10'}">
    <tr id="spaceAsOfDateParam"><td colspan="3">&nbsp;</td></tr>
    <tr id="asOfDateParam">
	<td class="moduleLabel"><fw:label required="true" property="asOfDate" forId="reportAsOfDateId"><bean-el:message key="label.report.asOfDate" />:</fw:label></td>
	<c:set var="asOfDateText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.asOfDate"/>&nbsp;<c:out value="${mmddyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${asOfDateText}" property="asOfDate" styleId="reportAsOfDateId" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmddyyyy" /></td>
    </tr>
</c:if>
	<c:if test="${reportParamConfig[beginIncomeYearParam] != null}">
	    <c:set var="reportPeriodYearsList" value="${reportInfoForm.years}" />
	    <tr><td colspan="3">&nbsp;</td></tr>
	    <tr>	   
		<td class="moduleLabel"><fw:label required="true" property="beginIncomeYear" forId="reportBeginIncomeYearId"><bean-el:message key="label.report.startIncomeYear" />:</fw:label></td>			
		<c:set var="startIncomeYearText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.startIncomeYear"/></c:set>
		<td class="moduleValue" colspan="2" nowrap>
		    <html-el:select title="${startIncomeYearText}" styleClass="moduleEdit" property="beginIncomeYear" styleId="reportBeginIncomeYearId">
			<esrcore:options styleClass="moduleEdit" collection="reportPeriodYearsList" property="label" labelProperty="value"/>
		    </html-el:select>
		</td>
	    </tr>
	</c:if>
	<c:if test="${reportParamConfig[endIncomeYearParam] != null}">
	    <c:set var="reportPeriodYearsList" value="${reportInfoForm.years}" />
	    <tr><td colspan="3">&nbsp;</td></tr>
	    <tr>   
			<td class="moduleLabel"><fw:label required="false" property="endIncomeYear" forId="endIncomeYearId"><bean-el:message key="label.report.endIncomeYear" />:</fw:label></td>		
		<c:set var="endIncomeYearText"><bean-el:message key="label.report.endIncomeYear"/></c:set>
		<td class="moduleValue" colspan="2" nowrap>
		    <html-el:select title="${endIncomeYearText}" styleClass="moduleEdit" property="endIncomeYear" styleId="endIncomeYearId">
		    <html-el:option styleClass="moduleEdit" value=""><bean-el:message key="label.select" /></html-el:option>
			<esrcore:options styleClass="moduleEdit" collection="reportPeriodYearsList" property="label" labelProperty="value"/>
		    </html-el:select>
		</td>
	    </tr>
	</c:if>
<c:if test="${reportParamConfig[divisionParam] != null}">
    <esrcore:setLookup var="ReportDivisionList" className="gov.va.med.esr.common.model.lookup.ReportDivision" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.division" />:</td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">    	  
    	    <c:forEach var="item" items="${ReportDivisionList}">
    	    <c:set var="divisionText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.division"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td><html-el:radio title="${divisionText}" property="division" value="${item.code}" styleId="divisionId_${item.code}"/></td><td class="moduleValue"><fw:label property="division" forId="divisionId_${item.code}"><c:out value="${item.description}" /></fw:label></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[functionalGroupParam] != null}">
    <esrcore:setLookup var="FunctionalGroupList" className="gov.va.med.esr.common.model.lookup.FunctionalGroup" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="functionalGroup" forId="functionalGroupId"><bean-el:message key="label.report.functionalGroup" />:</fw:label></td>    	
    	<td class="moduleValue" colspan="2">
    	<c:set var="functionalGroupAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.functionalGroup"/>&nbsp;(<bean-el:message key="label.report.functionalGroup" />)</c:set>
    	  <table border="0" cellpadding="0" cellspacing="0">
      	    <tr><td><html-el:multibox title="${functionalGroupAllText}" property="functionalGroup" styleId="functionalGroupId" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.functionalGroup" /></td></tr>
    	    <c:forEach var="item" items="${FunctionalGroupList}">
    	    <c:set var="functionalGroupText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.functionalGroup"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
				<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${functionalGroupText}" property="functionalGroup" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	        </c:forEach>
	      </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[workItemStatusParam] != null}">
    <esrcore:setLookup var="ReportWorkItemStatusList" className="gov.va.med.esr.common.model.lookup.WkfCaseStatusType" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="workItemStatus" forId="workItemStatusId"><bean-el:message key="label.report.workItemStatus" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="workItemStatusAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.workItemStatus"/>&nbsp;(<bean-el:message key="label.report.workItemStatus" />)</c:set>
      	    <tr><td><html-el:multibox title="${workItemStatusAllText}" styleId="workItemStatusId" property="workItemStatus" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.workItemStatus" /></td></tr>
    	    <c:forEach var="item" items="${ReportWorkItemStatusList}">
    	    <c:set var="workItemStatusText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.workItemStatus"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${workItemStatusText}" property="workItemStatus" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[workItemTypeParam] != null}">
    <esrcore:setLookup var="ReportWorkItemTypeList" className="gov.va.med.esr.common.model.lookup.WkfCaseType" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="workItemType" forId="workItemTypeId"><bean-el:message key="label.report.workItemType" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="workItemTypeAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.workItemStatus"/>&nbsp;(<bean-el:message key="label.report.workItemType" />)</c:set>
      	    <tr><td><html-el:multibox title="${workItemTypeAllText}" styleId="workItemTypeId" property="workItemType" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.workItemType" /></td></tr>
    	    <c:forEach var="item" items="${ReportWorkItemTypeList}">
		<c:set var="workItemTypeText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.workItemStatus"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${workItemTypeText}" property="workItemType" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[runReportByUserParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.runReportByUser" />:</td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	    <c:forEach var="item" items="${yesNoList}">
    	    <c:set var="runReportByUserText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.runReportByUser"/>&nbsp;(<bean-el:message key="${item.label}" />)</c:set>
		<tr><td><html-el:radio title="${runReportByUserText}" styleId="runReportByUserId_${item.value}" property="runReportByUser" value="${item.value}" /></td><td class="moduleValue"><fw:label property="runReportByUser" forId="runReportByUserId_${item.value}"><bean-el:message key="${item.label}"/></fw:label></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[messageErrorParam] != null}">
    <esrcore:setLookup var="AckTypeList" className="gov.va.med.esr.common.model.lookup.AckType" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.messageError" />:</td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	    <c:forEach var="item" items="${AckTypeList}">
    	    <c:set var="messageErrorText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.messageError"/>&nbsp;(<c:out value="${item.codeDescription}" />)</c:set>
    	        <c:if test="${item.code == 'AE' || item.code == 'AR'}">
				    <tr>
				    <td>
				    <html-el:radio title="${messageErrorText}" property="messageError" value="${item.code}" styleId="messageErrorId_${item.code}" />
				    </td>
				    <td class="moduleValue" nowrap><fw:label property="messageError" forId="messageErrorId_${item.code}"><c:out value="${item.codeDescription}" /></fw:label></td>
				    </tr>
		        </c:if>
		    </c:forEach>
		    <c:set var="messageErrorBothText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.messageError"/>&nbsp;(<bean-el:message key="label.report.both" />)</c:set>
	    <tr><td><html-el:radio title="${messageErrorBothText}" styleId="messageErrorId_${ALL}" property="messageError" value="${ALL}" /></td><td class="moduleValue"><fw:label property="messageError" forId="messageErrorId_${ALL}"><bean-el:message key="label.report.both" /></fw:label></td></tr>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[daysBetweenUpdatesParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
	<td class="moduleLabel"><fw:label required="true" property="daysBetweenUpdates" forId="daysBetweenUpdatesId"><bean-el:message key="label.report.daysBetweenUpdates" />:</fw:label></td>
	<c:set var="daysBetweenUpdatesText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.daysBetweenUpdates"/></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${daysBetweenUpdatesText}" styleId="daysBetweenUpdatesId" property="daysBetweenUpdates" styleClass="moduleEdit" size="3" maxlength="3"/>&nbsp;</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[batchNumberParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
	<td class="moduleLabel"><fw:label required="true" property="batchNumber" forId="batchNumberId"><bean-el:message key="label.report.batchNumber" />:</fw:label></td>
	<c:set var="batchNumberText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.batchNumber"/></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${batchNumberText}" styleId="batchNumberId" property="batchNumber" styleClass="moduleEdit" size="20" maxlength="20"/>&nbsp;</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[exceptionTypeParam] != null}">
    <c:set var="systemError"><%=gov.va.med.esr.common.model.lookup.ReportExceptionType.SYSTEM_ERROR.getCode()%></c:set>
    <esrcore:setLookup var="ReportExceptionTypeList" className="gov.va.med.esr.common.model.lookup.ReportExceptionType" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.exceptionType" />:</td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	    <c:forEach var="item" items="${ReportExceptionTypeList}">
		<c:set var="exceptionTypeText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.exceptionType"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td><html-el:radio title="${exceptionTypeText}" styleId="exceptionTypeId_${item.code}" property="exceptionType" value="${item.code}" /></td><td class="moduleValue"><fw:label property="exceptionType" forId="exceptionTypeId_${item.code}"><c:out value="${item.description}" /></fw:label></td></tr>
	    </c:forEach>
	    <c:set var="exceptionTypeText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.exceptionType"/>&nbsp;(<c:out value="${systemError}" />)</c:set>
	    <tr><td><html-el:radio title="${exceptionTypeText}" styleId="exceptionTypeId_${systemError}" property="exceptionType" value="${systemError}" /></td><td class="moduleValue"><fw:label property="exceptionType" forId="exceptionTypeId_${systemError}"><c:out value="${systemError}" /></fw:label></td></tr>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[badAddressReasonParam] != null}">
    <esrcore:setLookup var="BadAddressReasonList" className="gov.va.med.esr.common.model.lookup.BadAddressReason" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="badAddressReason" forId="badAddressReasonId"><bean-el:message key="label.report.badAddressReason" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="badAddressReasonAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.badAddressReason"/>&nbsp;(<bean-el:message key="label.report.allBadAddressReasons" />)</c:set>
    	    <tr><td><html-el:multibox title="${badAddressReasonAllText}" styleId="badAddressReasonId" property="badAddressReason" value="${ALL}" onclick="checkAll(this)"/></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.allBadAddressReasons" /></td></tr>
    	    <c:forEach var="item" items="${BadAddressReasonList}">
		<c:set var="badAddressReasonText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.badAddressReason"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${badAddressReasonText}" property="badAddressReason" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
     </tr>
</c:if>
<c:if test="${reportParamConfig[cancelDeclineReasonParam] != null}">
    <esrcore:setLookup var="CancelDeclineReasonList" className="gov.va.med.esr.common.model.lookup.CancelDeclineReason" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.cancelledDeclinedReason" />:</td>
    	<td class="moduleValue" colspan="2">
			<table border="0" cellpadding="0" cellspacing="0">
			<c:set var="cancelledDeclinedReasonAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.cancelledDeclinedReason"/>&nbsp;(<bean-el:message key="label.report.allCancelledDeclinedReasons" />)</c:set>
			<tr><td><html-el:radio title="${cancelledDeclinedReasonAllText}" styleId="cancelDeclineReasonId_${ALL}" property="cancelDeclineReason" value="${ALL}" /></td><td class="moduleValue"><fw:label property="cancelDeclineReason" forId="cancelDeclineReasonId_${ALL}"><bean-el:message key="label.report.allCancelledDeclinedReasons" /></fw:label></td></tr>
			<c:forEach var="item" items="${CancelDeclineReasonList}">
			<c:set var="cancelledDeclinedReasonText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.cancelledDeclinedReason"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
				<tr><td><html-el:radio title="${cancelledDeclinedReasonText}" styleId="cancelDeclineReasonId_${item.code}" property="cancelDeclineReason" value="${item.code}" /></td><td class="moduleValue"><fw:label property="cancelDeclineReason" forId="cancelDeclineReasonId_${item.code}"><c:out value="${item.description}" /></fw:label></td></tr>
			</c:forEach>
			</table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[phRejectReasonParam] != null}">
    <esrcore:setLookup var="RejectionRemarkList" className="gov.va.med.esr.common.model.lookup.RejectionRemark" />
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" forId="phRejectReasonId" property="phRejectReason"><bean-el:message key="label.report.phRejectReason" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="phRejectReasonAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.phRejectReason"/>&nbsp;(<bean-el:message key="label.report.allRejectedReasons" />)</c:set>
    	    <tr><td><html-el:multibox title="${phRejectReasonAllText}" styleId="phRejectReasonId" property="phRejectReason" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.allRejectedReasons" /></td></tr>
    	    <c:forEach var="item" items="${RejectionRemarkList}">
		<c:set var="phRejectReasonText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.phRejectReason"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${phRejectReasonText}" property="phRejectReason" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[includeUsersParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
    	<td class="moduleLabel" style="vertical-align: top"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.includeUsers" />:</td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	    <c:forEach var="item" items="${yesNoList}">
		<c:set var="includeUsersText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.includeUsers"/>&nbsp;(<bean-el:message key="${item.label}" />)</c:set>
		<tr><td><html-el:radio title="${includeUsersText}" property="includeUsers" styleId="includeUsersId_${item.value}" value="${item.value}" /></td><td class="moduleValue"><fw:label required="true" property="includeUsers" forId="includeUsersId_${item.value}"><bean-el:message key="${item.label}" /></fw:label></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[priorityGroupParam] != null}">
   <esrcore:setLookup var="EnrollmentPriorityGroupAndSubGroupList" className="gov.va.med.esr.ui.common.beans.EnrollmentPriorityGroupAndSubGroup" />
   <tr><td colspan="3">&nbsp;</td></tr>
   <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="priorityGroup" forId="priorityGroupId"><bean-el:message key="label.report.priorityGroup" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="priorityGroupAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.priorityGroup"/>&nbsp;(<bean-el:message key="label.report.allPriorityGroups" />)</c:set>
    	    <tr><td><html-el:multibox title="${priorityGroupAllText}" property="priorityGroup" styleId="priorityGroupId" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.allPriorityGroups" /></td></tr>
    	    <c:forEach var="item" items="${EnrollmentPriorityGroupAndSubGroupList}">
		<c:set var="priorityGroupText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.priorityGroup"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${priorityGroupText}" property="priorityGroup" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[enrollmentEffectiveDateChangeParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
	<td class="moduleLabel"><fw:label required="true" property="enrollmentEffectiveDateChange" forId="enrollmentEffDateChangeId"><bean-el:message key="label.report.enrollmentEffectiveDateOfChange" />:</fw:label></td>
	<c:set var="enrollmentEffectiveDateOfChangeText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.enrollmentEffectiveDateOfChange"/>&nbsp;<c:out value="${mmddyyyyText}" /></c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${enrollmentEffectiveDateOfChangeText}" styleId="enrollmentEffDateChangeId" property="enrollmentEffectiveDateChange" styleClass="moduleEdit" size="10" maxlength="10"/>&nbsp;<bean-el:message key="label.mmddyyyy" /></td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[enrollmentStatusParam] != null}">
    <jsp:include page="reportParametersEnrollmentStatus.jsp" flush="true" />
</c:if>
<c:if test="${reportParamConfig[voaFormTypesParam] != null}">
    <jsp:include page="reportParametersVoaFormType.jsp" flush="true" />
</c:if>
<c:if test="${reportParamConfig[enrollmentCategoryParam] != null}">
   <esrcore:setLookup var="EnrollmentCategoryList" className="gov.va.med.esr.common.model.lookup.EnrollmentCategory" />
   <tr><td colspan="3">&nbsp;</td></tr>
   <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="enrollmentCategory" forId="enrollmentCategoryId"><bean-el:message key="label.report.enrollmentCategory" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="enrollmentCategoryAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.enrollmentCategory"/>&nbsp;(<bean-el:message key="label.report.allEnrollmentCategories" />)</c:set>
    	    <tr><td><html-el:multibox title="${enrollmentCategoryAllText}" property="enrollmentCategory" styleId="enrollmentCategoryId" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.allEnrollmentCategories" /></td></tr>
    	    <c:forEach var="item" items="${EnrollmentCategoryList}">
		<c:set var="enrollmentCategoryText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.enrollmentCategory"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${enrollmentCategoryText}" property="enrollmentCategory" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[recordsPerEnrollmentStatusParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
	<td class="moduleLabel"><fw:label required="true" property="recordsPerEnrollmentStatus" forId="recordsPerEnrollStatusId"><bean-el:message key="label.report.recordsPerEnrollmentStatus" />:</fw:label></td>
	<c:set var="recordsPerEnrollmentStatusText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.recordsPerEnrollmentStatus"/>&nbsp;(record(s))</c:set>	
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${recordsPerEnrollmentStatusText}" styleId="recordsPerEnrollStatusId" property="recordsPerEnrollmentStatus" styleClass="moduleEdit" size="5" maxlength="3"/>&nbsp;record(s)</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[queryToParam] != null}">
    <jsp:include page="reportParametersQueryTo.jsp" flush="true" />
</c:if>
<c:if test="${reportParamConfig[vbaQueryStatusParam] != null}">
   <esrcore:setLookup var="AACIndicatorList" className="gov.va.med.esr.common.model.lookup.AACIndicator" />
   <tr><td colspan="3">&nbsp;</td></tr>
   <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="vbaQueryStatus" forId="vbaQueryStatusId"><bean-el:message key="label.report.VBAQueryStatus" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="VBAQueryStatusAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.VBAQueryStatus"/>&nbsp;(<bean-el:message key="label.report.allQueryStatuses" />)</c:set>
    	    <tr><td><html-el:multibox title="${VBAQueryStatusAllText}" property="vbaQueryStatus" styleId="vbaQueryStatusId" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue"><bean-el:message key="label.report.allQueryStatuses" /></td></tr>
    	    <c:forEach var="item" items="${AACIndicatorList}">
		<c:set var="VBAQueryStatusText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.VBAQueryStatus"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${VBAQueryStatusText}" property="vbaQueryStatus" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[addressUpdatedMultipleTimesWithinParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
	<td class="moduleLabel"><fw:label required="true" property="addressUpdatedMultipleTimesWithin" forId="addressUpdatedMultTimesWithinId"><bean-el:message key="label.report.addressUpdatedMultipleTimesWithin" />:</fw:label></td>
	<c:set var="addressUpdatedMultipleTimesWithinText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.addressUpdatedMultipleTimesWithin"/>&nbsp(day period)</c:set>
	<td class="moduleValue" colspan="2" nowrap><html-el:text title="${addressUpdatedMultipleTimesWithinText}" styleId="addressUpdatedMultTimesWithinId" property="addressUpdatedMultipleTimesWithin" styleClass="moduleEdit" size="5" maxlength="3"/>&nbsp;day period</td>
    </tr>
</c:if>
<c:if test="${reportParamConfig[eedWeeklyReportParam] != null}">
   <esrcore:setLookup var="ReportEEDWeeklyTypeList" className="gov.va.med.esr.common.model.lookup.ReportEEDWeeklyType" />
   <tr><td colspan="3">&nbsp;</td></tr>
   <tr>
    	<td class="moduleLabel" style="vertical-align: top"><fw:label required="true" property="eedWeeklyReport" forId="eedWeeklyReportId"><bean-el:message key="label.report.EEDWeeklyReport" />:</fw:label></td>
    	<td class="moduleValue" colspan="2">
    	  <table border="0" cellpadding="0" cellspacing="0">
    	  <c:set var="EEDWeeklyReportAllText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.EEDWeeklyReport"/>&nbsp;(All Weekly Reports)</c:set>
    	    <tr><td><html-el:multibox title="${EEDWeeklyReportAllText}" property="eedWeeklyReport" styleId="eedWeeklyReportId" value="${ALL}" onclick="checkAll(this)" /></td><td colspan="2" class="moduleValue">All Weekly Reports</td></tr>
    	    <c:forEach var="item" items="${ReportEEDWeeklyTypeList}">
		<c:set var="EEDWeeklyReportText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.EEDWeeklyReport"/>&nbsp;(<c:out value="${item.description}" />)</c:set>
		<tr><td width="1%">&nbsp;&nbsp;</td><td><html-el:multibox title="${EEDWeeklyReportText}" property="eedWeeklyReport" value="${item.code}" /></td><td class="moduleValue" width="99%"><c:out value="${item.description}" /></td></tr>
	    </c:forEach>
	  </table>
    	</td>
    </tr>
</c:if>



