149 lines
7.0 KiB
Plaintext
149 lines
7.0 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
|
pageEncoding="ISO-8859-1"%>
|
|
<%@page language="java" session="true" %>
|
|
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
|
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<script language="javascript" src="/matrix/js/lib/constants.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/jquery1.7.2.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/ui/uifuncs.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/lib/jsfuncs.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/ui/msgdialog.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/ui/select.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/appjs/cutoff.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/validator.js" type="text/javascript"></script>
|
|
|
|
<link href="/matrix/css/matrix.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/menu.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/button.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/div.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/select.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/table.css" rel="stylesheet" type="text/css" />
|
|
<title>Nimble 1.0 | Cut-Off List</title>
|
|
</head>
|
|
<body>
|
|
<div id='PageFrame'>
|
|
<!-- Title Bar -->
|
|
<div id='title' class="title">
|
|
<img id="icon" src="/matrix/images/optmale.png" />
|
|
<img id="close" src="/matrix/images/close.jpg" onclick="javascript:closewindow();" />
|
|
<span id="title">Nimble 1.0 ${Sessvals.getCompanyCode() } (${Sessvals.getBranchLocation() }) ${Sessvals.getUserDisplayName()} (${Sessvals.getUserGroupName()}) </span>
|
|
</div>
|
|
<!-- -->
|
|
<!-- Dynamic Menu -->
|
|
<jsp:include page='../../usermenu/menu_${Sessvals.getUserID()}.html' />
|
|
<!-- -->
|
|
<div id="formcontainer" style="width:650px;margin-top:5px;position:absolute;z-index:-1">
|
|
<form:form method="post" name="cutOff" id="cutOff" modelAttribute="cutOff" >
|
|
<!-- Common Details (Section1) Visible for all portfolios-->
|
|
<div>
|
|
<!-- Title -->
|
|
<div id='title' class="title">
|
|
<img id="icon" src="/matrix/images/cutlist.png" align="absmiddle" />
|
|
<span id="title" align="absmiddle">Cut-Off List</span>
|
|
<div class="divselect" id="divbatch" style="width:85px;position:absolute;top:3px;right:30px;">
|
|
<form:select path="Batch" multiple="false" id="batchlist" style="width:103px" onblur="validate(this,'t','');">
|
|
<form:option value="-1" label="BATCH" selected="true"/>
|
|
<form:option value="AM" label="AM" />
|
|
<form:option value="PM" label="PM" />
|
|
</form:select>
|
|
</div>
|
|
<img id="close" src="/matrix/images/reload.png" title="Refresh Grid" onclick="SubmitForm('cutoff','_parent','cutOff')"/>
|
|
</div>
|
|
<!-- -->
|
|
<div id="TablePanel" class="tableContainer">
|
|
<table border="0" cellspacing="0" width="100%" id="cutlist">
|
|
<thead class="thead">
|
|
<tr title="Row Title">
|
|
<td width="6%">S.No</td>
|
|
<td width="40%">Portfolio</td>
|
|
<td>Allocation</td>
|
|
<td>SMS</td>
|
|
<td>Telecalling</td>
|
|
<td>Earlier</td>
|
|
<td>Negative</td>
|
|
<td align="center"><input type="checkbox" name="selall" id="selall" onclick="ToggleChecks('chkrow',this.checked)" /></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="scrollContent">
|
|
<c:forEach items="${cutOff.cofflist}" var="record" varStatus="mystatus">
|
|
<tr title="${ record.lockedby}">
|
|
<td>${mystatus.count}</td>
|
|
<td>
|
|
<form:hidden path="cofflist[${mystatus.index}].lockedby" id="locby${mystatus.count}" value="${status.value}"/>
|
|
<form:hidden path="cofflist[${mystatus.index}].portfolioid" id="portid${mystatus.count}" value="${status.value}"/>
|
|
<form:hidden path="cofflist[${mystatus.index}].portname" id="portname${mystatus.count}" value="${status.value}"/>${record.portname}
|
|
</td>
|
|
<td align="center">
|
|
<form:checkbox path="cofflist[${mystatus.index}].allocation" id="alloc${mystatus.count}" value="true" />
|
|
</td>
|
|
<td align="center">
|
|
<form:checkbox path="cofflist[${mystatus.index}].sms" id="sms${mystatus.count}" value="true" />
|
|
</td>
|
|
<td align="center">
|
|
<form:checkbox path="cofflist[${mystatus.index}].telesheet" id="ts${mystatus.count}" value="true" />
|
|
</td>
|
|
<td align="center">
|
|
<form:checkbox path="cofflist[${mystatus.index}].earlier" id="ear${mystatus.count}" value="true" />
|
|
</td>
|
|
<td align="center">
|
|
<form:checkbox path="cofflist[${mystatus.index}].negative" id="neg${mystatus.count}" value="true"/>
|
|
</td>
|
|
<td align="center">
|
|
<form:hidden path="cofflist[${mystatus.index}].islocked" id="locked${mystatus.count}" value="${status.value}" />
|
|
<c:choose>
|
|
<c:when test="${record.islocked gt 0}">
|
|
<img src="/matrix/images/locked.png"/>
|
|
<form:checkbox path="cofflist[${mystatus.index}].docut" id="lrow${mystatus.count}" value="true" style="display:none" />
|
|
</c:when>
|
|
<c:otherwise>
|
|
<form:checkbox path="cofflist[${mystatus.index}].docut" id="chkrow${mystatus.count}" value="true" onclick="checkList('chkrow','selall')" />
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<input type="button" class="button" name="btnsave" style="margin-top:5px;float:right" value="Save" id="btnsave" accesskey="S" onclick="return ValidateSubmitCutOff('cutOff');" />
|
|
<form:hidden path="CutoffTime" value="${cutOff.getCutoffTime()}"/>
|
|
<form:hidden path="SessUUID" value="${cutOff.getSessUUID()}"/>
|
|
</form:form>
|
|
<input type="hidden" id="invalidfields" value="0" />
|
|
<input type="hidden" id="selectedports" value="0" />
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<!-- Page Load Javascript -->
|
|
<script language="javascript" type="text/javascript">
|
|
centerDivBoth("formcontainer","H");
|
|
InitPage();
|
|
</script>
|
|
<!-- -->
|
|
<!-- Process Message -->
|
|
<c:if test="${not empty cutOff.getErrMsg()}">
|
|
<script language="javascript" type="text/javascript"> CallMessage('${cutOff.getErrMsg()}',3000,200,300); </script>
|
|
</c:if>
|
|
<!-- -->
|
|
<script>
|
|
$(document).ready(function(){
|
|
var date = new Date();
|
|
var hour = date.getHours();
|
|
var minutes = date.getMinutes();
|
|
if((hour == 14 && minutes > 29) || hour > 14){
|
|
$("#batchlist").val("PM");
|
|
}
|
|
else
|
|
{
|
|
$("#batchlist").val("AM");
|
|
}
|
|
});
|
|
</script>
|
|
</html> |