158 lines
7.5 KiB
Plaintext
158 lines
7.5 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>
|
|
<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 src="/matrix/js/lib/notifications.js?ver=1" 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/edp/cutoff/cutoff.js?v=1" 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/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>Cygnus 1.0 | Cut-Off List</title>
|
|
<link href="/matrix/css/bootstrap-5.3.8.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/matrix-v2.css?v=6" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/matrix-shell-v2.css?v=7" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/tool-workspace-v3.css?v=2" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/cutoff-workflows-v1.css?v=3" rel="stylesheet" type="text/css" />
|
|
<script src="/matrix/js/bootstrap-5.3.8.bundle.min.js" defer></script>
|
|
<script src="/matrix/js/matrix-shell-v2.js" defer></script>
|
|
<link href="/matrix/css/matrix-frame-dialog.css?v=6" rel="stylesheet" type="text/css" />
|
|
<script src="/matrix/js/matrix-frame-dialog.js?v=2" defer></script>
|
|
<script src="/matrix/js/matrix-accessibility-v1.js?v=1" defer></script>
|
|
<link href="/matrix/css/matrix-theme-v2.css?v=4" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body class="matrix-v2 matrix-shell matrix-tool-workspace matrix-cutoff-workflow">
|
|
<div id='PageFrame'>
|
|
<%@ include file="/WEB-INF/app/fragments/app-shell-header.jspf" %>
|
|
<%-- Shared shell owns ${Sessvals.menuHtml}. --%>
|
|
<div id="formcontainer" class="matrix-tool-workspace__content" style="max-width:1100px">
|
|
<form:form method="post" name="cutOff" id="cutOff" modelAttribute="cutOff" >
|
|
<c:if test="${not empty _csrf}"><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" /></c:if>
|
|
<!-- Common Details (Section1) Visible for all portfolios-->
|
|
<div>
|
|
<!-- Title -->
|
|
<div class="title">
|
|
<img class="matrix-title-icon" src="/matrix/images/cutlist.png" align="absmiddle" />
|
|
<span class="matrix-title-text" align="absmiddle">Cut-Off List</span>
|
|
<div class="matrix-cutoff-title-actions">
|
|
<div class="divselect" id="divbatch">
|
|
<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 class="matrix-title-action" src="/matrix/images/reload.png" title="Refresh Grid" onclick="return submitCutoffForm('cutOff','cutoff')"/>
|
|
</div>
|
|
</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"
|
|
disabled="${record.totrtv le 0 and record.tototv le 0}"
|
|
title="${record.totrtv le 0 and record.tototv le 0 ? 'Tele-Sheet requires RTV or OTV' : ''}" />
|
|
</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>
|
|
<div class="matrix-workflow-actions">
|
|
<input type="button" class="button" name="btnsave" value="Save" id="btnsave" accesskey="S" onclick="return ValidateSubmitCutOff('cutOff');" />
|
|
</div>
|
|
<form:hidden path="CutoffTime" value="${cutOff.getCutoffTime()}"/>
|
|
</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">
|
|
InitPage();
|
|
</script>
|
|
<!-- -->
|
|
<!-- Process Message -->
|
|
<c:if test="${not empty cutOff.getErrMsg()}">
|
|
<script>CygnusNotifications.showLegacy('${fn:escapeXml(cutOff.getErrMsg())}');</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>
|