gake
This commit is contained in:
BIN
IPKS_Updated/web/web.zip
Normal file
BIN
IPKS_Updated/web/web.zip
Normal file
Binary file not shown.
543
IPKS_Updated/web/web/web/AccountAmendment.jsp
Normal file
543
IPKS_Updated/web/web/web/AccountAmendment.jsp
Normal file
@@ -0,0 +1,543 @@
|
||||
<%--
|
||||
Document : AccountAmmendment
|
||||
Created on : May 9, 2017, 3:39:08 PM
|
||||
Author : 981898
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Account Amendment</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/font-awesome.min.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jQuery/jquery-3.3.1.min.js"></script>
|
||||
<style>
|
||||
|
||||
.dialog{
|
||||
border:5px solid #666;
|
||||
padding:10px;
|
||||
background:#FFFFFF;
|
||||
position:absolute;
|
||||
left: 175px;
|
||||
top: 220px;
|
||||
z-index:1;
|
||||
display:none;
|
||||
}
|
||||
.dialog label{
|
||||
display:inline-block;
|
||||
color:#151414;
|
||||
}
|
||||
div .dialog input[type=text]{
|
||||
border:1px solid #333;
|
||||
display:inline-block;
|
||||
margin:5px;
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<style>
|
||||
|
||||
#recordsTable {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable td, #recordsTable th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable tr:hover {background-color: #a8ecab; cursor:pointer;}
|
||||
|
||||
#recordsTable th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#newRecord tr:hover {background-color: #a8ecab; cursor:pointer;}
|
||||
|
||||
</style>
|
||||
<body onload="noBack()">
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/AccountAmendment.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function submitform()
|
||||
{
|
||||
if(validateCif()){
|
||||
$('#action').val('submit');
|
||||
for(var j=11;j>=1;j--){
|
||||
var cif = $('#cif'+j).val();
|
||||
if(cif == "NA"){
|
||||
$('#cif'+j).val('');
|
||||
}
|
||||
}
|
||||
document.AccountAmendment.action = '/PacsApplication/AccAmendServlet';
|
||||
document.AccountAmendment.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function accSelect(i){
|
||||
|
||||
var accNo = $('#accNo'+i).text();
|
||||
var accType = $('#accType'+i).text();
|
||||
var prodName = $('#prodName'+i).text();
|
||||
var priCIF = $('#priCIF'+i).text();
|
||||
var priName = $('#priName'+i).text();
|
||||
var accOpenDt = $('#accOpenDt'+i).text();
|
||||
var accBal = $('#accBal'+i).text();
|
||||
//if(accType == "DEP")
|
||||
getAccDtl(accNo,accType);
|
||||
$('#chequDetTab').hide(500);
|
||||
//$("#recordsTable").remove();
|
||||
$("#recordsTable").children('tr').remove();
|
||||
$("#accNo").val(accNo);
|
||||
$("#accNo").attr('readonly', true);
|
||||
$('#priCIF').val(priCIF);
|
||||
$('#accType').val(accType);
|
||||
$('#prod').val(prodName);
|
||||
$('#priName').val(priName);
|
||||
$('#openDt').val(accOpenDt);
|
||||
$('#availBal').val(accBal);
|
||||
$('#accDetails').show(1000);
|
||||
$('#submitForm').show();
|
||||
}
|
||||
|
||||
function removeCif(i){
|
||||
if(i=="1")
|
||||
{
|
||||
alert('Primary CIF cannot be removed');
|
||||
return;
|
||||
}
|
||||
$('#cif'+i).val('NA');
|
||||
$('#name'+i).val('NA');
|
||||
$("#cifSrch"+i).val('NA');
|
||||
$("#cif"+i).attr('readonly', false);
|
||||
}
|
||||
function cifSelect(i,b){
|
||||
var newCif = $('#newCif'+i).text();
|
||||
var newCifName = $('#newCustName'+i).text();
|
||||
$('#srchNewCif').hide(500);
|
||||
$("#allCif tbody tr").remove();
|
||||
$("#cif"+b).val(newCif);
|
||||
$("#name"+b).val(newCifName);
|
||||
$("#cif"+b).attr('readonly', true);
|
||||
$("#cifSrch"+b).val(newCif);
|
||||
}
|
||||
function validateCif(){
|
||||
var priCif = $("#cif1").val();
|
||||
var rmk = $("#remarks").val();
|
||||
var accType = $('#accType').val();
|
||||
var i=1;
|
||||
if(priCif == "" || priCif == "NA"){
|
||||
alert("Primary CIF cannot be blank.");
|
||||
$("#cif1").focus();
|
||||
return false;
|
||||
}
|
||||
for(var j=10;j>=1;j--){
|
||||
if($("#cifSrch"+j).val() != $("#cif"+j).val()){
|
||||
alert("Please search the CIF before proceeding");
|
||||
$("#cif"+j).focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
for(var j=10;j>=1;j--){
|
||||
if($("#cifSrch"+j).val() != "NA"){
|
||||
while(i<=j){
|
||||
var cif = $("#cif"+i).val();
|
||||
var cifSrch = $("#cifSrch"+i).val();
|
||||
if(cif == "" || cif == "NA" || (cif != cifSrch)){
|
||||
alert("CIF Number #"+i+" cannot be blank");
|
||||
$("#cif"+i).focus();
|
||||
return false;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(rmk == ""){
|
||||
alert('Remark cannot be blank.');
|
||||
$("#remarks").focus();
|
||||
return false;
|
||||
}
|
||||
if(accType != "DEP"){
|
||||
alert("Only primary CIF will be updated for Loan A/C.");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function getAccountList()
|
||||
{
|
||||
var accN =document.getElementById("accNo").value;
|
||||
$("#recordsTable").children('tr').remove();
|
||||
if( accN == "" )
|
||||
{
|
||||
alert("Enter Account Number.");
|
||||
document.getElementById("accNo").focus();
|
||||
}
|
||||
else {
|
||||
$.ajax({
|
||||
url:'/PacsApplication/AccAmendServlet',
|
||||
data:{"action":"search" ,"accNo":document.getElementById("accNo").value},
|
||||
type:'post',
|
||||
cache:false,
|
||||
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$("#recordsTable tbody tr").remove();
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td onclick="javascript:accSelect('+i+')" id="accType'+i+'">').text(item.accType),
|
||||
$('<td onclick="javascript:accSelect('+i+')" id="accNo'+i+'">').text(item.accNo),
|
||||
$('<td onclick="javascript:accSelect('+i+')" id="prodName'+i+'">').text(item.prodName),
|
||||
$('<td onclick="javascript:accSelect('+i+')" id="priCIF'+i+'">').text(item.cif1),
|
||||
$('<td onclick="javascript:accSelect('+i+')" id="priName'+i+'">').text(item.custName),
|
||||
$('<td onclick="javascript:accSelect('+i+')" id="accOpenDt'+i+'">').text(item.accOpenDt),
|
||||
$('<td onclick="javascript:accSelect('+i+')" id="accBal'+i+'">').text(item.availBal)
|
||||
//$('<td>').html('<input type="radio"/>')
|
||||
//$('<td>').html('<input type="checkbox" id="chk'+i+'"/>')
|
||||
).appendTo('#recordsTable');
|
||||
//console.log($tr.wrap('<p>').html());
|
||||
});
|
||||
$('#chequDetTab').show();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
function getCifList(a)
|
||||
{
|
||||
var newCif =document.getElementById("cif"+a).value;
|
||||
//alert(a);
|
||||
if(newCif == ""){
|
||||
alert('Please enter CIF Number.');
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
$.ajax({
|
||||
url:'/PacsApplication/AccAmendServlet',
|
||||
data:{"action":"newCifSearch" ,"newCif":newCif},
|
||||
type:'post',
|
||||
cache:false,
|
||||
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
//$("#newRecord tbody").remove();
|
||||
$('#newRecord').children('tr').remove();
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td onclick="javascript:cifSelect('+i+','+a+')" id="newCif'+i+'">').text(item.cif1),
|
||||
$('<td onclick="javascript:cifSelect('+i+','+a+')" id="newCustName'+i+'">').text(item.custName),
|
||||
$('<td onclick="javascript:cifSelect('+i+','+a+')" id="newGuardianName'+i+'">').text(item.guardianName)
|
||||
|
||||
).appendTo('#newRecord');
|
||||
|
||||
});
|
||||
$('#srchNewCif').show();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function getAccDtl(accNo,accType)
|
||||
{
|
||||
$.ajax({
|
||||
url:'/PacsApplication/AccAmendServlet',
|
||||
data:{"action":"accDtl" ,"accNo":accNo,"accType":accType},
|
||||
type:'post',
|
||||
cache:false,
|
||||
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$("#allCif tbody tr").remove();
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td>').text("CIF Number #1"),
|
||||
$('<td> <input type="text" id="cif1" name="cif1" value="'+item.cif1+'" > </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(1)" />'),
|
||||
$('<td> <input type="text" id="name1" value="'+item.custName+'" readonly> <a href="javascript:removeCif(1)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch1" value="'+item.cif1+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
if(accType == "DEP"){
|
||||
var $tr = $('<tr id="2">').append(
|
||||
$('<td>').text("CIF Number #2"),
|
||||
$('<td> <input type="text" id="cif2" name="cif2" value="'+item.cif2+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(2)" />'),
|
||||
$('<td> <input type="text" id="name2" value="'+item.name2+'" readonly> <a href="javascript:removeCif(2)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch2" value="'+item.cif2+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="3">').append(
|
||||
$('<td>').text("CIF Number #3"),
|
||||
$('<td> <input type="text" id="cif3" name="cif3" value="'+item.cif3+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(3)" />'),
|
||||
$('<td> <input type="text" id="name3" value="'+item.name3+'" readonly> <a href="javascript:removeCif(3)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch3" value="'+item.cif3+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="4">').append(
|
||||
$('<td>').text("CIF Number #4"),
|
||||
$('<td> <input type="text" id="cif4" name="cif4" value="'+item.cif4+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(4)" />'),
|
||||
$('<td> <input type="text" id="name4" value="'+item.name4+'" readonly> <a href="javascript:removeCif(4)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch4" value="'+item.cif4+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="5">').append(
|
||||
$('<td>').text("CIF Number #5"),
|
||||
$('<td> <input type="text" id="cif5" name="cif5" value="'+item.cif5+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(5)" />'),
|
||||
$('<td> <input type="text" id="name5" value="'+item.name5+'" readonly> <a href="javascript:removeCif(5)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch5" value="'+item.cif5+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="6">').append(
|
||||
$('<td>').text("CIF Number #6"),
|
||||
$('<td> <input type="text" id="cif6" name="cif6" value="'+item.cif6+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(6)" />'),
|
||||
$('<td> <input type="text" id="name6" value="'+item.name6+'" readonly> <a href="javascript:removeCif(6)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch6" value="'+item.cif6+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="7">').append(
|
||||
$('<td>').text("CIF Number #7"),
|
||||
$('<td> <input type="text" id="cif7" name="cif7" value="'+item.cif7+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(7)" />'),
|
||||
$('<td> <input type="text" id="name7" value="'+item.name7+'" readonly> <a href="javascript:removeCif(7)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch7" value="'+item.cif7+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="8">').append(
|
||||
$('<td>').text("CIF Number #8"),
|
||||
$('<td> <input type="text" id="cif8" name="cif8" value="'+item.cif8+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(8)" />'),
|
||||
$('<td> <input type="text" id="name8" value="'+item.name8+'" readonly> <a href="javascript:removeCif(8)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch8" value="'+item.cif8+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="9">').append(
|
||||
$('<td>').text("CIF Number #9"),
|
||||
$('<td> <input type="text" id="cif9" name="cif9" value="'+item.cif9+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(9)" />'),
|
||||
$('<td> <input type="text" id="name9" value="'+item.name9+'" readonly> <a href="javascript:removeCif(9)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch9" value="'+item.cif9+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="10">').append(
|
||||
$('<td>').text("CIF Number #10"),
|
||||
$('<td> <input type="text" id="cif10" name="cif10" value="'+item.cif10+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(10)" />'),
|
||||
$('<td> <input type="text" id="name10" value="'+item.name10+'" readonly> <a href="javascript:removeCif(10)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch10" value="'+item.cif10+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
|
||||
var $tr = $('<tr id="11">').append(
|
||||
$('<td>').text("CIF Number #11"),
|
||||
$('<td> <input type="text" id="cif11" name="cif11" value="'+item.cif11+'"> </td>'),
|
||||
$('<td> <input type="button" value="Search" onclick="javascript:getCifList(11)" />'),
|
||||
$('<td> <input type="text" id="name11" value="'+item.name11+'" readonly> <a href="javascript:removeCif(11)">Remove</a></td>'),
|
||||
$('<td> <input type="hidden" id="cifSrch10" value="'+item.cif11+'"> </td>')
|
||||
|
||||
).appendTo('#allCif');
|
||||
}
|
||||
|
||||
});
|
||||
$('#allCif').show(500);
|
||||
$('#remarkDiv').show();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<% String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Account Amendment</legend>
|
||||
<form name="AccountAmendment" id="AccountAmendment" action="" method="post">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
<center>
|
||||
<label title="accNo">Enter Account Number<font color="red" >*</font>:</label>
|
||||
<input type="text" name="accNo" id="accNo" placeholder="Enter account number" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" value="Get Details" onclick="javascript:getAccountList();"/>
|
||||
<br><br>
|
||||
|
||||
<div align="center" style="display:none" id="chequDetTab">
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>Account Type</td>
|
||||
<td>Account Number</td>
|
||||
<td>Product</td>
|
||||
<td>Primary CIF</td>
|
||||
<td>Primary Customer Name</td>
|
||||
<td>Account Open Date</td>
|
||||
<td>Available Balance</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div align="center" style="display:none" id="accDetails">
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="accDtl" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<tr>
|
||||
<td>Primary CIF</td>
|
||||
<td><input type="text" id="priCIF" name="priCIF" value="" readonly/></td>
|
||||
<td>Name</td>
|
||||
<td><input type="text" id="priName" name="priName" value="" readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Product</td>
|
||||
<td><input type="text" id="prod" name="prod" value="" readonly/></td>
|
||||
<td>Account Type</td>
|
||||
<td><input type="text" id="accType" name="accType" value="" readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>A/C Open Date</td>
|
||||
<td><input type="text" id="openDt" name="openDt" value="" readonly/></td>
|
||||
<td>Available Bal</td>
|
||||
<td><input type="text" id="availBal" name="availBal" value="" readonly/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<br><br>
|
||||
<div align="center" style="display:none;" id="allCif">
|
||||
|
||||
</div>
|
||||
<div align="center" style="display:none;" id="remarkDiv">
|
||||
<p>Reason for CIF change:<input type="text" id="remarks" name="remarks" /></p>
|
||||
</div>
|
||||
<br>
|
||||
<div align="center" style="display:none;overflow:scroll; width: 500px; height: 250px;" id="srchNewCif">
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="newRecord" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>CIF Number</td>
|
||||
<td>Customer Name</td>
|
||||
<td>Guardian Name</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<input type="hidden" id="action" name="action" value=""/>
|
||||
<input type="button" value="Update" id="submitForm" style="display:none;" onclick="javascript:submitform();" />
|
||||
</center>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
178
IPKS_Updated/web/web/web/AccountRenewalBulk.jsp
Normal file
178
IPKS_Updated/web/web/web/AccountRenewalBulk.jsp
Normal file
@@ -0,0 +1,178 @@
|
||||
<%--
|
||||
Document : AccountRnewalBulkFileUpload
|
||||
Created on : Sep 29, 2018, 4:48:59 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Account Renewal Bulk File Upload</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<script>
|
||||
function sendFileToServer(temp)
|
||||
{
|
||||
if(temp==1){
|
||||
var fileName= document.getElementById("fileChooser").value
|
||||
var fileNameSplit=fileName.split('.');
|
||||
if(fileNameSplit[1]!="csv"){
|
||||
alert("Please choose .csv file only.");
|
||||
return;
|
||||
}
|
||||
else{
|
||||
document.forms[0].submit();
|
||||
var formUploadMultiPart = document.getElementById("BulkFileIdUpload");
|
||||
formUploadMultiPart.action = '/PacsApplication/AccountRewnewBulkServlet';
|
||||
formUploadMultiPart.submit();
|
||||
}
|
||||
}
|
||||
else if(temp==2)
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("BulkFileIdDownload");
|
||||
formDownloadNormal.action = '/PacsApplication/AccountRewnewBulkServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
else if(temp==3)
|
||||
{
|
||||
if( BulkFileReport.fileId.value == "" )
|
||||
{
|
||||
alert("Please provide File Id.");
|
||||
BulkFileReport.fileId.focus();
|
||||
return false;
|
||||
}
|
||||
var formDownloadReport = document.getElementById("BulkFileReport");
|
||||
formDownloadReport.reportPath.value = "/Reports/bulk_kcc_renewal_report";
|
||||
formDownloadReport.reportName.value = "Bulk KCC Renewal Report";
|
||||
formDownloadReport.DOWNLOAD.value = "P";
|
||||
formDownloadReport.action = '/PacsApplication/ExcelReportServlet';
|
||||
formDownloadReport.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleDiv(temp)
|
||||
{
|
||||
document.getElementById("errorMessageTag").innerHTML="";
|
||||
if(temp == 1 && document.getElementById("FileTypeId").value == 'Def'){
|
||||
alert("Please select an option first.");
|
||||
}
|
||||
else if (temp == 1 && document.getElementById("FileTypeId").value == 'Upload'){
|
||||
document.getElementById("UploadDiv").style.display='block';
|
||||
document.getElementById("SelectDiv").style.display='none';
|
||||
}
|
||||
else if(temp == 1 && document.getElementById("FileTypeId").value == 'Download'){
|
||||
document.getElementById("ReportDiv").style.display='block';
|
||||
document.getElementById("SelectDiv").style.display='none';
|
||||
}
|
||||
else if(temp==2 ){
|
||||
document.getElementById("ReportDiv").style.display='none';
|
||||
document.getElementById("SelectDiv").style.display='block';
|
||||
}
|
||||
else if(temp==3 ){
|
||||
document.getElementById("UploadDiv").style.display='none';
|
||||
document.getElementById("SelectDiv").style.display='block';
|
||||
}
|
||||
}
|
||||
function popup_bulkFile(width, height, fileId) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AccountRenewalBulk.jsp";
|
||||
var lovKey = "bulkReport";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?fileId=' + fileId + '&screenName=' + screenName + '&lovKey=' + lovKey, 'bulkReport', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<body>
|
||||
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Account Renewal Bulk File Upload</legend>
|
||||
<center>
|
||||
<div id="SelectDiv">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Select Operation</td>
|
||||
<td>
|
||||
<select id="FileTypeId" name="FileType" onchange="toggleDiv(1)">
|
||||
<option value="Def" selected> --Select-- </option>
|
||||
<option value="Upload" >Upload Renewal Bulk File</option>
|
||||
<option value="Download" >Generate Renewal Bulk File Process Report</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<div id="UploadDiv" style="display:none">
|
||||
<form name="BulkFile" id="BulkFileIdUpload" action="" method="post" enctype="multipart/form-data">
|
||||
<center>
|
||||
|
||||
|
||||
Select file to upload:
|
||||
<input type="file" name="dataFile" id="fileChooser"/><br/><font color="blue" >*Supported File type: csv</font><br/><br/>
|
||||
<input type="button" value="Upload" id ="FileTypeIdUpload" name="FileType" onclick="sendFileToServer(1)"/>
|
||||
<input type="button" value="Back" id ="BackIdU" name="BackIdUButton" onclick="toggleDiv(3)"/>
|
||||
|
||||
|
||||
|
||||
</center>
|
||||
</form>
|
||||
<form name="BulkFileSample" id="BulkFileIdDownload" action="" method="post" >
|
||||
|
||||
|
||||
<input type="hidden" id="actionId" value="Download" name="actionTag">
|
||||
<input type="button" value="Download Manual Document" id ="FileTypeIdDownload" name="FileType" onclick="sendFileToServer(2)" style="float: right"/>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div id="ReportDiv" style="display:none">
|
||||
<form name="BulkFileReport" id="BulkFileReport" action="" method="post" >
|
||||
<center>
|
||||
<td>File Id:</td>
|
||||
<td><input type="text" name="fileId" id="fileId" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_bulkFile(750, 250,document.BulkFileReport.fileId.value);"/></td>
|
||||
<br><br>
|
||||
<input type="button" value="Download Bulk Report" id ="ReportDownload" name="ReportType" onclick="sendFileToServer(3)" style="float: center"/>
|
||||
<input type="button" value="Back" id ="BackIdU" name="BackIdUButton" onclick="toggleDiv(2)"/>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
</center>
|
||||
</form>
|
||||
<br><br>
|
||||
</div>
|
||||
<div id="errorMessageTag"style="color: #FF0000;">${errorMessageAccBulk}</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
161
IPKS_Updated/web/web/web/AccountRenewalBulkSTB.jsp
Normal file
161
IPKS_Updated/web/web/web/AccountRenewalBulkSTB.jsp
Normal file
@@ -0,0 +1,161 @@
|
||||
<%--
|
||||
Document : AccountRenewalBulkSTB
|
||||
Created on : Sep 17, 2019, 4:48:59 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Account Renewal Bulk File Processing</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<script>
|
||||
function sendFileToServer(temp)
|
||||
{
|
||||
if(temp==1){
|
||||
var fileName= document.getElementById("fileChooser").value;
|
||||
var fileNameSplit=fileName.split('.');
|
||||
if(fileNameSplit[1]!="csv"){
|
||||
alert("please choose .csv file only");
|
||||
return;
|
||||
}
|
||||
else{
|
||||
document.BulkFileIdUpload.actionTag.value = "UPLOAD";
|
||||
document.BulkFileIdUpload.action = '/PacsApplication/AccountRewnewBulkSTBServlet';
|
||||
document.BulkFileIdUpload.submit();
|
||||
|
||||
}
|
||||
}
|
||||
else if(temp==2)
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("BulkFileIdDownload");
|
||||
formDownloadNormal.action = '/PacsApplication/AccountRewnewBulkServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
else if(temp==3)
|
||||
{
|
||||
var formDownloadReport = document.getElementById("BulkFileReport");
|
||||
formDownloadReport.reportPath.value = "/Reports/bank_bulk_kcc_renewal_report";
|
||||
formDownloadReport.reportName.value = "Bank Bulk KCC Renewal Report";
|
||||
formDownloadReport.DOWNLOAD.value = "P";
|
||||
formDownloadReport.action = '/PacsApplication/ExcelReportServlet';
|
||||
formDownloadReport.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleDiv(temp)
|
||||
{
|
||||
document.getElementById("errorMessageTag").innerHTML="";
|
||||
if(temp == 1 && document.getElementById("FileTypeId").value == 'Def'){
|
||||
alert("Please select an option first.");
|
||||
}
|
||||
else if (temp == 1 && document.getElementById("FileTypeId").value == 'Upload'){
|
||||
document.getElementById("UploadDiv").style.display='block';
|
||||
document.getElementById("SelectDiv").style.display='none';
|
||||
}
|
||||
else if(temp == 1 && document.getElementById("FileTypeId").value == 'Download'){
|
||||
document.getElementById("ReportDiv").style.display='block';
|
||||
document.getElementById("SelectDiv").style.display='none';
|
||||
}
|
||||
}
|
||||
function popup_bulkFile(width, height, fileId) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AccountRenewalBulkSTB.jsp";
|
||||
var lovKey = "bulkReport";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?fileId=' + fileId + '&screenName=' + screenName + '&lovKey=' + lovKey, 'bulkReport', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<body>
|
||||
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Account Renewal Bulk File Upload</legend>
|
||||
<center>
|
||||
<div id="SelectDiv">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Select Operation</td>
|
||||
<td>
|
||||
<select id="FileTypeId" name="FileType" onchange="toggleDiv(1)">
|
||||
<option value="Def" selected>Please Select from below</option>
|
||||
<option value="Upload" >Upload Renewal Bulk File</option>
|
||||
<option value="Download" >Generate Renewal Bulk File Process Report</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<div id="UploadDiv" style="display:none">
|
||||
<form name="BulkFileIdUpload" id="BulkFileIdUpload" method="post" enctype="multipart/form-data">
|
||||
<center>
|
||||
Select file to upload:
|
||||
<input type="file" name="dataFile" id="fileChooser"/><br/><br/>
|
||||
<input type="hidden" id="actionTag" name="actionTag">
|
||||
<input type="button" value="Upload" id ="FileTypeIdUpload" name="FileType" onclick="sendFileToServer(1)"/>
|
||||
<input type="button" value="Back" id ="BackIdU" name="BackIdUButton" onclick="toggleDiv(3)"/>
|
||||
|
||||
</center>
|
||||
</form>
|
||||
<form name="BulkFileSample" id="BulkFileIdDownload" action="" method="post" >
|
||||
|
||||
|
||||
<input type="hidden" id="actionId" value="Download" name="actionTag">
|
||||
<input type="button" value="Download Manual Document" id ="FileTypeIdDownload" name="FileType" onclick="sendFileToServer(2)" style="float: right"/>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div id="ReportDiv" style="display:none">
|
||||
<form name="BulkFileReport" id="BulkFileReport" action="" method="post" >
|
||||
<center>
|
||||
<td>File Id:</td>
|
||||
<td><input type="text" name="fileId" id="fileId" /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_bulkFile(750, 250,document.BulkFileReport.fileId.value);"/></td>
|
||||
<br><br>
|
||||
<input type="button" value="Download Bulk Report" id ="ReportDownload" name="ReportType" onclick="sendFileToServer(3)" style="float: center"/>
|
||||
<input type="button" value="Back" id ="BackIdU" name="BackIdUButton" onclick="toggleDiv(2)"/>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
</center>
|
||||
</form>
|
||||
<br><br>
|
||||
</div>
|
||||
<div id="errorMessageTag"style="color: #FF0000;">${errorMessageAccBulk}</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
198
IPKS_Updated/web/web/web/AdhocReport.jsp
Normal file
198
IPKS_Updated/web/web/web/AdhocReport.jsp
Normal file
@@ -0,0 +1,198 @@
|
||||
<%--
|
||||
Document : PACS_REPORT
|
||||
Created on : Sep 17, 2015, 12:59:59 PM
|
||||
Author : 590685
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.adhocReportBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Adhoc Report</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadReport() {
|
||||
|
||||
|
||||
|
||||
document.forms[0].handle_id.value = "Download Report";
|
||||
document.forms[0].action = '/PacsApplication/HrmAdhocReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function getDetails() {
|
||||
|
||||
document.forms[0].handle_id.value = "Get Data";
|
||||
document.forms[0].action = '/PacsApplication/HrmAdhocReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function searchReport(width, height, reportId) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AdhocReport.jsp";
|
||||
var lovKey = "reportSearch"
|
||||
popWin = open('CommonSearchInformationLOV.jsp?reportId=' + reportId + '&screenName=' + screenName + '&lovKey=' + lovKey, 'reportSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
Object oadhocReportBeanObj = request.getAttribute("oadhocReportBeanObj");
|
||||
adhocReportBean oadhocReportBean = new adhocReportBean();
|
||||
|
||||
if (oadhocReportBeanObj != null) {
|
||||
oadhocReportBean = (adhocReportBean) request.getAttribute("oadhocReportBeanObj");
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Adhoc Report</legend>
|
||||
|
||||
<form name="Adhocreport" method="post" action="/PacsApplication/HrmAdhocReportServlet">
|
||||
<br>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">Report ID: </label><input value="<%=blankNull(oadhocReportBean.getReportID())%>" type="text" name="reportID" id="reportID"/> <input type="button" value="Search" name="reportIDSearch" id="reportIDSearch" onclick="javascript:searchReport(220, 180, document.Adhocreport.reportID.value);">
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name: </label><input style="width: 500px;" value="<%=blankNull(oadhocReportBean.getReportName())%>" type="text" name="reportName" id="reportName" readonly="true"/>
|
||||
<br><br>
|
||||
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Query :</label><br>
|
||||
<br>
|
||||
<textarea name="reportQuery" id="reportQuery" cols="100" rows="12" readonly="true"><%=blankNull(oadhocReportBean.getReportQuery())%></textarea>
|
||||
<br>
|
||||
<input type="button" value="Get Details" onclick="javascript:getDetails();">
|
||||
<hr>
|
||||
<br>
|
||||
<table style="width : 100%">
|
||||
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 1 : <input type="text" name="parameter1" id="parameter1" value="<%=blankNull(oadhocReportBean.getParameter1())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 1 : <input type="text" name="value1" id="value1" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 2 : <input type="text" name="parameter2" id="parameter2" value="<%=blankNull(oadhocReportBean.getParameter2())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 2 : <input type="text" name="value2" id="value2" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 3 : <input type="text" name="parameter3" id="parameter3" value="<%=blankNull(oadhocReportBean.getParameter3())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 3 : <input type="text" name="value3" id="value3" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 4 : <input type="text" name="parameter4" id="parameter4" value="<%=blankNull(oadhocReportBean.getParameter4())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 4 : <input type="text" name="value4" id="value4" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 5 : <input type="text" name="parameter5" id="parameter5" value="<%=blankNull(oadhocReportBean.getParameter5())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 5 : <input type="text" name="value5" id="value5" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 6 : <input type="text" name="parameter6" id="parameter6" value="<%=blankNull(oadhocReportBean.getParameter6())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 6 : <input type="text" name="value6" id="value6" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 7 : <input type="text" name="parameter7" id="parameter7" value="<%=blankNull(oadhocReportBean.getParameter7())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 7 : <input type="text" name="value7" id="value7" value="" />
|
||||
</tr>
|
||||
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 8 : <input type="text" name="parameter8" id="parameter8" value="<%=blankNull(oadhocReportBean.getParameter8())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 8 : <input type="text" name="value8" id="value8" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 9 : <input type="text" name="parameter9" id="parameter9" value="<%=blankNull(oadhocReportBean.getParameter9())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 9 : <input type="text" name="value9" id="value9" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 10 : <input type="text" name="parameter10" id="parameter10" value="<%=blankNull(oadhocReportBean.getParameter10())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 10 : <input type="text" name="value10" id="value10" value="" />
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br><br>
|
||||
<input type="button" value="DOWNLOAD REPORT" onclick="javascript:downloadReport();">
|
||||
|
||||
</center>
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="" >
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
213
IPKS_Updated/web/web/web/Asset_JSP/Asset_Enquiry.jsp
Normal file
213
IPKS_Updated/web/web/web/Asset_JSP/Asset_Enquiry.jsp
Normal file
@@ -0,0 +1,213 @@
|
||||
<%--
|
||||
Document : pds_stock_register
|
||||
Created on : May 5, 2016, 12:31:09 PM
|
||||
Author : 590685
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.Asset_EnquiryBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Asset Enquiry</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_asset(width, height, asset_id) {
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "Asset_Enquiry.jsp";
|
||||
var lovKey = "Asset_EnquiryDetails"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?asset_id=' + asset_id + '&screenName=' + screenName + '&lovKey=' + lovKey, 'Asset_EnquiryDetails', attr);
|
||||
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function submitform(asset_enquiry)
|
||||
{
|
||||
|
||||
if (asset_enquiry.asset_id.value == "" )
|
||||
{
|
||||
alert("Asset ID must be filled.");
|
||||
asset_enquiry.asset_id.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/Asset_EnquiryServlet';
|
||||
document.asset_enquiry.submit();
|
||||
}
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alpdsStockAsset_EnquiryBeanApendObj = request.getAttribute("alAsset_EnquiryBean");
|
||||
Object oAsset_EnquiryBeanObj = request.getAttribute("oAsset_EnquiryBean");
|
||||
|
||||
Asset_EnquiryBean oAsset_EnquiryBeanApend = new Asset_EnquiryBean();
|
||||
if (oAsset_EnquiryBeanObj != null) {
|
||||
oAsset_EnquiryBeanApend = (Asset_EnquiryBean) request.getAttribute("oAsset_EnquiryBean");
|
||||
}
|
||||
|
||||
ArrayList<Asset_EnquiryBean> alAsset_EnquiryApend = new ArrayList<Asset_EnquiryBean>();
|
||||
if (alpdsStockAsset_EnquiryBeanApendObj != null) {
|
||||
alAsset_EnquiryApend = (ArrayList<Asset_EnquiryBean>) request.getAttribute("alAsset_EnquiryBean");
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Asset Enquiry</legend>
|
||||
|
||||
<form id="asset_enquiry" name="asset_enquiry" method="post" action="Asset_EnquiryServlet">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Asset ID<font color="red" >*</font>: </td>
|
||||
<td> <input type="text" id="asset_id" name="asset_id" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' >
|
||||
<input type="button" name="assetidSearch" id="assetidSearch" value="Search" onclick="javascript:popup_asset(220, 180, document.asset_enquiry.asset_id.value);" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
<input type="hidden" name="asset_mst_id" id="asset_mst_id" value="<%=blankNull(oAsset_EnquiryBeanApend.getAsset_mst_id())%>"/>
|
||||
<input type="button" value="Submit" id="Submit" onclick="javascript:submitform(asset_enquiry)"/>
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<br><br>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
<div id="displayDiv">
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px" >
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr> <td > <b>Asset ID</b> </td>
|
||||
<td ><b>Description</b></td>
|
||||
<td ><b>Purchase Value</b></td>
|
||||
<td ><b>Mode of Acquirement</b></td>
|
||||
<td ><b>Purchase Date</b></td>
|
||||
<td ><b>Entry Date</b></td>
|
||||
<td ><b>GL Code</b></td>
|
||||
<td ><b>Depreciation Rate</b></td>
|
||||
<td><b>Asset Status</b></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oAsset_EnquiryBeanApend = null;
|
||||
|
||||
int i;
|
||||
for (i = 0; i < alAsset_EnquiryApend.size(); i++) {
|
||||
oAsset_EnquiryBeanApend = alAsset_EnquiryApend.get(i);
|
||||
%>
|
||||
<tr>
|
||||
|
||||
<td ><input readonly="true" type="text" name="asset_id<%=i%>" id="asset_id<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getAsset_id())%>" /></td>
|
||||
<td ><input readonly="true" type="text" name="description<%=i%>" id="description<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getDescription())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="int_value<%=i%>" id="int_value<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getInt_value())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="mode_of_aqr<%=i%>" id="mode_of_aqr<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getMode_of_aqr())%>" /></td>
|
||||
<td><input readonly="true" style="text-align:center;" type="text" name="purchase_date<%=i%>" id="purchase_date<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getPurchase_date())%>" /></td>
|
||||
<td><input readonly="true" style="text-align:center;" type="text" name="entry_date<%=i%>" id="entry_date<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getEntry_date())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="glcode<%=i%>" id="glcode<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getGlcode())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="depRate<%=i%>" id="depRate<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getDepRate())%>" /></td>
|
||||
<td><select disabled="true" name="status<%=i%>" id="status<%=i%>" >
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="A" <%if (oAsset_EnquiryBeanApend.getStatus().equals("A")) {%> selected <%}%>>Active</option>
|
||||
<option value="I" <%if (oAsset_EnquiryBeanApend.getStatus().equals("I")) {%> selected <%}%>>Inactive</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<input type="hidden" name="detail_id<%=i%>" id="detail_id<%=i%>" value="<%=blankNull(oAsset_EnquiryBeanApend.getAsset_id())%>" />
|
||||
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Asset_JSP/Asset_Enquiry.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
299
IPKS_Updated/web/web/web/Asset_JSP/Asset_Report.jsp
Normal file
299
IPKS_Updated/web/web/web/Asset_JSP/Asset_Report.jsp
Normal file
@@ -0,0 +1,299 @@
|
||||
<%--
|
||||
Document : PACS_REPORT
|
||||
Created on : Sep 17, 2015, 12:59:59 PM
|
||||
Author : 454222
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Asset Report</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
function checkdate()
|
||||
{
|
||||
var s1 = document.getElementById("fromDate").value;
|
||||
var s2 = document.getElementById("toDate").value;
|
||||
var dateParts1 = s1.split("/");
|
||||
var dateParts2 = s2.split("/");
|
||||
|
||||
var dateObject1 = new Date(dateParts1[2], dateParts1[1] - 1, dateParts1[0]);
|
||||
var dateObject2 = new Date(dateParts2[2], dateParts2[1] - 1, dateParts2[0]);
|
||||
|
||||
if (dateObject1>dateObject2){
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
var e = document.getElementById("reportSelection");
|
||||
|
||||
if (e.options[e.selectedIndex].value == "")
|
||||
{
|
||||
alert("Report Name cannot be empty.");
|
||||
document.forms[0].reportSelection.focus();
|
||||
return false;
|
||||
}
|
||||
if (document.forms[0].fromDate.value == "")
|
||||
{
|
||||
alert("From Date cannot be empty.");
|
||||
document.forms[0].fromDate.focus();
|
||||
return false;
|
||||
}
|
||||
if (document.forms[0].toDate.value == "")
|
||||
{
|
||||
alert("To Date cannot be empty.");
|
||||
document.forms[0].toDate.focus();
|
||||
return false;
|
||||
}
|
||||
if(!checkdate()){
|
||||
|
||||
alert("Please Select valid date range");
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (e.options[e.selectedIndex].value) {
|
||||
|
||||
case "1" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/Asset_Purchase_Report";
|
||||
document.forms[0].reportName.value = "ASSET PURCHASE REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "2" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/Asset_Register_Report";
|
||||
document.forms[0].reportName.value = "ASSET REGISTER REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "3" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/crar_risk_report";
|
||||
document.forms[0].reportName.value = "RISK WEIGHTED ASSETS & CRAR REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "4" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/asset_depreciation";
|
||||
document.forms[0].reportName.value = "ASSET DEPRECIATION REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
default :
|
||||
|
||||
null;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Asset_JSP/Asset_Report.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
String moduleName = new String();
|
||||
moduleName = (String) session.getAttribute("moduleName");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<title>PACS Report</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Asset Report</legend>
|
||||
|
||||
<form name="pacsreport" method="post" action="/PacsApplication/DownloadPacsReport">
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<%if (request.getAttribute("error") != null) {%>
|
||||
<tr><td colspan="2" align="center"><%=request.getAttribute("error").toString()%></td></tr>
|
||||
<%}%>
|
||||
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name <font color="red" >*</font>: </td>
|
||||
<td><select id="reportSelection" name="reportSelection" >
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<option value="1">Asset Purchase Report</option>
|
||||
<option value="2">Asset Register Report</option>
|
||||
<option value="3">Risk Weighted Assets & CRAR Report</option>
|
||||
<option value="4">Asset Depreciation Report</option>
|
||||
</select></td>
|
||||
</tr><tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">From Date <font color="red" >*</font>: </td>
|
||||
<td><input type="text" style="text-align:center;" id="fromDate" name="fromDate" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].fromDate);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr><tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">To Date <font color="red" >*</font>: </td>
|
||||
<td><input type="text" style="text-align:center;" id="toDate" name="toDate" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].toDate);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr id="subPacsName">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
//connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br><br><br>
|
||||
<center>
|
||||
<input type="button" value="Fetch Report" onclick="javascript:downloadFiles();">
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();"
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
153
IPKS_Updated/web/web/web/Asset_JSP/MenuHead_ASSET.jsp
Normal file
153
IPKS_Updated/web/web/web/Asset_JSP/MenuHead_ASSET.jsp
Normal file
@@ -0,0 +1,153 @@
|
||||
<%--
|
||||
Document : MenuHead_ASSET
|
||||
Created on : Apr 20, 2016, 3:19:56 PM
|
||||
Author : 590685
|
||||
--%>
|
||||
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.*"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
|
||||
|
||||
<%
|
||||
String userName = new String();
|
||||
String pacsName = new String();
|
||||
String userRole = new String();
|
||||
String RoleName = new String();
|
||||
String sysDt = new String();
|
||||
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select to_char(SYSTEM_DATE,'Month DD, YYYY') from system_date");
|
||||
while (rs.next()) {
|
||||
sysDt = rs.getString(1);
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
userName = (String) session.getAttribute("UserName");
|
||||
userName = userName.toUpperCase();
|
||||
pacsName = (String) session.getAttribute("pacsName");
|
||||
userRole = (String) session.getAttribute("userRole");
|
||||
RoleName = (String) session.getAttribute("RoleName");
|
||||
String moduleName = new String();
|
||||
moduleName = (String) session.getAttribute("moduleName");
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<div style="width: 100%; height: auto; top: 0; left: 0; margin-bottom: 0 auto;">
|
||||
|
||||
<div id="IPKSimage" style=" top: 0; left: 0; border-bottom:0px;">
|
||||
<img src="/PacsApplication/img/PACS.jpg" width="100%" height="65px" alt="Image - PACS"/>
|
||||
</div>
|
||||
<!--changed on 15/5/24-->
|
||||
|
||||
<div id="cssmenu" style="padding-bottom:10px;border-bottom:0px; border-color: black; color: rgb(0,140,69); background-color: rgb(177,224,178); ">
|
||||
<div style="width: 20%;float: left;text-align: left;padding: 5px 1px 1px 28px; border-radius: 5px;"><b>User Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=userName%></font></div>
|
||||
<div style="width: 15%;float: right; text-align: left;padding: 5px 5px 1px 1px; border-radius: 5px;"><b>Date:</b><br><font face="Trebuchet MS" size="2.5"> <%=sysDt%></font></div>
|
||||
<div style="width: 15%;float: left; text-align: left; padding: 5px; border-radius: 5px;"><b>PACS Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=pacsName%></font></div>
|
||||
|
||||
<div style="width: 20%;float: left; margin-right: 20px;text-align: center;padding: 5px; border-radius: 5px;"><b>User Type:</b><br><font face="Trebuchet MS" size="2.5"> <%=RoleName%></font></div>
|
||||
<div style="width: 20%;float: left; margin-right: 20px;text-align: center;padding: 5px; border-radius: 5px;"><b>Module Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=moduleName.toUpperCase()%></font></div>
|
||||
|
||||
</div>
|
||||
<!-- added on 16/5/24-->
|
||||
<div style="display: flex; justify-content: center;background-color: rgb(177,224,178)"><div style="background: #fff; height: 2px; width: 90%"></div></div>
|
||||
<ul id="menu">
|
||||
<li><a href='/PacsApplication/welcome.jsp'><span>Home</span></a></li>
|
||||
<li><a href="#" id="modules"><span>Module List</span></a>
|
||||
<ul>
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201603000005020"))) {%>
|
||||
<li class="est_btn"><a href="/PacsApplication/DepositServlet"><span id="dep">Deposit</span></a></li>
|
||||
<%}else{%>
|
||||
<li class="est_btn"><a href="/PacsApplication/KCCSevlet"><span id="kcc">KCC</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/TradingSevlet"><span id="trading">Trading</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/AssetServlet"><span id="asset">Asset</span></a></li>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/PDSServlet"><span id="pds">Public Distribution System</span></a></li>--%>
|
||||
<li class="est_btn"><a href="/PacsApplication/SHGServlet"><span id="shg">Self Help Group</span></a></li>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/GPSServlet"><span id="gps">Government Procurement</span></a></li>--%>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/MISDashboardSevlet"><span id="dashboard">MIS & Dashboard</span></a></li>--%>
|
||||
<li class="est_btn"><a href="/PacsApplication/DepositServlet"><span id="dep">Deposit</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/LoanServlet"><span id="ln">Loan</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/ShareServlet"><span id="share">Share</span></a></li>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/SODEODServlet"><span id="eod">SOD/EOD</span></a></li>--%>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%-- <%if (userRole.equalsIgnoreCase("201603000004021")) {%>
|
||||
<li class='active has-sub'><a href="#" ><span>Parameter</span></a>
|
||||
<ul>
|
||||
<li><a href="/PacsApplication/Asset_JSP/assetMaster.jsp"><span>Asset Master Creation</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%> --%>
|
||||
|
||||
<%if (userRole.equalsIgnoreCase("201603000004022")) {%>
|
||||
<li class='active has-sub'><a href="#" ><span>Operation</span></a>
|
||||
|
||||
<ul>
|
||||
<li><a href="/PacsApplication/Asset_JSP/assetEntry.jsp"><span>Asset Entry</span></a></li>
|
||||
<li><a href="/PacsApplication/Asset_JSP/assetRegister.jsp"><span>Asset Register</span></a></li>
|
||||
<li><a href="/PacsApplication/Asset_JSP/assetRelocation.jsp"><span>Asset Relocation</span></a></li>
|
||||
<li><a href="/PacsApplication/Asset_JSP/Asset_Enquiry.jsp"><span>Asset Enquiry</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Asset_JSP/assetDisposal.jsp"><span>Asset Disposal</span></a></li>
|
||||
<!-- <li><a href="/PacsApplication/Asset_JSP/assetDepreciation.jsp"><span>Asset Depreciation Master</span></a></li>-->
|
||||
<li><a href="/PacsApplication/Asset_JSP/crarRiskMaster.jsp"><span>CRAR Risk Master</span></a></li>
|
||||
<li><a href="/PacsApplication/Asset_JSP/crarWorthMaster.jsp"><span>CRAR Worth Master</span></a></li>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
<%}%>
|
||||
|
||||
|
||||
|
||||
<%if (userRole.equalsIgnoreCase("201603000004022") || (userRole.equalsIgnoreCase("201606000004041"))) {%>
|
||||
<li class='active has-sub'><a href="#" ><span>Reports</span></a>
|
||||
<ul>
|
||||
|
||||
<li class='last'><a href="/PacsApplication/Asset_JSP/Asset_Report.jsp"><span>Asset Report</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
<%if (!userRole.equalsIgnoreCase(
|
||||
"201603000004020")) {%>
|
||||
<li class='active has-sub'><a href="#" ><span>User Management</span></a>
|
||||
<ul>
|
||||
<li><a href="/PacsApplication/ResetLogin.jsp"><span>Reset Logged In status </span></a><li>
|
||||
<li><a href="/PacsApplication/changePassword.jsp"><span>Change Password </span></a><li>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
<li><a href="/PacsApplication/LogoutServlet" onclick="return confirm('Do you want to logout?')" >LogOut</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
150
IPKS_Updated/web/web/web/Asset_JSP/assetDepreciation.jsp
Normal file
150
IPKS_Updated/web/web/web/Asset_JSP/assetDepreciation.jsp
Normal file
@@ -0,0 +1,150 @@
|
||||
<%--
|
||||
Document : pds_stock_register
|
||||
Created on : May 5, 2016, 12:31:09 PM
|
||||
Author : 590685
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.AssetRegisterBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Asset Depreciation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_asset(width, height, asset_type, asset_subtype) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "assetRegister.jsp";
|
||||
var lovKey = "assetDetails"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?asset_type=' + asset_type + '&asset_subtype=' + asset_subtype + '&screenName=' + screenName + '&lovKey=' + lovKey, 'assetDetails', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function submitform(assetregister)
|
||||
{
|
||||
|
||||
if (assetregister.asset_type.value == "" )
|
||||
{
|
||||
alert("Enter Asset Type details.");
|
||||
assetregister.asset_type.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetregister.asset_subtype.value == "")
|
||||
{
|
||||
alert("Enter Asset Sub-Type details.");
|
||||
assetregister.asset_subtype.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/AssetRegisterServlet';
|
||||
document.assetregister.submit();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Asset_JSP/assetRegister.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alpdsStockRegisterBeanApendObj = request.getAttribute("alAssetRegisterBean");
|
||||
Object oAssetRegisterBeanObj = request.getAttribute("oAssetRegisterBean");
|
||||
|
||||
AssetRegisterBean oAssetRegisterBeanApend = new AssetRegisterBean();
|
||||
if (oAssetRegisterBeanObj != null) {
|
||||
oAssetRegisterBeanApend = (AssetRegisterBean) request.getAttribute("oAssetRegisterBean");
|
||||
}
|
||||
|
||||
ArrayList<AssetRegisterBean> alAssetRegisterBeanApend = new ArrayList<AssetRegisterBean>();
|
||||
if (alpdsStockRegisterBeanApendObj != null) {
|
||||
alAssetRegisterBeanApend = (ArrayList<AssetRegisterBean>) request.getAttribute("alAssetRegisterBean");
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Asset Depreciation</legend>
|
||||
|
||||
<form id="assetregister" name="assetregister" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
138
IPKS_Updated/web/web/web/Asset_JSP/assetDisposal.jsp
Normal file
138
IPKS_Updated/web/web/web/Asset_JSP/assetDisposal.jsp
Normal file
@@ -0,0 +1,138 @@
|
||||
<%--
|
||||
Document : assetrelocation
|
||||
Created on : Jun 24, 2016, 3:21:04 PM
|
||||
Author : Tcs Helpdesk10
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Asset Disposal</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_asset_id(width, height, asset_id) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "assetDisposal.jsp";
|
||||
var lovKey = "assetDisposalDetails"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?asset_id=' + asset_id + '&screenName=' + screenName + '&lovKey=' + lovKey, 'assetDisposalDetails', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function checkSubmit(assetdisposalform)
|
||||
{
|
||||
if (assetdisposalform.asset_id.value == "")
|
||||
{
|
||||
alert("Asset ID must be filled.");
|
||||
assetdisposalform.asset_id.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetdisposalform.disposeflag.value == "Not")
|
||||
{
|
||||
alert("Dispose Asset must be filled.");
|
||||
assetdisposalform.disposeflag.focus();
|
||||
return false;
|
||||
}
|
||||
document.forms[0].action='/PacsApplication/AssetDisposalServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Asset_JSP/assetDisposal.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Asset Disposal</legend>
|
||||
<form action="" method="post" name="assetdisposalform">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Asset ID<font color="red" >*</font>: </td>
|
||||
<td> <input type="text" id="asset_id" name="asset_id">
|
||||
<input type="button" name="assetidSearch" id="assetidSearch" value="Search" onclick="javascript:popup_asset_id(220, 180, document.forms[0].asset_id.value)"/></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td>Dispose Asset:</td>
|
||||
<td><select style="width: 171px;" id="disposeflag" name="disposeflag">
|
||||
<option disabled selected value="Not"> --Select-- </option><option value="I">Yes</option><option value="A">No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<input type="hidden" id="regid" name="regid">
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
</center>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:checkSubmit(assetdisposalform)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
519
IPKS_Updated/web/web/web/Asset_JSP/assetEntry.jsp
Normal file
519
IPKS_Updated/web/web/web/Asset_JSP/assetEntry.jsp
Normal file
@@ -0,0 +1,519 @@
|
||||
<%--
|
||||
Document : assetentry
|
||||
Created on : Jun 24, 2016, 2:34:00 PM
|
||||
Author : Tcs Helpdesk10
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.AssetEntryBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.pdsStockRegisterBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Asset Entry</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
function submitform(assetentry)
|
||||
{
|
||||
if (checkDiv(assetentry))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Create";
|
||||
document.forms[0].action='/PacsApplication/AssetEntryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function amendform(assetentry)
|
||||
{
|
||||
if (checkDivAmend(assetentry))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Amend";
|
||||
document.forms[0].action = '/PacsApplication/AssetEntryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function getDetails(assetentry)
|
||||
{
|
||||
document.forms[0].handle_id.value = "getDetails";
|
||||
document.forms[0].action = '/PacsApplication/AssetEntryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function checkDiv(assetentry)
|
||||
{
|
||||
var counter = document.forms[0].rowCounter.value;
|
||||
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
try{
|
||||
var asset_type = document.getElementById("asset_type" + i).value;
|
||||
var asset_subtype = document.getElementById("asset_subtype" + i).value;
|
||||
var asset_mst_id = document.getElementById("asset_mst_id" + i).value;
|
||||
var asset_id = document.getElementById("asset_id" + i).value;
|
||||
var description = document.getElementById("description" + i).value;
|
||||
var curr_val = document.getElementById("curr_val" + i).value;
|
||||
var purchaseDate = document.getElementById("purchaseDate" + i).value;
|
||||
var glcode = document.getElementById("glcode" + i).value;
|
||||
var depRate = document.getElementById("depRate" + i).value;
|
||||
|
||||
if (asset_type == "" || asset_subtype == "" || asset_mst_id == "" || asset_id == "" || description == ""
|
||||
|| curr_val == "" || purchaseDate == "" || glcode == "" || depRate == "")
|
||||
{
|
||||
alert("Please enter all details.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function checkDivAmend(assetentry)
|
||||
{
|
||||
var counter2 = document.forms[0].rowCounter2.value;
|
||||
|
||||
for (var i = 2; i < counter2; i++) {
|
||||
try{
|
||||
var asset_type = document.getElementById("asset_type" + i).value;
|
||||
var asset_subtype = document.getElementById("asset_subtype" + i).value;
|
||||
var asset_mst_id = document.getElementById("asset_mst_id" + i).value;
|
||||
var asset_id = document.getElementById("asset_id" + i).value;
|
||||
var description = document.getElementById("description" + i).value;
|
||||
var curr_val = document.getElementById("curr_val" + i).value;
|
||||
var purchaseDate = document.getElementById("purchaseDate" + i).value;
|
||||
var glcode = document.getElementById("glcode" + i).value;
|
||||
var depRate = document.getElementById("depRate" + i).value;
|
||||
|
||||
if (asset_type == "" || asset_subtype == "" || asset_mst_id == "" || asset_id == "" || description == ""
|
||||
|| curr_val == "" || purchaseDate == "" || glcode == "" || depRate == "")
|
||||
{
|
||||
alert("Please enter all details.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function SearchGL(width, height, textIndex)
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
// var glcode = document.getElementById("glcode"+textIndex).value;
|
||||
var screenName = "assetEntry.jsp";
|
||||
var lovKey = "gl"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&glcode=' + glcode + '&textIndex=' + textIndex, 'gl', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
function checkop()
|
||||
{
|
||||
if (document.getElementById("checkOption").value == "create")
|
||||
{
|
||||
document.getElementById('create').style.display = 'block';
|
||||
document.getElementById('forAmend').style.display = 'none';
|
||||
document.getElementById('amend').style.display = 'none';
|
||||
}
|
||||
if (document.getElementById("checkOption").value == "amend")
|
||||
{
|
||||
document.getElementById('create').style.display = 'none';
|
||||
document.getElementById('forAmend').style.display = 'block';
|
||||
}
|
||||
}
|
||||
function calDepAmt(assetentry)
|
||||
{
|
||||
var counter = document.forms[0].rowCounter.value;
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
var dart = document.getElementById("depRate" + i).value;
|
||||
|
||||
var numStr = String(dart);
|
||||
if(numStr.includes('.')){
|
||||
var len = numStr.split('.')[1].length;
|
||||
if (len>2) {
|
||||
alert("Dep Rate is allowed upto two decimals.");
|
||||
document.getElementById("depRate" + i).value = (parseFloat(dart)).toFixed(2);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function calDepAmt2(assetentry)
|
||||
{
|
||||
var counter2 = document.forms[0].rowCounter2.value;
|
||||
for (var i = 2; i <= counter2; i++) {
|
||||
var dart = document.getElementById("depRate" + i).value;
|
||||
|
||||
var numStr = String(dart);
|
||||
if(numStr.includes('.')){
|
||||
var len = numStr.split('.')[1].length;
|
||||
if (len>2) {
|
||||
alert("Dep Rate is allowed upto two decimals.");
|
||||
document.getElementById("depRate" + i).value = (parseFloat(dart)).toFixed(2);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<% int count = 1;
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alpdsStockRegisterBeanApendObj = request.getAttribute("alpdsStockRegisterBeanApend");
|
||||
ArrayList<pdsStockRegisterBean> alpdsStockRegisterBeanApend = new ArrayList<pdsStockRegisterBean>();
|
||||
if (alpdsStockRegisterBeanApendObj != null) {
|
||||
alpdsStockRegisterBeanApend = (ArrayList<pdsStockRegisterBean>) request.getAttribute("alpdsStockRegisterBeanApend");
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oAssetEntryBeanObj = request.getAttribute("oAssetEntryBean");
|
||||
Object alAssetEntryBeanObj = request.getAttribute("arrAssetEntryBean");
|
||||
|
||||
AssetEntryBean oAssetEntryBean = new AssetEntryBean();
|
||||
if (oAssetEntryBeanObj != null) {
|
||||
oAssetEntryBean = (AssetEntryBean) request.getAttribute("oAssetEntryBean");
|
||||
}
|
||||
|
||||
ArrayList<AssetEntryBean> alAssetEntryBean = new ArrayList<AssetEntryBean>();
|
||||
if (alAssetEntryBeanObj != null) {
|
||||
alAssetEntryBean = (ArrayList<AssetEntryBean>) request.getAttribute("arrAssetEntryBean");
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Asset Entry</legend>
|
||||
|
||||
<form id="assetentry" name="assetentry" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center><label style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection:</label>
|
||||
<select id="checkOption" onchange="checkop()" name="checkOption" >
|
||||
<option value="" style="display:none;" >--Select--</option>
|
||||
<option value="create" >Create</option>
|
||||
<option value="amend" >Amend</option>
|
||||
</select>
|
||||
</center>
|
||||
<br>
|
||||
<div id="create" style="display:none;">
|
||||
<center>
|
||||
<div style="overflow:scroll; width: 1300px">
|
||||
<br><br>
|
||||
<table id="order-list" style="margin-left: 20px;" class="NumbersOnly" border="2" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px; width: 100%;">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr border="2">
|
||||
<td></td>
|
||||
<td colspan="2">Asset Type</td>
|
||||
<td>Asset SubType</td>
|
||||
<td>Asset ID</td>
|
||||
<td>Description</td>
|
||||
<td>Current Valuation</td>
|
||||
<td>Mode of Acquirement</td>
|
||||
<td colspan="2">Purchase Date</td>
|
||||
<td colspan="2">GL Code</td>
|
||||
<td>Depreciation Rate</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td><input type="text" readonly name="asset_type<%=count%>" id="asset_type<%=count%>"/></td>
|
||||
<td><input type="button" name="SearchAsset<%=count%>" id="SearchAsset<%=count%>" value="Search" onclick="SearchAsset(220,180,<%=count%>)" /></td>
|
||||
<td><input type="text" readonly name="asset_subtype<%=count%>" id="asset_subtype<%=count%>"/></td>
|
||||
<td><input type="text" name="asset_id<%=count%>" id="asset_id<%=count%>" /></td>
|
||||
<td><input type="text" name="description<%=count%>" id="description<%=count%>"/></td>
|
||||
<td><input type="text" name="curr_val<%=count%>" id="curr_val<%=count%>" class="numbersOn"onchange="Total(<%=count%>);" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/></td>
|
||||
<td><select style="width: 153px;" name="mode_of_aqr<%=count%>" id="mode_of_aqr<%=count%>"><option disabled selected value="not"> --Select-- </option>
|
||||
<option value="p">Purchase</option>
|
||||
<option value="d">Donation</option>
|
||||
<option value="o">Others</option>
|
||||
</select></td>
|
||||
<td><input type="text" size="8" id="purchaseDate<%=count%>" name="purchaseDate<%=count%>" readonly="true"></td>
|
||||
<td><a href="#" onclick="return getCalendar(document.forms[0].purchaseDate<%=count%>);" ><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" style="display:block;" height="100%" width="20" /></a></td>
|
||||
<td><input type="text" name="glcode<%=count%>" id="glcode<%=count%>" ondrop="return false;" onpaste="return false;" /></td>
|
||||
<td><input type="button" style="width: 70px" name="SearchGL<%=count%>" id="SearchGL<%=count%>" value="Search" onclick="javascript:SearchGL(550,240,<%=count%>);" /></td>
|
||||
<td><input size="15" type="text" name="depRate<%=count%>" id="depRate<%=count%>" onkeyup="calDepAmt(assetentry)" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47' /></td>
|
||||
<td><select style="width:100%" id="status<%=count%>" name="status<%=count%>" >
|
||||
<option value="A">Active</option><option value="I">Inactive</option></select></td>
|
||||
<td style="display: none;"><input type="hidden" name="asset_mst_id<%=count%>" id="asset_mst_id<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" readonly="textIndex" name="textIndex" value="<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="id<%=count%>" id="id<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="glid<%=count%>" id="glid<%=count%>"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br/><br/>
|
||||
<center>
|
||||
<input type="button" id="addRow" value="Add Row"/>
|
||||
<input type="button" id="deleteRow" value="Delete Row"/>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(assetentry)"/>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounterDelete" id="rowCounterDelete" value="<%=count%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
</div>
|
||||
</center>
|
||||
</div>
|
||||
<br>
|
||||
<center>
|
||||
<div id="forAmend" style="display:none;" >
|
||||
|
||||
<center>
|
||||
<tr><input type="button" value="Fetch Asset Entry Details" onclick="javascript:getDetails()" /></tr>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div>
|
||||
<br>
|
||||
</center>
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<div id="amend" >
|
||||
<center>
|
||||
<div style="overflow:scroll; width: 1300px">
|
||||
<table id="order-listAmend" style="overflow-y: scroll">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td colspan="2">Asset Type</td>
|
||||
<td>Asset SubType</td>
|
||||
<td>Asset ID</td>
|
||||
<td>Description</td>
|
||||
<td>Current Valuation</td>
|
||||
<td>Mode of Acquirement</td>
|
||||
<td colspan="2">Purchase Date</td>
|
||||
<td colspan="2">GL Code</td>
|
||||
<td>Depreciation Rate</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oAssetEntryBean = null;
|
||||
oAssetEntryBean = new AssetEntryBean();
|
||||
int count2= 1;
|
||||
|
||||
for (int i = 0; i < alAssetEntryBean.size(); i++) {
|
||||
oAssetEntryBean = alAssetEntryBean.get(i);
|
||||
count2++;
|
||||
%>
|
||||
<tr>
|
||||
<td><input type="text" readonly name="asset_type<%=count2%>" id="asset_type<%=count2%>" value="<%=blankNull(oAssetEntryBean.getAsset_type())%>"/></td>
|
||||
<td><input type="button" name="SearchAsset<%=count2%>" id="SearchAsset<%=count2%>" value="Search" onclick="SearchAsset(220,180,<%=count2%>)" /></td>
|
||||
<td><input type="text" readonly name="asset_subtype<%=count2%>" id="asset_subtype<%=count2%>" value="<%=blankNull(oAssetEntryBean.getAsset_subtype())%>" /></td>
|
||||
<td><input type="text" name="asset_id<%=count2%>" id="asset_id<%=count2%>" value="<%=blankNull(oAssetEntryBean.getAsset_id())%>" /></td>
|
||||
<td><input type="text" name="description<%=count2%>" id="description<%=count2%>" value="<%=blankNull(oAssetEntryBean.getDescription())%>" /></td>
|
||||
<td><input type="text" name="curr_val<%=count2%>" id="curr_val<%=count2%>" class="numbersOn"onchange="Total(<%=count2%>);" onkeypress='return event.charCode >= 48 && event.charCode <= 57' value="<%=blankNull(oAssetEntryBean.getCurr_val())%>" /></td>
|
||||
<td><select style="width: 153px;" name="mode_of_aqr<%=count2%>" id="mode_of_aqr<%=count2%>">
|
||||
<option <%if (oAssetEntryBean.getMode_of_aqr().equalsIgnoreCase("p")) {%>selected <%}%> value="p">Purchase</option>
|
||||
<option <%if (oAssetEntryBean.getMode_of_aqr().equalsIgnoreCase("d")) {%>selected <%}%> value="d">Donation</option>
|
||||
<option <%if (oAssetEntryBean.getMode_of_aqr().equalsIgnoreCase("o")) {%>selected <%}%> value="o">Others</option>
|
||||
</select></td>
|
||||
<td><input type="text" size="8" id="purchaseDate<%=count2%>" name="purchaseDate<%=count2%>" readonly="true" value="<%=blankNull(oAssetEntryBean.getPurchaseDate())%>"></td>
|
||||
<td><a href="#" onclick="return getCalendar(document.forms[0].purchaseDate<%=count2%>);" ><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" style="display:block;" height="100%" width="20" /></a></td>
|
||||
<td><input type="text" name="glcode<%=count2%>" id="glcode<%=count2%>" ondrop="return false;" onpaste="return false;" value="<%=blankNull(oAssetEntryBean.getGlcode())%>" /></td>
|
||||
<td><input type="button" style="width: 70px" name="SearchGL<%=count2%>" id="SearchGL<%=count2%>" value="Search" onclick="javascript:SearchGL(550,240,<%=count2%>);" /></td>
|
||||
<td><input size="15" type="text" name="depRate<%=count2%>" id="depRate<%=count2%>" onkeyup="calDepAmt2(assetentry)" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47' value="<%=blankNull(oAssetEntryBean.getDepRate())%>" /></td>
|
||||
<td><select style="width: 150px" name="status<%=count2%>" id="status<%=count2%>" >
|
||||
<option <%if (oAssetEntryBean.getStatus().equalsIgnoreCase("A")) {%>selected <%}%> value="A">Active</option>
|
||||
<option <%if (oAssetEntryBean.getStatus().equalsIgnoreCase("I")) {%>selected <%}%> value="I">Inactive</option>
|
||||
</select></td>
|
||||
<td style="display:none"><input type="hidden" name="id<%=count2%>" id="id<%=count2%>" value="<%=blankNull(oAssetEntryBean.getId())%>"></td>
|
||||
<td style="display:none"><input type="hidden" name="glid<%=count2%>" id="glid<%=count2%>" value="<%=blankNull(oAssetEntryBean.getGlid())%>"></td>
|
||||
</tr>
|
||||
|
||||
<%}%></tbody>
|
||||
</table>
|
||||
</center>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:amendform(assetentry)"/>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<input type="hidden" name="indicator" id="indicator" value="">
|
||||
<input type="hidden" name="rowCounter2" id="rowCounter2" value="<%=count2%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0">
|
||||
</div>
|
||||
<%}%>
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
<input type="hidden" name="actionApl" value="" />
|
||||
<input type="hidden" name="vendor_id" id="vendor_id"/>
|
||||
<input type="hidden" id="displayFlag" name="displayFlag" value="<%=displayFlag%>"/>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
$("#addRow").click(function(){
|
||||
|
||||
// var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#order-list tr:last').after('<tr> <td align="center"><input type="checkbox" name="chckbox'+counter+'" id="chckbox'+counter+'" onclick="checkboxTrue('+counter+');"/></td>\n\
|
||||
<td><input type="text" id="asset_type'+counter+'" name="asset_type'+counter+'"/></td>\n\
|
||||
<td><input type="button" name="SearchAsset'+counter+'" id="SearchAsset'+counter+'" value="Search" onclick="SearchAsset(220,180,'+counter+');" /></td>\n\
|
||||
<td><input type="text" name="asset_subtype'+counter+'" id="asset_subtype'+counter+'"/></td><td><input type="text" name="asset_id'+counter+'" id="asset_id'+counter+'" /></td>\n\
|
||||
<td><input type="text" id="description'+counter+'" name="description'+counter+'"/></td><td><input type="text" class="numbersOn" id="curr_val'+counter+'" name="curr_val'+counter+'" onkeypress="return event.charCode >= 48 && event.charCode <= 57"/></td>\n\
|
||||
<td><select style="width: 153px;" name="mode_of_aqr'+counter+'" id="mode_of_aqr'+counter+'"><option disabled selected> --Select-- </option><option value="p">Purchase</option><option value="d">Donation</option><option value="o">Others</option></select></td>\n\
|
||||
<td><input type="text" size="8" id="purchaseDate'+counter+'" name="purchaseDate'+counter+'" readonly="true"></td>\n\
|
||||
<td><a href="#" onclick="return getCalendar(document.forms[0].purchaseDate'+counter+');" ><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" style="display:block;" height="100%" width="20" /></a></td>\n\
|
||||
<td><input type="text" name="glcode'+counter+'" id="glcode'+counter+'" ondrop="return false;" onpaste="return false;" /></td>\n\
|
||||
<td><input type="button" style="width: 70px" name="SearchGL'+counter+'" id="SearchGL'+counter+'" value="Search" onclick="javascript:SearchGL(550,240,'+counter+');" /></td>\n\
|
||||
<td><input size="15" type="text" name="depRatev" id="depRate'+counter+'" onkeyup="calDepAmt(assetentry)" onkeypress="return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47" /></td>\n\
|
||||
<td><select style="width:100%" id="status'+counter+'" name="status'+counter+'" ><option value="A">Active</option><option value="I">Inactive</option></select></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="asset_mst_id'+counter+'" id="asset_mst_id'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" readonly="textIndex" name="textIndex" value="'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="id'+counter+'" id="id'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="glid'+counter+'" id="glid'+counter+'"/></td>\n\
|
||||
</tr>');
|
||||
$("#rowCounter").val(counter);
|
||||
$("#rowCounterDelete").val(counter);
|
||||
});
|
||||
$( "#deleteRow" ).click(function()
|
||||
{
|
||||
var len = ($("#order-list tr").length)-1;
|
||||
var rowcount = $("#rowCounterDelete").val();
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var counterDelete = rowcount-chkboxCounter;
|
||||
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if (len ==chkboxCounter) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
|
||||
$("#rowCounterDelete").val( $("#rowCounter").val());
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
}
|
||||
|
||||
});
|
||||
function checkboxTrue(i){
|
||||
if(document.getElementById("chckbox"+i).checked==true)
|
||||
{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
else{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
function ShowCalender(i){
|
||||
|
||||
getCalendar(document.getElementById("purchaseDate"+i));
|
||||
}
|
||||
function SearchAsset(width, height,i)
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "assetEntry.jsp";
|
||||
var lovKey="AssetCodeSearch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?screenName=' + screenName+'&lovKey='+lovKey+'&textIndex='+i , 'ProductSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Asset_JSP/assetEntry.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$('table.NumbersOnly').on('keydown','.numbersOn', function(event) {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46 || event.keyCode == 190 || event.keyCode == 110) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
if($(this).val().indexOf('.') !== -1 && (event.keyCode == 190 || event.keyCode == 110))
|
||||
{ event.preventDefault();}
|
||||
});
|
||||
|
||||
</script>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
450
IPKS_Updated/web/web/web/Asset_JSP/assetMaster.jsp
Normal file
450
IPKS_Updated/web/web/web/Asset_JSP/assetMaster.jsp
Normal file
@@ -0,0 +1,450 @@
|
||||
<%--
|
||||
Document : IdentificationDetails
|
||||
Created on : Aug 3, 2015, 2:25:40 PM
|
||||
Author : Administrator
|
||||
--%>
|
||||
<%@page import="DataEntryBean.AssetMasterBean" %>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Identification Details</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
|
||||
function checkCreateDiv(assetmaster)
|
||||
{
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (assetmaster.asset_type.value == "")
|
||||
{
|
||||
alert("!! asset type field must be filled !!");
|
||||
assetmaster.asset_code.focus();
|
||||
return false;
|
||||
}
|
||||
if (!re.test(assetmaster.asset_type.value))
|
||||
{
|
||||
alert("!! asset type could only contain numbers !!");
|
||||
assetmaster.asset_type.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (assetmaster.asset_type_desc.value == "")
|
||||
{
|
||||
alert("!! asset type desc field must be filled !!");
|
||||
assetmaster.select_asset_type.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (assetmaster.asset_sub_type.value == "")
|
||||
{
|
||||
alert("!! asset subtype field must be filled !!");
|
||||
assetmaster.asset_sub_type.focus();
|
||||
return false;
|
||||
}
|
||||
if (!re.test(assetmaster.asset_sub_type.value))
|
||||
{
|
||||
alert("!! asset subtype could only contain numbers !!");
|
||||
assetmaster.asset_sub_type.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetmaster.asset_subtype_desc.value == "")
|
||||
{
|
||||
alert("!! asset subtype desc field must be filled !!");
|
||||
assetmaster.asset_subtype_desc.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetmaster.long_desc.value == "")
|
||||
{
|
||||
alert("!! long description field must be filled !!");
|
||||
assetmaster.long_desc.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!re.test(assetmaster.depr_rate.value))
|
||||
{
|
||||
alert("!! depriciation rate could only contain numbers !!");
|
||||
assetmaster.depr_rate.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
function checkUpdateDiv(assetmaster)
|
||||
{
|
||||
if (assetmaster.asset_typeAmend.value == "")
|
||||
{
|
||||
alert("!! asset type must be filled !!");
|
||||
assetmaster.asset_typeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetmaster.asset_type_descAmend.value == "")
|
||||
{
|
||||
alert("!! asset type desc must be filled !!");
|
||||
assetmaster.asset_type_descAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetmaster.asset_subtypeAmend.value == "")
|
||||
{
|
||||
alert("!! asset subtype must be filled !!");
|
||||
|
||||
assetmaster.asset_subtypeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetmaster.asset_subtype_descAmend.value == "")
|
||||
{
|
||||
alert("!! asset subtype Desc must be filled !!");
|
||||
assetmaster.asset_subtype_descAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetmaster.long_descAmend.value == "")
|
||||
{
|
||||
alert("!! Updated Description must be filled !!");
|
||||
|
||||
assetmaster.long_descAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetmaster.depr_rateAmend.value == "")
|
||||
{
|
||||
alert("!! Updated Depriciation Rate must be filled !!");
|
||||
|
||||
assetmaster.depr_rateAmend.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/; //this checks whether field contains digits
|
||||
if (!re.test(assetmaster.asset_typeAmend.value))
|
||||
{
|
||||
alert("!! Asset Type could only contain numbers !!");
|
||||
assetmaster.asset_typeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/; //this checks whether field contains digits
|
||||
if (!re.test(assetmaster.asset_subtypeAmend.value))
|
||||
{
|
||||
alert("!! Asset SubType could only contain numbers !!");
|
||||
assetmaster.asset_subtypeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/; //this checks whether field contains digits
|
||||
if (!re.test(assetmaster.depr_rateAmend.value))
|
||||
{
|
||||
alert("!! Updated Depriciation Rate could only contain numbers !!");
|
||||
assetmaster.depr_rateAmend.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function submitform(assetmaster)
|
||||
{
|
||||
|
||||
if (checkCreateDiv(assetmaster))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Create";
|
||||
document.forms[0].action='/PacsApplication/AssetMasterServlet';
|
||||
assetmaster.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function updateform(assetmaster)
|
||||
{
|
||||
|
||||
if (checkUpdateDiv(assetmaster))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Update";
|
||||
assetmaster.submit();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
function checkbeforeAmendView(assetmaster){
|
||||
|
||||
if(assetmaster.asset_typeSearch.value=="" || assetmaster.asset_subtypeSearch.value==""){
|
||||
alert("!! All fields must be filled !!");
|
||||
assetmaster.asset_typeSearch.focus();
|
||||
return false;
|
||||
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
function submitformAmend(assetmaster) {
|
||||
|
||||
if(checkbeforeAmendView(assetmaster)){
|
||||
|
||||
document.forms[0].handle_id.value = "Search";
|
||||
document.forms[0].action = '/PacsApplication/AssetMasterServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function checkop()
|
||||
{
|
||||
if (document.getElementById("checkOption").value == "create")
|
||||
{
|
||||
document.getElementById('create').style.display = 'block';
|
||||
document.getElementById('amend').style.display = 'none';
|
||||
document.getElementById('amend2').style.display = 'none';
|
||||
|
||||
|
||||
|
||||
}
|
||||
if (document.getElementById("checkOption").value == "amend")
|
||||
{
|
||||
document.getElementById('amend').style.display = 'block';
|
||||
document.getElementById('create').style.display = 'none';
|
||||
ocument.getElementById('amend2').style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object AssetMasterBeanBeanobj = request.getAttribute("oAssetMasterBeanObj");
|
||||
AssetMasterBean oAssetMasterBean = new AssetMasterBean();
|
||||
if (AssetMasterBeanBeanobj != null) {
|
||||
oAssetMasterBean = (AssetMasterBean) request.getAttribute("oAssetMasterBeanObj");
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">ASSET MASTER</legend>
|
||||
|
||||
<form name="assetmaster" id="assetmaster" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<center><lable style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection</lable>
|
||||
<select id="checkOption" onchange="checkop()" name="checkOption" >
|
||||
<option value="" disabled selected style="display:none;" >--select--</option>
|
||||
<option value="create" >Create</option>
|
||||
<option value="amend" >Amend</option>
|
||||
|
||||
</select>
|
||||
</center>
|
||||
<br>
|
||||
|
||||
<div id="create" style="display:none;">
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Asset Type:</td>
|
||||
<td><input type="text" name="asset_type" id="asset_type" size="10" value="" /></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr>
|
||||
<td>Asset Type Description:</td>
|
||||
<td><input type="text" name="asset_type_desc" id="asset_type_desc" size="10" value="" /></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr>
|
||||
<td>Asset SubType</td>
|
||||
<td><input type="text" name="asset_sub_type" id="asset_sub_type" size="10" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr>
|
||||
<td>Asset SubType Description:</td>
|
||||
<td><input type="text" name="asset_subtype_desc" id="asset_subtype_desc"size="10" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td><textarea rows="4" cols="50" name="long_desc" id="long_desc" style="width: 180px;"></textarea></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
|
||||
<tr>
|
||||
<td>Depriciation Rate: (%)</td>
|
||||
<td><input type="textarea" name="depr_rate" id="depr_rate" value="" size="10" /></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table><br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(assetmaster)">
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<p style=" font-family: Berlin Sans FB; font-weight: normal;">* All fields are mandatory </p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="amend" style="display: none;">
|
||||
<center>
|
||||
<lable style=" font-family: Berlin Sans FB; font-weight: normal;">Asset Type: </lable>
|
||||
<input type="text" name="asset_typeSearch"/>
|
||||
<lable style=" font-family: Berlin Sans FB; font-weight: normal;">Asset SubType : </lable>
|
||||
<input type="text" name="asset_subtypeSearch"/>
|
||||
<input type="button" value="Search" onclick="javascript:popup_asset(220, 180, document.assetmaster.asset_typeSearch.value, document.assetmaster.asset_subtypeSearch.value)" />
|
||||
</center><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:submitformAmend(assetmaster)">
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
|
||||
<div id="amend2" >
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Asset Type:</td>
|
||||
<td><input type="text" name="asset_typeAmend" id="asset_typeAmend" readonly="true" value="<%=blankNull(oAssetMasterBean.getAsset_type())%>" size="10" value="" /></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr>
|
||||
<td>Asset Type Description:</td>
|
||||
<td><input type="text" name="asset_type_descAmend" id="asset_type_descAmend" size="10" value="<%=blankNull(oAssetMasterBean.getAsset_type_desc())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr>
|
||||
<td>Asset SubType</td>
|
||||
<td><input type="text" name="asset_subtypeAmend" id="asset_subtypeAmend" readonly="true" size="10" value="<%=blankNull(oAssetMasterBean.getAsset_sub_type())%>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr>
|
||||
<td>Asset SubType Description:</td>
|
||||
<td><input type="text" name="asset_subtype_descAmend" id="asset_subtype_descAmend" size="10" value="<%=blankNull(oAssetMasterBean.getAsset_subtype_desc())%>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td><textarea rows="4" cols="50" name="long_descAmend" id="long_descAmend" style="width: 180px;"><%=blankNull(oAssetMasterBean.getLong_desc())%></textarea></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
|
||||
<tr>
|
||||
<td>Depriciation Rate: (%)</td>
|
||||
<td><input type="textarea" name="depr_rateAmend" id="depr_rateAmend" value="<%=blankNull(oAssetMasterBean.getDepr_rate())%>" size="10" /></td>
|
||||
</tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label>* All fields are mandatory</label></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
|
||||
<center>
|
||||
<input type="button" value="Update" onclick="javascript:updateform(assetmaster)">
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
</div>
|
||||
<%}%>
|
||||
|
||||
|
||||
<input type="hidden" name="asset_id" value="<%=blankNull(oAssetMasterBean.getAsset_id())%>"/>
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
</form>
|
||||
<script>
|
||||
function popup_asset(width, height, asset_typeSearch, asset_subtypeSearch) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "assetMaster.jsp";
|
||||
var lovKey = "assetMasterAmend"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?asset_typeSearch=' + asset_typeSearch + '&asset_subtypeSearch=' + asset_subtypeSearch + '&screenName=' + screenName + '&lovKey=' + lovKey, 'assetMasterAmend', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Asset_JSP/assetMaster.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
223
IPKS_Updated/web/web/web/Asset_JSP/assetRegister.jsp
Normal file
223
IPKS_Updated/web/web/web/Asset_JSP/assetRegister.jsp
Normal file
@@ -0,0 +1,223 @@
|
||||
<%--
|
||||
Document : pds_stock_register
|
||||
Created on : May 5, 2016, 12:31:09 PM
|
||||
Author : 590685
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.AssetRegisterBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Asset Register</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_asset(width, height, asset_type, asset_subtype) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "assetRegister.jsp";
|
||||
var lovKey = "assetDetails"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?asset_type=' + asset_type + '&asset_subtype=' + asset_subtype + '&screenName=' + screenName + '&lovKey=' + lovKey, 'assetDetails', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function submitform(assetregister)
|
||||
{
|
||||
|
||||
if (assetregister.asset_type.value == "" )
|
||||
{
|
||||
alert("Enter Asset Type details.");
|
||||
assetregister.asset_type.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetregister.asset_subtype.value == "")
|
||||
{
|
||||
alert("Enter Asset Sub-Type details.");
|
||||
assetregister.asset_subtype.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/AssetRegisterServlet';
|
||||
document.assetregister.submit();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Asset_JSP/assetRegister.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alpdsStockRegisterBeanApendObj = request.getAttribute("alAssetRegisterBean");
|
||||
Object oAssetRegisterBeanObj = request.getAttribute("oAssetRegisterBean");
|
||||
|
||||
AssetRegisterBean oAssetRegisterBeanApend = new AssetRegisterBean();
|
||||
if (oAssetRegisterBeanObj != null) {
|
||||
oAssetRegisterBeanApend = (AssetRegisterBean) request.getAttribute("oAssetRegisterBean");
|
||||
}
|
||||
|
||||
ArrayList<AssetRegisterBean> alAssetRegisterBeanApend = new ArrayList<AssetRegisterBean>();
|
||||
if (alpdsStockRegisterBeanApendObj != null) {
|
||||
alAssetRegisterBeanApend = (ArrayList<AssetRegisterBean>) request.getAttribute("alAssetRegisterBean");
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Asset Register</legend>
|
||||
|
||||
<form id="assetregister" name="assetregister" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Asset Type<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="asset_type" id="asset_type" readonly="true" style="text-align:right;" value="<%=blankNull(oAssetRegisterBeanApend.getAsset_type())%>"/><input type="button" value="Search" onclick="javascript:popup_asset(220, 180, document.assetregister.asset_type.value, document.assetregister.asset_subtype.value);" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Asset Sub-Type<font color="red" >*</font>: </td>
|
||||
<td> <input type="text" name="asset_subtype" id="asset_subtype" readonly="true" style="text-align:right;" value="<%=blankNull(oAssetRegisterBeanApend.getAsset_subtypoe())%>"/><input type="button" value="Search" onclick="javascript:popup_asset(220, 180, document.assetregister.asset_type.value, document.assetregister.asset_subtype.value)" /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
<input type="hidden" name="asset_mst_id" id="asset_mst_id" value="<%=blankNull(oAssetRegisterBeanApend.getAsset_mst_id())%>"/>
|
||||
<input type="button" value="Submit" id="Submit" onclick="javascript:submitform(assetregister)"/>
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
<div id="displayDiv">
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px" >
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr> <td > <b>Asset ID</b> </td>
|
||||
<td ><b>Description</b></td>
|
||||
<td ><b>Purchase Value</b></td>
|
||||
<td ><b>Mode of Acquirement</b></td>
|
||||
<td ><b>Purchase Date</b></td>
|
||||
<td ><b>Entry Date</b></td>
|
||||
<td ><b>GL Code</b></td>
|
||||
<td ><b>Depreciation Rate</b></td>
|
||||
<td><b>Asset Status</b></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oAssetRegisterBeanApend = null;
|
||||
|
||||
int i;
|
||||
for (i = 0; i < alAssetRegisterBeanApend.size(); i++) {
|
||||
oAssetRegisterBeanApend = alAssetRegisterBeanApend.get(i);
|
||||
%>
|
||||
<tr>
|
||||
<td><input readonly="true" type="text" name="asset_id<%=i%>" id="asset_id<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getAsset_id())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="description<%=i%>" id="description<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getDescription())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="int_value<%=i%>" id="int_value<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getInt_value())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="mode_of_aqr<%=i%>" id="mode_of_aqr<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getMode_of_aqr())%>" /></td>
|
||||
<td><input readonly="true" style="text-align:center;" type="text" name="purchase_date<%=i%>" id="purchase_date<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getPurchase_date())%>" /></td>
|
||||
<td><input readonly="true" style="text-align:center;" type="text" name="entry_date<%=i%>" id="entry_date<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getEntry_date())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="glcode<%=i%>" id="glcode<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getGlcode())%>" /></td>
|
||||
<td><input readonly="true" type="text" name="depRate<%=i%>" id="depRate<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getDepRate())%>" /></td>
|
||||
<td><select disabled="true" name="status<%=i%>" id="status<%=i%>" >
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="A" <%if (oAssetRegisterBeanApend.getStatus().equals("A")) {%> selected <%}%>>Active</option>
|
||||
<option value="I" <%if (oAssetRegisterBeanApend.getStatus().equals("I")) {%> selected <%}%>>Inactive</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td style="display: none;"><input type="hidden" name="detail_id<%=i%>" id="detail_id<%=i%>" value="<%=blankNull(oAssetRegisterBeanApend.getAsset_id())%>"/></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
149
IPKS_Updated/web/web/web/Asset_JSP/assetRelocation.jsp
Normal file
149
IPKS_Updated/web/web/web/Asset_JSP/assetRelocation.jsp
Normal file
@@ -0,0 +1,149 @@
|
||||
<%--
|
||||
Document : assetrelocation
|
||||
Created on : Jun 24, 2016, 3:21:04 PM
|
||||
Author : Tcs Helpdesk10
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Asset Relocation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script>
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function submitform(assetrelocationform)
|
||||
{
|
||||
|
||||
if (assetrelocationform.asset_id.value == "")
|
||||
{
|
||||
alert("Enter Asset ID details.");
|
||||
assetrelocationform.asset_id.focus();
|
||||
return false;
|
||||
}
|
||||
if (assetrelocationform.pacsName.value == "")
|
||||
{
|
||||
alert("Enter Tansfer To PACS Name.");
|
||||
assetrelocationform.pacsName.focus();
|
||||
return false;
|
||||
}
|
||||
document.forms[0].action='/PacsApplication/AssetRelocationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
function popup_asset_id(width, height, asset_id) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "assetRelocation.jsp";
|
||||
var lovKey = "assetRelocationDetails"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?asset_id=' + asset_id + '&screenName=' + screenName + '&lovKey=' + lovKey, 'assetRelocationDetails', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function popup_pacs_id(width, height, pacsName) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "assetRelocation.jsp";
|
||||
var lovKey = "assetRelocationDetails2"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?pacsName=' + pacsName + '&screenName=' + screenName + '&lovKey=' + lovKey, 'assetRelocationDetails2', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Asset_JSP/assetRelocation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Asset Relocation</legend>
|
||||
<form action="" method="post" name="assetrelocationform">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Asset ID:</td>
|
||||
<td> <input type="text" id="asset_id" name="asset_id" readonly> <input type="button" name="assetidSearch" id="assetidSearch" value="Search" onclick="javascript:popup_asset_id(220, 180, document.getElementById('asset_id').value);"/></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td>Transfer To:</td>
|
||||
<td> <input type="text" id="pacsName" name="pacsName" readonly> <input type="button" name="pacsIdSearch" id="pacsIdSearch" value="Search" onclick="javascript:popup_pacs_id(220, 180, document.getElementById('pacsName').value);"/></td>
|
||||
</tr>
|
||||
<input type="hidden" name="regid">
|
||||
<input type="hidden" name="pacs_mst_id">
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
<br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(assetrelocationform)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
421
IPKS_Updated/web/web/web/Asset_JSP/crarRiskMaster.jsp
Normal file
421
IPKS_Updated/web/web/web/Asset_JSP/crarRiskMaster.jsp
Normal file
@@ -0,0 +1,421 @@
|
||||
<%--
|
||||
Document : CRAR Risk Master
|
||||
Created on : July 11, 2022, 12:31:10 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.AssetEntryBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.AssetRegisterBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>CRAR Risk Master</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
function submitform(crarRisk)
|
||||
{
|
||||
if (checkDiv(crarRisk))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Create";
|
||||
document.forms[0].action='/PacsApplication/CRARRiskMasterServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function amendform(crarRisk)
|
||||
{
|
||||
if (checkDivAmend(crarRisk))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Amend";
|
||||
document.forms[0].action = '/PacsApplication/CRARRiskMasterServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function getDetails(crarRisk)
|
||||
{
|
||||
document.forms[0].handle_id.value = "getDetails";
|
||||
document.forms[0].action = '/PacsApplication/CRARRiskMasterServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Asset_JSP/crarRiskMaster.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function checkDiv(crarRisk)
|
||||
{
|
||||
var counter = document.forms[0].rowCounter.value;
|
||||
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
try{
|
||||
var glcode = document.getElementById("glcode" + i).value;
|
||||
var depRate = document.getElementById("depRate" + i).value;
|
||||
var remarks = document.getElementById("remarks" + i).value;
|
||||
|
||||
if ( glcode == "" || depRate == "" || remarks =="")
|
||||
{
|
||||
alert("Please enter all details.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function checkDivAmend(crarRisk)
|
||||
{
|
||||
var counter2 = document.forms[0].rowCounter2.value;
|
||||
|
||||
for (var i = 2; i < counter2; i++) {
|
||||
try{
|
||||
var glcode = document.getElementById("glcode" + i).value;
|
||||
var depRate = document.getElementById("depRate" + i).value;
|
||||
var remarks = document.getElementById("remarks" + i).value;
|
||||
|
||||
if ( glcode == "" || depRate == "" )
|
||||
{
|
||||
alert("Please enter all details.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function SearchGL(width, height, textIndex)
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
var screenName = "crarRiskMaster.jsp";
|
||||
var lovKey = "gl"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&glcode=' + glcode + '&textIndex=' + textIndex, 'gl', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
function checkop()
|
||||
{
|
||||
if (document.getElementById("checkOption").value == "create")
|
||||
{
|
||||
document.getElementById('create').style.display = 'block';
|
||||
document.getElementById('forAmend').style.display = 'none';
|
||||
document.getElementById('amend').style.display = 'none';
|
||||
}
|
||||
if (document.getElementById("checkOption").value == "amend")
|
||||
{
|
||||
document.getElementById('create').style.display = 'none';
|
||||
document.getElementById('forAmend').style.display = 'block';
|
||||
}
|
||||
}
|
||||
function calDepAmt(crarRisk)
|
||||
{
|
||||
var counter = document.forms[0].rowCounter.value;
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
var dart = document.getElementById("depRate" + i).value;
|
||||
|
||||
var numStr = String(dart);
|
||||
if(numStr.includes('.')){
|
||||
var len = numStr.split('.')[1].length;
|
||||
if (len>2) {
|
||||
alert("Dep Rate is allowed upto two decimals.");
|
||||
document.getElementById("depRate" + i).value = (parseFloat(dart)).toFixed(2);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function calDepAmt2(crarRisk)
|
||||
{
|
||||
var counter2 = document.forms[0].rowCounter2.value;
|
||||
for (var i = 2; i <= counter2; i++) {
|
||||
var dart = document.getElementById("depRate" + i).value;
|
||||
|
||||
var numStr = String(dart);
|
||||
if(numStr.includes('.')){
|
||||
var len = numStr.split('.')[1].length;
|
||||
if (len>2) {
|
||||
alert("Dep Rate is allowed upto two decimals.");
|
||||
document.getElementById("depRate" + i).value = (parseFloat(dart)).toFixed(2);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oAssetEntryBeanObj = request.getAttribute("oAssetEntryBean");
|
||||
Object alAssetEntryBeanObj = request.getAttribute("arrAssetEntryBean");
|
||||
|
||||
AssetEntryBean oAssetEntryBean = new AssetEntryBean();
|
||||
if (oAssetEntryBeanObj != null) {
|
||||
oAssetEntryBean = (AssetEntryBean) request.getAttribute("oAssetEntryBean");
|
||||
}
|
||||
|
||||
ArrayList<AssetEntryBean> alAssetEntryBean = new ArrayList<AssetEntryBean>();
|
||||
if (alAssetEntryBeanObj != null) {
|
||||
alAssetEntryBean = (ArrayList<AssetEntryBean>) request.getAttribute("arrAssetEntryBean");
|
||||
}
|
||||
%>
|
||||
<style>
|
||||
.vertical-menu {
|
||||
height: 280px;
|
||||
width: 800px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">CRAR Risk Master</legend>
|
||||
|
||||
<form id="crarRisk" name="crarRisk" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center><label style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection:</label>
|
||||
<select id="checkOption" onchange="checkop()" name="checkOption" >
|
||||
<option value="" style="display:none;" >--Select--</option>
|
||||
<option value="create" >Create</option>
|
||||
<option value="amend" >Amend</option>
|
||||
</select>
|
||||
</center>
|
||||
<br>
|
||||
<div id="create" style="display:none;">
|
||||
<center>
|
||||
<br><br>
|
||||
<table id="order-list" style="margin-left: 20px;" class="NumbersOnly" border="2" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px; width: 100%;">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr border="2">
|
||||
<td></td>
|
||||
<td colspan="2">GL Name</td>
|
||||
<td>Risk Percentage</td>
|
||||
<td>Remarks</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td><input size="30" type="text" name="glcode<%=count%>" id="glcode<%=count%>" ondrop="return false;" onpaste="return false;" /></td>
|
||||
<td><input type="button" style="width: 70px" name="SearchGL<%=count%>" id="SearchGL<%=count%>" value="Search" onclick="javascript:SearchGL(550,240,<%=count%>);" /></td>
|
||||
<td><input size="15" type="text" name="depRate<%=count%>" id="depRate<%=count%>" onkeyup="calDepAmt(crarRisk)" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47' /></td>
|
||||
<td><input size="20" type="text" name="remarks<%=count%>" id="remarks<%=count%>" onmouseover="calDays(formPayroll)"/></td>
|
||||
<td><select style="width:100px" id="status<%=count%>" name="status<%=count%>" >
|
||||
<option value="N">No</option><option value="Y">Yes</option></select></td>
|
||||
<td style="display: none;"><input type="hidden" name="id<%=count%>" id="id<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="glid<%=count%>" id="glid<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="comp1<%=count%>" id="comp1<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="comp2<%=count%>" id="comp2<%=count%>"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br/><br/>
|
||||
<center>
|
||||
<input type="button" id="addRow" value="Add Row"/>
|
||||
<input type="button" id="deleteRow" value="Delete Row"/>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(crarRisk)"/>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounterDelete" id="rowCounterDelete" value="<%=count%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
</center>
|
||||
</div>
|
||||
<center>
|
||||
<div id="forAmend" style="display:none;" >
|
||||
|
||||
<center>
|
||||
<tr><input type="button" value="Fetch CRAR Risk Master Details" onclick="javascript:getDetails()" /></tr>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div>
|
||||
</center>
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<div id="amend" >
|
||||
<center>
|
||||
<div class="vertical-menu" >
|
||||
<table id="order-listAmend" >
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td colspan="2">GL Name</td>
|
||||
<td>Risk Percentage</td>
|
||||
<td>Remarks</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oAssetEntryBean = null;
|
||||
oAssetEntryBean = new AssetEntryBean();
|
||||
int count2= 1;
|
||||
|
||||
for (int i = 0; i < alAssetEntryBean.size(); i++) {
|
||||
oAssetEntryBean = alAssetEntryBean.get(i);
|
||||
count2++;
|
||||
%>
|
||||
<tr>
|
||||
<td><input size="30" type="text" name="glcode<%=count2%>" id="glcode<%=count2%>" ondrop="return false;" onpaste="return false;" value="<%=blankNull(oAssetEntryBean.getGlcode())%>" /></td>
|
||||
<td><input type="button" style="width: 70px" name="SearchGL<%=count2%>" id="SearchGL<%=count2%>" value="Search" onclick="javascript:SearchGL(550,240,<%=count2%>);" /></td>
|
||||
<td><input size="15" type="text" name="depRate<%=count2%>" id="depRate<%=count2%>" onkeyup="calDepAmt2(crarRisk)" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47' value="<%=blankNull(oAssetEntryBean.getDepRate())%>" /></td>
|
||||
<td><input size="20" type="text" name="remarks<%=count2%>" id="remarks<%=count2%>" value="<%=blankNull(oAssetEntryBean.getRemarks())%>"/></td>
|
||||
<td><select style="width: 150px" name="status<%=count2%>" id="status<%=count2%>" >
|
||||
<option <%if (oAssetEntryBean.getStatus().equalsIgnoreCase("Y")) {%>selected <%}%> value="Y">Yes</option>
|
||||
<option <%if (oAssetEntryBean.getStatus().equalsIgnoreCase("N")) {%>selected <%}%> value="N">No</option>
|
||||
</select></td>
|
||||
<td style="display:none"><input type="hidden" name="id<%=count2%>" id="id<%=count2%>" value="<%=blankNull(oAssetEntryBean.getId())%>"></td>
|
||||
<td style="display:none"><input type="hidden" name="glid<%=count2%>" id="glid<%=count2%>" value="<%=blankNull(oAssetEntryBean.getGlid())%>"></td>
|
||||
<td style="display:none"><input type="hidden" name="comp1<%=count2%>" id="comp1<%=count2%>" value="<%=blankNull(oAssetEntryBean.getComp1())%>"></td>
|
||||
<td style="display:none"><input type="hidden" name="comp2<%=count2%>" id="comp2<%=count2%>" value="<%=blankNull(oAssetEntryBean.getComp2())%>"></td>
|
||||
</tr>
|
||||
|
||||
<%}%></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:amendform(crarRisk)"/>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<input type="hidden" name="indicator" id="indicator" value="">
|
||||
<input type="hidden" name="rowCounter2" id="rowCounter2" value="<%=count2%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0">
|
||||
</div>
|
||||
<%}%>
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
<input type="hidden" name="actionApl" value="" />
|
||||
<input type="hidden" name="vendor_id" id="vendor_id"/>
|
||||
<input type="hidden" id="displayFlag" name="displayFlag" value="<%=displayFlag%>"/>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
$("#addRow").click(function(){
|
||||
|
||||
|
||||
counter++;
|
||||
$('#order-list tr:last').after('<tr> <td align="center"><input type="checkbox" name="chckbox'+counter+'" id="chckbox'+counter+'" onclick="checkboxTrue('+counter+');"/></td>\n\
|
||||
<td><input size="30" type="text" name="glcode'+counter+'" id="glcode'+counter+'" ondrop="return false;" onpaste="return false;" /></td>\n\
|
||||
<td><input type="button" style="width: 70px" name="SearchGL'+counter+'" id="SearchGL'+counter+'" value="Search" onclick="javascript:SearchGL(550,240,'+counter+');" /></td>\n\
|
||||
<td><input size="15" type="text" name="depRate" id="depRate'+counter+'" onkeyup="calDepAmt(crarRisk)" onkeypress="return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47" /></td>\n\
|
||||
<td><input size="20" type="text" id="remarks' + counter + '" name="remarks' + counter + '" onmouseover="calDays(formPayroll)" /></td>\n\
|
||||
<td><select style="width:100%" id="status' + counter + '" name="status' + counter + '" ><option value="N">No</option><option value="Y">Yes</option></select></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="id'+counter+'" id="id'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="glid'+counter+'" id="glid'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="comp1'+counter+'" id="comp1'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="comp2'+counter+'" id="comp2'+counter+'"/></td>\n\\n\
|
||||
</tr>');
|
||||
$("#rowCounter").val(counter);
|
||||
$("#rowCounterDelete").val(counter);
|
||||
});
|
||||
$( "#deleteRow" ).click(function()
|
||||
{
|
||||
var len = ($("#order-list tr").length)-1;
|
||||
var rowcount = $("#rowCounterDelete").val();
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var counterDelete = rowcount-chkboxCounter;
|
||||
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if (len ==chkboxCounter) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
|
||||
$("#rowCounterDelete").val( $("#rowCounter").val());
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
}
|
||||
});
|
||||
function checkboxTrue(i)
|
||||
{
|
||||
if(document.getElementById("chckbox"+i).checked==true)
|
||||
{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
else{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
381
IPKS_Updated/web/web/web/Asset_JSP/crarWorthMaster.jsp
Normal file
381
IPKS_Updated/web/web/web/Asset_JSP/crarWorthMaster.jsp
Normal file
@@ -0,0 +1,381 @@
|
||||
<%--
|
||||
Document : CRAR Worth Master
|
||||
Created on : July 18, 2022, 12:31:10 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.AssetEntryBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.AssetRegisterBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>CRAR Worth Master</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
function submitform(crarWorthMaster)
|
||||
{
|
||||
if (checkDiv(crarWorthMaster))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Create";
|
||||
document.forms[0].action='/PacsApplication/CRARWorthMasterServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function amendform(crarWorthMaster)
|
||||
{
|
||||
if (checkDivAmend(crarWorthMaster))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Amend";
|
||||
document.forms[0].action = '/PacsApplication/CRARWorthMasterServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function getDetails(crarWorthMaster)
|
||||
{
|
||||
document.forms[0].handle_id.value = "getDetails";
|
||||
document.forms[0].action = '/PacsApplication/CRARWorthMasterServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Asset_JSP/crarWorthMaster.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function checkDiv(crarWorthMaster)
|
||||
{
|
||||
var counter = document.forms[0].rowCounter.value;
|
||||
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
try{
|
||||
var glcode = document.getElementById("glcode" + i).value;
|
||||
var remarks = document.getElementById("remarks" + i).value;
|
||||
|
||||
if ( glcode == "" || remarks =="")
|
||||
{
|
||||
alert("Please enter all details.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function checkDivAmend(crarWorthMaster)
|
||||
{
|
||||
var counter2 = document.forms[0].rowCounter2.value;
|
||||
|
||||
for (var i = 2; i < counter2; i++) {
|
||||
try{
|
||||
var glcode = document.getElementById("glcode" + i).value;
|
||||
var remarks = document.getElementById("remarks" + i).value;
|
||||
|
||||
if ( glcode == "" )
|
||||
{
|
||||
alert("Please enter all details.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function SearchGL(width, height, textIndex)
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
var screenName = "crarWorthMaster.jsp";
|
||||
var lovKey = "gl"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformation_ASSET_LOV.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&glcode=' + glcode + '&textIndex=' + textIndex, 'gl', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
function checkop()
|
||||
{
|
||||
if (document.getElementById("checkOption").value == "create")
|
||||
{
|
||||
document.getElementById('create').style.display = 'block';
|
||||
document.getElementById('forAmend').style.display = 'none';
|
||||
document.getElementById('amend').style.display = 'none';
|
||||
}
|
||||
if (document.getElementById("checkOption").value == "amend")
|
||||
{
|
||||
document.getElementById('create').style.display = 'none';
|
||||
document.getElementById('forAmend').style.display = 'block';
|
||||
}
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oAssetEntryBeanObj = request.getAttribute("oAssetEntryBean");
|
||||
Object alAssetEntryBeanObj = request.getAttribute("arrAssetEntryBean");
|
||||
|
||||
AssetEntryBean oAssetEntryBean = new AssetEntryBean();
|
||||
if (oAssetEntryBeanObj != null) {
|
||||
oAssetEntryBean = (AssetEntryBean) request.getAttribute("oAssetEntryBean");
|
||||
}
|
||||
|
||||
ArrayList<AssetEntryBean> alAssetEntryBean = new ArrayList<AssetEntryBean>();
|
||||
if (alAssetEntryBeanObj != null) {
|
||||
alAssetEntryBean = (ArrayList<AssetEntryBean>) request.getAttribute("arrAssetEntryBean");
|
||||
}
|
||||
%>
|
||||
<style>
|
||||
.vertical-menu {
|
||||
height: 280px;
|
||||
width: 680px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<jsp:include page="MenuHead_ASSET.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">CRAR Worth Master</legend>
|
||||
|
||||
<form id="crarWorthMaster" name="crarWorthMaster" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center><label style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection:</label>
|
||||
<select id="checkOption" onchange="checkop()" name="checkOption" >
|
||||
<option value="" style="display:none;" >--Select--</option>
|
||||
<option value="create" >Create</option>
|
||||
<option value="amend" >Amend</option>
|
||||
</select>
|
||||
</center>
|
||||
<br>
|
||||
<div id="create" style="display:none;">
|
||||
<center>
|
||||
<br><br>
|
||||
<table id="order-list" style="margin-left: 20px;" class="NumbersOnly" border="2" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px; width: 100%;">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr border="2">
|
||||
<td></td>
|
||||
<td colspan="2">GL Name</td>
|
||||
<td>Remarks</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td><input size="30" type="text" name="glcode<%=count%>" id="glcode<%=count%>" ondrop="return false;" onpaste="return false;" /></td>
|
||||
<td><input type="button" style="width: 70px" name="SearchGL<%=count%>" id="SearchGL<%=count%>" value="Search" onclick="javascript:SearchGL(550,240,<%=count%>);" /></td>
|
||||
<td><input size="20" type="text" name="remarks<%=count%>" id="remarks<%=count%>" onmouseover="calDays(formPayroll)"/></td>
|
||||
<td><select style="width:100px" id="status<%=count%>" name="status<%=count%>" >
|
||||
<option value="N">No</option><option value="Y">Yes</option></select></td>
|
||||
<td style="display: none;"><input type="hidden" name="id<%=count%>" id="id<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="glid<%=count%>" id="glid<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="comp1<%=count%>" id="comp1<%=count%>"/></td>
|
||||
<td style="display: none;"><input type="hidden" name="comp2<%=count%>" id="comp2<%=count%>"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br/><br/>
|
||||
<center>
|
||||
<input type="button" id="addRow" value="Add Row"/>
|
||||
<input type="button" id="deleteRow" value="Delete Row"/>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(crarWorthMaster)"/>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounterDelete" id="rowCounterDelete" value="<%=count%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<center>
|
||||
<div id="forAmend" style="display:none;" >
|
||||
|
||||
<center>
|
||||
<tr><input type="button" value="Fetch CRAR Worth Master Details" onclick="javascript:getDetails()" /></tr>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div>
|
||||
</center>
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<div id="amend" >
|
||||
<center>
|
||||
<div class="vertical-menu" >
|
||||
<table id="order-listAmend" >
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td colspan="2">GL Name</td>
|
||||
<td>Remarks</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oAssetEntryBean = null;
|
||||
oAssetEntryBean = new AssetEntryBean();
|
||||
int count2= 1;
|
||||
|
||||
for (int i = 0; i < alAssetEntryBean.size(); i++) {
|
||||
oAssetEntryBean = alAssetEntryBean.get(i);
|
||||
count2++;
|
||||
%>
|
||||
<tr>
|
||||
<td><input size="30" type="text" name="glcode<%=count2%>" id="glcode<%=count2%>" ondrop="return false;" onpaste="return false;" value="<%=blankNull(oAssetEntryBean.getGlcode())%>" /></td>
|
||||
<td><input type="button" style="width: 70px" name="SearchGL<%=count2%>" id="SearchGL<%=count2%>" value="Search" onclick="javascript:SearchGL(550,240,<%=count2%>);" /></td>
|
||||
<td><input size="20" type="text" name="remarks<%=count2%>" id="remarks<%=count2%>" value="<%=blankNull(oAssetEntryBean.getRemarks())%>"/></td>
|
||||
<td><select style="width: 150px" name="status<%=count2%>" id="status<%=count2%>" >
|
||||
<option <%if (oAssetEntryBean.getStatus().equalsIgnoreCase("Y")) {%>selected <%}%> value="Y">Yes</option>
|
||||
<option <%if (oAssetEntryBean.getStatus().equalsIgnoreCase("N")) {%>selected <%}%> value="N">No</option>
|
||||
</select></td>
|
||||
<td style="display:none"><input type="hidden" name="id<%=count2%>" id="id<%=count2%>" value="<%=blankNull(oAssetEntryBean.getId())%>"></td>
|
||||
<td style="display:none"><input type="hidden" name="glid<%=count2%>" id="glid<%=count2%>" value="<%=blankNull(oAssetEntryBean.getGlid())%>"></td>
|
||||
<td style="display:none"><input type="hidden" name="comp1<%=count2%>" id="comp1<%=count2%>" value="<%=blankNull(oAssetEntryBean.getComp1())%>"></td>
|
||||
<td style="display:none"><input type="hidden" name="comp2<%=count2%>" id="comp2<%=count2%>" value="<%=blankNull(oAssetEntryBean.getComp2())%>"></td>
|
||||
</tr>
|
||||
|
||||
<%}%></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:amendform(crarWorthMaster)"/>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<input type="hidden" name="indicator" id="indicator" value="">
|
||||
<input type="hidden" name="rowCounter2" id="rowCounter2" value="<%=count2%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0">
|
||||
</div>
|
||||
<%}%>
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
<input type="hidden" name="actionApl" value="" />
|
||||
<input type="hidden" name="vendor_id" id="vendor_id"/>
|
||||
<input type="hidden" id="displayFlag" name="displayFlag" value="<%=displayFlag%>"/>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
$("#addRow").click(function(){
|
||||
|
||||
|
||||
counter++;
|
||||
$('#order-list tr:last').after('<tr> <td align="center"><input type="checkbox" name="chckbox'+counter+'" id="chckbox'+counter+'" onclick="checkboxTrue('+counter+');"/></td>\n\
|
||||
<td><input size="30" type="text" name="glcode'+counter+'" id="glcode'+counter+'" ondrop="return false;" onpaste="return false;" /></td>\n\
|
||||
<td><input type="button" style="width: 70px" name="SearchGL'+counter+'" id="SearchGL'+counter+'" value="Search" onclick="javascript:SearchGL(550,240,'+counter+');" /></td>\n\
|
||||
<td><input size="20" type="text" id="remarks' + counter + '" name="remarks' + counter + '" onmouseover="calDays(formPayroll)" /></td>\n\
|
||||
<td><select style="width:100%" id="status' + counter + '" name="status' + counter + '" ><option value="N">No</option><option value="Y">Yes</option></select></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="id'+counter+'" id="id'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="glid'+counter+'" id="glid'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="comp1'+counter+'" id="comp1'+counter+'"/></td>\n\
|
||||
<td style="display: none;"><input type="hidden" name="comp2'+counter+'" id="comp2'+counter+'"/></td>\n\\n\
|
||||
</tr>');
|
||||
$("#rowCounter").val(counter);
|
||||
$("#rowCounterDelete").val(counter);
|
||||
});
|
||||
$( "#deleteRow" ).click(function()
|
||||
{
|
||||
var len = ($("#order-list tr").length)-1;
|
||||
var rowcount = $("#rowCounterDelete").val();
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var counterDelete = rowcount-chkboxCounter;
|
||||
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if (len ==chkboxCounter) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
|
||||
$("#rowCounterDelete").val( $("#rowCounter").val());
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
}
|
||||
});
|
||||
function checkboxTrue(i)
|
||||
{
|
||||
if(document.getElementById("chckbox"+i).checked==true)
|
||||
{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
else{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
190
IPKS_Updated/web/web/web/CBSDataPosting.jsp
Normal file
190
IPKS_Updated/web/web/web/CBSDataPosting.jsp
Normal file
@@ -0,0 +1,190 @@
|
||||
<%--
|
||||
Document : CBS Data Posting
|
||||
Created on : Aug 3, 2015, 2:23:35 PM
|
||||
Author : Administrator
|
||||
--%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.CBSDataPostingBean"%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
|
||||
<title>CBS Data Posting</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function cbs_upload(cbsDataPostingForm)
|
||||
{
|
||||
document.getElementById("handle_id").value = "cbsUpload";
|
||||
document.forms[0].action = '/PacsApplication/cbsExtractPostingServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function cbs_post(cbsDataPostingForm)
|
||||
{
|
||||
document.getElementById("handle_id").value = "cbsPost";
|
||||
document.forms[0].action = '/PacsApplication/cbsExtractPostingServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function download_report(cbsDataPostingForm)
|
||||
{
|
||||
document.getElementById("handle_id").value = "downloadReport";
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function view_status(cbsDataPostingForm)
|
||||
{
|
||||
document.getElementById("handle_id").value = "viewStatus";
|
||||
document.forms[0].action = '/PacsApplication/cbsExtractPostingServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alCBSDataPostingBeanObj = request.getAttribute("alCBSDataPostingBean");
|
||||
ArrayList<CBSDataPostingBean> alCBSDataPostingBean = new ArrayList<CBSDataPostingBean>();
|
||||
if (alCBSDataPostingBeanObj != null) {
|
||||
alCBSDataPostingBean = (ArrayList<CBSDataPostingBean>) request.getAttribute("alCBSDataPostingBean");
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oCBSDataPostingBeanSearchObj = request.getAttribute("oCBSDataPostingBeanSearchObj");
|
||||
CBSDataPostingBean oCBSDataPostingBean = new CBSDataPostingBean();
|
||||
CBSDataPostingBean oCBSDataPostingBeanSearch = new CBSDataPostingBean();
|
||||
if (oCBSDataPostingBeanSearchObj != null) {
|
||||
oCBSDataPostingBean = (CBSDataPostingBean) request.getAttribute("oCBSDataPostingBeanSearchObj");
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">CBS DATA POSTING</legend>
|
||||
<form id="cbsDataPostingForm" name="cbsDataPostingForm" method="post" action="cbsExtractPostingServlet">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><%= error_msg%></div> </center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<br><br>
|
||||
<table style="column-gap: 5px; ">
|
||||
<tr>
|
||||
<td><input name="uploadCBSData" id="uploadCBSData" type="button" value="Upload CBS Data" onclick="cbs_upload();" /></td>
|
||||
<td> </td>
|
||||
<td><input name="postCBSTransaction" id="postCBSTransaction" type="button" value="Post CBS Transaction" onclick="cbs_post();" /></td>
|
||||
<td> </td>
|
||||
<td><input name="viewPostingStatus" id="viewPostingStatus" type="button" value="View Posting Status" onclick="view_status();" /></td>
|
||||
<td> </td>
|
||||
<td><input name="downloadReport" id="downloadReport" type="button" value="Download Report" onclick="download_report();" /></td>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<input name="handle_id" id="handle_id" type="hidden" value="" />
|
||||
<input name="screen_name" id="screen_name" type="hidden" value="CBSDataPosting.jsp" />
|
||||
<input name="reportname" id="reportname" type="hidden" value="BULK_TRANSACTION_REPORT" />
|
||||
<input name="inputparam1" id="inputparam1" type="hidden" value="" />
|
||||
<input name="inputparam1" id="inputparam1" type="hidden" value="" />
|
||||
|
||||
</form>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<br><br>
|
||||
<center>
|
||||
<div id="displayDiv" >
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>Serial Number</td>
|
||||
<td>File Name</td>
|
||||
<td>DCCB Name</td>
|
||||
<td >Upload Status</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oCBSDataPostingBean = null;
|
||||
|
||||
for (int i = 0; i < alCBSDataPostingBean.size(); i++) {
|
||||
oCBSDataPostingBean = alCBSDataPostingBean.get(i);
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%=(i + 1)%></td>
|
||||
<td><%=blankNull(oCBSDataPostingBean.getFileName())%></td>
|
||||
<td><%=blankNull(oCBSDataPostingBean.getDccbName())%></td>
|
||||
<td <% if ((oCBSDataPostingBean.getUploadStatus().equalsIgnoreCase("PENDING"))) { %>style="color: red"<%}%>><%=blankNull(oCBSDataPostingBean.getUploadStatus())%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
185
IPKS_Updated/web/web/web/CBSKycPosting.jsp
Normal file
185
IPKS_Updated/web/web/web/CBSKycPosting.jsp
Normal file
@@ -0,0 +1,185 @@
|
||||
<%--
|
||||
Document : CBS Data Posting
|
||||
Created on : Aug 3, 2015, 2:23:35 PM
|
||||
Author : Administrator
|
||||
--%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.CBSDataPostingBean"%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<title>BULK Data Posting</title>
|
||||
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function kyc_upload()
|
||||
{
|
||||
document.getElementById("handle_id").value = "kycUpload";
|
||||
document.forms[0].action = '/PacsApplication/cbsExtractPostingServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function kyc_post()
|
||||
{
|
||||
document.getElementById("handle_id").value = "kycPost";
|
||||
document.forms[0].action = '/PacsApplication/cbsExtractPostingServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function download_report()
|
||||
{
|
||||
document.getElementById("handle_id").value = "downloadReport";
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function view_status()
|
||||
{
|
||||
document.getElementById("handle_id").value = "viewStatus";
|
||||
document.forms[0].action = '/PacsApplication/cbsExtractPostingServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alCBSDataPostingBeanObj = request.getAttribute("alCBSDataPostingBean");
|
||||
ArrayList<CBSDataPostingBean> alCBSDataPostingBean = new ArrayList<CBSDataPostingBean>();
|
||||
if (alCBSDataPostingBeanObj != null) {
|
||||
alCBSDataPostingBean = (ArrayList<CBSDataPostingBean>) request.getAttribute("alCBSDataPostingBean");
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oCBSDataPostingBeanSearchObj = request.getAttribute("oCBSDataPostingBeanSearchObj");
|
||||
CBSDataPostingBean oCBSDataPostingBean = new CBSDataPostingBean();
|
||||
CBSDataPostingBean oCBSDataPostingBeanSearch = new CBSDataPostingBean();
|
||||
if (oCBSDataPostingBeanSearchObj != null) {
|
||||
oCBSDataPostingBean = (CBSDataPostingBean) request.getAttribute("oCBSDataPostingBeanSearchObj");
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">CUSTOMER (KYC) DATA POSTING</legend>
|
||||
<form id="kycDataPostingForm" name="kycDataPostingForm" method="post" action="kycExtractPostingServlet">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<br><br>
|
||||
<table style="column-gap: 5px; ">
|
||||
<tr>
|
||||
<td><input name="uploadkycData" id="uploadkycData" type="button" value="Upload Customer Data" onclick="kyc_upload();" /></td>
|
||||
<td> </td>
|
||||
<td><input name="postKycData" id="postKycData" type="button" value="Post Customer Information" onclick="kyc_post();" /></td>
|
||||
<td> </td>
|
||||
<td><input name="viewPostingStatus" id="viewPostingStatus" type="button" value="View Posting Status" onclick="view_status();" /></td>
|
||||
<td> </td>
|
||||
<td><input name="downloadReport" id="downloadReport" type="button" value="Download Report" onclick="download_report();" /></td>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<input name="handle_id" id="handle_id" type="hidden" value="" />
|
||||
<input name="screen_name" id="screen_name" type="hidden" value="CBSKycPosting.jsp" />
|
||||
<input name="reportname" id="reportname" type="hidden" value="BULK_KYC_REPORT" />
|
||||
<input name="inputparam1" id="inputparam1" type="hidden" value="" />
|
||||
<input name="inputparam1" id="inputparam1" type="hidden" value="" />
|
||||
|
||||
</form>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<br><br>
|
||||
<center>
|
||||
<div id="displayDiv" >
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>Serial Number</td>
|
||||
<td>File Name</td>
|
||||
<td>DCCB Name</td>
|
||||
<td >Upload Status</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oCBSDataPostingBean = null;
|
||||
|
||||
for (int i = 0; i < alCBSDataPostingBean.size(); i++) {
|
||||
oCBSDataPostingBean = alCBSDataPostingBean.get(i);
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%=(i + 1)%></td>
|
||||
<td><%=blankNull(oCBSDataPostingBean.getFileName())%></td>
|
||||
<td><%=blankNull(oCBSDataPostingBean.getDccbName())%></td>
|
||||
<td <% if ((oCBSDataPostingBean.getUploadStatus().equalsIgnoreCase("PENDING"))) { %>style="color: red"<%}%>><%=blankNull(oCBSDataPostingBean.getUploadStatus())%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
120
IPKS_Updated/web/web/web/CC_OD.jsp
Normal file
120
IPKS_Updated/web/web/web/CC_OD.jsp
Normal file
@@ -0,0 +1,120 @@
|
||||
<%--
|
||||
Document : CC_OD
|
||||
Created on : Aug 5, 2015, 12:51:24 PM
|
||||
Author : Administrator
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>CC OD Account Deatils</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
<br><br>
|
||||
<%!
|
||||
String blankNull(String s){
|
||||
return(s==null)?"":s;
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<form method="POST" action="/PacsApplication/MainServletCCOD">
|
||||
<table border="0" width="800" cellspacing="1" cellpadding="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="left">Account Number</td>
|
||||
<td align="left"><input type="text" name="account_no" id="account_no" value=""></td>
|
||||
<td align="left">Customer Name</td>
|
||||
<td align="left"><input type="text" name="cust_name" id="cust_name" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Account Type</td>
|
||||
<td align="left"><input type="text" name="acc_type" id="acc_type" value=""/></td>
|
||||
<td>Sub Cat</td>
|
||||
<td align="left"><input type="text" name="sub_cat" id="sub_cat" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Product Description</td>
|
||||
<td align="left"><input type="text" name="prod_desc" id="prod_desc" value=""/></td>
|
||||
<td align="left">Outstanding</td>
|
||||
<td align="left"><input type="text" name="outstanding" id="outstanding" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Current Status</td>
|
||||
<td align="left"><input type="text" name="lend_status" id="lend_status" value=""/></td>
|
||||
<td>Intt Accrued</td>
|
||||
<td align="left"><input type="text" name="intt_accrd" id="intt_accrd" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Per Day Interest</td>
|
||||
<td align="left"><input type="text" name="daily_int" id="daily_int" value=""/></td>
|
||||
<td align="left">Limit Amount</td>
|
||||
<td align="left"><input type="text" name="lim_amt" id="lim_amt" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Account Opening Date</td>
|
||||
<td align="left"><input type="text" name="lim_date" id="lim_date" /></td>
|
||||
<td align="left">NPA Date</td>
|
||||
<td align="left"><input type="text" name="NPA_date" id="NPA_date" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Limit Expiry Date</td>
|
||||
<td align="left"><input type="text" name="lim_exp_dt" id="lim_exp_dt" /></td>
|
||||
<td>Amt Of Irregularity</td>
|
||||
<td align="left"><input type="text" name="amt_irr" id="amt_irr" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Effective DP</td>
|
||||
<td align="left"><input type="text" name="eff_DP" id="eff_DP" value=""/></td>
|
||||
<td align="left">Intt Rate</td>
|
||||
<td align="left"><input type="text" name="intt_rate" id="intt_rate" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Expiry Rate</td>
|
||||
<td align="left"><input type="text" name="exp_rate" id="exp_rate" value=""/></td>
|
||||
<td align="left">New IRAC Status</td>
|
||||
<td align="left"><input type="text" name="new_IRAC" id="new_IRAC" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Land Register(Land In Acre)</td>
|
||||
<td align="left"><input type="text" name="landRegister" id="landRegister" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" align="center">
|
||||
<input type="submit" value="Search" name="action">
|
||||
<input type="reset" value="Reset" name="reset" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
176
IPKS_Updated/web/web/web/CifDetails.jsp
Normal file
176
IPKS_Updated/web/web/web/CifDetails.jsp
Normal file
@@ -0,0 +1,176 @@
|
||||
<%--
|
||||
Document : CifDetails
|
||||
Created on : Aug 3, 2015, 2:23:35 PM
|
||||
Author : Administrator
|
||||
--%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>CIF Details</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
|
||||
|
||||
<form method="post" action="/PacsApplication/CifEntryServlet">
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
|
||||
<th colspan="1">Customer Name and Address</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>CIF Details:*</td>
|
||||
<td><input type="text" name="cif" style="width: 260px" value=""/></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Customer Type:*</td>
|
||||
<td><input type="text" name="ctype" style="width: 260px" value=""/></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Title:*</td>
|
||||
<td><input type="text" name="title" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>First Name:*</td>
|
||||
<td><input type="text" name="fname" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Middle Name:</td>
|
||||
<td><input type="text" name="mname"style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Name:*</td>
|
||||
<td><input type="text" name="lname" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Father/Spouse Name:</td>
|
||||
<td><input type="text" name="fsname" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>User Mother's Maiden Name:</td>
|
||||
<td><input type="text" name="mthname" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Door/Flat No;Building/Society:* </td>
|
||||
<td><input type="text" name="flatno" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Block: </td>
|
||||
<td><input type="text" name="streetname" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gram Panchayet:* </td>
|
||||
<td><input type="text" name="localityname" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>District: </td>
|
||||
<td><input type="text" name="distname" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>City/Town:* </td>
|
||||
<td><input type="text" name="cityname" value="" /></td>
|
||||
|
||||
<td> State:* </td>
|
||||
<td><input type="text" name="statename" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Country </td>
|
||||
<td><input type="text" name="countryname" value="" /></td>
|
||||
|
||||
<td> Post Code:* </td>
|
||||
<td><input type="text" name="postcode" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Language </td>
|
||||
<td><input type="text" name="language" value="" /></td>
|
||||
|
||||
<td> Phone(Home) </td>
|
||||
<td><input type="text" name="phhome" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Date Of Birth:* </td>
|
||||
<td><input type="text" name="dob" value="" /></td>
|
||||
|
||||
<td> Phone(Business) </td>
|
||||
<td><input type="text" name="phbusiness" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Gender Code:* </td>
|
||||
<td><input type="text" name="gencode" value="" /></td>
|
||||
|
||||
<td> Mobile No: </td>
|
||||
<td><input type="text" name="mob" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Marital Status: </td>
|
||||
<td><input type="text" name="mstatus" value="" /></td>
|
||||
|
||||
<td>Fax No: </td>
|
||||
<td><input type="text" name="fax" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Nationality: </td>
|
||||
<td><input type="text" name="nationality" value="" /></td>
|
||||
|
||||
<td> Domicile: </td>
|
||||
<td><input type="text" name="Domicile" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Occupancy: </td>
|
||||
<td><input type="text" name="Occupation" value="" /></td>
|
||||
|
||||
<td> Resident Status: </td>
|
||||
<td><input type="text" name="resstatus" value="" /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table><br><br>
|
||||
<center>
|
||||
<input type="submit" value="Search" name="action">
|
||||
<input type="reset" value="Reset" name="reset" />
|
||||
</center>
|
||||
</form>
|
||||
<p> "*" fields are mandatory </p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
2608
IPKS_Updated/web/web/web/CommonSearchInfoLOVNew.jsp
Normal file
2608
IPKS_Updated/web/web/web/CommonSearchInfoLOVNew.jsp
Normal file
File diff suppressed because it is too large
Load Diff
3276
IPKS_Updated/web/web/web/CommonSearchInformationDepositLOV.jsp
Normal file
3276
IPKS_Updated/web/web/web/CommonSearchInformationDepositLOV.jsp
Normal file
File diff suppressed because it is too large
Load Diff
2243
IPKS_Updated/web/web/web/CommonSearchInformationLOV.jsp
Normal file
2243
IPKS_Updated/web/web/web/CommonSearchInformationLOV.jsp
Normal file
File diff suppressed because it is too large
Load Diff
1726
IPKS_Updated/web/web/web/CommonSearchInformationLoanLOV.jsp
Normal file
1726
IPKS_Updated/web/web/web/CommonSearchInformationLoanLOV.jsp
Normal file
File diff suppressed because it is too large
Load Diff
1087
IPKS_Updated/web/web/web/CommonSearchInformationPdsLOV.jsp
Normal file
1087
IPKS_Updated/web/web/web/CommonSearchInformationPdsLOV.jsp
Normal file
File diff suppressed because it is too large
Load Diff
1200
IPKS_Updated/web/web/web/CommonSearchInformationShgLOV.jsp
Normal file
1200
IPKS_Updated/web/web/web/CommonSearchInformationShgLOV.jsp
Normal file
File diff suppressed because it is too large
Load Diff
2494
IPKS_Updated/web/web/web/CommonSearchInformationTradingLOV.jsp
Normal file
2494
IPKS_Updated/web/web/web/CommonSearchInformationTradingLOV.jsp
Normal file
File diff suppressed because it is too large
Load Diff
510
IPKS_Updated/web/web/web/CommonSearchInformation_ASSET_LOV.jsp
Normal file
510
IPKS_Updated/web/web/web/CommonSearchInformation_ASSET_LOV.jsp
Normal file
@@ -0,0 +1,510 @@
|
||||
<%--
|
||||
Document : CommonSearchInformationTradingLOV
|
||||
Created on : Mar 10, 2016, 2:30:36 AM
|
||||
Author : SUBHAM
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.PreparedStatement"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Customer Information Search</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
|
||||
<%
|
||||
String searchString1 = "";
|
||||
String screenName = "";
|
||||
String searchString2 = "";
|
||||
String lovKey = "";
|
||||
String textIndex = "";
|
||||
|
||||
screenName = request.getParameter("screenName");
|
||||
lovKey = request.getParameter("lovKey");
|
||||
String pacsId = session.getAttribute("pacsId").toString();
|
||||
String productId = request.getParameter("productId");
|
||||
|
||||
String headerQry = null;
|
||||
|
||||
if (screenName.equalsIgnoreCase("assetEntry.jsp") && (lovKey.equalsIgnoreCase("AssetCodeSearch"))) {
|
||||
|
||||
textIndex = request.getParameter("textIndex");
|
||||
|
||||
headerQry = "select ID,ASSET_TYPE,TYPE_DESC,ASSET_SUBTYPE,SUBTYPE_DESC from ASSET_MASTER";
|
||||
} else if (screenName.equalsIgnoreCase("assetRegister.jsp") && (lovKey.equalsIgnoreCase("assetDetails"))) {
|
||||
|
||||
//searchString1 = request.getParameter("asset_type");
|
||||
//searchString2 = request.getParameter("asset_subtype");
|
||||
|
||||
if (searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master";
|
||||
} else if (searchString1.equalsIgnoreCase("") && !searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master where asset_type like '%" + searchString2.replace(' ', '%') + "%'";
|
||||
} else if (!searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master where asset_type like '%" + searchString1.replace(' ', '%') + "%'";
|
||||
} else {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master where asset_type like '%" + searchString1.replace(' ', '%') + "%' and asset_subtype like '%" + searchString2.replace(' ', '%') + "%'";
|
||||
}
|
||||
|
||||
} else if ((screenName.equalsIgnoreCase("assetDisposal.jsp")) && (lovKey.equalsIgnoreCase("assetDisposalDetails"))) {
|
||||
|
||||
// searchString1 = request.getParameter("asset_id");
|
||||
|
||||
if (searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_id,description from asset_register where pacs_id='"+pacsId+"'";
|
||||
} else if (!searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_id,description from asset_register where pacs_id='"+pacsId+"' and upper(asset_id) like upper('%" + searchString1.replace(' ', '%') + "%') ";
|
||||
}
|
||||
} else if ((screenName.equalsIgnoreCase("assetRelocation.jsp")) && (lovKey.equalsIgnoreCase("assetRelocationDetails"))) {
|
||||
|
||||
// searchString1 = request.getParameter("asset_id");
|
||||
|
||||
if (searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_id,description from asset_register where pacs_id='"+pacsId+"'";
|
||||
} else if (!searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_id,description from asset_register where pacs_id='"+pacsId+"' and upper(asset_id) like upper('%" + searchString1.replace(' ', '%') + "%') ";
|
||||
}
|
||||
} else if ((screenName.equalsIgnoreCase("assetRelocation.jsp")) && (lovKey.equalsIgnoreCase("assetRelocationDetails2"))) {
|
||||
|
||||
// searchString1 = request.getParameter("pacsName");
|
||||
|
||||
if (searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select p.PACS_ID,p.PACS_NAME from pacs_master p where p.head_pacs_id in (select pm.head_pacs_id from pacs_master pm where pm.pacs_id='"+pacsId+"')";
|
||||
|
||||
} else if (!searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select PACS_ID,PACS_NAME from pacs_master where upper(PACS_NAME) like upper('%" + searchString1.replace(' ', '%') + "%') ";
|
||||
}
|
||||
} else if ((screenName.equalsIgnoreCase("Asset_Enquiry.jsp")) && (lovKey.equalsIgnoreCase("Asset_EnquiryDetails"))) {
|
||||
|
||||
// searchString1 = request.getParameter("asset_id");
|
||||
|
||||
if (searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select ASSET_MST_ID,ASSET_ID,DESCRIPTION from ASSET_REGISTER order by ASSET_ID";
|
||||
} else if (!searchString1.equalsIgnoreCase("")) {
|
||||
headerQry = "select ASSET_MST_ID,ASSET_ID,DESCRIPTION from ASSET_REGISTER where upper(ASSET_ID) like upper('%" + searchString1.replace(' ', '%') + "%') order by ASSET_ID ";
|
||||
}
|
||||
} else if (screenName.equalsIgnoreCase("assetMaster.jsp") && (lovKey.equalsIgnoreCase("assetMasterAmend"))) {
|
||||
|
||||
// searchString1 = request.getParameter("asset_typeSearch");
|
||||
// searchString2 = request.getParameter("asset_subtypeSearch");
|
||||
|
||||
if (searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master";
|
||||
} else if (searchString1.equalsIgnoreCase("") && !searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master where ASSET_SUBTYPE like '%" + searchString2.replace(' ', '%') + "%'";
|
||||
} else if (!searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master where asset_type like '%" + searchString1.replace(' ', '%') + "%'";
|
||||
} else {
|
||||
headerQry = "select id,asset_type,type_desc,asset_subtype,subtype_desc from asset_master where asset_type like '%" + searchString1.replace(' ', '%') + "%' and asset_subtype like '%" + searchString2.replace(' ', '%') + "%'";
|
||||
}
|
||||
|
||||
} else if (screenName.equalsIgnoreCase("assetEntry.jsp") && (lovKey.equalsIgnoreCase("gl"))) {
|
||||
// searchString1 = request.getParameter("glcode");
|
||||
searchString2 = request.getParameter("textIndex");
|
||||
|
||||
headerQry = " select ga.key_1, ga.ledger_name, gp.gl_code, gp.comp1||gp.comp2 as id, gp.gl_name from gl_account ga, gl_product gp where substr(ga.gl_class_code, 9, 2) in ('20', '21', '22') and ga.gl_prod_id = gp.id and ga.pacs_id= '" + pacsId + "' and (gp.gl_code like '%" + searchString1.replace(' ', '%') + "%' or gp.gl_name like upper('%" + searchString1.replace(' ', '%') + "%') or ga.key_1 like '%" + searchString1.replace(' ', '%') + "%') ";
|
||||
|
||||
} else if (screenName.equalsIgnoreCase("crarRiskMaster.jsp") && (lovKey.equalsIgnoreCase("gl"))) {
|
||||
// searchString1 = request.getParameter("glcode");
|
||||
searchString2 = request.getParameter("textIndex");
|
||||
|
||||
headerQry = " select ga.prod_name, substr(ga.glcc,14,5) gl_code, substr(ga.glcc,9,5)||substr(ga.glcc,14,5) id, substr(ga.glcc,9,5)comp1 , substr(ga.glcc,14,5) comp2 from trial_balance_shadow ga where substr(ga.glcc,9,1) ='2' and ga.ledger_dt=(select system_date-1 from system_date) and ga.pacs_id= '" + pacsId + "' and (substr(ga.glcc,14,5) like '%" + searchString1.replace(' ', '%') + "%' or ga.prod_name like upper('%" + searchString1.replace(' ', '%') + "%')) ";
|
||||
|
||||
} else if (screenName.equalsIgnoreCase("crarWorthMaster.jsp") && (lovKey.equalsIgnoreCase("gl"))) {
|
||||
// searchString1 = request.getParameter("glcode");
|
||||
searchString2 = request.getParameter("textIndex");
|
||||
|
||||
headerQry = " select ga.prod_name, substr(ga.glcc,14,5) gl_code, substr(ga.glcc,9,5)||substr(ga.glcc,14,5) id, substr(ga.glcc,9,5)comp1 , substr(ga.glcc,14,5) comp2 from trial_balance_shadow ga where substr(ga.glcc,9,1) ='1' and ga.ledger_dt=(select system_date-1 from system_date) and ga.pacs_id= '" + pacsId + "' and (substr(ga.glcc,14,5) like '%" + searchString1.replace(' ', '%') + "%' or ga.prod_name like upper('%" + searchString1.replace(' ', '%') + "%')) ";
|
||||
}
|
||||
|
||||
|
||||
Connection conn = DbHandler.getDBConnection();
|
||||
PreparedStatement pstmt = null;
|
||||
|
||||
ResultSet resultSet = null;
|
||||
String bgColor = null;
|
||||
int flag = 1;
|
||||
|
||||
try {
|
||||
pstmt = conn.prepareStatement(headerQry);
|
||||
resultSet = pstmt.executeQuery();
|
||||
|
||||
%>
|
||||
</head>
|
||||
<body style="background-image: url('/PacsApplication/img/download.jpg');">
|
||||
<form name="commonSearch" action="">
|
||||
|
||||
<%if (screenName.equalsIgnoreCase("assetEntry.jsp") && (lovKey.equalsIgnoreCase("AssetCodeSearch"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>ID</b></th><th style="background-color: #99FF99;"><b>Asset Type</b></th><th style="background-color: #99FF99;"><b>Asset Type Desc</b></th><th style="background-color: #99FF99;"><b>Asset SubType</b></th><th style="background-color: #99FF99;"><b>Asset SubType Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('asset_mst_id<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('asset_mst_id<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.getElementById('asset_mst_id<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('asset_mst_id<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':'+document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('asset_mst_id<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('asset_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%}else if (screenName.equalsIgnoreCase("assetRegister.jsp") && (lovKey.equalsIgnoreCase("assetDetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Asset_MST_ID</b></th><th style="background-color: #99FF99;"><b>Asset Type</b></th><th style="background-color: #99FF99;"><b>Type Desc</b></th><th style="background-color: #99FF99;"><b>Asset SubType</b></th><th style="background-color: #99FF99;"><b>SubType Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.assetregister.asset_type.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_subtype.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.assetregister.asset_type.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_subtype.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.assetregister.asset_type.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_subtype.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.assetregister.asset_type.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_subtype.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.assetregister.asset_type.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_subtype.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.assetregister.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if ((screenName.equalsIgnoreCase("assetDisposal.jsp")) && (lovKey.equalsIgnoreCase("assetDisposalDetails"))) {%>
|
||||
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>ID</b></th><th style="background-color: #99FF99;"><b>ASSET_ID</b></th><th style="background-color: #99FF99;"><b>Description</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.assetdisposalform.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetdisposalform.regid.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.assetdisposalform.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetdisposalform.regid.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.assetdisposalform.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetdisposalform.regid.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if ((screenName.equalsIgnoreCase("assetRelocation.jsp")) && (lovKey.equalsIgnoreCase("assetRelocationDetails"))) {%>
|
||||
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>ID</b></th><th style="background-color: #99FF99;"><b>ASSET_ID</b></th><th style="background-color: #99FF99;"><b>Description</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.assetrelocationform.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetrelocationform.regid.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.assetrelocationform.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetrelocationform.regid.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.assetrelocationform.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetrelocationform.regid.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%}else if ((screenName.equalsIgnoreCase("assetRelocation.jsp")) && (lovKey.equalsIgnoreCase("assetRelocationDetails2"))) {%>
|
||||
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>PACS ID</b></th><th style="background-color: #99FF99;"><b>PACS NAME</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.assetrelocationform.pacsName.value = document.getElementById('x<%=i%>').innerHTML +':'+document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetrelocationform.pacs_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.assetrelocationform.pacsName.value = document.getElementById('x<%=i%>').innerHTML+':'+document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.assetrelocationform.pacs_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if ((screenName.equalsIgnoreCase("Asset_Enquiry.jsp")) && (lovKey.equalsIgnoreCase("Asset_EnquiryDetails"))) {%>
|
||||
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>ASSET MST ID</b></th><th style="background-color: #99FF99;"><b>ASSET ID</b></th><th style="background-color: #99FF99;"><b>DESCRIPTION</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.asset_enquiry.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.asset_enquiry.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.asset_enquiry.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.asset_enquiry.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.asset_enquiry.asset_id.value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.asset_enquiry.asset_mst_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("assetMaster.jsp") && (lovKey.equalsIgnoreCase("assetMasterAmend"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Asset_MST_ID</b></th><th style="background-color: #99FF99;"><b>Asset Type</b></th><th style="background-color: #99FF99;"><b>Type Desc</b></th><th style="background-color: #99FF99;"><b>Asset SubType</b></th><th style="background-color: #99FF99;"><b>SubType Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.assetmaster.asset_typeSearch.value = document.getElementById('y<%=i%>').innerHTML+':'+document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.assetmaster.asset_subtypeSearch.value = document.getElementById('a<%=i%>').innerHTML+':'+document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetmaster.asset_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.assetmaster.asset_typeSearch.value = document.getElementById('y<%=i%>').innerHTML+':'+document.getElementById('z<%=i%>').innerHTML;;
|
||||
opener.document.assetmaster.asset_subtypeSearch.value = document.getElementById('a<%=i%>').innerHTML+':'+document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetmaster.asset_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.assetmaster.asset_typeSearch.value = document.getElementById('y<%=i%>').innerHTML+':'+document.getElementById('z<%=i%>').innerHTML;;
|
||||
opener.document.assetmaster.asset_subtypeSearch.value = document.getElementById('a<%=i%>').innerHTML+':'+document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetmaster.asset_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.assetmaster.asset_typeSearch.value = document.getElementById('y<%=i%>').innerHTML+':'+document.getElementById('z<%=i%>').innerHTML;;
|
||||
opener.document.assetmaster.asset_subtypeSearch.value = document.getElementById('a<%=i%>').innerHTML+':'+document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetmaster.asset_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.assetmaster.asset_typeSearch.value = document.getElementById('y<%=i%>').innerHTML+':'+document.getElementById('z<%=i%>').innerHTML;;
|
||||
opener.document.assetmaster.asset_subtypeSearch.value = document.getElementById('a<%=i%>').innerHTML+':'+document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetmaster.asset_id.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("assetEntry.jsp") && (lovKey.equalsIgnoreCase("gl"))) {%>
|
||||
<% if (!resultSet.isBeforeFirst()) {%>
|
||||
<center><p>No Customer found! Close this window & Please recheck the Customer Name selected.</p>
|
||||
<input type="button" value="Close Window" onclick="self.close();">
|
||||
</center>
|
||||
<% } else {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Account No.</b></th><th style="background-color: #99FF99;"><b>Ledger Name</b></th><th style="background-color: #99FF99;"><b>Gl Code</b></th><th style="background-color: #99FF99;"><b>ID</b></th><th style="background-color: #99FF99;"><b>Gl Name</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.assetentry.glcode<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetentry.glid<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.assetentry.glcode<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetentry.glid<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.assetentry.glcode<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetentry.glid<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.assetentry.glcode<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetentry.glid<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.assetentry.glcode<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.assetentry.glid<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%}%>
|
||||
<%} else if (screenName.equalsIgnoreCase("crarRiskMaster.jsp") && (lovKey.equalsIgnoreCase("gl"))) {%>
|
||||
<% if (!resultSet.isBeforeFirst()) {%>
|
||||
<center><p>No Customer found! Close this window & Please recheck the Customer Name selected.</p>
|
||||
<input type="button" value="Close Window" onclick="self.close();">
|
||||
</center>
|
||||
<% } else {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Product Name</b></th><th style="background-color: #99FF99;"><b>GL Code</b></th><th style="background-color: #99FF99;"><b>Gl ID</b></th><th style="background-color: #99FF99;"><b>Comp1</b></th><th style="background-color: #99FF99;"><b>Comp2</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.crarRisk.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.crarRisk.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.crarRisk.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.crarRisk.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.crarRisk.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarRisk.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%}%>
|
||||
<%} else if (screenName.equalsIgnoreCase("crarWorthMaster.jsp") && (lovKey.equalsIgnoreCase("gl"))) {%>
|
||||
<% if (!resultSet.isBeforeFirst()) {%>
|
||||
<center><p>No Customer found! Close this window & Please recheck the Customer Name selected.</p>
|
||||
<input type="button" value="Close Window" onclick="self.close();">
|
||||
</center>
|
||||
<% } else {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Account No.</b></th><th style="background-color: #99FF99;"><b>Ledger Name</b></th><th style="background-color: #99FF99;"><b>Gl Code</b></th><th style="background-color: #99FF99;"><b>ID</b></th><th style="background-color: #99FF99;"><b>Gl Name</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.crarWorthMaster.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.crarWorthMaster.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.crarWorthMaster.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.crarWorthMaster.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.crarWorthMaster.glcode<%=searchString2%>.value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.glid<%=searchString2%>.value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp1<%=searchString2%>.value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.crarWorthMaster.comp2<%=searchString2%>.value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%}%>
|
||||
<%}%>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
<%
|
||||
} catch (Exception ex) {
|
||||
// System.out.println(ex);
|
||||
} finally {
|
||||
if (resultSet != null) {
|
||||
resultSet.close();
|
||||
}
|
||||
if (pstmt != null) {
|
||||
pstmt.close();
|
||||
}
|
||||
if (conn != null) {
|
||||
conn.close();
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
</html>
|
||||
713
IPKS_Updated/web/web/web/CommonSearchInformation_GPS_LOV.jsp
Normal file
713
IPKS_Updated/web/web/web/CommonSearchInformation_GPS_LOV.jsp
Normal file
@@ -0,0 +1,713 @@
|
||||
<%--
|
||||
Document : CommonSearchInformation_GPS_LOV
|
||||
Created on : Jul 14, 2016, 11:36:14 AM
|
||||
Author : Tcs Help desk122
|
||||
--%>
|
||||
|
||||
|
||||
<%@page import="java.sql.PreparedStatement"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Customer Information Search</title>
|
||||
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
|
||||
|
||||
<%
|
||||
String searchString1 = "";
|
||||
String screenName = "";
|
||||
String searchString2 = "";
|
||||
String lovKey = "";
|
||||
String textIndex = "";
|
||||
|
||||
screenName = request.getParameter("screenName");
|
||||
lovKey = request.getParameter("lovKey");
|
||||
String pacsId = session.getAttribute("pacsId").toString();
|
||||
String productId = request.getParameter("productId");
|
||||
|
||||
String headerQry = null;
|
||||
|
||||
if (screenName.equalsIgnoreCase("MasterRollEnrollment.jsp") && (lovKey.equalsIgnoreCase("memberDetails"))) {
|
||||
|
||||
// searchString1 = request.getParameter("memberId");
|
||||
// searchString2 = request.getParameter("memberName");
|
||||
if (searchString1.equalsIgnoreCase("") && !searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select ID,Name from master_roll_enrollment where upper(name) like upper('%" + searchString2.replace(' ', '%') + "%') and pacs_id='" + pacsId + "'";
|
||||
} else if (!searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select ID,Name from master_roll_enrollment where id like '%" + searchString1.replace(' ', '%') + "%' and pacs_id='" + pacsId + "'";
|
||||
} else if (searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select ID,Name from master_roll_enrollment where pacs_id='" + pacsId + "'";
|
||||
} else {
|
||||
headerQry = "select ID,Name from master_roll_enrollment where id like '%" + searchString1.replace(' ', '%') + "%' and upper(name) like upper('%" + searchString2.replace(' ', '%') + "%') and pacs_id='" + pacsId + "'";
|
||||
}
|
||||
}
|
||||
|
||||
if (screenName.equalsIgnoreCase("CommodityMaster.jsp") && (lovKey.equalsIgnoreCase("CommodityMasterDetails"))) {
|
||||
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master where pacs_id='" + pacsId + "' ";
|
||||
} else if (screenName.equalsIgnoreCase("GovtOrderCreation.jsp") && (lovKey.equalsIgnoreCase("GovtOrderDetails"))) {
|
||||
|
||||
textIndex = request.getParameter("textIndex");
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc,unit from gps_commodity_master";
|
||||
} else if (screenName.equalsIgnoreCase("GovtOrderCreation.jsp") && (lovKey.equalsIgnoreCase("GovtOrderDetailsUpdate"))) {
|
||||
|
||||
textIndex = request.getParameter("textIndex");
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc,unit from gps_commodity_master ";
|
||||
} else if (screenName.equalsIgnoreCase("ItemProcurement.jsp") && (lovKey.equalsIgnoreCase("ItemProcurementDetails"))) {
|
||||
|
||||
textIndex = request.getParameter("textIndex");
|
||||
// searchString1 = request.getParameter("orderId");
|
||||
|
||||
headerQry = "select c.id,c.item_type,c.item_subtype,c.type_desc,c.subtype_desc,c.unit,p.quantity_available,p.rate_unit from gps_commodity_master c ,gps_govt_proc_detail p where c.id=p.commodity_id and p.order_id='" + searchString1 + "' ";
|
||||
} else if (screenName.equalsIgnoreCase("sellregister.jsp") && (lovKey.equalsIgnoreCase("itemdetails"))) {
|
||||
|
||||
// searchString1 = request.getParameter("itemType");
|
||||
// searchString2 = request.getParameter("itemSubType");
|
||||
if (searchString1.equalsIgnoreCase("") && !searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master where upper(subtype_desc) like upper('%" + searchString2.replace(' ', '%') + "%') ";
|
||||
} else if (!searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master where upper(type_desc) like upper('%" + searchString1.replace(' ', '%') + "%') ";
|
||||
} else if (searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master ";
|
||||
} else {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master where upper(type_desc) like upper('%" + searchString1.replace(' ', '%') + "%') and upper(subtype_desc) like upper('%" + searchString2.replace(' ', '%') + "%')";
|
||||
}
|
||||
} else if (screenName.equalsIgnoreCase("ProcurementRegister.jsp") && (lovKey.equalsIgnoreCase("procuredetails"))) {
|
||||
|
||||
// searchString1 = request.getParameter("itemType");
|
||||
// searchString2 = request.getParameter("itemSubType");
|
||||
if (searchString1.equalsIgnoreCase("") && !searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master where upper(subtype_desc) like upper('%" + searchString2.replace(' ', '%') + "%') and pacs_id='" + pacsId + "'";
|
||||
} else if (!searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master where upper(type_desc) like upper('%" + searchString1.replace(' ', '%') + "%') and pacs_id='" + pacsId + "'";
|
||||
} else if (searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master ";
|
||||
} else {
|
||||
headerQry = "select id,item_type,type_desc,item_subtype,subtype_desc from gps_commodity_master where upper(type_desc) like upper('%" + searchString1.replace(' ', '%') + "%') and upper(subtype_desc) like upper('%" + searchString2.replace(' ', '%') + "%') and pacs_id='" + pacsId + "'";
|
||||
}
|
||||
} else if (screenName.equalsIgnoreCase("ItemProcurement.jsp") && (lovKey.equalsIgnoreCase("masterdetails"))) {
|
||||
|
||||
// searchString1 = request.getParameter("masterId");
|
||||
// searchString2 = request.getParameter("masterName");
|
||||
if (searchString1.equalsIgnoreCase("") && !searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,name from master_roll_enrollment where upper(name) like upper('%" + searchString2.replace(' ', '%') + "%') ";
|
||||
} else if (!searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,name from master_roll_enrollment where id like upper('%" + searchString1.replace(' ', '%') + "%')";
|
||||
} else if (searchString1.equalsIgnoreCase("") && searchString2.equalsIgnoreCase("")) {
|
||||
headerQry = "select id,name from master_roll_enrollment ";
|
||||
} else {
|
||||
headerQry = "select id,name from master_roll_enrollment where upper(name) like upper('%" + searchString2.replace(' ', '%') + "%') and id like upper('%" + searchString1.replace(' ', '%') + "%')";
|
||||
}
|
||||
} else if (screenName.equalsIgnoreCase("GovtOrderCreation.jsp") && (lovKey.equalsIgnoreCase("Orderdetails"))) {
|
||||
|
||||
headerQry = "select id,order_code from gps_govt_proc_header where pacs_id='" + pacsId + "'";
|
||||
|
||||
} else if (screenName.equalsIgnoreCase("SellProcureItem.jsp") && (lovKey.equalsIgnoreCase("SellProcureDetails"))) {
|
||||
|
||||
textIndex = request.getParameter("textIndex");
|
||||
// searchString1 = request.getParameter("govtProcId");
|
||||
|
||||
headerQry = "select c.id,c.item_type,c.type_desc,c.item_subtype,c.subtype_desc,g.procurement_id,c.unit,p.rate_unit,g.available_quantity,g.muster_roll_id,g.stock_id from gps_commodity_master c ,gps_govt_proc_detail p,GPS_ITEM_PROCUREMENT g where c.id=p.commodity_id and c.id=g.COMMODITY_ID and g.govt_procurement_code = p.order_id and p.order_id='" + searchString1 + "' and g.pacs_id='" + pacsId + "' ";
|
||||
|
||||
} else if (screenName.equalsIgnoreCase("SellProcureItem.jsp") && (lovKey.equalsIgnoreCase("govtprocuredetails"))) {
|
||||
|
||||
headerQry = "select id,order_code from gps_govt_proc_header where pacs_id='" + pacsId + "'";
|
||||
|
||||
}
|
||||
|
||||
Connection conn = DbHandler.getDBConnection();
|
||||
PreparedStatement pstmt = null;
|
||||
|
||||
ResultSet resultSet = null;
|
||||
String bgColor = null;
|
||||
int flag = 1;
|
||||
|
||||
try {
|
||||
pstmt = conn.prepareStatement(headerQry);
|
||||
resultSet = pstmt.executeQuery();
|
||||
|
||||
%>
|
||||
</head>
|
||||
<body style="background-image: url('/PacsApplication/img/download.jpg');">
|
||||
<form name="commonSearch" action="">
|
||||
|
||||
<%if (screenName.equalsIgnoreCase("MasterRollEnrollment.jsp") && (lovKey.equalsIgnoreCase("memberDetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>ID</b></th><th style="background-color: #99FF99;"><b>Member Name</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('nameAmend').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('IdAmend').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('nameAmend').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('IdAmend').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("CommodityMaster.jsp") && (lovKey.equalsIgnoreCase("CommodityMasterDetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Commodity ID</b></th><th style="background-color: #99FF99;"><b>Item Type</b></th><th style="background-color: #99FF99;"><b>Type Desc</b></th><th style="background-color: #99FF99;"><b>Item SubType</b></th><th style="background-color: #99FF99;"><b>Subtype Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('itemTypeAmend').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemDescAmend').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('CommodityIdAmend').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('itemTypeAmend').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemDescAmend').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('CommodityIdAmend').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.getElementById('itemTypeAmend').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemDescAmend').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('CommodityIdAmend').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('itemTypeAmend').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemDescAmend').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('CommodityIdAmend').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('itemTypeAmend').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemDescAmend').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('CommodityIdAmend').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("GovtOrderCreation.jsp") && (lovKey.equalsIgnoreCase("GovtOrderDetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Commodity ID</b></th><th style="background-color: #99FF99;"><b>Item Type</b></th><th style="background-color: #99FF99;"><b>Type Desc</b></th><th style="background-color: #99FF99;"><b>Item SubType</b></th><th style="background-color: #99FF99;"><b>Subtype Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
<td style="display:none" bgcolor='<%=bgColor%>' id='c<%=i%>' style="cursor:pointer;"><%=resultSet.getString(6)%></td>
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("GovtOrderCreation.jsp") && (lovKey.equalsIgnoreCase("GovtOrderDetailsUpdate"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Commodity ID</b></th><th style="background-color: #99FF99;"><b>Item Type</b></th><th style="background-color: #99FF99;"><b>Type Desc</b></th><th style="background-color: #99FF99;"><b>Item SubType</b></th><th style="background-color: #99FF99;"><b>Subtype Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('item_typeAmend<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_descAmend<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityIdAmend<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtypeAmend<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_descAmend<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unitAmend<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('item_typeAmend<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_descAmend<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityIdAmend<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtypeAmend<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_descAmend<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unitAmend<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.getElementById('item_typeAmend<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_descAmend<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityIdAmend<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtypeAmend<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_descAmend<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unitAmend<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('item_typeAmend<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_descAmend<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityIdAmend<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtypeAmend<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_descAmend<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unitAmend<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('item_typeAmend<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_descAmend<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('commodityIdAmend<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtypeAmend<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_descAmend<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unitAmend<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
<td style="display:none" bgcolor='<%=bgColor%>' id='c<%=i%>' style="cursor:pointer;"><%=resultSet.getString(6)%></td>
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("ItemProcurement.jsp") && (lovKey.equalsIgnoreCase("ItemProcurementDetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Commodity ID</b></th><th style="background-color: #99FF99;"><b>Item Type</b></th><th style="background-color: #99FF99;"><b>Item SubType</b></th><th style="background-color: #99FF99;"><b>Unit</b></th><th style="background-color: #99FF99;"><b>Remaining Quantity</b></th><th style="background-color: #99FF99;"><b>Rate/Unit</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('rate_per_unit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('avl_qty<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('rate_per_unit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('avl_qty<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('rate_per_unit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('avl_qty<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='c<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('rate_per_unit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('avl_qty<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(6)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='d<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('rate_per_unit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('avl_qty<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(7)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='e<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty_unit<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('rate_per_unit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('avl_qty<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(8)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' style="display:none;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' style="display:none;"><%=resultSet.getString(3)%></td>
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("sellregister.jsp") && (lovKey.equalsIgnoreCase("itemdetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Commodity ID</b></th><th style="background-color: #99FF99;"><b>Item Type</b></th><th style="background-color: #99FF99;"><b>Type Desc</b></th><th style="background-color: #99FF99;"><b>Subtype Item</b></th><th style="background-color: #99FF99;"><b>Subtype Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtypeDesc').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtypeDesc').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtypeDesc').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtypeDesc').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtypeDesc').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtypeDesc').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtypeDesc').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtypeDesc').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtypeDesc').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtypeDesc').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
|
||||
<%} else if (screenName.equalsIgnoreCase("ProcurementRegister.jsp") && (lovKey.equalsIgnoreCase("procuredetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Commodity ID</b></th><th style="background-color: #99FF99;"><b>Item Type</b></th><th style="background-color: #99FF99;"><b>Type Desc</b></th><th style="background-color: #99FF99;"><b>Subtype Item</b></th><th style="background-color: #99FF99;"><b>Subtype Desc</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtype').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtype').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtype').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtype').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtype').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtype').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtype').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtype').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('commodityId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemTypeId').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemtype').value = document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemSubTypeId').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('itemsubtype').value = document.getElementById('b<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("ItemProcurement.jsp") && (lovKey.equalsIgnoreCase("masterdetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Master ID</b></th><th style="background-color: #99FF99;"><b>Master Name</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('musterRollId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('name').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('musterRollId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('name').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("GovtOrderCreation.jsp") && (lovKey.equalsIgnoreCase("Orderdetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Order ID</b></th><th style="background-color: #99FF99;"><b>Order Code</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('govtOrderId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('govtOrderCode').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('govtOrderId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('govtOrderCode').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
|
||||
<%} else if (screenName.equalsIgnoreCase("SellProcureItem.jsp") && (lovKey.equalsIgnoreCase("SellProcureDetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Commodity ID</b></th><th style="background-color: #99FF99;"><b>Item Type</b><th style="background-color: #99FF99;"><b>Type Description</b></th><th style="background-color: #99FF99;"><b>Procurement ID</b></th><th style="background-color: #99FF99;"><b>Item SubType</b></th><th style="background-color: #99FF99;"><b>SubType Description</b></th><th style="background-color: #99FF99;"><b>Seller ID</b></th><th style="background-color: #99FF99;"><b>Unit</b></th><th style="background-color: #99FF99;"><b>Rate/Unit</b></th><th style="background-color: #99FF99;"><b>Quantity</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(3)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='g<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(10)%></td>
|
||||
|
||||
<td bgcolor='<%=bgColor%>' id='a<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(4)%></td>
|
||||
|
||||
<td bgcolor='<%=bgColor%>' id='b<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(5)%></td>
|
||||
|
||||
<td bgcolor='<%=bgColor%>' id='c<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(6)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='d<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(7)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='e<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(8)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='f<%=i%>' onclick="opener.document.getElementById('commodityId<%=textIndex%>').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_desc<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML + ':' + document.getElementById('z<%=i%>').innerHTML;
|
||||
opener.document.getElementById('subtype_desc<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML + ':' + document.getElementById('b<%=i%>').innerHTML;
|
||||
opener.document.getElementById('procId<%=textIndex%>').value = document.getElementById('c<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_unit<%=textIndex%>').value = document.getElementById('d<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_rateperunit<%=textIndex%>').value = document.getElementById('e<%=i%>').innerHTML;
|
||||
opener.document.getElementById('qty<%=textIndex%>').value = document.getElementById('f<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_type<%=textIndex%>').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
opener.document.getElementById('item_subtype<%=textIndex%>').value = document.getElementById('a<%=i%>').innerHTML;
|
||||
opener.document.getElementById('sellerId<%=textIndex%>').value = document.getElementById('g<%=i%>').innerHTML;
|
||||
opener.document.getElementById('stockId<%=textIndex%>').value = document.getElementById('h<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(9)%></td>
|
||||
|
||||
<td bgcolor='<%=bgColor%>' id='h<%=i%>' style="display:none;"><%=resultSet.getString(11)%></td>
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%} else if (screenName.equalsIgnoreCase("SellProcureItem.jsp") && (lovKey.equalsIgnoreCase("govtprocuredetails"))) {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>Procurement ID</b></th><th style="background-color: #99FF99;"><b>Procurement Code</b></th></tr>
|
||||
<%int i = 0;
|
||||
while (resultSet.next()) {
|
||||
i++;
|
||||
if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr><td bgcolor='<%=bgColor%>' id='x<%=i%>' onclick="opener.document.getElementById('govtProcId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('govProcCode').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(1)%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y<%=i%>' onclick="opener.document.getElementById('govtProcId').value = document.getElementById('x<%=i%>').innerHTML;
|
||||
opener.document.getElementById('govProcCode').value = document.getElementById('y<%=i%>').innerHTML;
|
||||
self.close();" style="cursor:pointer;"><%=resultSet.getString(2)%></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</table>
|
||||
<%}%>
|
||||
</form>
|
||||
</body>
|
||||
<%
|
||||
} catch (Exception ex) {
|
||||
// System.out.println(ex);
|
||||
} finally {
|
||||
if (resultSet != null) {
|
||||
resultSet.close();
|
||||
}
|
||||
if (pstmt != null) {
|
||||
pstmt.close();
|
||||
}
|
||||
if (conn != null) {
|
||||
conn.close();
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
</html>
|
||||
160
IPKS_Updated/web/web/web/CommonSearchPhotoSignatureLOV.jsp
Normal file
160
IPKS_Updated/web/web/web/CommonSearchPhotoSignatureLOV.jsp
Normal file
@@ -0,0 +1,160 @@
|
||||
<%--
|
||||
Document : CommonSearchPhotoSignatureLOV
|
||||
Created on : Jun 7, 2017, 1:53:19 PM
|
||||
Author : 594267
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.PreparedStatement"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<!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=UTF-8">
|
||||
<title>Product Selection</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css" />
|
||||
<script src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js"></script>
|
||||
<style>
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.sig:hover {
|
||||
-ms-transform: scale(4.6);
|
||||
/* IE 9 */
|
||||
-webkit-transform: scale(1.5);
|
||||
/* Safari 3-8 */
|
||||
-moz-transform: scale(3.0);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var f = 1;
|
||||
|
||||
function imageExists(url){
|
||||
|
||||
var ret_url = "${pageContext.request.contextPath}/img/faceDefault - Copy.jpg";
|
||||
var image = new Image();
|
||||
|
||||
image.src = url;
|
||||
|
||||
if (!image.complete) {
|
||||
document.getElementById('photo').setAttribute('src',ret_url);
|
||||
}
|
||||
else if (image.height === 0) {
|
||||
document.getElementById('photo').setAttribute('src',ret_url);
|
||||
} else
|
||||
document.getElementById('photo').setAttribute('src',url);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function sigImageExists(url){
|
||||
var image = new Image();
|
||||
|
||||
image.src = url;
|
||||
|
||||
if (!image.complete) {
|
||||
document.getElementById('sig').style.display = 'none';
|
||||
document.getElementById('noSig').style.display = 'block';
|
||||
f = 0;
|
||||
}
|
||||
else if (image.height === 0) {
|
||||
document.getElementById('sig').style.display = 'none';
|
||||
document.getElementById('noSig').style.display = 'block';
|
||||
f = 0;
|
||||
} else {
|
||||
document.getElementById('sig').style.display = 'block';
|
||||
document.getElementById('noSig').style.display = 'none';
|
||||
f = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function clickFunc(){
|
||||
opener.document.getElementById('image-holder').style.display = 'block';
|
||||
opener.document.getElementById('blah').setAttribute('src',document.getElementById('photo').getAttribute('src'));
|
||||
if(f == 1){
|
||||
opener.document.getElementById('blahsig').setAttribute('src',document.getElementById('sig').getAttribute('src'));
|
||||
opener.document.getElementById('noSig').style.display = 'none';
|
||||
} else if(f == 0) {
|
||||
opener.document.getElementById('blahsig').style.display = 'none';
|
||||
opener.document.getElementById('noSig').style.display = 'block';
|
||||
}
|
||||
self.close();
|
||||
}
|
||||
</script>
|
||||
|
||||
<%
|
||||
String searchString1 = "";
|
||||
String screenName = "";
|
||||
String searchString2 = "";
|
||||
String lovKey = "";
|
||||
String textIndex = "";
|
||||
String tranType = "";
|
||||
String productCode = "";
|
||||
String searchString3 = "";
|
||||
|
||||
|
||||
screenName = request.getParameter("screenName");
|
||||
lovKey = request.getParameter("lovKey");
|
||||
String pacsId = session.getAttribute("pacsId").toString();
|
||||
textIndex = request.getParameter("textIndex");
|
||||
String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
String headPacsId = (String) session.getAttribute("headPacsId").toString();
|
||||
|
||||
String headerQry = null;
|
||||
|
||||
searchString1 = request.getParameter("custNo");
|
||||
|
||||
String bgColor = null;
|
||||
int flag = 1;
|
||||
|
||||
%>
|
||||
<title>Photo Signature</title>
|
||||
</head>
|
||||
<body style="background-image: url('/PacsApplication/img/download.jpg');" onload="javascript:imageExists('${pageContext.request.contextPath}/UploadedFiles/<%=searchString1 + ".jpg"%>');javascript:sigImageExists('${pageContext.request.contextPath}/UploadedFiles/<%="sig-" + searchString1 + ".jpg"%>')">
|
||||
<%
|
||||
if (searchString1 == null || searchString1.isEmpty()) {
|
||||
%>
|
||||
<center><p>Please search a account to get the photo and signature</p>
|
||||
<input type="button" value="Close Window" onclick="self.close();">
|
||||
</center>
|
||||
<%} else {%>
|
||||
<table border="2">
|
||||
<tr><th style="background-color: #99FF99;"><b>CIF Number</b></th><th style="background-color: #99FF99;"><b>Photo</b></th><th style="background-color: #99FF99;"><b>Signature</b></th></tr>
|
||||
<% if (flag == 1) {
|
||||
flag = 0;
|
||||
bgColor = "#AFC7C7";
|
||||
} else {
|
||||
flag = 1;
|
||||
bgColor = "#95B9C7";
|
||||
}%>
|
||||
<tr>
|
||||
<td bgcolor='<%=bgColor%>' id='x' onclick="javascript:clickFunc()" style="cursor:pointer;"><%=searchString1%></td>
|
||||
<td bgcolor='<%=bgColor%>' id='y' onclick="javascript:clickFunc()"
|
||||
style="cursor:pointer;"><img id="photo" src="${pageContext.request.contextPath}/UploadedFiles/<%=searchString1 + ".jpg"%>" height="150" width="140" border="1px"/></td>
|
||||
<td bgcolor='<%=bgColor%>' id='z' onclick="javascript:clickFunc()" style="cursor:pointer;">
|
||||
<img id="sig" src="${pageContext.request.contextPath}/UploadedFiles/<%="sig-" + searchString1 + ".jpg"%>" height="50" width="140" border="1px"/>
|
||||
<p id="noSig" style="display: none"><b>No Signature found</b></p>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<%}%>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
72
IPKS_Updated/web/web/web/CropLoanDisbursementVidyasagar.jsp
Normal file
72
IPKS_Updated/web/web/web/CropLoanDisbursementVidyasagar.jsp
Normal file
@@ -0,0 +1,72 @@
|
||||
<%--
|
||||
Document : CropLoanDisbursementVidyasagar
|
||||
Created on : 23-May-2023, 6:31:49 PM
|
||||
Author : 1815522
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Crop Loan Disbursement Vidyasagar</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<script>
|
||||
function sendFileToServer()
|
||||
{
|
||||
var fileName = document.getElementById("fileChooser").value;
|
||||
var fileNameSplit = fileName.split('.');
|
||||
var fileNameSplit1 = fileNameSplit[0].substring(fileNameSplit[0].lastIndexOf('\\') + 1);
|
||||
fileNameSplit1 = fileNameSplit1.split('_');
|
||||
|
||||
if ((fileNameSplit[1] == "txt") && (fileNameSplit1[0] == "SAL") && !(isNaN(fileNameSplit1[1])) && !(isNaN(fileNameSplit1[2])) && !(isNaN(fileNameSplit1[3])) && !(isNaN(fileNameSplit1[4])) && !(isNaN(fileNameSplit1[5]))) {
|
||||
document.SALFileIdUpload.actionTag.value = "UPLOAD";
|
||||
document.SALFileIdUpload.action = '/PacsApplication/CropLoanDisbursementServlet';
|
||||
document.SALFileIdUpload.submit();
|
||||
}
|
||||
//SAL_00001_29052023_050400_29052023_165.txt
|
||||
else {
|
||||
alert("please choose text file only with below format, SAL_xxxx_ddmmyyyy_xxxxxx_ddmmyyyy_xxx.txt");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function refreshOriginalPage()
|
||||
{
|
||||
window.location.href = 'CropLoanDisbursementVidyasagar.jsp';
|
||||
//document.getElementById("successMessageTag").innerHTML = "xxx";
|
||||
}
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<jsp:include page="MenuHead.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="background-image: url('/PacsApplication/img/download.jpg'); border-color: black; border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Crop Loan Disbursement</legend>
|
||||
|
||||
<div id="UploadDiv" style="display:block">
|
||||
<form name="SALFileIdUpload" id="SALFileIdUpload" method="post" enctype="multipart/form-data">
|
||||
<center>
|
||||
Select file to upload:
|
||||
<input type="file" name="dataFile" id="fileChooser"/><br/><br/>
|
||||
<input type="hidden" id="actionTag" name="actionTag">
|
||||
<input type="button" value="Upload" id ="FileTypeIdUpload" name="FileType" onclick="sendFileToServer()"/>
|
||||
<input type="button" value="Refresh" id ="RefreshId" name="RefreshIdButton" onclick="refreshOriginalPage()"/>
|
||||
</center>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="errorMessageTag" style="color: #FF0000;">${errorMessageSAL}</div>
|
||||
<div id="successMessageTag" style="color: #0000FF;">${successMessageSAL}</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
203
IPKS_Updated/web/web/web/DDS/CashWidrawlDeposit.jsp
Normal file
203
IPKS_Updated/web/web/web/DDS/CashWidrawlDeposit.jsp
Normal file
@@ -0,0 +1,203 @@
|
||||
<%--
|
||||
Document : CashWithdrawlDeposit
|
||||
Created on : Jul 11, 2018, 5:40:14 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<title>DDS OPERATIONS</title>
|
||||
<%-- <link rel="shortcut icon" href="img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />--%>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.css" />
|
||||
</head>
|
||||
|
||||
<script>
|
||||
|
||||
function noBack()
|
||||
{
|
||||
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_depAccount(width, height, accNo,trnType) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "CashWidrawlDeposit.jsp";
|
||||
var lovKey = "ddsCash";
|
||||
var searchFlag = "false";
|
||||
if (!accNo=="")
|
||||
searchFlag=/^[a-z]+$/i.test(accNo);
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?accountNo=' + accNo + '&screenName=' + screenName + '&lovKey=' + lovKey+ '&trnType=' + trnType + '&sflag=' + searchFlag, 'ddsCash', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function checkDiv(cashForm)
|
||||
{
|
||||
|
||||
if (cashForm.amnt.value == "" || cashForm.amnt.value == 0 )
|
||||
{
|
||||
alert("Amount must be greater than zero!!");
|
||||
cashForm.amnt.focus();
|
||||
return false;
|
||||
}
|
||||
else if (cashForm.accNo.value == "" )
|
||||
{
|
||||
alert("Account must be selected!!");
|
||||
cashForm.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
function submitform(cashForm)
|
||||
{
|
||||
|
||||
if(checkDiv(cashForm)){
|
||||
$('#tranType').val($('#tranTypeOrg').val());
|
||||
$('#accNoServer').val($('#accNo').val());
|
||||
$('#balanceServerId').val($('#avlBal').val());
|
||||
document.cashForm.action = '/PacsApplication/CashWidrawlDDSServlet';
|
||||
document.cashForm.submit();
|
||||
document.cashForm.reset();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<style>
|
||||
|
||||
legend.scheduler-border {
|
||||
|
||||
text-align: left !important;
|
||||
width:inherit; /* Or auto */
|
||||
|
||||
border-bottom:none;
|
||||
padding: 8px;
|
||||
border-radius: 20px;
|
||||
background-color: #006600;
|
||||
color: white
|
||||
}
|
||||
fieldset.scheduler-border {
|
||||
border: 5px groove #ddd !important;
|
||||
padding: 0 1.4em 1.4em 1.4em !important;
|
||||
margin: 0 0 1.5em 0 !important;
|
||||
-webkit-box-shadow: 0px 0px 0px 0px #000;
|
||||
box-shadow: 0px 0px 0px 0px #000;
|
||||
border-color: black;
|
||||
background-image: url('/PacsApplication/img/download.jpg');
|
||||
border-width: 3px
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body onload="noBack()">
|
||||
<jsp:include page="MenuHead_DDS.jsp" flush="true" />
|
||||
<fieldset class="scheduler-border">
|
||||
<legend class="scheduler-border">DDS Operations</legend>
|
||||
<div class="container-fluid">
|
||||
<form name="cashForm" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<div class="info" id="errorMessage"><center><%= error_msg%></center></div>
|
||||
<% }%>
|
||||
<%--<div class="info" id="errorMessageTag"><center>${errorMessage}</center></div>--%>
|
||||
<div class="row">
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
<div class="col-xs-4 col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Select type of Operation:</label>
|
||||
<select class="selectpicker" id="tranTypeOrg">
|
||||
<option value="CR" >Cash Deposit</option>
|
||||
<option value="DR" >Cash Withdrawl</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="accName">Account No/ Account Holder Name</label>
|
||||
<input type="text" class="form-control" id="accNo" name="accntNo" placeholder="account No/Name" >
|
||||
<input type="button" value="Search" onclick="javascript:popup_depAccount(750, 250,document.cashForm.accNo.value,document.cashForm.tranTypeOrg.value)"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="accName">Customer Name</label>
|
||||
<input type="text" class="form-control" id="accName" name="accntName" placeholder="customer name">
|
||||
<%--<input class="btn btn-primary" type="submit" value="search" onclick="javascript:popup_depAccount(750, 250,document.cashForm.accName.value)">--%>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="accName">Avail Bal.</label>
|
||||
<input type="number" class="form-control" id="avlBal" name="avlBal" placeholder="Avail Balance" disabled>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="amntName">Amount:</label>
|
||||
<input type="number" class="form-control" id="amntName" name="amnt" placeholder="enter amount">
|
||||
</div>
|
||||
|
||||
<%-- <div class="form-group">
|
||||
<label for="narration">Narration:</label>
|
||||
<textarea class="form-control" id="narration" name="narration" rows="3"></textarea>
|
||||
</div>--%>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(cashForm)">
|
||||
<input class="btn btn-primary" type="reset" value="Reset">
|
||||
<input type="hidden" name="tranType" id="tranType" value=""/>
|
||||
<input type="hidden" name="accNoServer" id="accNoServer" value=""/>
|
||||
<input type="hidden" name="balanceServer" id="balanceServerId" value=""/>
|
||||
<input type="hidden" name="accntType" id="accntTypeId" value=""/>
|
||||
</div>
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
</body>
|
||||
<html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
107
IPKS_Updated/web/web/web/DDS/MenuHead_DDS.jsp
Normal file
107
IPKS_Updated/web/web/web/DDS/MenuHead_DDS.jsp
Normal file
@@ -0,0 +1,107 @@
|
||||
<%--
|
||||
Document : MenuHead_DDS
|
||||
Created on : Jul 11, 2018, 4:34:49 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.*"%>
|
||||
|
||||
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<%
|
||||
String userName = new String();
|
||||
String pacsName = new String();
|
||||
String userRole = new String();
|
||||
String RoleName = new String();
|
||||
String sysDt = new String();
|
||||
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select to_char(SYSTEM_DATE,'Month DD, YYYY') from system_date");
|
||||
while (rs.next()) {
|
||||
sysDt = rs.getString(1);
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
}
|
||||
|
||||
userName = (String) session.getAttribute("UserName");
|
||||
userName = userName.toUpperCase();
|
||||
pacsName = (String) session.getAttribute("pacsName");
|
||||
userRole = (String) session.getAttribute("userRole");
|
||||
RoleName = (String) session.getAttribute("RoleName");
|
||||
|
||||
String moduleName = new String();
|
||||
moduleName = (String) session.getAttribute("moduleName");
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<div style="width: 100%; height: auto; top: 0; left: 0; margin-bottom: 0 auto;">
|
||||
|
||||
<div id="IPKSimage" style=" top: 0; left: 0; border-bottom:0px;">
|
||||
<img src="/PacsApplication/img/PACS.jpg" width="100%" height="65px" alt="Image - PACS"/>
|
||||
</div>
|
||||
|
||||
<div id="cssmenu" style="border-bottom:0px; border-color: black; color: rgb(0,140,69); background-color: rgb(177,224,178); ">
|
||||
<div style="width: 20%;float: left;text-align: left;padding: 5px 1px 1px 28px; border-radius: 5px;"><b>User Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=userName%></font></div>
|
||||
<div style="width: 15%;float: right; text-align: left;padding: 5px 5px 1px 1px; border-radius: 5px;"><b>Date:</b><br><font face="Trebuchet MS" size="2.5"> <%=sysDt%></font></div>
|
||||
<div style="width: 15%;float: left; text-align: left;padding: 5px; border-radius: 5px;"><b>PACS Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=pacsName%></font></div>
|
||||
|
||||
<div style="width: 20%;float: left; margin-right: 20px;text-align: center;padding: 5px; border-radius: 5px;"><b>User Type:</b><br><font face="Trebuchet MS" size="2.5"> <%=RoleName%></font></div>
|
||||
<div style="width: 20%;float: left; margin-right: 20px;text-align: center;padding: 5px; border-radius: 5px;"><b>Module Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=moduleName.toUpperCase()%></font></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!--div id='cssmenu'-->
|
||||
<!--added on 16/5/24-->
|
||||
<div style="display: flex; justify-content: center;background-color: rgb(177,224,178)"><div style="background: #fff; height: 2px; width: 90%"></div></div>
|
||||
<ul id="menu">
|
||||
<li><a href='/PacsApplication/welcome.jsp'><span>Home</span></a></li>
|
||||
|
||||
<%if (userRole.equalsIgnoreCase(
|
||||
"201603000004020")) {%>
|
||||
<li><a href="#" ><span>DDS Operations</span></a>
|
||||
<ul>
|
||||
<li><a href="/PacsApplication/DDS/CashWidrawlDeposit.jsp"><span>Cash Withdrawl/Deposit</span></a></li>
|
||||
<li><a href="/PacsApplication/DDS/TransactionReport.jsp"><span>Transaction Report</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<% }%>
|
||||
|
||||
<li><a href="/PacsApplication/LogoutServlet" onclick="return confirm('Do you want to logout?')" >LogOut</a></li>
|
||||
</ul>
|
||||
<!--/div-->
|
||||
|
||||
|
||||
</div>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
System.out.println("EX in " + e);
|
||||
}
|
||||
%>
|
||||
938
IPKS_Updated/web/web/web/DDS/TotalCashDepositDDS.jsp
Normal file
938
IPKS_Updated/web/web/web/DDS/TotalCashDepositDDS.jsp
Normal file
@@ -0,0 +1,938 @@
|
||||
<%--
|
||||
Document : TotalCashDepositDDS
|
||||
Created on : Aug 14, 2018, 3:19:08 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="DataEntryBean.transactionOperationBean"%>
|
||||
<%@page import="java.lang.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<title>Agent Cash Deposit</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<%-- <link rel="shortcut icon" href="img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />--%>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.css" />
|
||||
</head>
|
||||
|
||||
|
||||
<script>
|
||||
function noBack()
|
||||
{
|
||||
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_AgentList(width, height, agentName) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "TotalCashDepositDDS.jsp";
|
||||
var lovKey = "agntMap";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?agentName=' + agentName + '&screenName=' + screenName + '&lovKey=' + lovKey, 'agntMap', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function checkDiv(cashDepForm)
|
||||
{
|
||||
var resTXNAmt = parseFloat(Math.abs(cashDepForm.resTXNAmt.value)).toFixed(2);
|
||||
if (cashDepForm.agntIdId.value == "" )
|
||||
{
|
||||
alert("Please enter Agent ID.");
|
||||
cashDepForm.agntIdId.focus();
|
||||
return false;
|
||||
}
|
||||
if (cashDepForm.trAmount.value == "" || cashDepForm.trAmount.value == 0 )
|
||||
{
|
||||
alert("Amount must be greater than zero.");
|
||||
cashDepForm.trAmount.focus();
|
||||
return false;
|
||||
}
|
||||
if (Number(cashDepForm.trAmount.value) > Number(cashDepForm.hldAmount.value) )
|
||||
{
|
||||
alert("Transaction amount cant be greater than hold amount of the agent!!");
|
||||
cashDepForm.trAmount.focus();
|
||||
return false;
|
||||
}
|
||||
if ((Number(resTXNAmt) != Number(cashDepForm.trAmount.value)))
|
||||
{
|
||||
alert("Before proceeding, please fill in the cash drawer values according to the transaction amount");
|
||||
cashDepForm.trAmount.focus();
|
||||
$("#trAmount").click();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
function submitform(cashDepForm)
|
||||
{
|
||||
|
||||
if(checkDiv(cashDepForm)){
|
||||
document.cashDepForm.action = '/PacsApplication/TotalCashDepositDDSServlet';
|
||||
document.cashDepForm.submit();
|
||||
document.cashDepForm.reset();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
function check(v){
|
||||
if(isNaN(v) || v == '' || v.trim().length == 0){ return parseInt(0);}
|
||||
else { return v;}
|
||||
}
|
||||
</script>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String amt=null;
|
||||
|
||||
String odeno2000 = "";
|
||||
String odeno500 = "";
|
||||
String odeno200 = "";
|
||||
String odeno100 = "";
|
||||
String odeno50 = "";
|
||||
String odeno20 = "";
|
||||
String odeno10 = "";
|
||||
String odeno5 = "";
|
||||
String odeno2 = "";
|
||||
String odeno1 = "";
|
||||
String status = "C";
|
||||
String odeno50P = "";
|
||||
String odeno1P = "";
|
||||
String pacsid = (String) session.getAttribute("pacsId");
|
||||
String makerId = session.getAttribute("user").toString();
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select nvl(d.deno_2000,0),nvl(d.deno_500,0),nvl(d.deno_100,0),nvl(d.deno_50,0),nvl(d.deno_20,0),nvl(d.deno_10,0),nvl(d.deno_5,0),nvl(d.deno_2,0),nvl(d.deno_1,0),nvl(d.DENO_50P,0),nvl(d.DENO_1P,0),d.status,nvl(d.deno_200,0) from cash_drawer d where d.entry_date = (select system_date from system_date) and d.teller_id ='" + makerId + "' and d.pacs_id ='" + pacsid + "' ");
|
||||
|
||||
while (rs.next()) {
|
||||
odeno2000 = rs.getString(1);
|
||||
odeno500 = rs.getString(2);
|
||||
odeno100 = rs.getString(3);
|
||||
odeno50 = rs.getString(4);
|
||||
odeno20 = rs.getString(5);
|
||||
odeno10 = rs.getString(6);
|
||||
odeno5 = rs.getString(7);
|
||||
odeno2 = rs.getString(8);
|
||||
odeno1 = rs.getString(9);
|
||||
odeno50P = rs.getString(10);
|
||||
odeno1P = rs.getString(11);
|
||||
status = rs.getString(12);
|
||||
odeno200 = rs.getString(13);
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<style>
|
||||
.button{
|
||||
border:1px solid #333;
|
||||
background:#6479fd;
|
||||
}
|
||||
.button:hover{
|
||||
background:#a4a9fd;
|
||||
}
|
||||
.dialog{
|
||||
border:5px solid #666;
|
||||
padding:10px;
|
||||
background:#FFFFFF;
|
||||
position:absolute;
|
||||
left: 300px;
|
||||
z-index:1;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.dialog label{
|
||||
display:inline-block;
|
||||
color:#151414;
|
||||
}
|
||||
div .dialog input[type=text]{
|
||||
border:none;
|
||||
display:inline-block;
|
||||
margin:5px;
|
||||
width: 180px;
|
||||
-moz-user-select:-moz-none;
|
||||
-moz-user-select:none;
|
||||
-o-user-select:none;
|
||||
-khtml-user-select:none;
|
||||
-webkit-user-select:none;
|
||||
-ms-user-select:none;
|
||||
user-select:none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
legend.scheduler-border {
|
||||
|
||||
text-align: left !important;
|
||||
width:inherit; /* Or auto */
|
||||
|
||||
border-bottom:none;
|
||||
padding: 8px;
|
||||
border-radius: 20px;
|
||||
background-color: #006600;
|
||||
color: white
|
||||
}
|
||||
fieldset.scheduler-border {
|
||||
border: 5px groove #ddd !important;
|
||||
padding: 0 1.4em 1.4em 1.4em !important;
|
||||
margin: 0 0 1.5em 0 !important;
|
||||
-webkit-box-shadow: 0px 0px 0px 0px #000;
|
||||
box-shadow: 0px 0px 0px 0px #000;
|
||||
border-color: black;
|
||||
background-image: url('/PacsApplication/img/download.jpg');
|
||||
border-width: 3px
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body onload="noBack()">
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset class="scheduler-border">
|
||||
<legend class="scheduler-border">Agent Cash Deposit</legend>
|
||||
<div class="container-fluid">
|
||||
<form name="cashDepForm" method="post" >
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<div class="info" id="errorMessage"><center><%= error_msg%></center></div>
|
||||
<% }%>
|
||||
<div class="row">
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
<div class="col-xs-4 col-md-4">
|
||||
<div class="form-group">
|
||||
<label for="accName">Agent ID<font color="red" >*</font>: </label>
|
||||
<input type="text" class="form-control" id="agntIdId" name="agntIdname" placeholder="Agent Id" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'>
|
||||
<input type="button" value="Search" onclick="javascript:popup_AgentList(750, 250,document.cashDepForm.agntIdname.value)"/>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="amntName">Amount:</label>
|
||||
<div id="trAmountTD"><input type="text" class="form-control" id="trAmount" name="trAmount" placeholder="enter amount" value="<%=blankNull(amt)%>" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57' ></div>
|
||||
</div>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(cashDepForm)">
|
||||
<input class="btn btn-primary" type="reset" value="Reset">
|
||||
<input type="hidden" class="form-control" id="hldAmount" name="hldAmount">
|
||||
<input type="hidden" name="cashDrawerStatusFlag" id="cashDrawerStatusFlag" value="<%=status%>">
|
||||
</div>
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
</div>
|
||||
<div class="dialog" id="myform">
|
||||
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td>Denominations</td>
|
||||
<td>Available</td>
|
||||
<td>IN</td>
|
||||
<td>OUT</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="left"><label>2000 Note</label></td>
|
||||
<td><input type="text" readonly name="twothouAvail" id="twothouAvail" class="available" value="<%=odeno2000%>"></td>
|
||||
<td><input type="text" name="twothouIN" id="twothouIN" class="inDeno"></td>
|
||||
<td><input type="text" name="twothouOUT" id="twothouOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>500 Note</label></td>
|
||||
<td><input type="text" readonly name="fivehundredAvail" id="fivehundredAvail" class="available" value="<%=odeno500%>"></td>
|
||||
<td><input type="text" name="fivehundredIN" id="fivehundredIN" class="inDeno"></td>
|
||||
<td><input type="text" name="fivehundredOUT" id="fivehundredOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>200 Note</label></td>
|
||||
<td><input type="text" readonly name="twohundredAvail" id="twohundredAvail" class="available" value="<%=odeno200%>"></td>
|
||||
<td><input type="text" name="twohundredIN" id="twohundredIN" class="inDeno"></td>
|
||||
<td><input type="text" name="twohundredOUT" id="twohundredOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>100 Note</label></td>
|
||||
<td><input type="text" readonly name="hundredAvail" id="hundredAvail" class="available" value="<%=odeno100%>"></td>
|
||||
<td><input type="text" name="hundredIN" id="hundredIN" class="inDeno"></td>
|
||||
<td><input type="text" name="hundredOUT" id="hundredOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>50 Note</label></td>
|
||||
<td><input type="text" readonly name="fiftyAvail" id="fiftyAvail" class="available" value="<%=odeno50%>"></td>
|
||||
<td><input type="text" name="fiftyIN" id="fiftyIN" class="inDeno"></td>
|
||||
<td><input type="text" name="fiftyOUT" id="fiftyOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>20 Note</label></td>
|
||||
<td><input type="text" readonly name="twentyAvail" id="twentyAvail" class="available" value="<%=odeno20%>"></td>
|
||||
<td><input type="text" name="twentyIN" id="twentyIN" class="inDeno"></td>
|
||||
<td><input type="text" name="twentyOUT" id="twentyOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>10 Note</label></td>
|
||||
<td><input type="text" readonly name="tenAvail" id="tenAvail" class="available" value="<%=odeno10%>"></td>
|
||||
<td><input type="text" name="tenIN" id="tenIN" class="inDeno"></td>
|
||||
<td><input type="text" name="tenOUT" id="tenOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>5 Note</label></td>
|
||||
<td><input type="text" readonly name="fiveAvail" id="fiveAvail" class="available" value="<%=odeno5%>"></td>
|
||||
<td><input type="text" name="fiveIN" id="fiveIN" class="inDeno"></td>
|
||||
<td><input type="text" name="fiveOUT" id="fiveOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>2 Note</label></td>
|
||||
<td><input type="text" readonly name="twoAvail" id="twoAvail" class="available" value="<%=odeno2%>"></td>
|
||||
<td><input type="text" name="twoIN" id="twoIN" class="inDeno"></td>
|
||||
<td><input type="text" name="twoOUT" id="twoOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>1 Note</label></td>
|
||||
<td><input type="text" readonly name="oneAvail" id="oneAvail" class="available" value="<%=odeno1%>"></td>
|
||||
<td><input type="text" name="oneIN" id="oneIN" class="inDeno"></td>
|
||||
<td><input type="text" name="oneOUT" id="oneOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>50 Paisa</label></td>
|
||||
<td><input type="text" readonly name="fiftyPaisaAvail" id="fiftyPaisaAvail" class="available" value="<%=odeno50P%>"></td>
|
||||
<td><input type="text" name="fiftyPaisaIN" id="fiftyPaisaIN" class="inDeno"></td>
|
||||
<td><input type="text" name="fiftyPaisaOUT" id="fiftyPaisaOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><label>1 Paisa</label></td>
|
||||
<td><input type="text" readonly name="onePaisaAvail" id="onePaisaAvail" class="available" value="<%=odeno1P%>"></td>
|
||||
<td><input type="text" name="onePaisaIN" id="onePaisaIN" class="inDeno"></td>
|
||||
<td><input type="text" name="onePaisaOUT" id="onePaisaOUT" class="outDeno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="left"><label>Total IN/OUT</label></td>
|
||||
|
||||
<td><input type="text" readonly name="totalIN" id="totalIN" ></td>
|
||||
<td><input type="text" readonly name="totalOUT" id="totalOUT" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>Cash Drawer Present Balance</label></td>
|
||||
<td><input type="text" readonly name="cashDRWBal" id="cashDRWBal" ></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>Resulted Txn Amount</label></td>
|
||||
<td><input type="text" readonly name="resTXNAmt" id="resTXNAmt"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<div align="center">
|
||||
<input type="button" value="Ok" id="btnOK"><input type="button" value="Reset" id="btnReset"><input type="button" value="Close" id="closePopup">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
var first = $('#twothouAvail').val();
|
||||
var second = $('#fivehundredAvail').val();
|
||||
var third = $('#hundredAvail').val();
|
||||
var fourth = $('#fiftyAvail').val();
|
||||
var fifth = $('#twentyAvail').val();
|
||||
var sixth = $('#tenAvail').val();
|
||||
var seventh = $('#fiveAvail').val();
|
||||
var eighth = $('#twoAvail').val();
|
||||
var ninth = $('#oneAvail').val();
|
||||
var eleventh = $('#fiftyPaisaAvail').val();
|
||||
var twelveth = $('#onePaisaAvail').val();
|
||||
var thirtinth = $('#twohundredAvail').val();
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#myform').find(':input.inDeno[type="text"],#totalIN,#totalOUT,#resTXNAmt').val('0');
|
||||
$('#myform').find(':input.outDeno[type="text"]').val('0');
|
||||
$('.inDeno,.outDeno').css({"background-color": "#FFFFC1"});
|
||||
$('#totalIN,#totalOUT').css({"background-color": "#ffff93"});
|
||||
$('#cashDRWBal,#resTXNAmt').css({"background-color": "#b2d0b2"});
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#trAmount').on("cut copy paste",function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
var AvailsumOnLoad = 0;
|
||||
var DenoINsumOnLoad = 0;
|
||||
|
||||
AvailsumOnLoad = parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200) + parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1)+ parseFloat(parseInt(check($('#fiftyPaisaAvail').val())) * 0.50) + parseFloat(parseInt(check($('#onePaisaAvail').val())) * 0.01) ;
|
||||
$("#cashDRWBal").val(AvailsumOnLoad);
|
||||
var tenth = $('#cashDRWBal').val();//calculating present cash drawer value for first time
|
||||
|
||||
$( "#btnReset" ).click(function() {
|
||||
$('#myform').find(':input.inDeno[type="text"],:input.outDeno[type="text"]').val('0');
|
||||
$("#totalIN").val('0');
|
||||
$("#totalOUT").val('0');
|
||||
$('#twothouAvail').val(first);
|
||||
$('#fivehundredAvail').val(second);
|
||||
$('#hundredAvail').val(third);
|
||||
$('#fiftyAvail').val(fourth);
|
||||
$('#twentyAvail').val(fifth);
|
||||
$('#tenAvail').val(sixth);
|
||||
$('#fiveAvail').val(seventh);
|
||||
|
||||
$('#twoAvail').val(eighth);
|
||||
$('#oneAvail').val(ninth);
|
||||
$('#fiftyPaisaAvail').val(eleventh);
|
||||
$('#onePaisaAvail').val(twelveth);
|
||||
$("#cashDRWBal").val(tenth);
|
||||
$('#resTXNAmt').val('0');
|
||||
$('#twohundredAvail').val(thirtinth);
|
||||
if ($('#trAmountTD').find('img').length > 0){
|
||||
$('.DenoAdded').remove();
|
||||
}
|
||||
});
|
||||
|
||||
//make all inputs whole numbers only
|
||||
$('.dialog').on('keydown',':input[type="text"]', function(event) {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
//calculating IN & OUT Total,and Resultant final Amount
|
||||
$('#myform').on("keyup", ".inDeno,.outDeno", function() {
|
||||
var DenoINsumOnChange = 0;
|
||||
var DenoOUTsumOnChange = 0;
|
||||
DenoINsumOnChange = parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01);
|
||||
$("#totalIN").val(DenoINsumOnChange);
|
||||
DenoOUTsumOnChange = parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val()) * 0.01);
|
||||
$("#totalOUT").val(DenoOUTsumOnChange);
|
||||
$('#resTXNAmt').val(parseFloat(check($('#totalIN').val())) - parseFloat(check($('#totalOUT').val())));
|
||||
});
|
||||
|
||||
//for Rs 2000 starts
|
||||
$('#myform').on("keyup", "#twothouOUT", function() {
|
||||
if(parseInt($("#twothouAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.2000 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#twothouAvail').val(parseInt(check(first)) + (parseInt(check($('#twothouIN').val())) - parseInt(check($('#twothouOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#twothouOUT", function() {
|
||||
if(parseInt(first)< parseInt(check($('#twothouOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#twothouIN", function() {
|
||||
|
||||
$('#twothouAvail').val(parseInt(check(first)) + (parseInt(check($('#twothouIN').val())) - parseInt(check($('#twothouOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200) + parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
//for Rs 500 starts
|
||||
$('#myform').on("keyup", "#fivehundredOUT", function() {
|
||||
if(parseInt($("#fivehundredAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.500 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#fivehundredAvail').val(parseInt(check(second)) + (parseInt(check($('#fivehundredIN').val())) - parseInt(check($('#fivehundredOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#fivehundredOUT", function() {
|
||||
if(parseInt(second)< parseInt(check($('#fivehundredOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#fivehundredIN", function() {
|
||||
|
||||
$('#fivehundredAvail').val(parseInt(check(second)) + (parseInt(check($('#fivehundredIN').val())) - parseInt(check($('#fivehundredOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200) + parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
//for Rs 200 starts
|
||||
$('#myform').on("keyup", "#twohundredOUT", function() {
|
||||
if(parseInt($("#twohundredAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.200 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#twohundredAvail').val(parseInt(check(thirtinth)) + (parseInt(check($('#twohundredIN').val())) - parseInt(check($('#twohundredOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#twohundredOUT", function() {
|
||||
if(parseInt(thirtinth)< parseInt(check($('#twohundredOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#twohundredIN", function() {
|
||||
|
||||
$('#twohundredAvail').val(parseInt(check(thirtinth)) + (parseInt(check($('#twohundredIN').val())) - parseInt(check($('#twohundredOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
//for Rs 100 starts
|
||||
$('#myform').on("keyup", "#hundredOUT", function() {
|
||||
if(parseInt($("#hundredAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.100 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#hundredAvail').val(parseInt(check(third)) + (parseInt(check($('#hundredIN').val())) - parseInt(check($('#hundredOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#hundredOUT", function() {
|
||||
if(parseInt(third)< parseInt(check($('#hundredOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#hundredIN", function() {
|
||||
|
||||
$('#hundredAvail').val(parseInt(check(third)) + (parseInt(check($('#hundredIN').val())) - parseInt(check($('#hundredOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
|
||||
//for Rs 50 starts
|
||||
$('#myform').on("keyup", "#fiftyOUT", function() {
|
||||
if(parseInt($("#fiftyAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.50 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#fiftyAvail').val(parseInt(check(fourth)) + (parseInt(check($('#fiftyIN').val())) - parseInt(check($('#fiftyOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#fiftyOUT", function() {
|
||||
if(parseInt(fourth)< parseInt(check($('#fiftyOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#fiftyIN", function() {
|
||||
|
||||
$('#fiftyAvail').val(parseInt(check(fourth)) + (parseInt(check($('#fiftyIN').val())) - parseInt(check($('#fiftyOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
//for Rs 20 starts
|
||||
$('#myform').on("keyup", "#twentyOUT", function() {
|
||||
if(parseInt($("#twentyAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.20 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#twentyAvail').val(parseInt(check(fifth)) + (parseInt(check($('#twentyIN').val())) - parseInt(check($('#twentyOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#twentyOUT", function() {
|
||||
if(parseInt(fifth)< parseInt(check($('#twentyOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#twentyIN", function() {
|
||||
|
||||
$('#twentyAvail').val(parseInt(check(fifth)) + (parseInt(check($('#twentyIN').val())) - parseInt(check($('#twentyOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
//for Rs 10 starts
|
||||
$('#myform').on("keyup", "#tenOUT", function() {
|
||||
if(parseInt($("#tenAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.10 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#tenAvail').val(parseInt(check(sixth)) + (parseInt(check($('#tenIN').val())) - parseInt(check($('#tenOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#tenOUT", function() {
|
||||
if(parseInt(sixth)< parseInt(check($('#tenOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#tenIN", function() {
|
||||
|
||||
$('#tenAvail').val(parseInt(check(sixth)) + (parseInt(check($('#tenIN').val())) - parseInt(check($('#tenOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
|
||||
//for Rs 5 starts
|
||||
$('#myform').on("keyup", "#fiveOUT", function() {
|
||||
if(parseInt($("#fiveAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.5 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#fiveAvail').val(parseInt(check(seventh)) + (parseInt(check($('#fiveIN').val())) - parseInt(check($('#fiveOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#fiveOUT", function() {
|
||||
if(parseInt(seventh)< parseInt(check($('#fiveOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#fiveIN", function() {
|
||||
|
||||
$('#fiveAvail').val(parseInt(check(seventh)) + (parseInt(check($('#fiveIN').val())) - parseInt(check($('#fiveOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
|
||||
//for Rs 2 starts
|
||||
$('#myform').on("keyup", "#twoOUT", function() {
|
||||
if(parseInt($("#twoAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.2 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#twoAvail').val(parseInt(check(eighth)) + (parseInt(check($('#twoIN').val())) - parseInt(check($('#twoOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#twoOUT", function() {
|
||||
if(parseInt(eighth)< parseInt(check($('#twoOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#twoIN", function() {
|
||||
|
||||
$('#twoAvail').val(parseInt(check(eighth)) + (parseInt(check($('#twoIN').val())) - parseInt(check($('#twoOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
|
||||
//for Rs 1 starts
|
||||
$('#myform').on("keyup", "#oneOUT", function() {
|
||||
if(parseInt($("#oneAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.1 Notes");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#oneAvail').val(parseInt(check(ninth)) + (parseInt(check($('#oneIN').val())) - parseInt(check($('#oneOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#oneOUT", function() {
|
||||
if(parseInt(ninth)< parseInt(check($('#oneOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#oneIN", function() {
|
||||
|
||||
$('#oneAvail').val(parseInt(check(ninth)) + (parseInt(check($('#oneIN').val())) - parseInt(check($('#oneOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
//for 50 Paisa starts
|
||||
$('#myform').on("keyup", "#fiftyPaisaOUT", function() {
|
||||
if(parseInt($("#fiftyPaisaAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt 50 Paisa");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#fiftyPaisaAvail').val(parseInt(check(eleventh)) + (parseInt(check($('#fiftyPaisaIN').val())) - parseInt(check($('#fiftyPaisaOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#fiftyPaisaOUT", function() {
|
||||
if(parseInt(eleventh)< parseInt(check($('#fiftyPaisaOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#fiftyPaisaIN", function() {
|
||||
|
||||
$('#fiftyPaisaAvail').val(parseInt(check(eleventh)) + (parseInt(check($('#fiftyPaisaIN').val())) - parseInt(check($('#oneOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
//for 1 Paisa starts
|
||||
$('#myform').on("keyup", "#onePaisaOUT", function() {
|
||||
if(parseInt($("#onePaisaAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt 1 Paisa");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
else{
|
||||
$('#onePaisaAvail').val(parseInt(check(twelveth)) + (parseInt(check($('#onePaisaIN').val())) - parseInt(check($('#onePaisaOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
}
|
||||
});
|
||||
$('#myform').on("change", "#onePaisaOUT", function() {
|
||||
if(parseInt(twelveth)< parseInt(check($('#onePaisaOUT').val()))){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#btnReset').click();
|
||||
}
|
||||
});
|
||||
$('#myform').on("keyup", "#onePaisaIN", function() {
|
||||
|
||||
$('#onePaisaAvail').val(parseInt(check(twelveth)) + (parseInt(check($('#onePaisaIN').val())) - parseInt(check($('#onePaisaOUT').val()))));
|
||||
$("#totalOUT").val(parseInt(check($('#twothouOUT').val())) * 2000 + parseInt(check($('#fivehundredOUT').val())) * 500 + parseInt(check($('#twohundredOUT').val())) * 200 + parseInt(check($('#hundredOUT').val())) * 100 + parseInt(check($('#fiftyOUT').val())) * 50 + parseInt(check($('#twentyOUT').val())) * 20 + parseInt(check($('#tenOUT').val())) * 10 + parseInt(check($('#fiveOUT').val())) * 5 + parseInt(check($('#twoOUT').val())) * 2 + parseInt(check($('#oneOUT').val())) + parseFloat(check($('#fiftyPaisaOUT').val()) * 0.50) + parseFloat(check($('#onePaisaOUT').val())* 0.01));
|
||||
$('#totalIN').val(parseInt(check($('#twothouIN').val())) * 2000 + parseInt(check($('#fivehundredIN').val())) * 500 + parseInt(check($('#twohundredIN').val())) * 200 + parseInt(check($('#hundredIN').val())) * 100 + parseInt(check($('#fiftyIN').val())) * 50 + parseInt(check($('#twentyIN').val())) * 20 + parseInt(check($('#tenIN').val())) * 10 + parseInt(check($('#fiveIN').val())) * 5 + parseInt(check($('#twoIN').val())) * 2 + parseInt(check($('#oneIN').val())) + parseFloat(check($('#fiftyPaisaIN').val()) * 0.50) + parseFloat(check($('#onePaisaIN').val()) * 0.01));
|
||||
$("#cashDRWBal").val(parseInt(check($('#twothouAvail').val()) * 2000) + parseInt(check($('#fivehundredAvail').val()) * 500) + parseInt(check($('#twohundredAvail').val()) * 200)+ parseInt(check($('#hundredAvail').val()) * 100)+ parseInt(check($('#fiftyAvail').val()) * 50)+ parseInt(check($('#twentyAvail').val()) * 20)+ parseInt(check($('#tenAvail').val()) * 10)+ parseInt(check($('#fiveAvail').val()) * 5)+ parseInt(check($('#twoAvail').val()) * 2)+ parseInt(check($('#oneAvail').val()) * 1) + parseFloat(check($('#fiftyPaisaAvail').val()) * 0.50) + parseFloat(check($('#onePaisaAvail').val()) * 0.01));
|
||||
$('#resTXNAmt').val(Number(check($('#totalIN').val())) - Number(check($('#totalOUT').val())));
|
||||
|
||||
});
|
||||
|
||||
|
||||
//Reset transaction amout when OK button clicks
|
||||
$('#btnOK').click(function(){
|
||||
var amount = $('#resTXNAmt').val();
|
||||
var flag = 0;
|
||||
|
||||
if(Number(amount) <= 0){
|
||||
alert("Amount can not be lesser than or equal to zero when Transaction Credit is performed!!! ");
|
||||
flag = 1;
|
||||
}
|
||||
if(parseInt(flag) == 0){
|
||||
$('#trAmount').val(Number(Math.abs(amount)));
|
||||
$("#myform").hide(400);
|
||||
if ($('#trAmountTD').find('img').length == 0)
|
||||
{
|
||||
$('#trAmountTD').append('<span class="DenoAdded" style="padding-right:3px; padding-top: 3px; padding-left: 5px; display:inline-block;"><img class="manImg" src="${pageContext.request.contextPath}/img/check.png" width="15" height="20"/>Denomination added</span>');
|
||||
|
||||
}
|
||||
//alert($(member_count).val());
|
||||
//alert($(product_id).val());
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
$('#closePopup').click(function(){
|
||||
//$( "#btnReset" ).click();
|
||||
//$('#trAmount').val('0');
|
||||
$("#myform").hide(400);
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$("#trAmount").click(function() {
|
||||
//alert($(member_count).val());
|
||||
if ($('#agntIdId').val() === ""){
|
||||
alert("Please select agent Id first!");
|
||||
}else if($('#cashDrawerStatusFlag').val() == "C"){
|
||||
alert("Cash Drawer isn't opened yet!!!");
|
||||
}else{
|
||||
$("#myform").show(500);
|
||||
}
|
||||
});
|
||||
|
||||
$("#trAmount").keypress(function() {
|
||||
//alert($(member_count).val());
|
||||
if ($('#agntIdId').val() === ""){
|
||||
alert("Please select agent Id first!");
|
||||
event.preventDefault();
|
||||
}else if($('#cashDrawerStatusFlag').val() == "C"){
|
||||
alert("Cash Drawer isn't opened yet!!!");
|
||||
event.preventDefault();
|
||||
}
|
||||
else{
|
||||
$("#myform").show(500);
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<html>
|
||||
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
156
IPKS_Updated/web/web/web/DDS/TransactionReport.jsp
Normal file
156
IPKS_Updated/web/web/web/DDS/TransactionReport.jsp
Normal file
@@ -0,0 +1,156 @@
|
||||
<%--
|
||||
Document : Transactionreport
|
||||
Created on : Aug 02, 2018, 3:40:14 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<title>DDS REPORTS</title>
|
||||
<%-- <link rel="shortcut icon" href="img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />--%>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.css" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
</head>
|
||||
<script>
|
||||
|
||||
function noBack()
|
||||
{
|
||||
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function submitform(reportForm)
|
||||
{
|
||||
if (reportForm.from_date.value == "" || reportForm.to_date.value == "" )
|
||||
{
|
||||
alert("!! Dates must be selected !!");
|
||||
return false;
|
||||
}
|
||||
$('#tranType').val($('#tranTypeOrg').val());
|
||||
document.reportForm.action = '/PacsApplication/TransactionDDSServlet';
|
||||
document.reportForm.submit();
|
||||
document.reportForm.reset();
|
||||
}
|
||||
|
||||
|
||||
function printTextArea() {
|
||||
childWindow = window.open('','childWindow','location=yes, menubar=yes, toolbar=yes');
|
||||
childWindow.document.open();
|
||||
childWindow.document.write("Sample print");
|
||||
childWindow.print();
|
||||
childWindow.document.close();
|
||||
childWindow.close();
|
||||
}
|
||||
</script>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<style>
|
||||
|
||||
legend.scheduler-border {
|
||||
|
||||
text-align: left !important;
|
||||
width:inherit; /* Or auto */
|
||||
|
||||
border-bottom:none;
|
||||
padding: 8px;
|
||||
border-radius: 20px;
|
||||
background-color: #006600;
|
||||
color: white
|
||||
}
|
||||
fieldset.scheduler-border {
|
||||
border: 5px groove #ddd !important;
|
||||
padding: 0 1.4em 1.4em 1.4em !important;
|
||||
margin: 0 0 1.5em 0 !important;
|
||||
-webkit-box-shadow: 0px 0px 0px 0px #000;
|
||||
box-shadow: 0px 0px 0px 0px #000;
|
||||
border-color: black;
|
||||
background-image: url('/PacsApplication/img/download.jpg');
|
||||
border-width: 3px
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body onload="noBack()">
|
||||
<jsp:include page="MenuHead_DDS.jsp" flush="true" />
|
||||
<fieldset class="scheduler-border">
|
||||
<legend class="scheduler-border">DDS Reports</legend>
|
||||
<div class="container-fluid">
|
||||
<form name="reportForm" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<div class="info" id="errorMessage"><center><%= error_msg%></center></div>
|
||||
<% }%>
|
||||
<div class="row">
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
<div class="col-xs-4 col-md-4">
|
||||
<table>
|
||||
<div class="form-group">
|
||||
|
||||
<label>Select type of Operation:</label>
|
||||
<select class="selectpicker" id="tranTypeOrg" style="width:auto;" >
|
||||
<option value="single" >DETAILED TRANSACTION REPORT</option>
|
||||
<option value="all" >TOTAL TRANSACTION REPORT</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">From Date: </td><td><input type="text" style="text-align:center;" id="from_date" name="from_date" maxlength="11" resize="yes" ><a href="#" onclick="return getCalendar(document.reportForm.from_date);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">To Date: </td><td><input type="text" style="text-align:center;" id="to_date" name="to_date" maxlength="11" resize="yes"><a href="#" onclick="return getCalendar(document.reportForm.to_date);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(reportForm)">
|
||||
<%--<input type="button" value="testprint" onclick="javascript:printTextArea()">--%>
|
||||
<input class="btn btn-primary" type="reset" value="Reset">
|
||||
<input type="hidden" name="tranType" id="tranType" value=""/>
|
||||
|
||||
</div>
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
<html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
355
IPKS_Updated/web/web/web/Deposit/AccountModeOfOperation.jsp
Normal file
355
IPKS_Updated/web/web/web/Deposit/AccountModeOfOperation.jsp
Normal file
@@ -0,0 +1,355 @@
|
||||
<%--
|
||||
Document : AccountModeOfOperation
|
||||
Created on : june 19, 2019, 8:18:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="DataEntryBean.DepositMiscellaneousBean"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Account Mode Of Operation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_DepositAccLOV(width, height, depositAccSearch) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AccountModeOfOperation.jsp";
|
||||
var lovKey="DepositAccLOV"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?depositAccSearch=' + depositAccSearch + '&screenName=' + screenName+'&lovKey='+lovKey, 'DepositAccLOB', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_TransactionNo(width,height,txn_no,acc_no){
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositMiscellaneousOperation.jsp";
|
||||
var lovKey="TransactionNoSearch";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?depositAccNo=' + acc_no + '&TxnNo=' + txn_no + '&screenName=' + screenName+'&lovKey='+lovKey, 'DepositAccLOB', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
|
||||
function popup_SecondCifLOB(width, height, secondCifSearch ,lovkey) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AccountModeOfOperation.jsp";
|
||||
var lovKey=lovkey;
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?depositAccSearch=' + secondCifSearch + '&screenName=' + screenName+'&lovKey='+lovKey, 'DepositAccLOB', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function submitform(AccountModeOfOperationForm)
|
||||
{
|
||||
if (AccountModeOfOperationForm.depositAccSearch.value == "")
|
||||
{
|
||||
alert("Please enter Deposit Account Number.");
|
||||
AccountModeOfOperationForm.depositAccSearch.focus();
|
||||
return false;
|
||||
}
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(document.getElementById("depositAccSearch").value))
|
||||
{
|
||||
alert("Deposit Account could only contain numbers.");
|
||||
AccountModeOfOperationForm.depositAccSearch.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.forms[0].handle_id.value = "Search";
|
||||
document.forms[0].action = '/PacsApplication/AccountModeOfOperationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
function submitOperation()
|
||||
{
|
||||
re = /^\d+$/;
|
||||
if (AccountModeOfOperationForm.operation_type.value == "")
|
||||
{
|
||||
alert("Please select Account Mode of Operation.");
|
||||
AccountModeOfOperationForm.operation_type.focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("displayFlag").value == "Y" && document.getElementById("operation_type").value == "NOM") {
|
||||
if (!re.test(document.getElementById("nomId").value))
|
||||
{
|
||||
alert("Please enter nominee CIF correctly.");
|
||||
document.getElementById("nomId").focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("secondCifSearchFlag").value == "") {
|
||||
alert("Please search the nominee CIF to proceed.");
|
||||
document.getElementById("nomId").focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
document.forms[0].handle_id.value = "SubmitOperation";
|
||||
document.forms[0].action = '/PacsApplication/AccountModeOfOperationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/AccountModeOfOperation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function onRadioClick(temp)
|
||||
{
|
||||
if (temp == 1){
|
||||
document.getElementById("transactionInputBox").style.display='block';
|
||||
document.getElementById("accountInputBox").style.display='none';
|
||||
document.getElementById("radio1").value='txn';
|
||||
}
|
||||
else if(temp == 2){
|
||||
document.getElementById("accountInputBox").style.display='block';
|
||||
document.getElementById("transactionInputBox").style.display='none';
|
||||
document.getElementById("radio2").value='accnt';
|
||||
}
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "N";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
Object oDepositMiscellaneousBeanObj = request.getAttribute("oDepositMiscellaneousBeanObj");
|
||||
DepositMiscellaneousBean oDepositMiscellaneousBean = new DepositMiscellaneousBean();
|
||||
if (oDepositMiscellaneousBeanObj != null) {
|
||||
oDepositMiscellaneousBean = (DepositMiscellaneousBean) request.getAttribute("oDepositMiscellaneousBeanObj");
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Account Mode Of Operation</legend>
|
||||
<form name="AccountModeOfOperationForm" id="AccountModeOfOperationForm" action="" method="post">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
<center>
|
||||
<table class="numbersOnly">
|
||||
<tr><td>Enter Deposit Account<font color="red" >*</font>:</td><td></td><td><input type="text" maxlength="25" name="depositAccSearch" id="depositAccSearch" value="<%=blankNull(oDepositMiscellaneousBean.getDepositAccountNumber())%>" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /><input type="button" value="Search" onclick="javascript:popup_DepositAccLOV(900, 350, document.AccountModeOfOperationForm.depositAccSearch.value);"/></td></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<input type="button" value="Get Details" id="Submit" onclick="javascript:submitform(AccountModeOfOperationForm)"/>
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
if (displayFlag.equalsIgnoreCase("Y")) {
|
||||
|
||||
%>
|
||||
<div id="show" align="left" >
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<table>
|
||||
<thead>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="font:large;">Deposit Account Number: </td>
|
||||
<td><input type="text" readonly="true" name="depositAccountNumber" id="depositAccountNumber" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getDepositAccountNumber())%>" /></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td>Account Balance: </td>
|
||||
<td><input type="text" readonly name="accBalance" id="accBalance" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getAccBalance())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<tr>
|
||||
<td style="text-align:right;"> 1st CIF Number: </td>
|
||||
<td><input type="text" readonly="true" name="cifNo" id="cifNo" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCifNo())%>" /></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td style="text-align:right;"> 1st A/C Holder: </td>
|
||||
<td><input type="text" readonly="true" name="cifName" id="cifName" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCustomer1Name())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<tr>
|
||||
<td style="text-align:right;"> 2nd CIF Number: </td>
|
||||
<td><input type="text" readonly="true" name="cif2No" id="cif2No" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCif2No())%>" /></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td style="text-align:right;"> 2nd A/C Holder: </td>
|
||||
<td><input type="text" readonly="true" name="cif2Name" id="cif2Name" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCustomer2Name())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<tr>
|
||||
<td style="text-align:right;">Account Status: </td>
|
||||
<td><input type="text" readonly name="accStat" style="width: 260px" id="accStat" value="<%=blankNull(oDepositMiscellaneousBean.getAccStat())%>"/></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td style="text-align:right;">Nominee CIF: </td>
|
||||
<td><input type="text" readonly name="nomCif" style="text-align:right;" style="width: 260px" id="nomCif" value="<%=blankNull(oDepositMiscellaneousBean.getNomCif())%>"/></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<tr>
|
||||
<td>Account Mode Operation: </td>
|
||||
<td><input type="text" readonly name="mode" style="width: 260px" id="mode" value="<%=blankNull(oDepositMiscellaneousBean.getMode())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
</table>
|
||||
<tr><td colspan="10"><hr></td></tr>
|
||||
<tr>
|
||||
<td>Select Account Mode of Operation<font color="red" >*</font>:</td><td>
|
||||
<select id="operation_type" name="operation_type">
|
||||
<option value="" > --Select-- </option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select dp.mop_code, dp.mop_name from acc_mop_map dp order by to_number(dp.mop_code)");
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>" ><%=rs.getString(2)%></option>
|
||||
<%
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
</center>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="javascript:submitOperation()"/></center>
|
||||
</div>
|
||||
<%}%>
|
||||
<input type="hidden" name="handle_id" value="" >
|
||||
<input type="hidden" name="secondCifSearchFlag" id="secondCifSearchFlag" value="">
|
||||
<input type="hidden" name="displayFlag" id="displayFlag" value="<%=displayFlag%>" >
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
<script>
|
||||
//make all inputs whole numbers only
|
||||
/*$('table.numbersOnly').on('keydown','#depositAccSearch', function(event) {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
});*/
|
||||
</script>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
330
IPKS_Updated/web/web/web/Deposit/AccountStatement_Report.jsp
Normal file
330
IPKS_Updated/web/web/web/Deposit/AccountStatement_Report.jsp
Normal file
@@ -0,0 +1,330 @@
|
||||
<%--
|
||||
Document : AccountStatement_Report
|
||||
Created on : May 04, 2019, 9:18:24 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="java.lang.String" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
var e = document.getElementById("reportType");
|
||||
|
||||
if (e.options[e.selectedIndex].value == "")
|
||||
{
|
||||
alert("Report Name cannot be empty.");
|
||||
document.forms[0].reportType.focus();
|
||||
return false;
|
||||
}
|
||||
if (document.forms[0].accno.value == "" )
|
||||
{
|
||||
alert("Account Number cannot be empty.");
|
||||
document.forms[0].accno.focus();
|
||||
return false;
|
||||
}
|
||||
if (document.forms[0].from_date.value == "" )
|
||||
{
|
||||
alert("From Date cannot be empty.");
|
||||
document.forms[0].from_date.focus();
|
||||
return false;
|
||||
}
|
||||
if (document.forms[0].to_date.value == "" )
|
||||
{
|
||||
alert("To Date cannot be empty.");
|
||||
document.forms[0].to_date.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var startDate = $('#from_date').val();
|
||||
var endDate = $('#to_date').val();
|
||||
var adata = startDate.split('/');
|
||||
var dd = parseInt(adata[0],10);
|
||||
var mm = parseInt(adata[1],10);
|
||||
var yyyy = parseInt(adata[2],10);
|
||||
var from_date = new Date(yyyy,mm-1,dd);
|
||||
|
||||
adata = endDate.split('/');
|
||||
var dd = parseInt(adata[0],10);
|
||||
var mm = parseInt(adata[1],10);
|
||||
var yyyy = parseInt(adata[2],10);
|
||||
var to_date = new Date(yyyy,mm-1,dd);
|
||||
|
||||
if(Date.parse(from_date) > Date.parse(to_date)){
|
||||
alert("From Date cannot be greater than To Date");
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (e.options[e.selectedIndex].value) {
|
||||
|
||||
case "DEP" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/DateWiseDepAcctStmt";
|
||||
document.forms[0].reportName.value = "Date Wise Dep Account Statement";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "LOAN" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/DateWiseloanAccStmt";
|
||||
document.forms[0].reportName.value = "Date Wise Loan Account Statement";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "KCC" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/DateWisekccAccStmt";
|
||||
document.forms[0].reportName.value = "Date Wise KCC/CC Account Statement";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "GL" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/DateWisegl_acc_stmt";
|
||||
document.forms[0].reportName.value = "Date Wise GL Account Statement";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
default :
|
||||
|
||||
null;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/AccountStatement_Report.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function popup_searchReport(width, height, accno, reportType) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AccountStatement_Report.jsp";
|
||||
var lovKey = "searchReport"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationLoanLOV.jsp?accno=' + accno + '&reportType=' + reportType + '&screenName=' + screenName + '&lovKey=' + lovKey, 'searchReport', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<title>Account Statement Reports</title>
|
||||
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Account Statement Reports</legend>
|
||||
|
||||
<form name="AccountStatement_Report" method="post" action="/PacsApplication/ExcelReportServlet">
|
||||
<br>
|
||||
<input type="hidden" name="userRole" id ="userRole" value="<%=userRole%>">
|
||||
<table>
|
||||
<%if (request.getAttribute("error") != null) {%>
|
||||
<tr><td colspan="2" align="center"><%=request.getAttribute("error").toString()%></td></tr>
|
||||
<%}%>
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name <font color="red" >*</font>: </td>
|
||||
<td> <select id="reportType" name="reportType" >
|
||||
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<option value="DEP">Deposit Account Statement Report</option>
|
||||
<option value="LOAN">Loan Account Statement Report</option>
|
||||
<option value="KCC">KCC/CC Account Statement Report</option>
|
||||
<option value="GL">GL Account Statement Report</option>
|
||||
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr id="accno" >
|
||||
<td>Account Number<font color="red" >*</font>:</td>
|
||||
<td><input type="text" name="accno" id="accno" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" name="accNoSearch" id="accNoSearch" value="Search" onclick="javascript:popup_searchReport(920, 480, document.AccountStatement_Report.accno.value,document.AccountStatement_Report.reportType.value);"/></td>
|
||||
|
||||
</tr>
|
||||
<tr id="fromDate">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">From Date<font color="red" >*</font>: </td><td><input type="text" style="text-align:center;" id="from_date" name="from_date" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].from_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr id="toDate">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">To Date<font color="red" >*</font>: </td><td><input type="text" style="text-align:center;" id="to_date" name="to_date" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].to_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
</table><br><br><br><br>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label><font color="red" >*</font> marked fields are mandatory.</label></td></tr>
|
||||
<center>
|
||||
|
||||
<input type="button" value="Fetch Report" onclick="javascript:downloadFiles();">
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
198
IPKS_Updated/web/web/web/Deposit/AdhocReport.jsp
Normal file
198
IPKS_Updated/web/web/web/Deposit/AdhocReport.jsp
Normal file
@@ -0,0 +1,198 @@
|
||||
<%--
|
||||
Document : PACS_REPORT
|
||||
Created on : Sep 17, 2015, 12:59:59 PM
|
||||
Author : 590685
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.adhocReportBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Adhoc Report</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadReport() {
|
||||
|
||||
|
||||
|
||||
document.forms[0].handle_id.value = "Download Report";
|
||||
document.forms[0].action = '/PacsApplication/HrmAdhocReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function getDetails() {
|
||||
|
||||
document.forms[0].handle_id.value = "Get Data";
|
||||
document.forms[0].action = '/PacsApplication/HrmAdhocReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function searchReport(width, height, reportId) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AdhocReport.jsp";
|
||||
var lovKey = "reportSearch"
|
||||
popWin = open('/PacsApplication/CommonSearchInformationLOV.jsp?reportId=' + reportId + '&screenName=' + screenName + '&lovKey=' + lovKey, 'reportSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
Object oadhocReportBeanObj = request.getAttribute("oadhocReportBeanObj");
|
||||
adhocReportBean oadhocReportBean = new adhocReportBean();
|
||||
|
||||
if (oadhocReportBeanObj != null) {
|
||||
oadhocReportBean = (adhocReportBean) request.getAttribute("oadhocReportBeanObj");
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">ADHOC REPORT</legend>
|
||||
|
||||
<form name="Adhocreport" method="post" action="/PacsApplication/HrmAdhocReportServlet">
|
||||
<br>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">Report ID: </label><input value="<%=blankNull(oadhocReportBean.getReportID())%>" type="text" name="reportID" id="reportID"/> <input type="button" value="Search" name="reportIDSearch" id="reportIDSearch" onclick="javascript:searchReport(220, 180, document.Adhocreport.reportID.value);">
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name: </label><input style="width: 500px;" value="<%=blankNull(oadhocReportBean.getReportName())%>" type="text" name="reportName" id="reportName" readonly="true"/>
|
||||
<br><br>
|
||||
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Query :</label><br>
|
||||
<br>
|
||||
<textarea name="reportQuery" id="reportQuery" cols="100" rows="12" readonly="true"><%=blankNull(oadhocReportBean.getReportQuery())%></textarea>
|
||||
<br>
|
||||
<input type="button" value="Get Details" onclick="javascript:getDetails();">
|
||||
<hr>
|
||||
<br>
|
||||
<table style="width : 100%">
|
||||
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 1 : <input type="text" name="parameter1" id="parameter1" value="<%=blankNull(oadhocReportBean.getParameter1())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 1 : <input type="text" name="value1" id="value1" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 2 : <input type="text" name="parameter2" id="parameter2" value="<%=blankNull(oadhocReportBean.getParameter2())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 2 : <input type="text" name="value2" id="value2" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 3 : <input type="text" name="parameter3" id="parameter3" value="<%=blankNull(oadhocReportBean.getParameter3())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 3 : <input type="text" name="value3" id="value3" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 4 : <input type="text" name="parameter4" id="parameter4" value="<%=blankNull(oadhocReportBean.getParameter4())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 4 : <input type="text" name="value4" id="value4" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 5 : <input type="text" name="parameter5" id="parameter5" value="<%=blankNull(oadhocReportBean.getParameter5())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 5 : <input type="text" name="value5" id="value5" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 6 : <input type="text" name="parameter6" id="parameter6" value="<%=blankNull(oadhocReportBean.getParameter6())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 6 : <input type="text" name="value6" id="value6" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 7 : <input type="text" name="parameter7" id="parameter7" value="<%=blankNull(oadhocReportBean.getParameter7())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 7 : <input type="text" name="value7" id="value7" value="" />
|
||||
</tr>
|
||||
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 8 : <input type="text" name="parameter8" id="parameter8" value="<%=blankNull(oadhocReportBean.getParameter8())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 8 : <input type="text" name="value8" id="value8" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 9 : <input type="text" name="parameter9" id="parameter9" value="<%=blankNull(oadhocReportBean.getParameter9())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 9 : <input type="text" name="value9" id="value9" value="" />
|
||||
</tr>
|
||||
<tr style="text-align: center;">
|
||||
<td style="float: left; width: 50%;" > Parameter 10 : <input type="text" name="parameter10" id="parameter10" value="<%=blankNull(oadhocReportBean.getParameter10())%>" readonly="true" />
|
||||
<td style="float: right; width: 50%;" > Param Value 10 : <input type="text" name="value10" id="value10" value="" />
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br><br>
|
||||
<input type="button" value="DOWNLOAD REPORT" onclick="javascript:downloadReport();">
|
||||
|
||||
</center>
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="" >
|
||||
<input type="hidden" name="jspPage" id="jspPage" value="depAdhocReport" >
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
324
IPKS_Updated/web/web/web/Deposit/AgentMapping.jsp
Normal file
324
IPKS_Updated/web/web/web/Deposit/AgentMapping.jsp
Normal file
@@ -0,0 +1,324 @@
|
||||
<%--
|
||||
Document : CashWithdrawlDeposit
|
||||
Created on : Jul 16, 2018, 5:40:14 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<title>Agent Mapping</title>
|
||||
<%-- <link rel="shortcut icon" href="img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />--%>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/bootstrap/js/bootstrap.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.css" />
|
||||
</head>
|
||||
<script>
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_depAccountAgnt(width, height, custName) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AgentMapping.jsp";
|
||||
var lovKey = "agntAccount";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?customerName=' + custName + '&screenName=' + screenName + '&lovKey=' + lovKey, 'agntAccount', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_AgentList(width, height, agentName) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AgentMapping.jsp";
|
||||
var lovKey = "agntMap";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?agentName=' + agentName + '&screenName=' + screenName + '&lovKey=' + lovKey, 'agntMap', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_AgentList1(width, height, agentName) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AgentMapping.jsp";
|
||||
var lovKey = "limitSetting";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?agentName=' + agentName + '&screenName=' + screenName + '&lovKey=' + lovKey, 'agntMap', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
<%-- function checkDiv(cashForm)
|
||||
{
|
||||
if (cashForm.amnt.value == "" || cashForm.amnt.value == 0 )
|
||||
{
|
||||
alert("Amount must be greater than zero!!");
|
||||
cashForm.amnt.focus();
|
||||
return false;
|
||||
}
|
||||
else if (cashForm.accNo.value == "" )
|
||||
{
|
||||
alert("Account must be selected!!");
|
||||
cashForm.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}--%>
|
||||
function submitform(cashForm)
|
||||
{
|
||||
<%--if(checkDiv(cashForm)){--%>
|
||||
$('#tranType').val($('#tranTypeOrg').val());
|
||||
$('#accNoServer').val($('#accNo').val());
|
||||
$('#agntIdServer').val($('#agntIdId').val());
|
||||
document.cashForm.action = '/PacsApplication/AgentMappingServlet';
|
||||
document.cashForm.submit();
|
||||
}
|
||||
|
||||
function submitform2(limitSettingForm)
|
||||
{
|
||||
$('#agntIdServer2').val($('#agentId').val());
|
||||
document.limitSettingForm.action = '/PacsApplication/AgentMappingServlet';
|
||||
document.limitSettingForm.submit();
|
||||
}
|
||||
|
||||
function openPage(){
|
||||
// var pageType=document.querySelector('input[name="pageType"]:checked').value;
|
||||
//alert(pageType);
|
||||
$('#'+pageType).show();
|
||||
if(pageType=="agentMapping")
|
||||
$('#pageName').html('Agent Mapping');
|
||||
if(pageType=="limitSetting")
|
||||
$('#pageName').html('Limit Setting');
|
||||
//alert();
|
||||
// pageType=document.querySelector('input[name="pageType"]:not(:checked)').value;
|
||||
$('#'+pageType).hide();
|
||||
$('#selOptn').hide();
|
||||
//document.getElementsByName('pageName').innerHTML='';
|
||||
}
|
||||
|
||||
function pageLoad(){
|
||||
if($('#errorMessage').length > 0 ){
|
||||
$('#agentMapping').show();
|
||||
$('#limitSetting').hide();
|
||||
$('#pageName').html('Agent Mapping');
|
||||
$('#selOptn').hide();
|
||||
} else if($('#errorMessage2').length > 0 ){
|
||||
$('#agentMapping').hide();
|
||||
$('#limitSetting').show();
|
||||
$('#pageName').html('Limit Setting');
|
||||
$('#selOptn').hide();
|
||||
} else {
|
||||
$('#agentMapping').hide();
|
||||
$('#limitSetting').hide();
|
||||
$('#pageName').html('Agent Mapping/Limit Setting');
|
||||
$("input[name='pageType']").attr('checked', false);
|
||||
$('#selOptn').show();
|
||||
}
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
|
||||
String error_msg2 = "";
|
||||
Object error2 = request.getAttribute("message2");
|
||||
if (error2 != null) {
|
||||
error_msg2 = error2.toString();
|
||||
}
|
||||
%>
|
||||
<style>
|
||||
|
||||
legend.scheduler-border {
|
||||
|
||||
text-align: left !important;
|
||||
width:inherit; /* Or auto */
|
||||
|
||||
border-bottom:none;
|
||||
padding: 8px;
|
||||
border-radius: 20px;
|
||||
background-color: #006600;
|
||||
color: white
|
||||
}
|
||||
fieldset.scheduler-border {
|
||||
border: 5px groove #ddd !important;
|
||||
padding: 0 1.4em 1.4em 1.4em !important;
|
||||
margin: 0 0 1.5em 0 !important;
|
||||
-webkit-box-shadow: 0px 0px 0px 0px #000;
|
||||
box-shadow: 0px 0px 0px 0px #000;
|
||||
border-color: black;
|
||||
background-image: url('/PacsApplication/img/download.jpg');
|
||||
border-width: 3px
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body onload="noBack();pageLoad();">
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<fieldset class="scheduler-border">
|
||||
<legend class="scheduler-border" id="pageName" name="pageName">Agent Mapping/Limit Setting</legend>
|
||||
<div id="selOptn">
|
||||
<input type="radio" name="pageType" value="agentMapping" onclick="javascript:openPage()"> <b>Agent Mapping</b>
|
||||
<input type="radio" name="pageType" value="limitSetting" onclick="javascript:openPage()"> <b>Limit Setting</b><br><br>
|
||||
</div>
|
||||
<div class="container-fluid" id="agentMapping">
|
||||
<form name="cashForm" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
<div class="col-xs-4 col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Select type of Operation:</label>
|
||||
<select class="selectpicker" id="tranTypeOrg">
|
||||
<option value="CREATE" >Create new agent mapping to account</option>
|
||||
<option value="UPDATE" >Update agent mapping </option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="accName">Customer Name: </label>
|
||||
<input type="text" class="form-control" id="accName" name="accntName" placeholder="Customer Name">
|
||||
<input type="button" value="Search" onclick="javascript:popup_depAccountAgnt(750, 250,document.cashForm.accntName.value)"/>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="accName">Account Number: </label>
|
||||
<input type="text" class="form-control" id="accNo" name="accntNo" placeholder="account No." disabled style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' >
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="accName">Agent ID: </label>
|
||||
<input type="text" class="form-control" id="agntIdId" name="agntIdname" placeholder="Agent Id" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' >
|
||||
<input type="button" value="Search" onclick="javascript:popup_AgentList(750, 250,document.cashForm.agntIdname.value)" />
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<%--<label for="accName">Avail Bal.</label>--%>
|
||||
<input type="hidden" class="form-control" id="avlBal" name="avlBal" placeholder="Avail Balance" disabled>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<%-- <label for="amntName">Amount:</label>--%>
|
||||
<input type="hidden" class="form-control" id="amntName" name="amnt" placeholder="enter amount">
|
||||
</div>
|
||||
|
||||
<%-- <div class="form-group">
|
||||
<label for="narration">Narration:</label>
|
||||
<textarea class="form-control" id="narration" name="narration" rows="3"></textarea>
|
||||
</div>--%>
|
||||
<input class="btn btn-primary" type="submit" value="Submit" onclick="javascript:submitform(cashForm)">
|
||||
<input class="btn btn-primary" type="reset" value="Reset" onclick="javascript:pageLoad()">
|
||||
<input type="hidden" name="tranType" id="tranType" value=""/>
|
||||
<input type="hidden" name="accNoServer" id="accNoServer" value=""/>
|
||||
<input type="hidden" name="agntIdServer" id="agntIdServer" value=""/>
|
||||
</div>
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="limitSetting">
|
||||
<form name="limitSettingForm" method="post" action="">
|
||||
|
||||
<%if (!error_msg2.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage2"><center><%= error_msg2%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
<div class="col-xs-4 col-md-4">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="agentId">Agent ID: </label>
|
||||
<input type="text" class="form-control" id="agentId" name="agentId" placeholder="Agent ID" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' >
|
||||
<input type="button" value="Search" onclick="javascript:popup_AgentList1(750, 250,document.limitSettingForm.agentId.value)"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Limit: </label>
|
||||
<input type="text" id="limit" name="limit" placeholder="Limit" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' >
|
||||
</div>
|
||||
|
||||
<input class="btn btn-primary" type="submit" value="Submit" onclick="javascript:submitform2(limitSettingForm)">
|
||||
<input class="btn btn-primary" type="reset" value="Reset" onclick="javascript:pageLoad()">
|
||||
<input type="hidden" name="agntIdServer2" id="agntIdServer2" value=""/>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-xs-4 col-md-4"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
<html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
590
IPKS_Updated/web/web/web/Deposit/AssignToCashDrawer.jsp
Normal file
590
IPKS_Updated/web/web/web/Deposit/AssignToCashDrawer.jsp
Normal file
@@ -0,0 +1,590 @@
|
||||
<%--
|
||||
Document : AssignToCashDrawer
|
||||
Created on : Nov 9, 2016, 1:32:46 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.transactionOperationBean"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Assign Cash To Cash-Drawer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/angular.min.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
table tbody.NoBorder tr td input[type=text]{
|
||||
border:none;
|
||||
}
|
||||
</style>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_pacstellers(width, height, teller_id) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "AssignToCashDrawer.jsp";
|
||||
var lovKey = "PopupTellers"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?teller_id=' + teller_id + '&screenName=' + screenName + '&lovKey=' + lovKey, 'PopupTellers', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
<% String odeno2000 = "";
|
||||
String odeno500 = "";
|
||||
String odeno200 = "";
|
||||
String odeno100 = "";
|
||||
String odeno50 = "";
|
||||
String odeno20 = "";
|
||||
String odeno10 = "";
|
||||
String odeno5 = "";
|
||||
String odeno2 = "";
|
||||
String odeno1 = "";
|
||||
String odeno50P = "";
|
||||
String odeno1P = "";
|
||||
String pacsid = (String) session.getAttribute("pacsId");
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select nvl(r.deno_2000,0),nvl(r.deno_500,0),nvl(r.deno_100,0),nvl(r.deno_50,0),nvl(r.deno_20,0),nvl(r.deno_10,0),nvl(r.deno_5,0),nvl(r.deno_2,0),nvl(r.deno_1,0),nvl(r.DENO_50P,0),nvl(r.DENO_1P,0),nvl(r.deno_200,0) from cash_reserve r where r.pacs_id = '" + pacsid + "' ");
|
||||
|
||||
while (rs.next()) {
|
||||
odeno2000 = rs.getString(1);
|
||||
odeno500 = rs.getString(2);
|
||||
odeno100 = rs.getString(3);
|
||||
odeno50 = rs.getString(4);
|
||||
odeno20 = rs.getString(5);
|
||||
odeno10 = rs.getString(6);
|
||||
odeno5 = rs.getString(7);
|
||||
odeno2 = rs.getString(8);
|
||||
odeno1 = rs.getString(9);
|
||||
odeno50P = rs.getString(10);
|
||||
odeno1P = rs.getString(11);
|
||||
odeno200 = rs.getString(12);
|
||||
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
String ModuleName = new String();
|
||||
|
||||
ModuleName = (String) session.getAttribute("moduleName");
|
||||
%>
|
||||
<% if (ModuleName.equalsIgnoreCase("KCC")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Deposit")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Loan")) {%>
|
||||
<jsp:include page="/Loan/MenuHead_Loan.jsp" flush="true" />
|
||||
<%}%>
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object otransactionOperationBeanObj = request.getAttribute("otransactionOperationBeanObj");
|
||||
transactionOperationBean otransactionOperationBean = new transactionOperationBean();
|
||||
if (otransactionOperationBeanObj != null) {
|
||||
otransactionOperationBean = (transactionOperationBean) request.getAttribute("otransactionOperationBeanObj");
|
||||
session.setAttribute("otransactionOperationBeanObj", otransactionOperationBeanObj);
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Assign Cash To Cash-Drawer</legend>
|
||||
<form name="transactionForm" id="transactionForm" method="post" action="">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<center>
|
||||
|
||||
<div id="transaction" style="display:block;">
|
||||
|
||||
<label>Enter Teller ID: </label><input type="text" maxlength="6" name="teller_id" id="teller_id" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" name="" id="" value="Search" onclick="javascript:popup_pacstellers(220, 180, document.transactionForm.teller_id.value);"/>
|
||||
<br><br>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>Denominations</td>
|
||||
<td>Available</td>
|
||||
<td>To Be Transfered</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="NoBorder">
|
||||
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.2000 Note</td>
|
||||
<td><input type="text" readonly name="twothouAvail" id="twothouAvail" value="<%=odeno2000%>" class="avail" style="text-align:right;" /></td>
|
||||
<td><input type="text" name="twothouIN" id="twothouIN" class="tobTransfer" value="0" style="text-align:right;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.500 Note</td>
|
||||
<td><input type="text" readonly name="fivehundredAvail" id="fivehundredAvail" value="<%=odeno500%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="fivehundredIN" id="fivehundredIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.200 Note</td>
|
||||
<td><input type="text" readonly name="twohundredAvail" id="twohundredAvail" value="<%=odeno200%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="twohundredIN" id="twohundredIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.100 Note</td>
|
||||
<td><input type="text" readonly name="hundredAvail" id="hundredAvail" value="<%=odeno100%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="hundredIN" id="hundredIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.50 Note</td>
|
||||
<td><input type="text" readonly name="ponchasAvail" id="ponchasAvail" value="<%=odeno50%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="ponchasIN" id="ponchasIN" class="tobTransfer" value="0" style="text-align:right;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.20 Note</td>
|
||||
<td><input type="text" readonly name="twentyAvail" id="twentyAvail" value="<%=odeno20%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="twentyIN" id="twentyIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.10 Note/Coin</td>
|
||||
<td><input type="text" readonly name="tenAvail" id="tenAvail" value="<%=odeno10%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="tenIN" id="tenIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.5 Note/Coin</td>
|
||||
<td><input type="text" readonly name="fiveAvail" id="fiveAvail" value="<%=odeno5%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="fiveIN" id="fiveIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.2 Note/Coin</td>
|
||||
<td><input type="text" readonly name="twoAvail" id="twoAvail" value="<%=odeno2%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="twoIN" id="twoIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left">Rs.1 Coin</td>
|
||||
<td><input type="text" readonly name="oneAvail" id="oneAvail" value="<%=odeno1%>" class="avail" style="text-align:right;"/></td>
|
||||
<td><input type="text" name="oneIN" id="oneIN" class="tobTransfer" value="0" style="text-align:right;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left"><label>50 Paisa</label></td>
|
||||
<td><input type="text" readonly name="fiftyPaisaAvail" id="fiftyPaisaAvail" class="avail" value="<%=odeno50P%>" style="text-align:right;" ></td>
|
||||
<td><input type="text" name="fiftyPaisaIN" id="fiftyPaisaIN" class="tobTransfer" value="0" style="text-align:right;"></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;" align="left"><label>1 Paisa</label></td>
|
||||
<td><input type="text" readonly name="onePaisaAvail" id="onePaisaAvail" class="avail" value="<%=odeno1P%>" style="text-align:right;" ></td>
|
||||
<td><input type="text" name="onePaisaIN" id="onePaisaIN" class="tobTransfer" value="0" style="text-align:right;"></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background:white;padding-left: 5px;font-weight: bold;" align="left" >Total Amount(INR)</td>
|
||||
<td><input type="text" readonly name="totalAvail" id="totalAvail" style="text-align:right;" /></td>
|
||||
<td><input type="text" readonly name="totalIN" id="totalIN" value="0" style="text-align:right;" /></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table><br><br>
|
||||
|
||||
<center>
|
||||
<input type="submit" value="Submit" name="submit" id="submit">
|
||||
<input type="button" value="Reset" name="reset" id="reset" />
|
||||
</center>
|
||||
</div>
|
||||
</center>
|
||||
</form>
|
||||
</fieldset>
|
||||
<script>
|
||||
var first = $('#twothouAvail').val();
|
||||
var second = $('#fivehundredAvail').val();
|
||||
var third = $('#hundredAvail').val();
|
||||
var fourth = $('#ponchasAvail').val();
|
||||
var fifth = $('#twentyAvail').val();
|
||||
var sixth = $('#tenAvail').val();
|
||||
var seventh = $('#fiveAvail').val();
|
||||
var eighth = $('#twoAvail').val();
|
||||
var ninth = $('#oneAvail').val();
|
||||
var eleventh = $('#fiftyPaisaAvail').val();
|
||||
var twelveth = $('#onePaisaAvail').val();
|
||||
var thirtinth = $('#twohundredAvail').val();
|
||||
|
||||
var AvailsumOnLoad = 0;
|
||||
var DenoINsumOnLoad = 0;
|
||||
|
||||
AvailsumOnLoad = parseInt($('#twothouAvail').val() * 2000) + parseInt($('#fivehundredAvail').val() * 500) + parseInt($('#twohundredAvail').val() * 200) + parseInt($('#hundredAvail').val() * 100)+ parseInt($('#ponchasAvail').val() * 50)+ parseInt($('#twentyAvail').val() * 20)+ parseInt($('#tenAvail').val() * 10)+ parseInt($('#fiveAvail').val() * 5)+ parseInt($('#twoAvail').val() * 2)+ parseInt($('#oneAvail').val() * 1 )+ parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01);
|
||||
$("#totalAvail").val(AvailsumOnLoad);
|
||||
|
||||
var totalDenoAvailable = $("#totalAvail").val();
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#transaction').find(':input.tobTransfer[type="text"]').val('0');
|
||||
});
|
||||
|
||||
$('#transaction').on('keydown',':input.tobTransfer[type="text"]', function(event) {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105)) {
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$('#transaction').on("keyup", ".tobTransfer", function() {
|
||||
var DenoINsumOnChange = 0;
|
||||
DenoINsumOnChange = parseInt($('#twothouIN').val()) * 2000 + parseInt($('#fivehundredIN').val()) * 500 + parseInt($('#twohundredIN').val()) * 200 + parseInt($('#hundredIN').val()) * 100 + parseInt($('#ponchasIN').val()) * 50 + parseInt($('#twentyIN').val()) * 20 + parseInt($('#tenIN').val()) * 10 + parseInt($('#fiveIN').val()) * 5 + parseInt($('#twoIN').val()) * 2 + parseInt($('#oneIN').val())+ parseFloat(parseInt($('#fiftyPaisaIN').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaIN').val()) * 0.01);
|
||||
$("#totalIN").val(DenoINsumOnChange);
|
||||
});
|
||||
|
||||
//for 1 paisa starts
|
||||
$('#transaction').on("keyup", "#onePaisaIN", function() {
|
||||
if(parseInt($("#onePaisaAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt 1 Paisa");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#onePaisaAvail').val(parseInt(twelveth) - parseInt($('#onePaisaIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#onePaisaIN", function() {
|
||||
if(parseInt(twelveth)< parseInt($('#onePaisaIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
//for 50 Paisa starts
|
||||
$('#transaction').on("keyup", "#fiftyPaisaIN", function() {
|
||||
if(parseInt($("#fiftyPaisaAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt 50 Paisa");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#fiftyPaisaAvail').val(parseInt(eleventh) - parseInt($('#fiftyPaisaIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#fiftyPaisaIN", function() {
|
||||
if(parseInt(eleventh)< parseInt($('#fiftyPaisaIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
//for Rs 1 starts
|
||||
$('#transaction').on("keyup", "#oneIN", function() {
|
||||
if(parseInt($("#oneAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.1 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#oneAvail').val(parseInt(ninth) - parseInt($('#oneIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#oneIN", function() {
|
||||
if(parseInt(ninth)< parseInt($('#oneIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 2 starts
|
||||
$('#transaction').on("keyup", "#twoIN", function() {
|
||||
if(parseInt($("#twoAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.2 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#twoAvail').val(parseInt(eighth) - parseInt($('#twoIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#twoIN", function() {
|
||||
if(parseInt(eighth)< parseInt($('#twoIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 5 starts
|
||||
$('#transaction').on("keyup", "#fiveIN", function() {
|
||||
if(parseInt($("#fiveAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.5 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#fiveAvail').val(parseInt(seventh) - parseInt($('#fiveIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#fiveIN", function() {
|
||||
if(parseInt(seventh)< parseInt($('#fiveIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 10 starts
|
||||
$('#transaction').on("keyup", "#tenIN", function() {
|
||||
if(parseInt($("#tenAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.10 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#tenAvail').val(parseInt(sixth) - parseInt($('#tenIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#tenIN", function() {
|
||||
if(parseInt(sixth)< parseInt($('#tenIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 20 starts
|
||||
$('#transaction').on("keyup", "#twentyIN", function() {
|
||||
if(parseInt($("#twentyAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.20 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#twentyAvail').val(parseInt(fifth) - parseInt($('#twentyIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#twentyIN", function() {
|
||||
if(parseInt(fifth)< parseInt($('#twentyIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 50 starts
|
||||
$('#transaction').on("keyup", "#ponchasIN", function() {
|
||||
if(parseInt($("#ponchasAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.50 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#ponchasAvail').val(parseInt(fourth) - parseInt($('#ponchasIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#ponchasIN", function() {
|
||||
if(parseInt(fourth)< parseInt($('#ponchasIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 100 starts
|
||||
$('#transaction').on("keyup", "#hundredIN", function() {
|
||||
if(parseInt($("#hundredAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.100 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#hundredAvail').val(parseInt(third) - parseInt($('#hundredIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#hundredIN", function() {
|
||||
if(parseInt(third)< parseInt($('#hundredIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 200 starts
|
||||
$('#transaction').on("keyup", "#twohundredIN", function() {
|
||||
if(parseInt($("#twohundredAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.200 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#twohundredAvail').val(parseInt(thirtinth) - parseInt($('#twohundredIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#twohundredIN", function() {
|
||||
if(parseInt(thirtinth)< parseInt($('#twohundredIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 500 starts
|
||||
$('#transaction').on("keyup", "#fivehundredIN", function() {
|
||||
if(parseInt($("#fivehundredAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.500 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#fivehundredAvail').val(parseInt(second) - parseInt($('#fivehundredIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#fivehundredIN", function() {
|
||||
if(parseInt(second)< parseInt($('#fivehundredIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
//for Rs 2000 starts
|
||||
$('#transaction').on("keyup", "#twothouIN", function() {
|
||||
if(parseInt($("#twothouAvail").val())<= 0)
|
||||
{
|
||||
alert("Insufficiernt Rs.2000 Notes");
|
||||
$( "#reset" ).click();
|
||||
}
|
||||
else{
|
||||
$('#twothouAvail').val(parseInt(first) - parseInt($('#twothouIN').val()));
|
||||
$("#totalAvail").val(parseInt($('#twothouAvail').val()) * 2000 + parseInt($('#fivehundredAvail').val()) * 500 + parseInt($('#twohundredAvail').val()) * 200 + parseInt($('#hundredAvail').val()) * 100 + parseInt($('#ponchasAvail').val()) * 50 + parseInt($('#twentyAvail').val()) * 20 + parseInt($('#tenAvail').val()) * 10 + parseInt($('#fiveAvail').val()) * 5 + parseInt($('#twoAvail').val()) * 2 + parseInt($('#oneAvail').val()) * 1 + parseFloat(parseInt($('#fiftyPaisaAvail').val()) * 0.50)+ parseFloat(parseInt($('#onePaisaAvail').val()) * 0.01));
|
||||
}
|
||||
});
|
||||
$('#transaction').on("change", "#twothouIN", function() {
|
||||
if(parseInt(first)< parseInt($('#twothouIN').val())){
|
||||
alert("Insufficient Denomination !!!");
|
||||
$('#reset').click();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$( "#reset" ).click(function() {
|
||||
$('#teller_id').val('');
|
||||
$('#transaction').find(':input.tobTransfer[type="text"]').val('0');
|
||||
$("#totalIN").val('0');
|
||||
$('#twothouAvail').val(first);
|
||||
$('#fivehundredAvail').val(second);
|
||||
$('#hundredAvail').val(third);
|
||||
$('#ponchasAvail').val(fourth);
|
||||
$('#twentyAvail').val(fifth);
|
||||
$('#tenAvail').val(sixth);
|
||||
$('#fiveAvail').val(seventh);
|
||||
$('#twoAvail').val(eighth);
|
||||
$('#oneAvail').val(ninth);
|
||||
$('#fiftyPaisaAvail').val(eleventh);
|
||||
$('#onePaisaAvail').val(twelveth);
|
||||
$('#twohundredAvail').val(thirtinth);
|
||||
|
||||
$("#totalAvail").val(totalDenoAvailable);
|
||||
});
|
||||
|
||||
$( "#transactionForm" ).submit(function( event ) {
|
||||
var bad=0;
|
||||
$(':input.tobTransfer[type="text"]').each(function(){
|
||||
if( $.trim($(this).val()) == "0" ) bad++;
|
||||
});
|
||||
|
||||
if ($.trim($('#teller_id').val()) == "" || bad>11 )
|
||||
{
|
||||
alert("!! Please enter Teller ID & Denominations to proceed further !!");
|
||||
event.preventDefault();
|
||||
}else{
|
||||
document.transactionForm.action = '/PacsApplication/AssignToCashDrawerServlet';
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
439
IPKS_Updated/web/web/web/Deposit/Audit_Report.jsp
Normal file
439
IPKS_Updated/web/web/web/Deposit/Audit_Report.jsp
Normal file
@@ -0,0 +1,439 @@
|
||||
<%--
|
||||
Document : Audit_Report
|
||||
Created on : Nov 2, 2021, 5:18:24 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="java.lang.String" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
var e = document.getElementById("reportSelection");
|
||||
//Both From and To date are mandatory
|
||||
// var reports = [1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56];
|
||||
var reports = ["1","2","3","4","5","6","7","8","9","10","11","12"];
|
||||
var fromdate_reports = ["34","38","39","40","57","63"]; //From date not mandatory
|
||||
var todate_reports = ["34","38","39","40","42","57"];//To Date not mandatory
|
||||
var val = e.options[e.selectedIndex].value;
|
||||
|
||||
if (e.options[e.selectedIndex].value == "")
|
||||
{
|
||||
alert("Report Name cannot be empty.");
|
||||
document.forms[0].reportSelection.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((document.forms[0].from_date.value == "" || document.forms[0].to_date.value == "") && reports.includes(val) )
|
||||
{
|
||||
alert("From Date or To Date cannot be empty for this report.");
|
||||
return false;
|
||||
}
|
||||
if (document.forms[0].subpacs_id.value == "" )
|
||||
{
|
||||
alert("Please select Sub-PACS Name.");
|
||||
document.forms[0].subpacs_id.focus();
|
||||
return false;
|
||||
}
|
||||
<%--if (document.forms[0].from_date.value == "" && (e.options[e.selectedIndex].value == "1" || e.options[e.selectedIndex].value == "2" || e.options[e.selectedIndex].value == "7" || e.options[e.selectedIndex].value == "12" || e.options[e.selectedIndex].value == "15" || e.options[e.selectedIndex].value == "16" || e.options[e.selectedIndex].value == "5" || e.options[e.selectedIndex].value == "8" || e.options[e.selectedIndex].value == "9" ))
|
||||
{
|
||||
alert("From Date cannot be empty.");
|
||||
document.forms[0].txn_date.focus();
|
||||
return false;
|
||||
} if (document.forms[0].to_date.value == "" && (e.options[e.selectedIndex].value == "1" || e.options[e.selectedIndex].value == "2" || e.options[e.selectedIndex].value == "7" || e.options[e.selectedIndex].value == "12" || e.options[e.selectedIndex].value == "15" || e.options[e.selectedIndex].value == "16" || e.options[e.selectedIndex].value == "5" || e.options[e.selectedIndex].value == "8" || e.options[e.selectedIndex].value == "9" ))
|
||||
{
|
||||
alert("To Date cannot be empty.");
|
||||
document.forms[0].txn_date.focus();
|
||||
return false;
|
||||
}--%>
|
||||
|
||||
|
||||
var startDate = $('#from_date').val();
|
||||
var endDate = $('#to_date').val();
|
||||
var adata = startDate.split('/');
|
||||
var dd = parseInt(adata[0],10);
|
||||
var mm = parseInt(adata[1],10);
|
||||
var yyyy = parseInt(adata[2],10);
|
||||
var from_date = new Date(yyyy,mm-1,dd);
|
||||
|
||||
adata = endDate.split('/');
|
||||
var dd = parseInt(adata[0],10);
|
||||
var mm = parseInt(adata[1],10);
|
||||
var yyyy = parseInt(adata[2],10);
|
||||
var to_date = new Date(yyyy,mm-1,dd);
|
||||
|
||||
if(Date.parse(from_date) > Date.parse(to_date) && reports.includes(val)){
|
||||
alert("From Date cannot be greater than To Date.");
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (e.options[e.selectedIndex].value) {
|
||||
|
||||
case "1" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/Trial_balance_Mod_abs";
|
||||
document.forms[0].reportName.value = "Trial Balance Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "2" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Trial_Balance_dtl_abs";
|
||||
document.forms[0].reportName.value = "B-Committee Trial Balance Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "3" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/trading_acc_stmt_abs";
|
||||
document.forms[0].reportName.value = "Trading Account Statement Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "4" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_trading_dtl_abs";
|
||||
document.forms[0].reportName.value = "B-Committee Trading Account Statement-Detailed Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "5" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_trading_cons_abs";
|
||||
document.forms[0].reportName.value = "B-Committee Trading Account Statement-Consolidated Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "6" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/profit_loss_abs";
|
||||
document.forms[0].reportName.value = "Profit Loss Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "7" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Profit_Loss_dtl_abs";
|
||||
document.forms[0].reportName.value = "B-Committee Profit Loss-Detailed Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "8" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_profit_loss_cons_abs";
|
||||
document.forms[0].reportName.value = "B-Committee Profit Loss-Consolidated Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "9" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/balance_sheet_abs";
|
||||
document.forms[0].reportName.value = "Balance Sheet Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "10" :
|
||||
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Balance_sheet_dtl_abs";
|
||||
document.forms[0].reportName.value = "B-Committee Balance Sheet-Detailed Report";
|
||||
break;
|
||||
|
||||
case "11" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Balance_sheet_cons_abs";
|
||||
document.forms[0].reportName.value = "B-Committee Balance Sheet-Consolidated Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "12" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/cash_account_abs";
|
||||
document.forms[0].reportName.value = "Cash Account Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "13" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/pl_appropriation";
|
||||
document.forms[0].reportName.value = "Profit & Loss Appropriation Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
default :
|
||||
|
||||
null;
|
||||
}
|
||||
|
||||
if(e.options[e.selectedIndex].value == "19" && ((document.getElementById("userRole").value=="201603000005020")||(document.getElementById("userRole").value=="201603000007020")))
|
||||
{
|
||||
document.forms[0].action = '/PacsApplication/DirectBenifitTransferServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
else{
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#reportSelection').change(function () {
|
||||
$('#dep_prod').hide();
|
||||
$('#fromDate').show();
|
||||
$('#toDate').show();
|
||||
$('#subGLReport').hide();
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case '60':
|
||||
$('#pacs_list').show(500);
|
||||
$('#subPacsName').hide();
|
||||
break;
|
||||
case '61':
|
||||
$('#pacs_list').show(500);
|
||||
$('#subPacsName').hide();
|
||||
break;
|
||||
case '62':
|
||||
$('#pacs_list').show(500);
|
||||
$('#subPacsName').hide();
|
||||
break;
|
||||
case '63':
|
||||
$('#pacs_list').hide();
|
||||
$('#fromDate').hide();
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#dep_prod').hide();
|
||||
$('#fromDate').show();
|
||||
$('#toDate').show();
|
||||
$('#subPacsName').show();
|
||||
$('#pacs_list').hide();
|
||||
break;
|
||||
}
|
||||
})
|
||||
});
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/Audit_Report.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
// to restrict going back
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<title>Audit Report</title>
|
||||
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
String moduleName = new String();
|
||||
moduleName = (String) session.getAttribute("moduleName");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Audit Report</legend>
|
||||
|
||||
<form name="pacsreport" method="post" action="/PacsApplication/ExcelReportServlet">
|
||||
<br>
|
||||
<input type="hidden" name="userRole" id ="userRole" value="<%=userRole%>">
|
||||
<table>
|
||||
<%if (request.getAttribute("error") != null) {%>
|
||||
<tr><td colspan="2" align="center"><%=request.getAttribute("error").toString()%></td></tr>
|
||||
<%}%>
|
||||
|
||||
<tr id="fromDate">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">From Date<font color="red" >*</font>: </td><td><input type="text" style="text-align:center;" id="from_date" name="from_date" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].from_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr id="toDate">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">To Date<font color="red" >*</font>: </td><td><input type="text" style="text-align:center;" id="to_date" name="to_date" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].to_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name<font color="red" >*</font>: </td>
|
||||
<td> <select id="reportSelection" name="reportSelection" >
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201603000005020")) ||(userRole.equalsIgnoreCase("201603000007020")) ) {%>
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<%} else if (userRole.equalsIgnoreCase("201606000004041") && moduleName.equalsIgnoreCase("Special") || moduleName.equalsIgnoreCase("SpecialBothDep")) {%>
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<%} else if ((userRole.equalsIgnoreCase("201603000004024"))) {%>
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<%} else if ((userRole.equalsIgnoreCase("201603000008020"))) {%>
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<%}else{%>
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<option value="1">Trial Balance Report</option>
|
||||
<option value="2">B-Committee Trial Balance Report</option>
|
||||
<option value="3">Trading Account Statement Report</option>
|
||||
<option value="4">B-Committee Trading Account Statement-Detailed Report</option>
|
||||
<option value="5">B-Committee Trading Account Statement-Consolidated Report</option>
|
||||
<option value="6">Profit Loss Report</option>
|
||||
<option value="7">B-Committee Profit Loss-Detailed Report</option>
|
||||
<option value="8">B-Committee Profit Loss-Consolidated Report</option>
|
||||
<option value="9">Balance Sheet Report</option>
|
||||
<option value="10">B-Committee Balance Sheet-Detailed Report</option>
|
||||
<option value="11">B-Committee Balance Sheet-Consolidated Report</option>
|
||||
<option value="12">Cash Account Report</option>
|
||||
<option value="13">Profit & Loss Appropriation Report</option>
|
||||
<%}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
|
||||
<tr id="subPacsName">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Sub-PACS Name<font color="red" >*</font>: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
//connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
</table><br><br><br><br>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label><font color="red" >*</font> marked fields are mandatory.</label></td></tr>
|
||||
<center>
|
||||
|
||||
<input type="button" value="Fetch Report" onclick="javascript:downloadFiles();">
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
326
IPKS_Updated/web/web/web/Deposit/BCommitteeReport.jsp
Normal file
326
IPKS_Updated/web/web/web/Deposit/BCommitteeReport.jsp
Normal file
@@ -0,0 +1,326 @@
|
||||
<%--
|
||||
Document : BCOMT
|
||||
Created on : 23112018, 9:18:24 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="java.lang.String" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
var e = document.getElementById("reportSelection");
|
||||
|
||||
if (e.options[e.selectedIndex].value == "")
|
||||
{
|
||||
alert("Report Name cannot be empty.");
|
||||
document.forms[0].reportSelection.focus();
|
||||
return false;
|
||||
}
|
||||
//if (document.forms[0].from_date.value == "" && (e.options[e.selectedIndex].value == "1" || e.options[e.selectedIndex].value == "2" || e.options[e.selectedIndex].value == "12" || e.options[e.selectedIndex].value == "15" || e.options[e.selectedIndex].value == "16"))
|
||||
if (document.forms[0].from_date.value == "" )
|
||||
{
|
||||
alert("From Date cannot be empty.");
|
||||
document.forms[0].from_date.focus();
|
||||
return false;
|
||||
}
|
||||
//if (document.forms[0].to_date.value == "" && (e.options[e.selectedIndex].value == "1" || e.options[e.selectedIndex].value == "2" || e.options[e.selectedIndex].value == "12" || e.options[e.selectedIndex].value == "15" || e.options[e.selectedIndex].value == "16"))
|
||||
if (document.forms[0].to_date.value == "" )
|
||||
{
|
||||
alert("To Date cannot be empty.");
|
||||
document.forms[0].to_date.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var startDate = $('#from_date').val();
|
||||
var endDate = $('#to_date').val();
|
||||
var adata = startDate.split('/');
|
||||
var dd = parseInt(adata[0],10);
|
||||
var mm = parseInt(adata[1],10);
|
||||
var yyyy = parseInt(adata[2],10);
|
||||
var from_date = new Date(yyyy,mm-1,dd);
|
||||
|
||||
adata = endDate.split('/');
|
||||
var dd = parseInt(adata[0],10);
|
||||
var mm = parseInt(adata[1],10);
|
||||
var yyyy = parseInt(adata[2],10);
|
||||
var to_date = new Date(yyyy,mm-1,dd);
|
||||
|
||||
if(Date.parse(from_date) > Date.parse(to_date)){
|
||||
alert("From Date cannot be greater than To Date");
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (e.options[e.selectedIndex].value) {
|
||||
|
||||
case "1" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Balance_sheet_dtl";
|
||||
document.forms[0].reportName.value = "BALANCE SHEET DETAIL REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "2" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Balance_sheet_cons";
|
||||
document.forms[0].reportName.value = "BALANCE SHEET CONSOLIDATED REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
|
||||
case "3" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Profit_Loss_dtl";
|
||||
document.forms[0].reportName.value = "PROFIT LOSS DETAILED REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "4" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_profit_loss_cons";
|
||||
document.forms[0].reportName.value = "PROFIT LOSS CONSOLIDATED REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "5" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_trading_dtl";
|
||||
document.forms[0].reportName.value = "TRADING DETAILED REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "6" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_trading_cons";
|
||||
document.forms[0].reportName.value = "TRADING CONSOLIDATED REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "7" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/B_committee_Trial_Balance_dtl";
|
||||
document.forms[0].reportName.value = "TRIAL BALANCE REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
default :
|
||||
|
||||
null;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/BCommitteeReport.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<title>B-Committee Report</title>
|
||||
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">B-Committee Report</legend>
|
||||
|
||||
<form name="pacsreport" method="post" action="/PacsApplication/ExcelReportServlet">
|
||||
<br>
|
||||
<input type="hidden" name="userRole" id ="userRole" value="<%=userRole%>">
|
||||
<table>
|
||||
<%if (request.getAttribute("error") != null) {%>
|
||||
<tr><td colspan="2" align="center"><%=request.getAttribute("error").toString()%></td></tr>
|
||||
<%}%>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">From Date <font color="red" >*</font>: </td><td><input type="text" style="text-align:center;" id="from_date" name="from_date" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].from_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td></tr><tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">To Date <font color="red" >*</font>: </td><td><input type="text" style="text-align:center;" id="to_date" name="to_date" maxlength="11" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].to_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td></tr>
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name <font color="red" >*</font>: </td>
|
||||
<td> <select id="reportSelection" name="reportSelection" >
|
||||
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<option value="1">Balance Sheet Report - Detailed</option>
|
||||
<option value="2">Balance Sheet Report - Consolidated</option>
|
||||
<option value="3">Profit Loss Report - Detailed</option>
|
||||
<option value="4">Profit Loss Report - Consolidated</option>
|
||||
<option value="5">Trading Report - Detailed</option>
|
||||
<option value="6">Trading Report - Consolidated</option>
|
||||
<option value="7">TRIAL BALANCE REPORT</option>
|
||||
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
|
||||
</table><br><br><br><br>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label><font color="red" >*</font> marked fields are mandatory.</label></td></tr>
|
||||
<center>
|
||||
<input type="button" value="Fetch Report" onclick="javascript:downloadFiles();">
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
174
IPKS_Updated/web/web/web/Deposit/BGLAccountCreation.jsp
Normal file
174
IPKS_Updated/web/web/web/Deposit/BGLAccountCreation.jsp
Normal file
@@ -0,0 +1,174 @@
|
||||
<%--
|
||||
Document : BGLAccountCreation
|
||||
Created on : May 13, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>SUB-GL Account Creation</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
document.getElementById("bglCode").readOnly = false;
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/BGLAccountCreation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_Bgl(width, height, Bgl) {
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "BGLAccountCreation.jsp";
|
||||
var lovKey="BGLSrch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?Bgl=' + Bgl + '&screenName=' + screenName+'&lovKey='+lovKey, 'BGLSrch', attr);
|
||||
popWin.focus();
|
||||
document.getElementById("bglCode").readOnly = true;
|
||||
|
||||
}
|
||||
function submitform(){
|
||||
|
||||
if(validateForm()){
|
||||
document.BGLAccountCreation.action = '/PacsApplication/BGLAccountCreationServlet';
|
||||
document.BGLAccountCreation.submit();
|
||||
}
|
||||
}
|
||||
function validateForm()
|
||||
{
|
||||
if($('#bglCode').val() == "")
|
||||
{
|
||||
alert("BGL Code cannot be blank.");
|
||||
BGLAccountCreation.bglCode.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#subGlName').val() == "")
|
||||
{
|
||||
alert("Sub GL Code cannot be blank.");
|
||||
BGLAccountCreation.subGlName.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message1");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">SUB-GL Account Creation</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="BGLAccountCreation" id="BGLAccountCreation" action="" method="post">
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>BGL Code<font color="red" >*</font>:</td>
|
||||
<td><input type="text" size="30" name="bglCode" id="bglCode" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" value="Search" onclick="javascript:popup_Bgl(500,300,$('#bglCode').val());" /></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>BGL Name:</td>
|
||||
<td><input type="text" size="50" name="bglName" id="bglName" readonly="true" Value="" /></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Sub GL Name<font color="red" >*</font>:</td>
|
||||
<td><input type="text" size="50" name="subGlName" id="subGlName" Value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="hidden" name="bglProdId" id="bglProdId" Value="" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform();" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
557
IPKS_Updated/web/web/web/Deposit/BatchAuthorisation.jsp
Normal file
557
IPKS_Updated/web/web/web/Deposit/BatchAuthorisation.jsp
Normal file
@@ -0,0 +1,557 @@
|
||||
<%--
|
||||
Document : BatchAuthorisation
|
||||
Created on : Jul 23, 2018, 5:40:26 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.BatchProcessingBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%@page import="java.lang.Math" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Batch Transaction</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<%
|
||||
String handle_idVal = "";
|
||||
Object handle_id = request.getAttribute("handle_id");
|
||||
if (handle_id != null) {
|
||||
handle_idVal = handle_id.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/BatchAuthorisation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function checkboxTrue(i) {
|
||||
|
||||
if (document.getElementById("chckbox" + i).checked == true) {
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
|
||||
} else {
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
function executeform(batchForm) {
|
||||
if (document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the batch ID to search");
|
||||
return false;
|
||||
}
|
||||
document.getElementById("handle_id").value = 'execute';
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
}
|
||||
|
||||
function rejectBatchform(batchForm) {
|
||||
if (document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the batch ID to search");
|
||||
return false;
|
||||
}
|
||||
document.getElementById("handle_id").value = 'reject';
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
}
|
||||
|
||||
function getBatchDetails()
|
||||
{
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function submitform(batchForm) {
|
||||
|
||||
//alert(document.getElementById("handle_id").value);
|
||||
|
||||
if (validate()) {
|
||||
if (document.getElementById("total").value == "0") {
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
} else {
|
||||
alert("Total Debit should match total credit. Total Amount should be 0.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function validate() {
|
||||
var counter = $("#rowCounter").val();
|
||||
//var i = 1;
|
||||
for (i = 1; i <= counter; i++) {
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/;
|
||||
|
||||
try {
|
||||
if (document.getElementById("accNo" + i).value == "")
|
||||
{
|
||||
alert("Account Number cannot be empty.");
|
||||
document.getElementById("accNo" + i).value = "";
|
||||
document.getElementById("accNo" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnAmt" + i).value == "")
|
||||
{
|
||||
alert("Transaction Amount cannot be empty.");
|
||||
document.getElementById("txnAmt" + i).value = "";
|
||||
document.getElementById("txnAmt" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!re.test(document.getElementById("accNo" + i).value))
|
||||
{
|
||||
alert("Account Number could only contain numbers.");
|
||||
document.getElementById("accNo" + i).value = "";
|
||||
document.getElementById("accNo" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (!re.test(document.getElementById("txnAmt" + i).value))
|
||||
{
|
||||
alert("Transaction amount could only contain numbers.");
|
||||
document.getElementById("txnAmt" + i).value = "";
|
||||
document.getElementById("txnAmt" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd" + i).value == "")
|
||||
{
|
||||
alert("Transaction indicator should be selected.");
|
||||
document.getElementById("txnInd" + i).value = "CR";
|
||||
document.getElementById("txnInd" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if ((document.getElementById("txnNarration" + i).value.trim()) == "")
|
||||
{
|
||||
alert("Transaction Narration should be filled.");
|
||||
document.getElementById("txnNarration" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("searched").value != "1")
|
||||
{
|
||||
alert("Kindly Search and select the A/c Number.")
|
||||
document.getElementById("accNo" + i).focus;
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd" + i).value == "DR" && document.getElementById("accType" + i).value == "L")
|
||||
{
|
||||
alert("Loan cannot be debited from batch transaction.");
|
||||
document.getElementById("txnInd" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function SearchAccount(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
// var accType = document.getElementById("accType" + textIndex).value;
|
||||
// var accNo = document.getElementById("accNo" + textIndex).value;
|
||||
var screenName = "BatchTransaction.jsp";
|
||||
var lovKey = "AccountSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?screenName=' + screenName + '&lovKey=' + lovKey + '&accType=' + accType + '&accNo=' + accNo + '&textIndex=' + textIndex, 'AccountSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
<%--added by rajdip 23/07/2018--%>
|
||||
function searchBatchId(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
|
||||
var screenName = "BatchAuthorisation.jsp";
|
||||
var lovKey = "BatchSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?screenName=' + screenName + '&lovKey=' + lovKey + '&batchId=' + textIndex, 'BatchSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function setVisibility() {
|
||||
//document.getElementById("searchBatch").style.visibility='visible';
|
||||
$('select#batchOption').change();
|
||||
}
|
||||
|
||||
function textChanged() {
|
||||
document.getElementById("searched").value = "0";
|
||||
//alert("IN");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#create').hide();
|
||||
$('#handle_id').val();
|
||||
$('select#batchOption').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch (shouldEnable)
|
||||
{
|
||||
case 'C':
|
||||
$('#create').show(500);
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val('create');
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
$('#searchBatch').show();
|
||||
$('#create').hide();
|
||||
$('#handle_id').val('search');
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#create').hide();
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val();
|
||||
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function (event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg = "";
|
||||
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
|
||||
Object alBatchProcessingBeanObj = request.getAttribute("alBatchProcessingBean");
|
||||
ArrayList<BatchProcessingBean> alBatchProcessingBean = new ArrayList<BatchProcessingBean>();
|
||||
BatchProcessingBean oBatchProcessingBean = new BatchProcessingBean();
|
||||
if (alBatchProcessingBeanObj != null) {
|
||||
alBatchProcessingBean = (ArrayList<BatchProcessingBean>) request.getAttribute("alBatchProcessingBean");
|
||||
|
||||
}
|
||||
error = request.getAttribute("batchID");
|
||||
String batchID = "";
|
||||
if (request.getAttribute("batchID") != null) {
|
||||
batchID = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
%>
|
||||
</head>
|
||||
<body onload="javascript:<%if (alBatchProcessingBeanObj != null) {%>setVisibility();<%}%>noBack();">
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Batch Transaction</legend>
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<form action="" method="post" name="batchForm" id="batchForm">
|
||||
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<div id="searchBatch" style="display:block">
|
||||
<label>Batch ID: </label>
|
||||
<input type="text" name="batchID" id="batchID" value="<%=blankNull(batchID)%>" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
|
||||
<input type="button" name="searchBatch" id="searchBatch" value="Search" onclick="javascript:searchBatchId(750, 250, document.batchForm.batchID.value);"/><%--submitform(batchForm)"/>--%>
|
||||
<br><br>
|
||||
|
||||
<%if (handle_idVal.equalsIgnoreCase("S")) {
|
||||
double crTotal = 0;
|
||||
double drTotal = 0;
|
||||
double total = 0;
|
||||
//DecimalFormat decim = new DecimalFormat("#.00");
|
||||
%>
|
||||
|
||||
<div align="center">
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
|
||||
<td>Account Type</td>
|
||||
<td>Account Number</td>
|
||||
<td>Account Name</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Narration</td>
|
||||
<td>Transaction Status</td>
|
||||
<td>Transaction Ref No</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
for (int k = 0; k < alBatchProcessingBean.size(); k++) {
|
||||
oBatchProcessingBean = alBatchProcessingBean.get(k);
|
||||
if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {
|
||||
drTotal = drTotal + Double.parseDouble(oBatchProcessingBean.getTxnAmt());
|
||||
} else if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {
|
||||
crTotal = crTotal + Double.parseDouble(oBatchProcessingBean.getTxnAmt());
|
||||
}
|
||||
%>
|
||||
<tr class="tRow">
|
||||
|
||||
<td>
|
||||
<select disabled style="width: 100px" name="accType<%=k%>" id="accType<%=k%>" onchange="javascript:resetRow(<%=count%>)">
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("S")) {%>selected <%}%> value="S">Savings/CA</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("G")) {%>selected <%}%> value="G">GL</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("R")) {%>selected <%}%> value="R">Recurring Deposit</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("L")) {%>selected <%}%> value="L">Loan</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly style="width: 120px" name="accNo<%=k%>" id="accNo<%=k%>" value="<%=oBatchProcessingBean.getAccNo()%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/> </td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="accName<%=k%>" id="accName<%=k%>" size="30" value="<%=oBatchProcessingBean.getAccName()%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/> </td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="txnAmt<%=k%>" id="txnAmt<%=k%>" size="15" value="<%=oBatchProcessingBean.getTxnAmt()%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46' onkeyup="javascript:calcAmt()"/>
|
||||
</td>
|
||||
<td>
|
||||
<select disabled style="width: 150px" name="txnInd<%=k%>" id="txnInd<%=k%>" onchange="javascript:calcAmt();">
|
||||
<option <%if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {%>selected <%}%> value="CR">Credit</option>
|
||||
<option <%if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {%>selected <%}%> value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnNarrationTwo<%=k%>" id="txnNarrationTwo<%=k%>" value="<%=oBatchProcessingBean.getNarration()%>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnStatus<%=k%>" id="txnStatus<%=k%>" value="<%=oBatchProcessingBean.getTxnStatus()%>" /> </td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnRefNo<%=k%>" id="txnRefNo<%=k%>" value="<%=oBatchProcessingBean.getTxnRefNo()%>" /> </td>
|
||||
</tr>
|
||||
<%}
|
||||
drTotal = Math.round(drTotal * 100.0) / 100.0;
|
||||
crTotal = Math.round(crTotal * 100.0) / 100.0;
|
||||
total = crTotal - drTotal;
|
||||
total = Math.round(total * 100.0) / 100.0;
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><label>Credit Total</label></td>
|
||||
<td align="center"><label>Debit Total</label></td>
|
||||
<td align="center"><label>Total</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><input type="text" id="crTotal" name="crTotal" value="<%=crTotal%>" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="drTotal" name="drTotal" value="<%=drTotal%>" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="total" name="total" value="<%=total%>" readonly style="font:bold"/></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td><input type="button" value="Execute" onclick="javascript:executeform(batchForm)"></td>
|
||||
<td><input type="button" value="Reject Batch" onclick="javascript:rejectBatchform(batchForm);" /></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<%}%>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="search" />
|
||||
<input type="hidden" name="searched" id="searched" />
|
||||
</form>
|
||||
|
||||
|
||||
<br><br>
|
||||
|
||||
<script type="text/javascript">
|
||||
var x = 1;
|
||||
$("#addRow").click(function () {
|
||||
if (!validate()) {
|
||||
alert('Please fillup one row at a time');
|
||||
} else {
|
||||
document.getElementById("searched").value = "0";
|
||||
x = x + 1;
|
||||
$("#all_rowsAdded").val(x);
|
||||
var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#batchData tr:last').after('<tr class="tRow"> <td><input type="checkbox" name="chckbox' + x + '" id="chckbox' + x + '" onclick="checkboxTrue(' + x + ');" /></td> <td> <select style="width: 100px" name="accType' + x + '" id="accType' + x + '" onchange="javascript:resetRow(' + x + ')"> <option selected value="S">Savings/CA</option> <option value="R">Recurring Deposit</option> <option value="G">GL</option> <option value="L">Loan</option> </select> </td> <td> <input type="text" style="width: 120px" name="accNo' + x + '" id="accNo' + x + '"/> <input type="button" style="width: 70px" name="search' + x + '" id="search' + x + '" value="Search" onclick="javascript:SearchAccount(550,240,' + x + ');" /></td> <td> <input type="text" name="txnAmt' + x + '" id="txnAmt' + x + '" onkeypress="return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46" onkeyup="javascript:calcAmt()"/> </td> <td> <select style="width: 150px" name="txnInd' + x + '" id="txnInd' + x + '" onchange="javascript:calcAmt();"> <option value="CR" selected>Credit</option> <option value="DR">Debit</option> </select> </td><td> <input type="text" name="txnNarration' + x + '" id="txnNarration' + x + '"/> </td></tr>');
|
||||
|
||||
$("#rowCounter").val(counter);
|
||||
counter = $("#rowCounterDeleteCreate").val();
|
||||
counter++;
|
||||
$("#rowCounterDeleteCreate").val(counter);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#deleteRow").click(function () {
|
||||
|
||||
var len = ($("#batchData tr").length) - 1;
|
||||
var counter = $("#rowCounterDeleteCreate").val();
|
||||
var chkboxCounter = $("#chkboxCounter").val();
|
||||
var counterDelete = counter - chkboxCounter;
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows cannot be deleted");
|
||||
} else {
|
||||
if (len == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
$("#rowCounterDeleteCreate").val(counterDelete);
|
||||
|
||||
chkboxCounter = 0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
calcAmt();
|
||||
if (isNaN(document.getElementById("grandTotal").value)) {
|
||||
document.getElementById("grandTotal").value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function resetRow(i) {
|
||||
document.getElementById("accNo" + i).value = "";
|
||||
document.getElementById("txnAmt" + i).value = "";
|
||||
document.getElementById("txnInd" + i).value = "CR";
|
||||
}
|
||||
|
||||
function calcAmt() {
|
||||
var counter = $("#rowCounter").val();
|
||||
var crTotal = parseFloat(0);
|
||||
var drTotal = parseFloat(0);
|
||||
var total = parseFloat(0);
|
||||
//var i = 1;
|
||||
for (i = 1; i <= counter; i++) {
|
||||
try {
|
||||
if (document.getElementById("txnInd" + i).value == "CR")
|
||||
//crTotal = crTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
crTotal = parseFloat((crTotal + parseFloat(parseFloat(document.getElementById("txnAmt" + i).value).toFixed(2))).toFixed(2));
|
||||
else if (document.getElementById("txnInd" + i).value == "DR")
|
||||
//drTotal = drTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
drTotal = parseFloat((drTotal + parseFloat(parseFloat(document.getElementById("txnAmt" + i).value).toFixed(2))).toFixed(2));
|
||||
} catch (err) {
|
||||
total = 0;
|
||||
}
|
||||
}
|
||||
if (isNaN(crTotal)) {
|
||||
crTotal = parseFloat(0);
|
||||
}
|
||||
if (isNaN(drTotal)) {
|
||||
drTotal = parseFloat(0);
|
||||
}
|
||||
//total = crTotal - drTotal;
|
||||
total = parseFloat((crTotal - drTotal).toFixed(2));
|
||||
document.getElementById("crTotal").value = crTotal;
|
||||
document.getElementById("drTotal").value = drTotal;
|
||||
document.getElementById("total").value = total;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
635
IPKS_Updated/web/web/web/Deposit/BatchTransaction.jsp
Normal file
635
IPKS_Updated/web/web/web/Deposit/BatchTransaction.jsp
Normal file
@@ -0,0 +1,635 @@
|
||||
<%--
|
||||
Document : BatchTransaction
|
||||
Created on : Jan 16, 2017, 3:21:24 PM
|
||||
Author : 594267
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.BatchProcessingBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%@page import="java.lang.Math" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Batch Transaction</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<%
|
||||
String handle_idVal = "";
|
||||
Object handle_id = request.getAttribute("handle_id");
|
||||
if (handle_id != null) {
|
||||
handle_idVal = handle_id.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/BatchTransaction.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function checkboxTrue(i) {
|
||||
|
||||
if (document.getElementById("chckbox" + i).checked == true) {
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
|
||||
} else {
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
function executeform(batchForm) {
|
||||
if (document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the batch ID to search");
|
||||
return false;
|
||||
}
|
||||
document.getElementById("handle_id").value = 'execute';
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getBatchDetails()
|
||||
{
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function submitform(batchForm) {
|
||||
|
||||
//alert(document.getElementById("handle_id").value);
|
||||
|
||||
if (validate()) {
|
||||
if (document.getElementById("total").value == "0") {
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
} else {
|
||||
alert("Total Debit should match total credit. Total Amount should be 0.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function validate() {
|
||||
var counter = $("#rowCounter").val();
|
||||
//var i = 1;
|
||||
for (i = 1; i <= counter; i++) {
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/;
|
||||
|
||||
try {
|
||||
if (document.getElementById("accNo" + i).value == "")
|
||||
{
|
||||
alert("Account Number cannot be empty.");
|
||||
document.getElementById("accNo" + i).value = "";
|
||||
document.getElementById("accNo" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnAmt" + i).value == "")
|
||||
{
|
||||
alert("Transaction Amount cannot be empty.");
|
||||
document.getElementById("txnAmt" + i).value = "";
|
||||
document.getElementById("txnAmt" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!re.test(document.getElementById("accNo" + i).value))
|
||||
{
|
||||
alert("Account Number could only contain numbers.");
|
||||
document.getElementById("accNo" + i).value = "";
|
||||
document.getElementById("accNo" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (!re.test(document.getElementById("txnAmt" + i).value))
|
||||
{
|
||||
alert("Transaction amount could only contain numbers.");
|
||||
document.getElementById("txnAmt" + i).value = "";
|
||||
document.getElementById("txnAmt" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd" + i).value == "")
|
||||
{
|
||||
alert("Transaction indicator should be selected.");
|
||||
document.getElementById("txnInd" + i).value = "CR";
|
||||
document.getElementById("txnInd" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if ((document.getElementById("txnNarration" + i).value.trim()) == "")
|
||||
{
|
||||
alert("Transaction Narration should be filled.");
|
||||
document.getElementById("txnNarration" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("searched").value != "1")
|
||||
{
|
||||
alert("Kindly Search and select the A/c Number.")
|
||||
document.getElementById("accNo" + i).focus;
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd" + i).value == "DR" && document.getElementById("accType" + i).value == "L")
|
||||
{
|
||||
alert("Loan cannot be debited from batch transaction.");
|
||||
document.getElementById("txnInd" + i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function SearchAccount(width, height, textIndex)
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
//var accType = document.getElementById("accType" + textIndex).value;
|
||||
//var accNo = document.getElementById("accNo" + textIndex).value;
|
||||
var screenName = "BatchTransaction.jsp";
|
||||
var lovKey = "AccountSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?screenName=' + screenName + '&lovKey=' + lovKey + '&accType=' + accType + '&accNo=' + accNo + '&textIndex=' + textIndex, 'AccountSearch', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
<%--added by rajdip 23/07/2018--%>
|
||||
function searchBatchId(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
|
||||
var screenName = "BatchTransaction.jsp";
|
||||
var lovKey = "BatchSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?screenName=' + screenName + '&lovKey=' + lovKey + '&batchId=' + textIndex, 'BatchSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function setVisibility() {
|
||||
//document.getElementById("searchBatch").style.visibility='visible';
|
||||
$('select#batchOption').change();
|
||||
}
|
||||
|
||||
function textChanged() {
|
||||
document.getElementById("searched").value = "0";
|
||||
//alert("IN");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#create').hide();
|
||||
$('#handle_id').val();
|
||||
$('select#batchOption').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch (shouldEnable)
|
||||
{
|
||||
case 'C':
|
||||
$('#create').show(500);
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val('create');
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
$('#searchBatch').show();
|
||||
$('#create').hide();
|
||||
$('#handle_id').val('search');
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#create').hide();
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val();
|
||||
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function (event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg = "";
|
||||
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
|
||||
Object alBatchProcessingBeanObj = request.getAttribute("alBatchProcessingBean");
|
||||
ArrayList<BatchProcessingBean> alBatchProcessingBean = new ArrayList<BatchProcessingBean>();
|
||||
BatchProcessingBean oBatchProcessingBean = new BatchProcessingBean();
|
||||
if (alBatchProcessingBeanObj != null) {
|
||||
alBatchProcessingBean = (ArrayList<BatchProcessingBean>) request.getAttribute("alBatchProcessingBean");
|
||||
|
||||
}
|
||||
error = request.getAttribute("batchID");
|
||||
String batchID = "";
|
||||
if (request.getAttribute("batchID") != null) {
|
||||
batchID = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
%>
|
||||
</head>
|
||||
<body onload="javascript:<%if (alBatchProcessingBeanObj != null) {%>setVisibility();<%}%>noBack();">
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Batch Processing</legend>
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<label>Select Operation : </label>
|
||||
<select id="batchOption" name="batchOption">
|
||||
<option value="" selected >--Select--</option>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("C")) {%> selected <%}%> value="C">Create</option>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("S")) {%> selected <%}%> value="S">Search</option>
|
||||
|
||||
</select>
|
||||
</center>
|
||||
|
||||
|
||||
<form action="" method="post" name="batchForm" id="batchForm">
|
||||
|
||||
<div id="create" name="create">
|
||||
<br>
|
||||
|
||||
|
||||
<div align="center">
|
||||
<table id="batchData" name="batchData" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Account Type</td>
|
||||
<td>Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Narration</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="tRow">
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td>
|
||||
<select style="width: 100px" name="accType<%=count%>" id="accType<%=count%>" onchange="javascript:resetRow(<%=count%>)">
|
||||
<option selected value="S">Savings/CA</option>
|
||||
<option value="R">Recurring Deposit</option>
|
||||
<option value="G">GL</option>
|
||||
<option value="L">Loan</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" style="width: 120px" name="accNo<%=count%>" id="accNo<%=count%>" onkeyup="textChanged()" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" style="width: 70px" name="search<%=count%>" id="search<%=count%>" value="Search" onclick="javascript:SearchAccount(550, 240,<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" name="txnAmt<%=count%>" id="txnAmt<%=count%>" onkeypress='return event.charCode >= 46 && event.charCode <= 57' onfocusout="javascript:checkDec(<%=count%>)" <%--onkeyup="javascript:calcAmt()"--%>/>
|
||||
</td>
|
||||
<td>
|
||||
<select style="width: 150px" name="txnInd<%=count%>" id="txnInd<%=count%>" onchange="javascript:calcAmt();">
|
||||
<option value="CR" selected>Credit</option>
|
||||
<option value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text" name="txnNarration<%=count%>" id="txnNarration<%=count%>" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><label>Credit Total</label></td>
|
||||
<td align="center"><label>Debit Total</label></td>
|
||||
<td align="center"><label>Total</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><input type="text" id="crTotal" name="crTotal" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="drTotal" name="drTotal" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="total" name="total" readonly style="font:bold"/></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td ><input type="button" id="addRow" value="Add Row"/></td>
|
||||
<td><input type="button" id="deleteRow" value="Delete Row"/></td>
|
||||
<td><input type="button" value="Submit" onclick="javascript:submitform(batchForm)"></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="rowCounterDeleteCreate" id="rowCounterDeleteCreate" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
<input type="hidden" name="all_rowsAdded" id="all_rowsAdded" value="1">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<div id="searchBatch" style="display:none">
|
||||
<label>Batch ID: </label>
|
||||
<input type="text" name="batchID" id="batchID" value="<%=blankNull(batchID)%>" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
|
||||
<input type="button" name="searchBatch" id="searchBatch" value="Search" onclick="javascript:searchBatchId(750, 250, document.batchForm.batchID.value);"/><%--submitform(batchForm)"/>--%>
|
||||
<br><br>
|
||||
|
||||
<%if (handle_idVal.equalsIgnoreCase("S")) {
|
||||
double crTotal = 0;
|
||||
double drTotal = 0;
|
||||
double total = 0;
|
||||
%>
|
||||
|
||||
<div align="center">
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
|
||||
<td>Account Type</td>
|
||||
<td>Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Narration</td>
|
||||
<td>Transaction Status</td>
|
||||
<td>Transaction Ref No</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
for (int k = 0; k < alBatchProcessingBean.size(); k++) {
|
||||
oBatchProcessingBean = alBatchProcessingBean.get(k);
|
||||
if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {
|
||||
drTotal = drTotal + Double.parseDouble(oBatchProcessingBean.getTxnAmt());
|
||||
} else if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {
|
||||
crTotal = crTotal + Double.parseDouble(oBatchProcessingBean.getTxnAmt());
|
||||
}
|
||||
%>
|
||||
<tr class="tRow">
|
||||
|
||||
<td>
|
||||
<select disabled style="width: 100px" name="accType<%=k%>" id="accType<%=k%>" onchange="javascript:resetRow(<%=count%>)">
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("S")) {%>selected <%}%> value="S">Savings/CA</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("G")) {%>selected <%}%> value="G">GL</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("R")) {%>selected <%}%> value="R">Recurring Deposit</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("L")) {%>selected <%}%> value="L">Loan</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly style="width: 120px" name="accNo<%=k%>" id="accNo<%=k%>" value="<%=oBatchProcessingBean.getAccNo()%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/> </td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="txnAmt<%=k%>" id="txnAmt<%=k%>" value="<%=oBatchProcessingBean.getTxnAmt()%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57 && event.keyCode == 46' onkeyup="javascript:calcAmt()"/>
|
||||
</td>
|
||||
<td>
|
||||
<select disabled style="width: 150px" name="txnInd<%=k%>" id="txnInd<%=k%>" onchange="javascript:calcAmt();">
|
||||
<option <%if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {%>selected <%}%> value="CR">Credit</option>
|
||||
<option <%if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {%>selected <%}%> value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnNarrationTwo<%=k%>" id="txnNarrationTwo<%=k%>" value="<%=oBatchProcessingBean.getNarration()%>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnStatus<%=k%>" id="txnStatus<%=k%>" value="<%=oBatchProcessingBean.getTxnStatus()%>" /> </td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnRefNo<%=k%>" id="txnRefNo<%=k%>" value="<%=oBatchProcessingBean.getTxnRefNo()%>" /> </td>
|
||||
</tr>
|
||||
<%}
|
||||
drTotal = Math.round(drTotal * 100.0) / 100.0;
|
||||
crTotal = Math.round(crTotal * 100.0) / 100.0;
|
||||
total = crTotal - drTotal;
|
||||
total = Math.round(total * 100.0) / 100.0;
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><label>Credit Total</label></td>
|
||||
<td align="center"><label>Debit Total</label></td>
|
||||
<td align="center"><label>Total</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><input type="text" id="crTotal" name="crTotal" value="<%=crTotal%>" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="drTotal" name="drTotal" value="<%=drTotal%>" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="total" name="total" value="<%=total%>" readonly style="font:bold"/></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<%--<td><input type="button" value="Execute" onclick="javascript:executeform(batchForm)"></td>--%>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<%}%>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="" />
|
||||
<input type="hidden" name="searched" id="searched" />
|
||||
</form>
|
||||
|
||||
|
||||
<br><br>
|
||||
|
||||
<script type="text/javascript">
|
||||
var x = 1;
|
||||
$("#addRow").click(function () {
|
||||
if (!validate()) {
|
||||
alert('Please fillup one row at a time.');
|
||||
} else {
|
||||
document.getElementById("searched").value = "0";
|
||||
x = x + 1;
|
||||
$("#all_rowsAdded").val(x);
|
||||
var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#batchData tr:last').after('<tr class="tRow"> <td><input type="checkbox" name="chckbox' + x + '" id="chckbox' + x + '" onclick="checkboxTrue(' + x + ');" /></td> <td> <select style="width: 100px" name="accType' + x + '" id="accType' + x + '" onchange="javascript:resetRow(' + x + ')"> <option selected value="S">Savings/CA</option> <option value="R">Recurring Deposit</option> <option value="G">GL</option> <option value="L">Loan</option> </select> </td> <td> <input type="text" style="width: 120px" name="accNo' + x + '" id="accNo' + x + '"/> <input type="button" style="width: 70px" name="search' + x + '" id="search' + x + '" value="Search" onclick="javascript:SearchAccount(550,240,' + x + ');" /></td> <td> <input type="text" name="txnAmt' + x + '" id="txnAmt' + x + '" onkeypress="return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46" onfocusout="javascript:checkDec(' + x + ')" <%--onkeyup="javascript:calcAmt()"--%>/> </td> <td> <select style="width: 150px" name="txnInd' + x + '" id="txnInd' + x + '" onchange="javascript:calcAmt();"> <option value="CR" selected>Credit</option> <option value="DR">Debit</option> </select> </td><td> <input type="text" name="txnNarration' + x + '" id="txnNarration' + x + '"/> </td></tr>');
|
||||
|
||||
$("#rowCounter").val(counter);
|
||||
counter = $("#rowCounterDeleteCreate").val();
|
||||
counter++;
|
||||
$("#rowCounterDeleteCreate").val(counter);
|
||||
}
|
||||
});
|
||||
|
||||
function checkDec(index) {
|
||||
document.getElementById("txnAmt" + index).value = parseFloat((document.getElementById("txnAmt" + index).value)).toFixed(2);
|
||||
calcAmt();
|
||||
}
|
||||
$("#deleteRow").click(function () {
|
||||
|
||||
var len = ($("#batchData tr").length) - 1;
|
||||
var counter = $("#rowCounterDeleteCreate").val();
|
||||
var chkboxCounter = $("#chkboxCounter").val();
|
||||
var counterDelete = counter - chkboxCounter;
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows cannot be deleted.");
|
||||
} else {
|
||||
if (len == 0) {
|
||||
alert("All rows can not be deleted.");
|
||||
return false;
|
||||
}
|
||||
var rowCounter = $("#rowCounter").val();
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
rowCounter--;
|
||||
$("#rowCounter").val(rowCounter);
|
||||
$("#rowCounterDeleteCreate").val(counterDelete);
|
||||
|
||||
chkboxCounter = 0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
document.getElementById("searched").value = "1";
|
||||
calcAmt();
|
||||
// if(isNaN(document.getElementById("grandTotal").value)){
|
||||
// document.getElementById("grandTotal").value = 0;
|
||||
// }
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function resetRow(i) {
|
||||
document.getElementById("accNo" + i).value = "";
|
||||
document.getElementById("txnAmt" + i).value = "";
|
||||
document.getElementById("txnInd" + i).value = "CR";
|
||||
}
|
||||
|
||||
function calcAmt() {
|
||||
var counter = $("#rowCounter").val();
|
||||
var crTotal = parseFloat(0);
|
||||
var drTotal = parseFloat(0);
|
||||
var total = parseFloat(0);
|
||||
//var i = 1;
|
||||
|
||||
for (i = 1; i <= counter; i++) {
|
||||
try {
|
||||
if (document.getElementById("txnInd" + i).value == "CR")
|
||||
crTotal = parseFloat((crTotal + parseFloat(parseFloat(document.getElementById("txnAmt" + i).value).toFixed(2))).toFixed(2));
|
||||
else if (document.getElementById("txnInd" + i).value == "DR")
|
||||
drTotal = parseFloat((drTotal + parseFloat(parseFloat(document.getElementById("txnAmt" + i).value).toFixed(2))).toFixed(2));
|
||||
} catch (err) {
|
||||
total = 0;
|
||||
}
|
||||
}
|
||||
if (isNaN(crTotal)) {
|
||||
crTotal = parseFloat(0);
|
||||
}
|
||||
if (isNaN(drTotal)) {
|
||||
drTotal = parseFloat(0);
|
||||
}
|
||||
total = parseFloat((crTotal - drTotal).toFixed(2));
|
||||
document.getElementById("crTotal").value = crTotal;
|
||||
document.getElementById("drTotal").value = drTotal;
|
||||
document.getElementById("total").value = total;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
600
IPKS_Updated/web/web/web/Deposit/BatchTransaction_old.jsp
Normal file
600
IPKS_Updated/web/web/web/Deposit/BatchTransaction_old.jsp
Normal file
@@ -0,0 +1,600 @@
|
||||
<%--
|
||||
Document : BatchTransaction
|
||||
Created on : Jan 16, 2017, 3:21:24 PM
|
||||
Author : 594267
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.BatchProcessingBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Batch Transaction</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<%
|
||||
String handle_idVal = "";
|
||||
Object handle_id = request.getAttribute("handle_id");
|
||||
if (handle_id != null) {
|
||||
handle_idVal = handle_id.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/BatchTransaction.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function checkboxTrue(i){
|
||||
|
||||
if(document.getElementById("chckbox"+i).checked == true){
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
function executeform(batchForm){
|
||||
if(document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the batch ID to search");
|
||||
return false;
|
||||
}
|
||||
document.getElementById("handle_id").value = 'execute';
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
}
|
||||
|
||||
function submitform(batchForm){
|
||||
|
||||
//alert(document.getElementById("handle_id").value);
|
||||
if(document.getElementById("handle_id").value == "search"){
|
||||
if(document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the batch ID to search");
|
||||
return false;
|
||||
}
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
return true;
|
||||
}
|
||||
if(validate()){
|
||||
if(document.getElementById("total").value == "0"){
|
||||
document.batchForm.action = '/PacsApplication/BatchTransactionServlet';
|
||||
document.batchForm.submit();
|
||||
}
|
||||
else {
|
||||
alert("Total Debit should match total credit. Total Amount should be 0.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function validate(){
|
||||
var counter = $("#rowCounter").val();
|
||||
//var i = 1;
|
||||
for(i=1;i<=counter;i++){
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/;
|
||||
|
||||
try {
|
||||
if (document.getElementById("accNo"+i).value == "")
|
||||
{
|
||||
alert("Account Number cannot be empty");
|
||||
document.getElementById("accNo"+i).value="";
|
||||
document.getElementById("accNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnAmt"+i).value == "")
|
||||
{
|
||||
alert("Transaction Amount cannot be empty");
|
||||
document.getElementById("txnAmt"+i).value="";
|
||||
document.getElementById("txnAmt"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!re.test(document.getElementById("accNo"+i).value))
|
||||
{
|
||||
alert("Account Number could only contain numbers");
|
||||
document.getElementById("accNo"+i).value="";
|
||||
document.getElementById("accNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (!re.test(document.getElementById("txnAmt"+i).value))
|
||||
{
|
||||
alert("Transaction amount could only contain numbers");
|
||||
document.getElementById("txnAmt"+i).value="";
|
||||
document.getElementById("txnAmt"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd"+i).value == "")
|
||||
{
|
||||
alert("Transaction indicator should be selected");
|
||||
document.getElementById("txnInd"+i).value="CR";
|
||||
document.getElementById("txnInd"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if ((document.getElementById("txnNarration"+i).value.trim()) == "")
|
||||
{
|
||||
alert("Transaction Narration should be filled.");
|
||||
document.getElementById("txnNarration"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("searched").value!="1")
|
||||
{
|
||||
alert("Kindly Search and select the A/c Number.")
|
||||
document.getElementById("accNo"+i).focus;
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd"+i).value == "DR" && document.getElementById("accType"+i).value == "L")
|
||||
{
|
||||
alert("Loan cannot be debited from batch transaction");
|
||||
document.getElementById("txnInd"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(err){
|
||||
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function SearchAccount(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
//var accType = document.getElementById("accType"+textIndex).value;
|
||||
//var accNo = document.getElementById("accNo"+textIndex).value;
|
||||
var screenName = "BatchTransaction.jsp";
|
||||
var lovKey = "AccountSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&accType=' + accType+ '&accNo=' + accNo + '&textIndex=' + textIndex, 'AccountSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function setVisibility(){
|
||||
//document.getElementById("searchBatch").style.visibility='visible';
|
||||
$('select#batchOption').change();
|
||||
}
|
||||
|
||||
function textChanged(){
|
||||
document.getElementById("searched").value="0";
|
||||
//alert("IN");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#create').hide();
|
||||
$('#handle_id').val();
|
||||
$('select#batchOption').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'C':
|
||||
$('#create').show(500);
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val('create');
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
$('#searchBatch').show();
|
||||
$('#create').hide();
|
||||
$('#handle_id').val('search');
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#create').hide();
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val();
|
||||
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg = "";
|
||||
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
|
||||
Object alBatchProcessingBeanObj = request.getAttribute("alBatchProcessingBean");
|
||||
ArrayList<BatchProcessingBean> alBatchProcessingBean = new ArrayList<BatchProcessingBean>();
|
||||
BatchProcessingBean oBatchProcessingBean = new BatchProcessingBean();
|
||||
if (alBatchProcessingBeanObj != null) {
|
||||
alBatchProcessingBean = (ArrayList<BatchProcessingBean>) request.getAttribute("alBatchProcessingBean");
|
||||
|
||||
}
|
||||
error = request.getAttribute("batchID");
|
||||
String batchID = "";
|
||||
if (request.getAttribute("batchID") != null) {
|
||||
batchID = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
%>
|
||||
</head>
|
||||
<body onload="javascript:<%if (alBatchProcessingBeanObj != null) {%>setVisibility();<%}%>noBack();">
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">BATCH PROCESSING</legend>
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<label>Select Operation : </label>
|
||||
<select id="batchOption" name="batchOption">
|
||||
<option value="" selected >--Select--</option>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("C")) {%> selected <%}%> value="C">Create</option>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("S")) {%> selected <%}%> value="S">Search</option>
|
||||
|
||||
</select>
|
||||
</center>
|
||||
|
||||
|
||||
<form action="" method="post" name="batchForm" id="batchForm">
|
||||
|
||||
<div id="create" name="create">
|
||||
<br>
|
||||
|
||||
|
||||
<div align="center">
|
||||
<table id="batchData" name="batchData" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Account Type</td>
|
||||
<td>Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Narration</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="tRow">
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td>
|
||||
<select style="width: 100px" name="accType<%=count%>" id="accType<%=count%>" onchange="javascript:resetRow(<%=count%>)">
|
||||
<option selected value="S">Savings/CA</option>
|
||||
<option value="R">Recurring Deposit</option>
|
||||
<option value="G">GL</option>
|
||||
<option value="L">Loan</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" style="width: 120px" name="accNo<%=count%>" id="accNo<%=count%>" onkeyup="textChanged()"/>
|
||||
<input type="button" style="width: 70px" name="search<%=count%>" id="search<%=count%>" value="Search" onclick="javascript:SearchAccount(550,240,<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" name="txnAmt<%=count%>" id="txnAmt<%=count%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46' onkeyup="javascript:calcAmt()"/>
|
||||
</td>
|
||||
<td>
|
||||
<select style="width: 150px" name="txnInd<%=count%>" id="txnInd<%=count%>" onchange="javascript:calcAmt();">
|
||||
<option value="CR" selected>Credit</option>
|
||||
<option value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text" name="txnNarration<%=count%>" id="txnNarration<%=count%>" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><label>Credit Total</label></td>
|
||||
<td align="center"><label>Debit Total</label></td>
|
||||
<td align="center"><label>Total</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><input type="text" id="crTotal" name="crTotal" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="drTotal" name="drTotal" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="total" name="total" readonly style="font:bold"/></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td ><input type="button" id="addRow" value="Add Row"/></td>
|
||||
<td><input type="button" id="deleteRow" value="Delete Row"/></td>
|
||||
<td><input type="button" value="Submit" onclick="javascript:submitform(batchForm)"></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="rowCounterDeleteCreate" id="rowCounterDeleteCreate" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
<input type="hidden" name="all_rowsAdded" id="all_rowsAdded" value="1">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<div id="searchBatch" style="display:none">
|
||||
<label>Batch ID: </label>
|
||||
<input type="text" name="batchID" id="batchID" value="<%=blankNull(batchID)%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
|
||||
<input type="button" name="searchBatch" id="searchBatch" value="Search" onclick="javascript:submitform(batchForm)"/>
|
||||
<br><br>
|
||||
|
||||
<%if (handle_idVal.equalsIgnoreCase("S")) {
|
||||
double crTotal = 0;
|
||||
double drTotal = 0;
|
||||
double total = 0;
|
||||
%>
|
||||
|
||||
<div align="center">
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
|
||||
<td>Account Type</td>
|
||||
<td>Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Narration</td>
|
||||
<td>Transaction Status</td>
|
||||
<td>Transaction Ref No</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
for (int k = 0; k < alBatchProcessingBean.size(); k++) {
|
||||
oBatchProcessingBean = alBatchProcessingBean.get(k);
|
||||
if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {
|
||||
drTotal = drTotal + Double.parseDouble(oBatchProcessingBean.getTxnAmt());
|
||||
} else if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {
|
||||
crTotal = crTotal + Double.parseDouble(oBatchProcessingBean.getTxnAmt());
|
||||
}
|
||||
%>
|
||||
<tr class="tRow">
|
||||
|
||||
<td>
|
||||
<select disabled style="width: 100px" name="accType<%=k%>" id="accType<%=k%>" onchange="javascript:resetRow(<%=count%>)">
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("S")) {%>selected <%}%> value="S">Savings/CA</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("G")) {%>selected <%}%> value="G">GL</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("R")) {%>selected <%}%> value="R">Recurring Deposit</option>
|
||||
<option <%if (oBatchProcessingBean.getAccType().equalsIgnoreCase("L")) {%>selected <%}%> value="L">Loan</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly style="width: 120px" name="accNo<%=k%>" id="accNo<%=k%>" value="<%=oBatchProcessingBean.getAccNo()%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/> </td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="txnAmt<%=k%>" id="txnAmt<%=k%>" value="<%=oBatchProcessingBean.getTxnAmt()%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46' onkeyup="javascript:calcAmt()"/>
|
||||
</td>
|
||||
<td>
|
||||
<select disabled style="width: 150px" name="txnInd<%=k%>" id="txnInd<%=k%>" onchange="javascript:calcAmt();">
|
||||
<option <%if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {%>selected <%}%> value="CR">Credit</option>
|
||||
<option <%if (oBatchProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {%>selected <%}%> value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnNarrationTwo<%=k%>" id="txnNarrationTwo<%=k%>" value="<%=oBatchProcessingBean.getNarration()%>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnStatus<%=k%>" id="txnStatus<%=k%>" value="<%=oBatchProcessingBean.getTxnStatus()%>" /> </td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnRefNo<%=k%>" id="txnRefNo<%=k%>" value="<%=oBatchProcessingBean.getTxnRefNo()%>" /> </td>
|
||||
</tr>
|
||||
<%}
|
||||
total = crTotal - drTotal;
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><label>Credit Total</label></td>
|
||||
<td align="center"><label>Debit Total</label></td>
|
||||
<td align="center"><label>Total</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><input type="text" id="crTotal" name="crTotal" value="<%=crTotal%>" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="drTotal" name="drTotal" value="<%=drTotal%>" readonly style="font:bold"/></td>
|
||||
<td ><input type="text" id="total" name="total" value="<%=total%>" readonly style="font:bold"/></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td><input type="button" value="Execute" onclick="javascript:executeform(batchForm)"></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<%}%>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="" />
|
||||
<input type="hidden" name="searched" id="searched" />
|
||||
</form>
|
||||
|
||||
|
||||
<br><br>
|
||||
|
||||
<script type="text/javascript">
|
||||
var x=1;
|
||||
$("#addRow").click(function () {
|
||||
if(!validate()){
|
||||
alert('Please fillup one row at a time');
|
||||
} else {
|
||||
document.getElementById("searched").value="0";
|
||||
x=x+1;
|
||||
$("#all_rowsAdded").val(x);
|
||||
var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#batchData tr:last').after('<tr class="tRow"> <td><input type="checkbox" name="chckbox' + x + '" id="chckbox' + x + '" onclick="checkboxTrue(' + x + ');" /></td> <td> <select style="width: 100px" name="accType' + x + '" id="accType' + x + '" onchange="javascript:resetRow(' + x + ')"> <option selected value="S">Savings/CA</option> <option value="R">Recurring Deposit</option> <option value="G">GL</option> <option value="L">Loan</option> </select> </td> <td> <input type="text" style="width: 120px" name="accNo' + x + '" id="accNo' + x + '"/> <input type="button" style="width: 70px" name="search' + x + '" id="search' + x + '" value="Search" onclick="javascript:SearchAccount(550,240,' + x + ');" /></td> <td> <input type="text" name="txnAmt' + x + '" id="txnAmt' + x + '" onkeypress="return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46" onkeyup="javascript:calcAmt()"/> </td> <td> <select style="width: 150px" name="txnInd' + x + '" id="txnInd' + x + '" onchange="javascript:calcAmt();"> <option value="CR" selected>Credit</option> <option value="DR">Debit</option> </select> </td><td> <input type="text" name="txnNarration' + x + '" id="txnNarration' + x + '"/> </td></tr>');
|
||||
|
||||
$("#rowCounter").val(counter);
|
||||
counter = $("#rowCounterDeleteCreate").val();
|
||||
counter++;
|
||||
$("#rowCounterDeleteCreate").val(counter);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$( "#deleteRow" ).click(function() {
|
||||
|
||||
var len = ($("#batchData tr").length)-1;
|
||||
var counter = $("#rowCounterDeleteCreate").val();
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var counterDelete=counter-chkboxCounter;
|
||||
if (counterDelete==0){
|
||||
alert("All rows cannot be deleted");
|
||||
}
|
||||
else{
|
||||
if (len == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
$("#rowCounterDeleteCreate").val(counterDelete);
|
||||
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
calcAmt();
|
||||
if(isNaN(document.getElementById("grandTotal").value)){
|
||||
document.getElementById("grandTotal").value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function resetRow(i) {
|
||||
document.getElementById("accNo"+i).value = "";
|
||||
document.getElementById("txnAmt"+i).value = "";
|
||||
document.getElementById("txnInd"+i).value = "CR";
|
||||
}
|
||||
|
||||
function calcAmt() {
|
||||
var counter = $("#rowCounter").val();
|
||||
var crTotal = parseFloat(0);
|
||||
var drTotal = parseFloat(0);
|
||||
var total = parseFloat(0);
|
||||
//var i = 1;
|
||||
for(i=1;i<=counter;i++) {
|
||||
try {
|
||||
if(document.getElementById("txnInd"+i).value == "CR")
|
||||
crTotal = crTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
else if(document.getElementById("txnInd"+i).value == "DR")
|
||||
drTotal = drTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
}
|
||||
catch(err){
|
||||
total=0;
|
||||
}
|
||||
}
|
||||
if(isNaN(crTotal)){
|
||||
crTotal = parseFloat(0);
|
||||
}
|
||||
if(isNaN(drTotal)){
|
||||
drTotal = parseFloat(0);
|
||||
}
|
||||
total = crTotal - drTotal;
|
||||
document.getElementById("crTotal").value = crTotal;
|
||||
document.getElementById("drTotal").value = drTotal;
|
||||
document.getElementById("total").value = total;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
255
IPKS_Updated/web/web/web/Deposit/BulkFileUpload.jsp
Normal file
255
IPKS_Updated/web/web/web/Deposit/BulkFileUpload.jsp
Normal file
@@ -0,0 +1,255 @@
|
||||
<%--
|
||||
Document : BulkFileUpload
|
||||
Created on : Sep 26, 2018, 4:48:59 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Bulk File Upload</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<script>
|
||||
function sendFileToServer(temp)
|
||||
{
|
||||
if(temp==1){
|
||||
var fileName= document.getElementById("fileChooser").value
|
||||
var fileNameSplit=fileName.split('.');
|
||||
if(fileNameSplit[1]!="csv"){
|
||||
alert("Please choose .csv file only.");
|
||||
return;
|
||||
}
|
||||
else{
|
||||
|
||||
var formUploadMultiPart = document.getElementById("BulkFileIdUpload");
|
||||
formUploadMultiPart.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formUploadMultiPart.submit();
|
||||
}
|
||||
}
|
||||
else if(temp==2)
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("BulkFileIdDownload");
|
||||
formDownloadNormal.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
else if(temp==3)
|
||||
{
|
||||
if( BulkFileReport.fileId.value == "" )
|
||||
{
|
||||
alert("Please provide File Id.");
|
||||
BulkFileReport.fileId.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var formDownloadReport = document.getElementById("BulkFileReport");
|
||||
formDownloadReport.reportPath.value = "/Reports/Bulk_txn_report";
|
||||
formDownloadReport.reportName.value = "Bulk Transaction Report";
|
||||
formDownloadReport.DOWNLOAD.value = "P";
|
||||
formDownloadReport.action = '/PacsApplication/ExcelReportServlet';
|
||||
formDownloadReport.submit();
|
||||
}
|
||||
else if(temp==4){
|
||||
var fileName= document.getElementById("AccMapFile").value
|
||||
var fileNameSplit=fileName.split('.');
|
||||
if(fileNameSplit[1]!="prt"){
|
||||
alert("Please choose .prt file only.");
|
||||
return;
|
||||
}
|
||||
else{
|
||||
//alert('inside temp 4');
|
||||
// document.BulkAccMapUpload.submit();
|
||||
//$('#actionMap').val('Map');
|
||||
var formUploadMultiPartMap = document.getElementById("BulkAccMapUpload");
|
||||
formUploadMultiPartMap.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formUploadMultiPartMap.submit();
|
||||
}
|
||||
}
|
||||
else if(temp==5)
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("ManualDownload");
|
||||
formDownloadNormal.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
else if(temp==6)
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("CBSBulkManual");
|
||||
formDownloadNormal.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleDiv(temp)
|
||||
{
|
||||
document.getElementById("errorMessageTag").innerHTML="";
|
||||
if(temp == 1 && document.getElementById("FileTypeId").value == 'Def'){
|
||||
alert("Please select an option first.");
|
||||
}
|
||||
else if (temp == 1 && document.getElementById("FileTypeId").value == 'Upload'){
|
||||
document.getElementById("UploadDiv").style.display='block';
|
||||
document.getElementById("SelectDiv").style.display='none';
|
||||
}
|
||||
else if(temp == 1 && document.getElementById("FileTypeId").value == 'Download'){
|
||||
document.getElementById("ReportDiv").style.display='block';
|
||||
document.getElementById("SelectDiv").style.display='none';
|
||||
} else if(temp == 1 && document.getElementById("FileTypeId").value == 'Map'){
|
||||
document.getElementById("UploadAccMap").style.display='block';
|
||||
document.getElementById("SelectDiv").style.display='none';
|
||||
}
|
||||
else if(temp==2 ){
|
||||
document.getElementById("ReportDiv").style.display='none';
|
||||
document.getElementById("SelectDiv").style.display='block';
|
||||
}
|
||||
else if(temp==3 ){
|
||||
document.getElementById("UploadDiv").style.display='none';
|
||||
document.getElementById("SelectDiv").style.display='block';
|
||||
} else if(temp==4 ){
|
||||
document.getElementById("UploadAccMap").style.display='none';
|
||||
document.getElementById("SelectDiv").style.display='block';
|
||||
}
|
||||
else if(temp==5 ){
|
||||
document.getElementById("ReportDiv").style.display='none';
|
||||
document.getElementById("SelectDiv").style.display='block';
|
||||
}
|
||||
}
|
||||
function popup_bulkFile(width, height, fileId) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "BulkFileUpload.jsp";
|
||||
var lovKey = "bulkReport";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?fileId=' + fileId + '&screenName=' + screenName + '&lovKey=' + lovKey, 'bulkReport', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<body>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Bulk File Upload</legend>
|
||||
<center>
|
||||
|
||||
<div id="SelectDiv">
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Select Operation:</td>
|
||||
<td>
|
||||
<select id="FileTypeId" name="FileType" onchange="toggleDiv(1)">
|
||||
<option value="Def" selected> --Select-- </option>
|
||||
<option value="Upload" >Upload Bulk File</option>
|
||||
<option value="Download" >Generate Bulk File Process Report</option>
|
||||
<%--<option value="Map" >Bulk Account Mapping</option>--%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<div id="UploadDiv" style="display:none">
|
||||
<form name="BulkFile" id="BulkFileIdUpload" action="" method="post" enctype="multipart/form-data">
|
||||
<center>
|
||||
|
||||
|
||||
Select file to upload:
|
||||
<input type="file" name="dataFile" id="fileChooser"/><br/><font color="blue" >*Supported File type: csv</font><br/><br/>
|
||||
<input type="button" value="Upload" id ="FileTypeIdUpload" name="FileType" onclick="sendFileToServer(1)"/>
|
||||
<input type="button" value="Back" id ="BackIdU" name="BackIdUButton" onclick="toggleDiv(3)"/>
|
||||
|
||||
|
||||
|
||||
</center>
|
||||
</form>
|
||||
|
||||
<form name="BulkFileSample" id="BulkFileIdDownload" action="" method="post" >
|
||||
<input type="hidden" id="actionId" value="Download" name="actionTag">
|
||||
<input type="button" value="Download Sample File" id ="FileTypeIdDownload" name="FileType" onclick="sendFileToServer(2)" style="float: right"/>
|
||||
</form>
|
||||
|
||||
<form name="ManualFileSample" id="ManualDownload" action="" method="post" >
|
||||
<input type="hidden" id="actionId" value="Manual" name="actionTag">
|
||||
<input type="button" value="Download Manual File" id ="ManualDownload" name="FileType" onclick="sendFileToServer(5)" style="float: right"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="UploadAccMap" style="display:none">
|
||||
<form name="BulkAccMapUpload" id="BulkAccMapUpload" action="" method="post" enctype="multipart/form-data">
|
||||
<center>
|
||||
|
||||
|
||||
Select file to upload:
|
||||
<input type="file" name="AccMapFile" id="AccMapFile"/><br/><font color="blue" >*Supported File type: csv</font><br/><br/>
|
||||
<input type="button" value="Upload" id ="AccMapUpload" name="AccMapUpload" onclick="sendFileToServer(4)"/>
|
||||
<input type="button" value="Back" id ="BackAccMap" name="BackAccMap" onclick="toggleDiv(4)"/>
|
||||
|
||||
<input type="hidden" id="actionMapId" value="Map" name="actionMap">
|
||||
|
||||
</center>
|
||||
</form>
|
||||
<form name="CBSBulkManual" id="CBSBulkManual" action="" method="post" >
|
||||
<input type="hidden" id="actionId" value="CBSBULK" name="actionTag">
|
||||
<input type="button" value="Download CBS Bulk Manual File" id ="CBSBulkManual" name="FileType" onclick="sendFileToServer(6)" style="float: right"/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="ReportDiv" style="display:none">
|
||||
<form name="BulkFileReport" id="BulkFileReport" action="" method="post" >
|
||||
<center>
|
||||
<td>File Id<font color="red" >*</font>:</td>
|
||||
<td><input type="text" name="fileId" id="fileId" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_bulkFile(750, 250,document.BulkFileReport.fileId.value);"/></td>
|
||||
<br><br>
|
||||
<input type="button" value="Download Bulk Report" id ="ReportDownload" name="ReportType" onclick="sendFileToServer(3)" style="float: center"/>
|
||||
<input type="button" value="Back" id ="BackIdU" name="BackIdUButton" onclick="toggleDiv(2)"/>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
</center>
|
||||
</form>
|
||||
<br><br>
|
||||
</div>
|
||||
<div id="errorMessageTag"style="color: #FF0000;">${errorMessageBulk}</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
259
IPKS_Updated/web/web/web/Deposit/CBSAccountMapping.jsp
Normal file
259
IPKS_Updated/web/web/web/Deposit/CBSAccountMapping.jsp
Normal file
@@ -0,0 +1,259 @@
|
||||
<%--
|
||||
Document : CBSAccountMapping
|
||||
Created on : March 8, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>CBS Account Mapping</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
// document.getElementById("Submit").disabled = true;
|
||||
// document.getElementById("Submit").style.backgroundColor ='grey';
|
||||
document.getElementById("head").style.visibility = 'hidden';
|
||||
document.getElementById("cbs").style.visibility = 'hidden';
|
||||
document.getElementById("Submit").style.visibility = 'hidden';
|
||||
document.getElementById("uppin").style.visibility = 'hidden';
|
||||
document.getElementById("curr").style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/CBSAccountMapping.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_Acc(width, height, Acc, Option) {
|
||||
|
||||
document.getElementById("Submit").disabled = false;
|
||||
document.getElementById("Submit").style.backgroundColor ='#006600';
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "CBSAccountMapping.jsp";
|
||||
var lovKey="AccSrch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?Acc=' + Acc + '&Option=' + Option + '&screenName=' + screenName+'&lovKey='+lovKey, 'AccSrch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function submitform(){
|
||||
|
||||
if(validateForm()){
|
||||
document.CBSAccountMapping.action = '/PacsApplication/CBSAccountMappingServlet';
|
||||
document.CBSAccountMapping.submit();
|
||||
}
|
||||
}
|
||||
function validateForm(){
|
||||
if ($('#checkOption').val() == "camap")
|
||||
{
|
||||
if ($('#currAccount').val() == "") {
|
||||
alert("Current Account cannot be blank.");
|
||||
CBSAccountMapping.currAccount.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if ( $('#checkOption').val() != "mappin" && $('#checkOption').val() != "camap")
|
||||
{
|
||||
if($('#accNo').val() == ""){
|
||||
alert("Account Number cannot be blank.");
|
||||
CBSAccountMapping.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#cbsAccount').val() == ""){
|
||||
alert("CBS Account cannot be blank.");
|
||||
CBSAccountMapping.cbsAccount.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if ($('#checkOption').val() != "camap")
|
||||
{
|
||||
if ($('#PIN').val() == "") {
|
||||
alert("PIN Code cannot be blank.");
|
||||
CBSAccountMapping.PIN.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
document.getElementById("checkOption").disabled= false;
|
||||
return true;
|
||||
}
|
||||
|
||||
function number(){$("#cbsAccount").keypress(function(e){if(e.which!=8&&e.which!=0&&(e.which<48||e.which>57)){alert("Enter numbers only");
|
||||
return false;}});
|
||||
$("#PIN").keypress(function(e){if(e.which!=8&&e.which!=0&&(e.which<48||e.which>57)){alert("Enter numbers only");
|
||||
return false;}});}
|
||||
function curAcc(){alert("Kindly Note: Current Account can not be mapped more than once. Click OK.");
|
||||
$("#currAccount").keypress(function(e){if(e.which!=8&&e.which!=0&&(e.which<48||e.which>57)){alert("Enter numbers only");
|
||||
return false;}});}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#checkOption').change(function () {
|
||||
document.getElementById("checkOption").disabled= true;
|
||||
document.getElementById("Submit").style.visibility = 'visible';
|
||||
document.getElementById("head").style.visibility = 'visible';
|
||||
document.getElementById("cbs").style.visibility = 'visible';
|
||||
document.getElementById("uppin").style.visibility = 'hidden';
|
||||
document.getElementById("curr").style.visibility = 'hidden';
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'remove':
|
||||
document.getElementById("cbsAccount").readOnly = true;
|
||||
break;
|
||||
|
||||
case 'nremark':
|
||||
document.getElementById("cbs").style.visibility = 'hidden';
|
||||
break;
|
||||
|
||||
case 'eremark':
|
||||
document.getElementById("cbs").style.visibility = 'hidden';
|
||||
break;
|
||||
|
||||
case 'mappin':
|
||||
document.getElementById("uppin").style.visibility = 'visible';
|
||||
document.getElementById("cbs").style.visibility = 'hidden';
|
||||
document.getElementById("head").style.visibility = 'hidden';
|
||||
break;
|
||||
|
||||
case 'camap':
|
||||
document.getElementById("curr").style.visibility = 'visible';
|
||||
document.getElementById("uppin").style.visibility = 'hidden';
|
||||
document.getElementById("cbs").style.visibility = 'hidden';
|
||||
document.getElementById("head").style.visibility = 'hidden';
|
||||
break;
|
||||
|
||||
default:
|
||||
document.getElementById("cbsAccount").readOnly = false;
|
||||
break;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message1");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">CBS Account Mapping</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="CBSAccountMapping" id="CBSAccountMapping" action="" method="post">
|
||||
|
||||
<br><br>
|
||||
<center>
|
||||
<tr><td><label style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection :</label></td>
|
||||
<td><select id="checkOption" name="checkOption" >
|
||||
<option value="" disabled selected style="display:none;" > --Select-- </option>
|
||||
<%--<option value="update" >Add/Update CBS Account</option>
|
||||
<option value="remove" >Remove CBS Account</option> --%>
|
||||
<option value="mappin" >PIN Code Mapping</option>
|
||||
<option value="camap" >Current Account Mapping</option>
|
||||
<option value="nremark" >Remark for Non-Existing Bank CIF</option>
|
||||
<option value="eremark" >Remark for Existing Bank CIF</option>
|
||||
|
||||
</select></td></tr>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr id="head">
|
||||
<td>Account Number<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="accNo" id="accNo" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_Acc(500,300,$('#accNo').val(),$('#checkOption').val());"/></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr id="cbs" >
|
||||
<td style="text-align: right">CBS Account: </td>
|
||||
<td><input type="text" maxlength="13" name="cbsAccount" id="cbsAccount" placeholder="Enter number only" onclick="number();" /></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr id="curr" >
|
||||
<td style="text-align: right">Current Account<font color="red" >*</font>: </td>
|
||||
<td><input type="text" maxlength="13" name="currAccount" id="currAccount" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'onclick="curAcc();" /></td>
|
||||
</tr>
|
||||
<tr id="uppin" >
|
||||
<td style="text-align: right">Enter PIN Code<font color="red" >*</font>: </td>
|
||||
<td><input type="text" maxlength="6" name="PIN" id="PIN" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
</tr>
|
||||
<tr><tr><tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform();" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
|
||||
<%--<input type="hidden" value="" id="intCat" name="intCat" />--%>
|
||||
</center>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
121
IPKS_Updated/web/web/web/Deposit/CashDrawerCloseOperation.jsp
Normal file
121
IPKS_Updated/web/web/web/Deposit/CashDrawerCloseOperation.jsp
Normal file
@@ -0,0 +1,121 @@
|
||||
<%--
|
||||
Document : CashDrawerCloseOperation
|
||||
Created on : Nov 9, 2016, 1:32:58 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Cash Drawer Close/Open Operation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
|
||||
function checkSubmit(closeCashDrawerForm)
|
||||
{
|
||||
|
||||
if (closeCashDrawerForm.drawercoperationFlag.value == "Not")
|
||||
{
|
||||
alert("!! Please select operation !!");
|
||||
closeCashDrawerForm.drawercoperationFlag.focus();
|
||||
return false;
|
||||
}
|
||||
document.forms[0].action='/PacsApplication/CloseCashDrawerServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">
|
||||
CLOSE CASH DRAWER
|
||||
</legend>
|
||||
<form action="" method="post" name="closeCashDrawerForm">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tbody>
|
||||
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td>Select Operation :</td>
|
||||
<td><select style="width: 171px;" id="drawercoperationFlag" name="drawercoperationFlag">
|
||||
<option disabled selected value="Not">-------Please select-------</option><option value="O">Open</option><option value="C">Close</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<input type="hidden" id="regid" name="regid">
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
</center>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:checkSubmit(closeCashDrawerForm)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<script>
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/CashDrawerCloseOperation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
</script>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
509
IPKS_Updated/web/web/web/Deposit/CashDrawerEnquiry.jsp
Normal file
509
IPKS_Updated/web/web/web/Deposit/CashDrawerEnquiry.jsp
Normal file
@@ -0,0 +1,509 @@
|
||||
<%--
|
||||
Document : CashDrawerEnquiry
|
||||
Created on : Nov 9, 2016, 1:33:18 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Cash Drawer Enquiry</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<style>
|
||||
table#denotable tbody tr td input{
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
<body onload="noback()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function submitform()
|
||||
{
|
||||
document.teller.action = '/PacsApplication/CashDrawerEnquiryServlet';
|
||||
document.teller.submit();
|
||||
|
||||
}
|
||||
|
||||
function popup_pacstellers(width, height, tellerid) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "CashDrawerEnquiry.jsp";
|
||||
var lovKey = "PopupTellers"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?tellerid=' + tellerid + '&screenName=' + screenName + '&lovKey=' + lovKey, 'PopupTellers', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/CashDrawerEnquiry.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<%
|
||||
String ModuleName = new String();
|
||||
|
||||
ModuleName = (String) session.getAttribute("moduleName");
|
||||
%>
|
||||
<% if (ModuleName.equalsIgnoreCase("KCC")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Deposit")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Loan")) {%>
|
||||
<jsp:include page="/Loan/MenuHead_Loan.jsp" flush="true" />
|
||||
<%}%>
|
||||
<br>
|
||||
|
||||
<form name="teller" id="teller" method="post" action="">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Cash Drawer Enquiry</legend>
|
||||
<%
|
||||
String pacsid = (String) session.getAttribute("pacsId");
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<center>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<br>
|
||||
<b>Teller ID:</b>
|
||||
<input type="text" readonly id="tellerid" name="tellerid" value="" style="text-align: right" />
|
||||
<input type="button" value="Search" onclick="javascript:popup_pacstellers(220, 180, document.teller.tellerid.value);"/>
|
||||
<br><br>
|
||||
<input type="button" id="getdetails" name="getdetails" value="Get Details" onclick="javascript:submitform()"/>
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
|
||||
|
||||
<%
|
||||
String status = "Closed";
|
||||
error = request.getAttribute("status");
|
||||
if (error != null) {
|
||||
status = error.toString();
|
||||
}
|
||||
|
||||
int deno2000 = 0;
|
||||
error = request.getAttribute("deno2000");
|
||||
if (error != null) {
|
||||
deno2000 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno500 = 0;
|
||||
error = request.getAttribute("deno500");
|
||||
if (error != null) {
|
||||
deno500 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno200 = 0;
|
||||
error = request.getAttribute("deno200");
|
||||
if (error != null) {
|
||||
deno200 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno100 = 0;
|
||||
error = request.getAttribute("deno100");
|
||||
if (error != null) {
|
||||
deno100 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno50 = 0;
|
||||
error = request.getAttribute("deno50");
|
||||
if (error != null) {
|
||||
deno50 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno20 = 0;
|
||||
error = request.getAttribute("deno20");
|
||||
if (error != null) {
|
||||
deno20 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno10 = 0;
|
||||
error = request.getAttribute("deno10");
|
||||
if (error != null) {
|
||||
deno10 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno5 = 0;
|
||||
error = request.getAttribute("deno5");
|
||||
if (error != null) {
|
||||
deno5 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno2 = 0;
|
||||
error = request.getAttribute("deno2");
|
||||
if (error != null) {
|
||||
deno2 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno1 = 0;
|
||||
error = request.getAttribute("deno1");
|
||||
if (error != null) {
|
||||
deno1 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int deno50p = 0;
|
||||
error = request.getAttribute("deno50p");
|
||||
if (error != null) {
|
||||
deno50p = Integer.parseInt(error.toString());
|
||||
}
|
||||
int deno1p = 0;
|
||||
error = request.getAttribute("deno1p");
|
||||
if (error != null) {
|
||||
deno1p = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
|
||||
double totalAmt = 0;
|
||||
totalAmt = (2000 * deno2000) + (500 * deno500) + (200 * deno200) + (100 * deno100) + (50 * deno50) + (20 * deno20) + (10 * deno10) + (5 * deno5) + (2 * deno2) + (deno1) + (0.50 * deno50p) + (deno1p * 0.01);
|
||||
|
||||
int odeno2000 = 0;
|
||||
error = request.getAttribute("odeno2000");
|
||||
if (error != null) {
|
||||
odeno2000 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno500 = 0;
|
||||
error = request.getAttribute("odeno500");
|
||||
if (error != null) {
|
||||
odeno500 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno200 = 0;
|
||||
error = request.getAttribute("odeno200");
|
||||
if (error != null) {
|
||||
odeno200 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno100 = 0;
|
||||
error = request.getAttribute("odeno100");
|
||||
if (error != null) {
|
||||
odeno100 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno50 = 0;
|
||||
error = request.getAttribute("odeno50");
|
||||
if (error != null) {
|
||||
odeno50 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno20 = 0;
|
||||
error = request.getAttribute("odeno20");
|
||||
if (error != null) {
|
||||
odeno20 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno10 = 0;
|
||||
error = request.getAttribute("odeno10");
|
||||
if (error != null) {
|
||||
odeno10 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno5 = 0;
|
||||
error = request.getAttribute("odeno5");
|
||||
if (error != null) {
|
||||
odeno5 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno2 = 0;
|
||||
error = request.getAttribute("odeno2");
|
||||
if (error != null) {
|
||||
odeno2 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno1 = 0;
|
||||
error = request.getAttribute("odeno1");
|
||||
if (error != null) {
|
||||
odeno1 = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno50p = 0;
|
||||
error = request.getAttribute("odeno50p");
|
||||
if (error != null) {
|
||||
odeno50p = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int odeno1p = 0;
|
||||
error = request.getAttribute("odeno1p");
|
||||
if (error != null) {
|
||||
odeno1p = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int Hdeno2000 = 0;
|
||||
int Hdeno500 = 0;
|
||||
int Hdeno200 = 0;
|
||||
int Hdeno100 = 0;
|
||||
int Hdeno50 = 0;
|
||||
int Hdeno20 = 0;
|
||||
int Hdeno10 = 0;
|
||||
int Hdeno5 = 0;
|
||||
int Hdeno2 = 0;
|
||||
int Hdeno1 = 0;
|
||||
int Hdeno50p = 0;
|
||||
int Hdeno1p = 0;
|
||||
|
||||
|
||||
error = request.getAttribute("Hdeno2000");
|
||||
if (error != null) {
|
||||
Hdeno2000 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno500");
|
||||
if (error != null) {
|
||||
Hdeno500 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno200");
|
||||
if (error != null) {
|
||||
Hdeno200 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno100");
|
||||
if (error != null) {
|
||||
Hdeno100 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno50");
|
||||
if (error != null) {
|
||||
Hdeno50 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno20");
|
||||
if (error != null) {
|
||||
Hdeno20 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno10");
|
||||
if (error != null) {
|
||||
Hdeno10 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno5");
|
||||
if (error != null) {
|
||||
Hdeno5 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno2");
|
||||
if (error != null) {
|
||||
Hdeno2 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno1");
|
||||
if (error != null) {
|
||||
Hdeno1 = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno50p");
|
||||
if (error != null) {
|
||||
Hdeno50p = Integer.parseInt(error.toString());
|
||||
}
|
||||
error = request.getAttribute("Hdeno1p");
|
||||
if (error != null) {
|
||||
Hdeno1p = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
%>
|
||||
|
||||
|
||||
|
||||
<%
|
||||
String tellerName = "";
|
||||
error = request.getAttribute("tellerName");
|
||||
if (error != null) {
|
||||
tellerName = error.toString();
|
||||
}
|
||||
|
||||
String open_bal = "";
|
||||
error = request.getAttribute("open_bal");
|
||||
if (error != null) {
|
||||
open_bal = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<%if (!tellerName.equalsIgnoreCase("")) {%>
|
||||
<center>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="text-align: center">Teller Name</td>
|
||||
<td style="text-align: center">Opening Balance</td>
|
||||
<td style="text-align: center">Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="text" style="text-align: left" readonly value="<%= tellerName%>" /></td>
|
||||
<td><input type="text" style="text-align: right" readonly value="<%=open_bal%>"/></td>
|
||||
<td><input type="text" style="text-align: left" readonly value="<%=status%>"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<table id="denotable" name="denotable" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px;">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr><td><b>Denomination</b></td>
|
||||
|
||||
<td><b>Available</b></td>
|
||||
<td><b>Drawer Opening value</b></td>
|
||||
<td><b>Cash on hold</b></td>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 2000</td>
|
||||
<td><input type="text" style="text-align: right; border: none;" id="" name="" value="<%=deno2000%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno2000%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno2000%>" readonly /> </td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 500</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno500%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno500%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno500%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 200</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno200%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno200%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno200%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 100</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno100%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno100%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno100%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 50</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno50%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno50%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno50%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 20</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno20%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno20%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno20%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 10</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno10%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno10%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno10%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 5</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno5%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno5%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno5%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 2</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno2%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno2%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno2%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 1</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno1%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno1%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno1%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >50 Paisa</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno50p%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno50p%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno50p%>" readonly /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left" >1 Paisa</td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=deno1p%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=odeno1p%>" readonly /> </td>
|
||||
<td><input type="text" style="text-align: right" id="" name="" value="<%=Hdeno1p%>" readonly /> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<p style="font-size:medium; font-weight: bold">
|
||||
Total Cash Available: <input type="text" style="text-align: right; font-weight: bold" readonly id="totalcash" name="totalcash" value="<%=totalAmt%>"/>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</center>
|
||||
<% }%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
407
IPKS_Updated/web/web/web/Deposit/CashDrawerEnquiryTeller.jsp
Normal file
407
IPKS_Updated/web/web/web/Deposit/CashDrawerEnquiryTeller.jsp
Normal file
@@ -0,0 +1,407 @@
|
||||
<%--
|
||||
Document : CashDrawerEnquiry
|
||||
Created on : Nov 9, 2016, 1:33:18 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Cash Drawer Enquiry</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<body onload="noback()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_pacstellers(width, height, tellerid) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "CashDrawerEnquiry.jsp";
|
||||
var lovKey = "PopupTellers"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?tellerid=' + tellerid + '&screenName=' + screenName + '&lovKey=' + lovKey, 'PopupTellers', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<%
|
||||
String ModuleName = new String();
|
||||
|
||||
ModuleName = (String) session.getAttribute("moduleName");
|
||||
%>
|
||||
<% if (ModuleName.equalsIgnoreCase("kcc")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Deposit")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Loan")) {%>
|
||||
<jsp:include page="/Loan/MenuHead_Loan.jsp" flush="true" />
|
||||
<%}%>
|
||||
<br>
|
||||
|
||||
<form name="teller" id="teller" method="post" action="">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Cash Drawer Enquiry</legend>
|
||||
<%
|
||||
String odeno2000 = "";
|
||||
String odeno500 = "";
|
||||
String odeno200 = "";
|
||||
String odeno100 = "";
|
||||
String odeno50 = "";
|
||||
String odeno20 = "";
|
||||
String odeno10 = "";
|
||||
String odeno5 = "";
|
||||
String odeno2 = "";
|
||||
String odeno1 = "";
|
||||
String odeno50p = "";
|
||||
String odeno1p = "";
|
||||
String open_bal = "";
|
||||
String totalAmt = "";
|
||||
String pacsid = (String) session.getAttribute("pacsId");
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
String user = (String) session.getAttribute("user");
|
||||
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select pacs_id,source,destination,nvl(deno_2000,0),nvl(deno_500,0),nvl(deno_100,0),nvl(deno_50,0),nvl(deno_20,0),nvl(deno_10,0),nvl(deno_5,0),nvl(deno_2,0),nvl(deno_1,0),nvl(deno_50P,0),nvl(deno_1P,0),nvl(deno_200,0) from cash_movement_log where id=(select min(id) from cash_movement_log where source like 'R%' and destination like 'D%' and transaction_date = (select system_date from system_date) and pacs_id='"
|
||||
+ pacsid + "' and teller_to='" + user + "' group by pacs_id,source,destination,transaction_date)");
|
||||
while (rs.next()) {
|
||||
odeno2000 = rs.getString(4);
|
||||
odeno500 = rs.getString(5);
|
||||
odeno100 = rs.getString(6);
|
||||
odeno50 = rs.getString(7);
|
||||
odeno20 = rs.getString(8);
|
||||
odeno10 = rs.getString(9);
|
||||
odeno5 = rs.getString(10);
|
||||
odeno2 = rs.getString(11);
|
||||
odeno1 = rs.getString(12);
|
||||
odeno50p = rs.getString(13);
|
||||
odeno1p = rs.getString(14);
|
||||
odeno200 = rs.getString(15);
|
||||
|
||||
}
|
||||
statement.close();
|
||||
} catch (Exception e) {
|
||||
// System.out.println("Error occurred during processing.");
|
||||
}
|
||||
// finally {
|
||||
// try {
|
||||
// if(statement !=null)
|
||||
// statement.close();
|
||||
// if (connection != null)
|
||||
// connection.close();
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// System.out.println("Error Occurred during connection close.");
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<center>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<br>
|
||||
|
||||
</center>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('select#tellerselect').change(function () {
|
||||
var val = $(this).val();
|
||||
if(val != "")
|
||||
$('#denotable').show();
|
||||
else
|
||||
$('#denotable').hide();
|
||||
});
|
||||
});
|
||||
|
||||
function closeDrawer()
|
||||
{
|
||||
document.forms[0].action = '/PacsApplication/CloseCashDrawerServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
<%
|
||||
|
||||
String deno2000 = "";
|
||||
String deno500 = "";
|
||||
String deno100 = "";
|
||||
String deno50 = "";
|
||||
String deno20 = "";
|
||||
String deno10 = "";
|
||||
String deno5 = "";
|
||||
String deno2 = "";
|
||||
String deno1 = "";
|
||||
String deno50p = "";
|
||||
String deno1p = "";
|
||||
String status = "";
|
||||
String deno200 = "";
|
||||
|
||||
String Hdeno2000 = "0";
|
||||
String Hdeno500 = "0";
|
||||
String Hdeno100 = "0";
|
||||
String Hdeno50 = "0";
|
||||
String Hdeno20 = "0";
|
||||
String Hdeno10 = "0";
|
||||
String Hdeno5 = "0";
|
||||
String Hdeno2 = "0";
|
||||
String Hdeno1 = "0";
|
||||
String Hdeno50p = "0";
|
||||
String Hdeno1p = "0";
|
||||
String Hdeno200 = "0";
|
||||
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select nvl(deno_2000,0),nvl(deno_500,0),nvl(deno_100,0),nvl(deno_50,0),nvl(deno_20,0),nvl(deno_10,0),nvl(deno_5,0),nvl(deno_2,0),nvl(deno_1,0),nvl(cash_denominations.total_amt(deno_2000,deno_500,deno_100,deno_50,deno_20,deno_10,deno_5,deno_2,deno_1,DENO_50P,DENO_1P,deno_200),0),decode(status,'C','Closed','O','Open','Unknown Status'),nvl(open_balance,0),nvl(deno_50P,0),nvl(deno_1p,0),nvl(deno_200,0) from cash_drawer where pacs_id='" + pacsid + "' and teller_id='" + user + "' and entry_date = (select system_date from system_date)");
|
||||
if (!rs.isBeforeFirst()) {
|
||||
open_bal = "NA";
|
||||
status = "Not Opened yet!!!";
|
||||
} else {
|
||||
while (rs.next()) {
|
||||
deno2000 = rs.getString(1);
|
||||
deno500 = rs.getString(2);
|
||||
deno100 = rs.getString(3);
|
||||
deno50 = rs.getString(4);
|
||||
deno20 = rs.getString(5);
|
||||
deno10 = rs.getString(6);
|
||||
deno5 = rs.getString(7);
|
||||
deno2 = rs.getString(8);
|
||||
deno1 = rs.getString(9);
|
||||
totalAmt = rs.getString(10);
|
||||
status = rs.getString(11);
|
||||
open_bal = rs.getString(12);
|
||||
deno50p = rs.getString(13);
|
||||
deno1p = rs.getString(14);
|
||||
deno200 = rs.getString(15);
|
||||
}
|
||||
statement.close();
|
||||
}
|
||||
|
||||
rs = statement.executeQuery("select nvl(sum(nvl(c.deno_2000_in,0) - nvl(c.deno_2000_out,0)),0) as Hdeno_2000,nvl(sum(nvl(c.deno_500_in,0) - nvl(c.deno_500_out,0)),0) as Hdeno_500 ,nvl(sum(nvl(c.deno_100_in,0) - nvl(c.deno_100_out,0)),0) as Hdeno_100 ,nvl(sum(nvl(c.deno_50_in,0) - nvl(c.deno_50_out,0)),0) as Hdeno_50 ,nvl(sum(nvl(c.deno_20_in,0) - nvl(c.deno_20_out,0)),0) as Hdeno_20,nvl(sum(nvl(c.deno_10_in,0) - nvl(c.deno_10_out,0)),0) as Hdeno_10 ,nvl(sum(nvl(c.deno_5_in,0) - nvl(c.deno_5_out,0)),0) as Hdeno_5 ,nvl(sum(nvl(c.deno_2_in,0) - nvl(c.deno_2_out,0)),0) as Hdeno_2,nvl(sum(nvl(c.deno_1_in,0) - nvl(c.deno_1_out,0)),0) as Hdeno_1,nvl(sum(nvl(c.deno_50p_in,0) - nvl(c.deno_50p_out,0)),0) as Hdeno_50p ,nvl(sum(nvl(c.deno_1p_in,0) - nvl(c.deno_1p_out,0)),0) as Hdeno_1p,nvl(sum(nvl(c.deno_200_in,0) - nvl(c.deno_200_out,0)),0) as Hdeno_200 from cash_txn_hist c where c.status='P' and c.pacs_id='" + pacsid + "' and c.teller_id='"
|
||||
+ user + "'");
|
||||
while (rs.next()) {
|
||||
Hdeno2000 = rs.getString(1);
|
||||
Hdeno500 = rs.getString(2);
|
||||
Hdeno100 = rs.getString(3);
|
||||
Hdeno50 = rs.getString(4);
|
||||
Hdeno20 = rs.getString(5);
|
||||
Hdeno10 = rs.getString(6);
|
||||
Hdeno5 = rs.getString(7);
|
||||
Hdeno2 = rs.getString(8);
|
||||
Hdeno1 = rs.getString(9);
|
||||
Hdeno50p = rs.getString(10);
|
||||
Hdeno1p = rs.getString(11);
|
||||
Hdeno200 = rs.getString(12);
|
||||
}
|
||||
statement.close();
|
||||
connection.close();
|
||||
} catch (Exception e) {
|
||||
// System.out.println("Error occurred during processing.");
|
||||
|
||||
}
|
||||
// finally {
|
||||
// try {
|
||||
// if(statement !=null)
|
||||
// statement.close();
|
||||
// if (connection != null)
|
||||
// connection.close();
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// System.out.println("Error Occurred during connection close.");
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
%>
|
||||
|
||||
<%if (!user.equalsIgnoreCase("")) {%>
|
||||
<center>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="text-align: center">Teller ID</td>
|
||||
<td style="text-align: center">Opening Balance</td>
|
||||
<td style="text-align: center">Status</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="text" style="text-align: right" readonly value="<%= user%>" /></td>
|
||||
<td><input type="text" style="text-align: right" readonly value="<%=open_bal%>"/></td>
|
||||
<td><input type="text" style="text-align: left" readonly value="<%=status%>"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<br>
|
||||
<%if (!("NA").equalsIgnoreCase(open_bal)) {%>
|
||||
|
||||
<center>
|
||||
<table id="denotable" name="denotable" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px;">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr><td><b>Denomination</b></td>
|
||||
|
||||
<td><b>Available</b></td>
|
||||
<td><b>Drawer Opening value</b></td>
|
||||
<td><b>Cash on Hold</b></td>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 2000</td>
|
||||
<td style="text-align: right"><%=deno2000%></td>
|
||||
<td style="text-align: right"><%=odeno2000%></td>
|
||||
<td style="text-align: right"><%=Hdeno2000%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 500</td>
|
||||
<td style="text-align: right"><%=deno500%></td>
|
||||
<td style="text-align: right"><%=odeno500%></td>
|
||||
<td style="text-align: right"><%=Hdeno500%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 200</td>
|
||||
<td style="text-align: right"><%=deno200%></td>
|
||||
<td style="text-align: right"><%=odeno200%></td>
|
||||
<td style="text-align: right"><%=Hdeno200%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 100</td>
|
||||
<td style="text-align: right"><%=deno100%></td>
|
||||
<td style="text-align: right"><%=odeno100%></td>
|
||||
<td style="text-align: right"><%=Hdeno100%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 50</td>
|
||||
<td style="text-align: right"><%=deno50%></td>
|
||||
<td style="text-align: right"><%=odeno50%></td>
|
||||
<td style="text-align: right"><%=Hdeno50%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 20</td>
|
||||
<td style="text-align: right"><%=deno20%></td>
|
||||
<td style="text-align: right"><%=odeno20%></td>
|
||||
<td style="text-align: right"><%=Hdeno20%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 10</td>
|
||||
<td style="text-align: right"><%=deno10%></td>
|
||||
<td style="text-align: right"><%=odeno10%></td>
|
||||
<td style="text-align: right"><%=Hdeno10%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 5</td>
|
||||
<td style="text-align: right"><%=deno5%></td>
|
||||
<td style="text-align: right"><%=odeno5%></td>
|
||||
<td style="text-align: right"><%=Hdeno5%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 2</td>
|
||||
<td style="text-align: right"><%=deno2%></td>
|
||||
<td style="text-align: right"><%=odeno2%></td>
|
||||
<td style="text-align: right"><%=Hdeno2%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 1</td>
|
||||
<td style="text-align: right"><%=deno1%></td>
|
||||
<td style="text-align: right"><%=odeno1%></td>
|
||||
<td style="text-align: right"><%=Hdeno1%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">50 Paisa</td>
|
||||
<td style="text-align: right"><%=deno50p%></td>
|
||||
<td style="text-align: right"><%=odeno50p%></td>
|
||||
<td style="text-align: right"><%=Hdeno50p%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">1 Paisa</td>
|
||||
<td style="text-align: right"><%=deno1p%></td>
|
||||
<td style="text-align: right"><%=odeno1p%></td>
|
||||
<td style="text-align: right"><%=Hdeno1p%></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<p style="font-size:medium; font-weight: bold">
|
||||
Total Cash Available: <input type="text" style="text-align: right; font-weight: bold" readonly id="totalcash" name="totalcash" value="<%=totalAmt%>"/>
|
||||
</p>
|
||||
|
||||
               
|
||||
<input type="button" value="Close Cash Drawer" onclick="closeDrawer()"/>
|
||||
|
||||
</center>
|
||||
|
||||
<%}%>
|
||||
<% }%>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
211
IPKS_Updated/web/web/web/Deposit/CashReserveEnquiry.jsp
Normal file
211
IPKS_Updated/web/web/web/Deposit/CashReserveEnquiry.jsp
Normal file
@@ -0,0 +1,211 @@
|
||||
<%--
|
||||
Document : CashReserveEnquiry
|
||||
Created on : Nov 9, 2016, 1:33:08 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="javax.servlet.http.HttpSession"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Cash Reserve Enquiry</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noback()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<%
|
||||
String ModuleName = new String();
|
||||
|
||||
ModuleName = (String) session.getAttribute("moduleName");
|
||||
%>
|
||||
<% if (ModuleName.equalsIgnoreCase("KCC")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Deposit")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Loan")) {%>
|
||||
<jsp:include page="/Loan/MenuHead_Loan.jsp" flush="true" />
|
||||
<%}%>
|
||||
<br>
|
||||
|
||||
|
||||
<form>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Cash Reserve</legend>
|
||||
<%
|
||||
int d2000, d500, d200, d100, d50, d20, d10, d5, d2, d1, d50p, d1p, totalAmt;
|
||||
double d ;
|
||||
d2000 = 0;
|
||||
d500 = 0;
|
||||
d200 = 0;
|
||||
d100 = 0;
|
||||
d50 = 0;
|
||||
d20 = 0;
|
||||
d10 = 0;
|
||||
d5 = 0;
|
||||
d2 = 0;
|
||||
d1 = 0;
|
||||
d50p = 0;
|
||||
d1p = 0;
|
||||
totalAmt = 0;
|
||||
String pacsid = (String) session.getAttribute("pacsId");
|
||||
String open_bal, close_bal, last_upd_dt;
|
||||
open_bal = "";
|
||||
close_bal = "";
|
||||
last_upd_dt = "";
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select pacs_id,deno_2000,deno_500,deno_100,deno_50,deno_20,deno_10,deno_5,deno_2,deno_1,last_update_date,opening_bal,nvl(closing_bal,'Not Yet Closed'),DENO_50P,DENO_1P,deno_200 "
|
||||
+ "from cash_reserve where pacs_id='" + pacsid + "'");
|
||||
while (rs.next()) {
|
||||
d2000 = Integer.parseInt(rs.getString(2));
|
||||
d500 = Integer.parseInt(rs.getString(3));
|
||||
d100 = Integer.parseInt(rs.getString(4));
|
||||
d50 = Integer.parseInt(rs.getString(5));
|
||||
d20 = Integer.parseInt(rs.getString(6));
|
||||
d10 = Integer.parseInt(rs.getString(7));
|
||||
d5 = Integer.parseInt(rs.getString(8));
|
||||
d2 = Integer.parseInt(rs.getString(9));
|
||||
d1 = Integer.parseInt(rs.getString(10));
|
||||
last_upd_dt = rs.getString(11);
|
||||
open_bal = rs.getString(12);
|
||||
close_bal = rs.getString(13);
|
||||
d50p = Integer.parseInt(rs.getString(14));
|
||||
d1p = Integer.parseInt(rs.getString(15));
|
||||
d200 = Integer.parseInt(rs.getString(16));
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
d = (2000 * d2000) + (500 * d500) + (200 * d200) + (100 * d100) + (50 * d50) + (20 * d20) + (10 * d10) + (5 * d5) + (2 * d2) + d1 + (0.50 * d50p)+ (0.01 * d1p);
|
||||
%>
|
||||
|
||||
<center>
|
||||
<div>
|
||||
<label>Opening Balance: </label><input type="text" style="text-align: right" readonly id="openBal" name="openBal" value="<%=open_bal%>"/>
|
||||
|
||||
<label style="margin-left:400px;">Closing Balance: </label><input type="text" style="text-align: right" readonly id="closeBal" name="closeBal" value="<%=close_bal%>"/>
|
||||
</div>
|
||||
</center>
|
||||
<center>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr><td><b>Denomination</b></td>
|
||||
<td><b>Available</b></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<tr>
|
||||
<td style="text-align: left" >Rs 2000</td>
|
||||
<td><input type="text" style="text-align: right"style="text-align: center" readonly id="2000rs" name="2000rs" value="<%=d2000%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 500</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="500rs" name="500rs" value="<%=d500%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 200</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="200rs" name="200rs" value="<%=d200%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 100</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="100rs" name="100rs" value="<%=d100%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 50</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="50rs" name="50rs" value="<%=d50%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 20</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="20rs" name="20rs" value="<%=d20%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 10</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="10rs" name="10rs" value="<%=d10%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 5</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="5rs" name="5rs" value="<%=d5%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 2</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="2rs" name="2rs" value="<%=d2%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rs 1</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="1rs" name="1rs" value="<%=d1%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">50 Paisa</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="" name="" value="<%=d50p%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">1 Paisa</td>
|
||||
<td><input type="text" style="text-align: right" readonly id="" name="" value="<%=d1p%>"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="font-size:medium; font-weight: bold">
|
||||
Reserve Cash Available: <input type="text" style="text-align: right; font-weight: bold" readonly id="totalcash" name="totalcash" value="<%=d%>"/>
|
||||
</p>
|
||||
</center>
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
465
IPKS_Updated/web/web/web/Deposit/ChequePosting.jsp
Normal file
465
IPKS_Updated/web/web/web/Deposit/ChequePosting.jsp
Normal file
@@ -0,0 +1,465 @@
|
||||
<%--
|
||||
Document : ChequePosting
|
||||
Created on : Jul 7, 2018, 2:34:34 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.ChequeDetailsBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Cheque Posting</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<style>
|
||||
.tab {
|
||||
overflow: hidden;
|
||||
border: 1px solid #ccc;
|
||||
background-color: #d3ffd3;
|
||||
}
|
||||
|
||||
/* Style the buttons that are used to open the tab content */
|
||||
.tab button {
|
||||
background-color: inherit;
|
||||
float: left;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
padding: 14px 16px;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
/* Change background color of buttons on hover */
|
||||
.tab button:hover {
|
||||
background-color: rgb(136, 210, 140);
|
||||
}
|
||||
|
||||
/* Create an active/current tablink class */
|
||||
.tab button.active {
|
||||
|
||||
background-color: rgb(136, 210, 140);
|
||||
}
|
||||
|
||||
|
||||
/* Style the tab content */
|
||||
.tabcontent {
|
||||
display: none;
|
||||
padding: 6px 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-top: none;
|
||||
}
|
||||
.tabcontent {
|
||||
animation: fadeEffect 1s; /* Fading effect takes 1 second */
|
||||
}
|
||||
|
||||
/* Go from zero to full opacity */
|
||||
@keyframes fadeEffect {
|
||||
from {opacity: 0;}
|
||||
to {opacity: 1;}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
var selectedTab = null;
|
||||
function popup_depAccount(width, height, accNo) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "ChequePosting.jsp";
|
||||
var lovKey = "depositAccount"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?accNo=' + accNo + '&screenName=' + screenName + '&lovKey=' + lovKey, 'depositAccount', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function popup_depAccountEnq(width, height, accNo) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "ChequePosting.jsp";
|
||||
var lovKey = "chqEnq";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?accNo=' + accNo + '&screenName=' + screenName + '&lovKey=' + lovKey, 'chqEnq', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function checkDiv(transferForm)
|
||||
{
|
||||
if (transferForm.accNo.value == "")
|
||||
{
|
||||
alert("Please enter Account Number.");
|
||||
transferForm.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
if (transferForm.chqNo.value == "" )
|
||||
{
|
||||
alert("Please provide Cheque Number.");
|
||||
transferForm.chqNo.focus();
|
||||
return false;
|
||||
}
|
||||
if (transferForm.chqDt.value == "" )
|
||||
{
|
||||
alert("Please provide cheque date.");
|
||||
transferForm.chqDt.focus();
|
||||
return false;
|
||||
}
|
||||
if (transferForm.chqAmt.value == "" || transferForm.chqAmt.value == 0 )
|
||||
{
|
||||
alert("Cheque amount must be provided(Can not be zero).");
|
||||
transferForm.chqAmt.focus();
|
||||
return false;
|
||||
}
|
||||
if (transferForm.chqBnk.value == "" )
|
||||
{
|
||||
alert("Please provide issuer bank name.");
|
||||
transferForm.chqBnk.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function submitform(transferForm)
|
||||
{
|
||||
if(checkDiv(transferForm)){
|
||||
document.transferForm.selectedTab.value=selectedTab;
|
||||
document.transferForm.action = '/PacsApplication/ChequePostingServlet';
|
||||
document.transferForm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function submitformEnq()
|
||||
{
|
||||
document.chequeViewForm.selectedTab.value=selectedTab;
|
||||
document.chequeViewForm.action = '/PacsApplication/ChequePostingServlet';
|
||||
document.chequeViewForm.submit();
|
||||
return true;
|
||||
}
|
||||
|
||||
function openTab(evt, cityName) {
|
||||
// Declare all variables
|
||||
var i, tabcontent, tablinks;
|
||||
$('#transferForm').trigger("reset");
|
||||
|
||||
if(cityName=='ChequePosting'){
|
||||
$('#chequDetTab').hide();
|
||||
|
||||
}
|
||||
|
||||
// Get all elements with class="tabcontent" and hide them
|
||||
tabcontent = document.getElementsByClassName("tabcontent");
|
||||
for (i = 0; i < tabcontent.length; i++) {
|
||||
tabcontent[i].style.display = "none";
|
||||
}
|
||||
|
||||
// Get all elements with class="tablinks" and remove the class "active"
|
||||
tablinks = document.getElementsByClassName("tablinks");
|
||||
for (i = 0; i < tablinks.length; i++) {
|
||||
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
||||
}
|
||||
|
||||
// Show the current tab, and add an "active" class to the button that opened the tab
|
||||
document.getElementById(cityName).style.display = "block";
|
||||
evt.currentTarget.className += " active";
|
||||
selectedTab = cityName;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function setVisibility(){
|
||||
//document.getElementById("searchBatch").style.visibility='visible';
|
||||
$('#chequDetTab').show();
|
||||
|
||||
}
|
||||
function setTab(){
|
||||
|
||||
var evnt={currentTarget:null};
|
||||
|
||||
evnt.currentTarget = document.getElementById("toggleTab");
|
||||
Selectedtab = document.getElementById("toggleTab").value;
|
||||
if(Selectedtab=="ChequePosting")
|
||||
{
|
||||
openTab(evnt, 'ChequePosting');
|
||||
//$('#Posting').trigger("click");
|
||||
}
|
||||
if (Selectedtab=="ChequeEnquiry")
|
||||
{
|
||||
openTab(evnt, 'ChequeEnquiry');
|
||||
//$('#Enquiry').click();
|
||||
}
|
||||
<%--else
|
||||
{
|
||||
openTab(evnt, 'ChequePosting');
|
||||
//$('#Posting').trigger("click");
|
||||
//openTab(jquery.Event,'ChequePosting') ;
|
||||
}--%>
|
||||
|
||||
}
|
||||
function processCheque(chequeViewForm ,indicator){
|
||||
|
||||
|
||||
document.chequeViewForm.indicator.value=indicator;
|
||||
document.chequeViewForm.selectedTab.value=selectedTab+"Process";
|
||||
document.chequeViewForm.action = '/PacsApplication/ChequePostingServlet';
|
||||
document.chequeViewForm.submit();
|
||||
return true;
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/ChequePosting.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg1 = "";
|
||||
String error_msg2 = "";
|
||||
Object tabSelect = null;
|
||||
Object accNoServer = request.getAttribute("accNo");
|
||||
String accNo ="";
|
||||
if(accNoServer !=null)accNo=(String)accNoServer;
|
||||
|
||||
ArrayList<ChequeDetailsBean> chqDetBeanList=null;
|
||||
Object allChq = request.getAttribute("allcheque");
|
||||
Object error1 = request.getAttribute("message1");
|
||||
Object error2 = request.getAttribute("message2");
|
||||
|
||||
|
||||
if(request.getAttribute("toggleTab") != null){
|
||||
tabSelect = request.getAttribute("toggleTab");
|
||||
}else
|
||||
{
|
||||
// tabSelect ="CHEQUE POSTING";
|
||||
}
|
||||
|
||||
|
||||
|
||||
ChequeDetailsBean chqBean = null;
|
||||
if (error1 != null) {
|
||||
error_msg1 = error1.toString();
|
||||
|
||||
}
|
||||
else if (error2 !=null){
|
||||
error_msg2 = error2.toString();
|
||||
}
|
||||
else {
|
||||
|
||||
chqDetBeanList = null;//new ArrayList<ChequeDetailsBean>();
|
||||
|
||||
if (allChq != null) {
|
||||
chqDetBeanList = (ArrayList<ChequeDetailsBean>) request.getAttribute("allcheque");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
%>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<body onload="javascript:<%if (allChq != null) {%>setVisibility();<%}%>setTab();noBack();">
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
|
||||
|
||||
<div class="tab">
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201606000004041")) ) {%>
|
||||
<button class="tablinks" onclick="openTab(event, 'ChequeEnquiry')" id="Enquiry">Cheque Enquiry-Posting</button>
|
||||
<%}else{%>
|
||||
<button class="tablinks" onclick="openTab(event, 'ChequePosting')" id="Posting" >Cheque Posting</button>
|
||||
<%}%>
|
||||
</div>
|
||||
|
||||
<div id="ChequePosting" class="tabcontent">
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<%--<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white"></legend>--%>
|
||||
<form name="transferForm" method="post" action="" id="transferForm">
|
||||
<%if (!error_msg1.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg1%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<center>
|
||||
<td>Account Number<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="accNo" id="accNo" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_depAccount(750, 250,document.transferForm.accNo.value);"/></td>
|
||||
<br><br>
|
||||
<%-- <td style="text-align: right">Customer Name.: </td>
|
||||
<td><input type="text " name="custNm" id="custNm" value="" readonly/></td>--%>
|
||||
</center>
|
||||
<br><br>
|
||||
<center>
|
||||
<table >
|
||||
<tr>
|
||||
<td style="text-align: right">Cheque Number<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="chqNo" id="chqNo" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">Cheque Date<font color="red" >*</font>: </td>
|
||||
<td><input type="text" id="chqDt" name="chqDt" readonly style="text-align:center" /> <a href="#" onclick="return getCalendar(document.forms[0].chqDt);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">Cheque Amount<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="chqAmt" id="chqAmt" value="" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57'/></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">Cheque Issuer Bank<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="chqBnk" id="chqBnk" value=""/></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</center>
|
||||
<br><br>
|
||||
|
||||
|
||||
|
||||
<center>
|
||||
<input type="button" id="submitButton" value="Submit" onclick="javascript:submitform(transferForm)">
|
||||
<input type="reset" value="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<input type="hidden" name="screenName" value="DepositTransferOperation">
|
||||
|
||||
<input type="hidden" name="selectedTab" id="selectedTab">
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="ChequeEnquiry" class="tabcontent" >
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<%--<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white"></legend>--%>
|
||||
<form name="chequeViewForm" method="post" action="" id="chequeViewForm">
|
||||
<%if (!error_msg2.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg2%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<td>Account Number:</td>
|
||||
<td><input type="text" name="accNoEnq" id="accNoEnq" value="<%=blankNull(accNo)%>" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_depAccountEnq(750, 250,document.chequeViewForm.accNoEnq.value);"/></td>
|
||||
<br><br>
|
||||
</center>
|
||||
<div align="center" style="display:none" id="chequDetTab">
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
|
||||
<td>Cheque No</td>
|
||||
<td>Amount</td>
|
||||
<td>Bank Name</td>
|
||||
<td>Cheque Date</td>
|
||||
<td>Post Date</td>
|
||||
<td>Comission</td>
|
||||
<td>Narration</td>
|
||||
<td>Action</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
if(chqDetBeanList !=null){
|
||||
for (int k = 0; k < chqDetBeanList.size(); k++) {
|
||||
chqBean = chqDetBeanList.get(k);
|
||||
%>
|
||||
<tr class="tRow">
|
||||
|
||||
|
||||
<td> <input type="text" readonly style="width: 120px" name="ChqNO<%=k%>" id="ChqNO<%=k%>" value="<%=chqBean.getChqno()%>" /> </td>
|
||||
<td> <input type="text" readonly name="Amt<%=k%>" id="Amt<%=k%>" value="<%=chqBean.getChqAmnt()%>" /></td>
|
||||
<td> <input type="text" readonly style="width: 120px" name="BankName<%=k%>" id="BankName<%=k%>" value="<%=chqBean.getChqBank()%>" /> </td>
|
||||
<td> <input type="text" readonly style="text-align:center;" style="width: 120px" name="chqDate<%=k%>" id="chqDate<%=k%>" value="<%=chqBean.getChqDate()%>" /> </td>
|
||||
<td> <input type="text" readonly style="text-align:center;" style="width: 120px" name="PostDate<%=k%>" id="PostDate<%=k%>" value="<%=chqBean.getChqPostDate()%>" /> </td>
|
||||
<td> <input type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 120px" name="commission<%=k%>" id="commission<%=k%>"/> </td>
|
||||
<td> <input type="text" style="width: 120px" name="narration<%=k%>" id="narration<%=k%>"/> </td>
|
||||
<td>
|
||||
<select style="width: 150px" name="action<%=k%>" id="action<%=k%>" >
|
||||
<option value="PASS">Pass</option>
|
||||
<option value="RETURN">Return</option>
|
||||
<option value="DELETE">Delete</option>
|
||||
</select>
|
||||
<input type="button" value="submit" onclick="processCheque(chequeViewForm,<%=k%>)"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%}
|
||||
}%>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="selectedTab" id="selectedTab">
|
||||
<input type="hidden" name="indicator" id="indicator">
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
<input type="hidden" name="toggleTab" id="toggleTab" value="<%=tabSelect%>">
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
158
IPKS_Updated/web/web/web/Deposit/ChequePosting_old.jsp
Normal file
158
IPKS_Updated/web/web/web/Deposit/ChequePosting_old.jsp
Normal file
@@ -0,0 +1,158 @@
|
||||
<%--
|
||||
Document : ChequePosting
|
||||
Created on : Jul 7, 2018, 2:34:34 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Cheque Posting</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<script>
|
||||
function popup_depAccount(width, height, accNo) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "ChequePosting.jsp";
|
||||
var lovKey = "depositAccount"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?accNo=' + accNo + '&screenName=' + screenName + '&lovKey=' + lovKey, 'depositAccount', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function checkDiv(transferForm)
|
||||
{
|
||||
|
||||
if (transferForm.accNo.value == "")
|
||||
{
|
||||
alert("Account must be selected!!");
|
||||
transferForm.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
else if (transferForm.chqNo.value == "" )
|
||||
{
|
||||
alert("Cheque Number must be selected!!");
|
||||
transferForm.chqNo.focus();
|
||||
return false;
|
||||
}
|
||||
else if (transferForm.chqDt.value == "" )
|
||||
{
|
||||
alert("Please provide cheque date.");
|
||||
transferForm.chqDt.focus();
|
||||
return false;
|
||||
}
|
||||
else if (transferForm.chqAmt.value == "" || transferForm.chqAmt.value == 0 )
|
||||
{
|
||||
alert("Cheque amount must be provided(Can not be zero)!!");
|
||||
transferForm.chqAmt.focus();
|
||||
return false;
|
||||
}
|
||||
else if (transferForm.chqBnk.value == "" )
|
||||
{
|
||||
alert("Please provide issuer bank name.");
|
||||
transferForm.chqBnk.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function submitform(transferForm)
|
||||
{
|
||||
if(checkDiv(transferForm)){
|
||||
document.transferForm.action = '/PacsApplication/ChequePostingServlet';
|
||||
document.transferForm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<body >
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">CHEQUE POSTING</legend>
|
||||
<form name="transferForm" method="post" action="" id="transferForm">
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<center>
|
||||
<td>Account No:</td>
|
||||
<td><input type="text" name="accNo" id="accNo" /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_depAccount(750, 250,document.transferForm.accNo.value);"/></td>
|
||||
<br><br>
|
||||
<%-- <td style="text-align: right">Customer Name.: </td>
|
||||
<td><input type="text " name="custNm" id="custNm" value="" readonly/></td>--%>
|
||||
</center>
|
||||
<br><br>
|
||||
<center>
|
||||
<table >
|
||||
<tr>
|
||||
<td style="text-align: right">Cheque No. </td>
|
||||
<td><input type="number" name="chqNo" id="chqNo" value=""/></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">Cheque Date: </td>
|
||||
<td><input type="text" id="chqDt" name="chqDt" readonly /><a href="#" onclick="return getCalendar(document.forms[0].chqDt);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">Cheque Amount. </td>
|
||||
<td><input type="number" name="chqAmt" id="chqAmt" value=""/></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">Cheque Issuer Bank. </td>
|
||||
<td><input type="text" name="chqBnk" id="chqBnk" value=""/></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</center>
|
||||
<br><br>
|
||||
|
||||
|
||||
|
||||
<center>
|
||||
<input type="button" id="submitButton" value="Submit" onclick="javascript:submitform(transferForm)">
|
||||
<input type="reset" value="Reset" />
|
||||
</center>
|
||||
<input type="hidden" name="screenName" value="DepositTransferOperation">
|
||||
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
243
IPKS_Updated/web/web/web/Deposit/CustomerNetWorth_Report.jsp
Normal file
243
IPKS_Updated/web/web/web/Deposit/CustomerNetWorth_Report.jsp
Normal file
@@ -0,0 +1,243 @@
|
||||
<%--
|
||||
Document : CustomerNetWorth_Report
|
||||
Created on : Aug 13, 2019, 5:28:24 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="java.lang.String" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
if ( document.forms[0].accno.value == "" )
|
||||
{
|
||||
alert("Customer Number cannot be empty.");
|
||||
document.forms[0].accno.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/customer_net_worth_report";
|
||||
document.forms[0].reportName.value = "Customer Net Worth Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/CustomerNetWorth_Report.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function popup_searchReport(width, height, accno) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "CustomerNetWorth_Report.jsp";
|
||||
var lovKey = "searchReport"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationLoanLOV.jsp?accno=' + accno + '&screenName=' + screenName + '&lovKey=' + lovKey, 'searchReport', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<title>Customer Net Worth Report</title>
|
||||
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Customer Net Worth Report</legend>
|
||||
|
||||
<form name="CustomerNetWorth_Report" method="post" action="/PacsApplication/ExcelReportServlet">
|
||||
<br>
|
||||
<input type="hidden" name="userRole" id ="userRole" value="<%=userRole%>">
|
||||
<table>
|
||||
<%if (request.getAttribute("error") != null) {%>
|
||||
<tr><td colspan="2" align="center"><%=request.getAttribute("error").toString()%></td></tr>
|
||||
<%}%>
|
||||
|
||||
<tr></tr>
|
||||
<tr></tr> <tr></tr> <tr></tr> <tr></tr>
|
||||
<tr>
|
||||
<td>Customer Number <font color="red" >*</font>:</td>
|
||||
<td><input type="text" size="17" name="accno" id="accno" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
|
||||
<input type="button" name="accnoSearch" id="accnoSearch" value="Search" onclick="javascript:popup_searchReport(920, 480, document.CustomerNetWorth_Report.accno.value);"/></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
</table><br><br><br><br>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label><font color="red" >*</font> marked fields are mandatory.</label></td></tr>
|
||||
<center>
|
||||
|
||||
<input type="button" value="Fetch Report" onclick="javascript:downloadFiles();">
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
<input type="hidden" id="from_date" name="from_date" />
|
||||
<input type="hidden" id="to_date" name="to_date" />
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
745
IPKS_Updated/web/web/web/Deposit/DepositAccountCreation.jsp
Normal file
745
IPKS_Updated/web/web/web/Deposit/DepositAccountCreation.jsp
Normal file
@@ -0,0 +1,745 @@
|
||||
<%--
|
||||
Document : accountCreation
|
||||
Created on : Mar 8, 2016, 1:20:58 PM
|
||||
Author : Tcs Helpdesk10
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.AccountCreationBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>Deposit Account Creation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
function submitform(accCreatForm)
|
||||
{
|
||||
if (checkDiv(accCreatForm))
|
||||
{
|
||||
document.forms[0].action = '/PacsApplication/DepositAccountCreationServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function checkDiv(accCreatForm)
|
||||
{
|
||||
if (accCreatForm.productCodeDetails.value == "")
|
||||
{
|
||||
alert("Product Code must be filled.");
|
||||
accCreatForm.productCodeDetails.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.inttCategory.value == "")
|
||||
{
|
||||
alert("Interest Category must be filled.");
|
||||
accCreatForm.inttCategory.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.segmentCode.value == "")
|
||||
{
|
||||
alert("Segment Code must be filled.");
|
||||
accCreatForm.segmentCode.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.cifNumber.value == "")
|
||||
{
|
||||
alert("CIF Number must be filled.");
|
||||
accCreatForm.cifNumber.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.customerType.value == "")
|
||||
{
|
||||
alert("Customer Type must be filled.");
|
||||
accCreatForm.customerType.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.activityCode.value == "")
|
||||
{
|
||||
alert("Activity Code must be filled.");
|
||||
accCreatForm.activityCode.focus();
|
||||
return false;
|
||||
}
|
||||
<%--if (accCreatForm.holdType.value == "2" && accCreatForm.cifNumber2.value == "")
|
||||
{
|
||||
alert("Please provide secondary CIF for joint account");
|
||||
accCreatForm.cifNumber2.focus();
|
||||
return false;
|
||||
}--%>
|
||||
<%--Added By Bitan for Validating Secondary CIF Fields--%>
|
||||
if (accCreatForm.holdType.value == "2")
|
||||
{
|
||||
var counter = 10;
|
||||
for (i = 1; i < counter; i++) {
|
||||
if (document.getElementById('jt_cifNumber' + i)) {
|
||||
var val = document.getElementById('jt_cifNumber' + i).value;
|
||||
if (val == "") {
|
||||
alert("Please provide secondary CIF for joint account");
|
||||
document.getElementById('jt_cifNumber' + i).focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
<%--END--%>
|
||||
if ((document.getElementById("nomineebtn").value == "Delete Nominee") && document.getElementById("nominee").value == "") {
|
||||
alert("Please enter the nominee details");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var res = accCreatForm.productCode.value;
|
||||
var res2 = res.substring(0, 1);
|
||||
if (res2 == "2") {
|
||||
if (accCreatForm.inttrepmethod.value == "")
|
||||
{
|
||||
alert("All fields must be filled.");
|
||||
accCreatForm.inttrepmethod.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if ((accCreatForm.inttrepmethod.value == "T" || accCreatForm.inttrepmethod.value == "TR") && accCreatForm.intttransacc.value == "") {
|
||||
|
||||
|
||||
alert("Intt Transfer Account must be filled.");
|
||||
accCreatForm.intttransacc.focus();
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
var detectPCode = accCreatForm.productCode.value.charAt(0);
|
||||
if (detectPCode === "2")
|
||||
{
|
||||
if (accCreatForm.termValue.value == "")
|
||||
{
|
||||
alert("Term Value must be filled.");
|
||||
accCreatForm.termValue.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.termYears.value == "")
|
||||
{
|
||||
alert("Term in No. of Years must be filled.");
|
||||
accCreatForm.termYears.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.termMonth.value == "")
|
||||
{
|
||||
alert("Term in No. of Months must be filled.");
|
||||
accCreatForm.termMonth.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.termDays.value == "")
|
||||
{
|
||||
alert("Term in No. of Days must be filled.");
|
||||
accCreatForm.termDays.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.matAmt.value == "")
|
||||
{
|
||||
alert("Please click the 'Calculate Maturity' button to get the maturity amount");
|
||||
accCreatForm.matAmt.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (detectPCode === "3")
|
||||
{
|
||||
if (accCreatForm.instAmt.value == "")
|
||||
{
|
||||
alert("Installment amount must be filled.");
|
||||
accCreatForm.instAmt.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (accCreatForm.termMonth.value == "")
|
||||
{
|
||||
alert("Please enter term length in months.");
|
||||
accCreatForm.termMonth.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (accCreatForm.matAmt.value == "")
|
||||
{
|
||||
alert("Please click the 'Calculate Maturity' button to get the maturity amount");
|
||||
accCreatForm.matAmt.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(accCreatForm.cifNumber.value))
|
||||
{
|
||||
alert("CIF number could only contain numbers.");
|
||||
accCreatForm.cifNumber.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/; //this checks whether field contains digits
|
||||
if (accCreatForm.inttrepmethod.value == "T" || accCreatForm.inttrepmethod.value == "TR") {
|
||||
if (!re.test(accCreatForm.intttransacc.value))
|
||||
{
|
||||
alert("Intt Transfer Account could only contain numbers.");
|
||||
accCreatForm.intttransacc.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (detectPCode === "2")
|
||||
{
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/; //this checks whether field contains digits
|
||||
if (!re.test(accCreatForm.termValue.value))
|
||||
{
|
||||
alert("Term Value could only contain numbers.");
|
||||
accCreatForm.termValue.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.termYears.value == "")
|
||||
{
|
||||
alert("Term in No. of Years could only contain numbers.");
|
||||
accCreatForm.termYears.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.termMonth.value == "")
|
||||
{
|
||||
alert("Term in No. of Months could only contain numbers.");
|
||||
accCreatForm.termMonth.focus();
|
||||
return false;
|
||||
}
|
||||
if (accCreatForm.termDays.value == "")
|
||||
{
|
||||
alert("Term in No. of Days could only contain numbers.");
|
||||
accCreatForm.termDays.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (detectPCode === "3")
|
||||
{
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/; //this checks whether field contains digits
|
||||
if (!re.test(accCreatForm.instAmt.value))
|
||||
{
|
||||
alert("Installment amount could only contain numbers.");
|
||||
accCreatForm.instAmt.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!re.test(accCreatForm.termMonth.value))
|
||||
{
|
||||
alert("Term length in months could only contain numbers.");
|
||||
accCreatForm.termMonth.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function showNominee() {
|
||||
if (document.getElementById("nomineebtn").value == "Add Nominee") {
|
||||
$('#addnominee').show();
|
||||
document.getElementById("nomineebtn").value = "Delete Nominee";
|
||||
} else if (document.getElementById("nomineebtn").value == "Delete Nominee") {
|
||||
$('#addnominee').hide();
|
||||
document.getElementById("nominee").value = "";
|
||||
document.getElementById("nomineeName").value = "";
|
||||
document.getElementById("nomineeName").style.display = 'none';
|
||||
document.getElementById("nomineebtn").value = "Add Nominee";
|
||||
}
|
||||
}
|
||||
|
||||
function sendInfo() {
|
||||
|
||||
document.forms[0].handle_id.value = document.accCreatForm.productCode.value;
|
||||
document.forms[0].action = "DynamicInttCategory.jsp";
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/DepositAccountCreation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
<%--Changed by Bitan Regarding Multiple CIF--%>
|
||||
<%-- $(document).ready(function () {
|
||||
$('select#holdType').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case '1':
|
||||
$('#forJoint').hide();
|
||||
break;
|
||||
case '2':
|
||||
$('#forJoint').show();
|
||||
break;
|
||||
default:
|
||||
$('#forJoint').hide();
|
||||
}
|
||||
});
|
||||
});--%>
|
||||
|
||||
|
||||
function popup_Maturity(width, height, instAmt, termMonth) {
|
||||
// var first = $('#inttCatDetails').val();
|
||||
var firstChar = first.substring(0, 4);
|
||||
|
||||
//var prod = $('#productCodeDetails').val();
|
||||
var prodCode = prod.substr(0, 4);
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositAccountCreation.jsp";
|
||||
var lovKey = "CalcMaturity"
|
||||
popWin = open('/PacsApplication/CommonSearchInformationDepositLOV.jsp?instAmt=' + instAmt + '&termMonth=' + termMonth + '&prodCodeDetails=' + prodCode + '&inttCatDetails=' + firstChar + '&screenName=' + screenName + '&lovKey=' + lovKey, 'CalcMaturity', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_FDMaturity(width, height, termValue, termYears, termMonth, termDays, productCodeDetails, inttCatDetails) {
|
||||
//var firstChar = inttCatDetails.substring(0, 4);
|
||||
// var first = $('#inttCatDetails').val();
|
||||
var firstChar = first.substring(0, 4);
|
||||
if ($('#termValue').val() == "") {
|
||||
alert("Please enter term Value to calculate maturity Amount!");
|
||||
} else if ($('#termYears').val() == "") {
|
||||
alert("Please enter all termYears to calculate maturity Amount!");
|
||||
} else if ($('#termMonth').val() == "") {
|
||||
alert("Please enter all termMonth to calculate maturity Amount!");
|
||||
} else if ($('#termDays').val() == "") {
|
||||
alert("Please enter all termDays to calculate maturity Amount!");
|
||||
} else {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
//var firstChar = inttCatDetails.substr(0, 4);
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositAccountCreation.jsp";
|
||||
var lovKey = "CalcFDMaturity"
|
||||
popWin = open('/PacsApplication/CommonSearchInformationDepositLOV.jsp?termValue=' + termValue + '&termYears=' + termYears + '&termMonth=' + termMonth + '&termDays=' + termDays + '&productCodeDetails=' + productCodeDetails + '&inttCatDetails=' + firstChar + '&screenName=' + screenName + '&lovKey=' + lovKey, 'CalcFDMaturity', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function popup_CIF(width, height, cifNumber, productCode) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositAccountCreation.jsp";
|
||||
var lovKey = "CifDetails"
|
||||
popWin = open('/PacsApplication/CommonSearchInfoLOVNew.jsp?cifNumber=' + cifNumber + '&productCode=' + productCode + '&screenName=' + screenName + '&lovKey=' + lovKey, 'CifDetails', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_CIF2(width, height, cifNumber, productCode, counter) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositAccountCreation.jsp";
|
||||
var lovKey = "CifDetails2"
|
||||
popWin = open('/PacsApplication/CommonSearchInfoLOVNew.jsp?cifNumber=' + cifNumber + '&productCode=' + productCode + '&screenName=' + screenName + '&lovKey=' + lovKey + '&Counter=' + counter, 'CifDetails', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_Nominee(width, height, cifNumber) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositAccountCreation.jsp";
|
||||
var lovKey = "nominee"
|
||||
popWin = open('/PacsApplication/CommonSearchInformationDepositLOV.jsp?cifNumber=' + cifNumber + '&screenName=' + screenName + '&lovKey=' + lovKey, 'CifDetails', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_productCode(width, height, productCodeDetails) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositAccountCreation.jsp";
|
||||
var lovKey = "productCodeSearch"
|
||||
popWin = open('/PacsApplication/CommonSearchInformationDepositLOV.jsp?productCodeDetails=' + productCodeDetails + '&screenName=' + screenName + '&lovKey=' + lovKey, 'productCodeSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
$(document).on('change', '#inttrepmethod', function () {
|
||||
var shouldEnable = ($(this).val() !== 'T' && $(this).val() !== 'TR');
|
||||
document.forms[0].intttransacc.value = "";
|
||||
$('#intttransacc').prop('disabled', shouldEnable);
|
||||
$('#transferbutton').prop('disabled', shouldEnable);
|
||||
});
|
||||
|
||||
function popup_savingsAcc(width, height, cifNumber) {
|
||||
if ($('#cifNumber').val() == "") {
|
||||
alert("Please select CIF Number first !!");
|
||||
} else if ($('#inttrepmethod').val() == "") {
|
||||
alert("Please select Interest Repayment Method first !!");
|
||||
} else {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
} else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositAccountCreation.jsp";
|
||||
var lovKey = "SavingsAccSearch"
|
||||
popWin = open('/PacsApplication/CommonSearchInformationDepositLOV.jsp?cifNumber=' + cifNumber + '&screenName=' + screenName + '&lovKey=' + lovKey, 'SavingsAccSearch', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
}
|
||||
<%--Added By Bitan For Multiple CIF Change--%>
|
||||
$(document).ready(function () {
|
||||
var counter = 2;
|
||||
|
||||
$('select#holdType').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch (shouldEnable)
|
||||
{
|
||||
case '1':
|
||||
$('#TextBoxDiv1').hide();
|
||||
$('#AddCif').hide();
|
||||
break;
|
||||
case '2':
|
||||
$('#TextBoxDiv1').show();
|
||||
$('#AddCif').show();
|
||||
break;
|
||||
default:
|
||||
$('#TextBoxDiv1').hide();
|
||||
$('#AddCif').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#addButton").click(function () {
|
||||
if (counter > 10) {
|
||||
alert("Maximum of 10 Joint holders allowed per Account");
|
||||
return false;
|
||||
}
|
||||
<%--var newTextBoxDiv = $(document.createElement('tr'))
|
||||
.attr("id", 'TextBoxDiv' + counter);
|
||||
newTextBoxDiv.after().html('<td><label>Secondary CIF Number #'+ counter + ' : </label></td>' +
|
||||
'<td><input type="text" name="jt_cifNumber' + counter +
|
||||
'" id="jt_cifNumber' + counter + '" value="" ><input type="button" name="cifSearch' + counter +
|
||||
'" id="cifSearch' + counter + '" value="Search" onclick="javascript:popup_CIF2(650, 180, document.accCreatForm.jt_cifNumber' + counter+
|
||||
'.value,document.accCreatForm.productCode.value,'+counter+');"/></td><td><input type="text" name="jt_name'+counter+'" readonly style="display:none" id="jt_name'+counter+'"/></td>');
|
||||
|
||||
newTextBoxDiv.appendTo("#TextBoxesGroup");--%>
|
||||
var newCif = $(document.createElement('tr')).attr("id", 'TextBoxDiv' + counter);
|
||||
newCif.after().html('<td><label>Secondary CIF Number #' + counter + ' : </label></td>' +
|
||||
'<td><input type="text" name="jt_cifNumber' + counter +
|
||||
'" id="jt_cifNumber' + counter + '" value="" >\n\
|
||||
<input type="button" name="cifSearch' + counter +
|
||||
'" id="cifSearch' + counter + '" value="Search" onclick="javascript:popup_CIF2(650, 180, document.accCreatForm.jt_cifNumber' + counter +
|
||||
'.value,document.accCreatForm.productCode.value,' + counter + ');"/></td><td><input type="text" name="jt_name' + counter + '" readonly style="display:none" id="jt_name' + counter + '"/></td>');
|
||||
|
||||
newCif.insertBefore("#AddCif");
|
||||
counter++;
|
||||
});
|
||||
|
||||
$("#removeButton").click(function () {
|
||||
if (counter == 1) {
|
||||
alert("No more CIF to remove");
|
||||
return false;
|
||||
}
|
||||
counter--;
|
||||
$("#TextBoxDiv" + counter).remove();
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function (event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Deposit Account Creation</legend>
|
||||
|
||||
<form name="accCreatForm" method="post" onsubmit="return checkDiv(this)" action="DepositAccountCreationServlet">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<div id="create" align="left">
|
||||
|
||||
<table id="depositAccTableID">
|
||||
<tr><td><hr></td></tr>
|
||||
<tr><td><h3>Account Information:</h3></td></tr>
|
||||
<tr>
|
||||
<td><lable>Product Code<font color="red" >*</font>:</lable></td>
|
||||
<td><input type="text" id="productCodeDetails" name="productCodeDetails" readonly>
|
||||
<input type="button" name="productCodeSearch" id="productCodeSearch" value="Search" onclick="javascript:popup_productCode(420, 280, document.accCreatForm.productCodeDetails.value);"/></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Interest Category<font color="red" >*</font>:</lable></td>
|
||||
<td><input type="text" id="inttCatDetails" name="inttCatDetails" readonly="true"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><lable>Segment Code<font color="red" >*</font>:</lable></td>
|
||||
<td>
|
||||
<select id="segmentCode" name="segmentCode">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="0706">0706:INDIVIDUAL</option>
|
||||
<option value="0306">0306:STAFF</option>
|
||||
<option value="5003">5003:SENIOR CITIZEN</option>
|
||||
<option value="5010">5010:SHG</option>
|
||||
<option value="5000">5000:BANKS</option>
|
||||
<option value="5009">5009:INSTITUTIONS</option>
|
||||
<option value="5050">5050:OTHERS</option>
|
||||
<option value="5007">5007:SOCIETY</option>
|
||||
<option value="5011">5011:GOV/SEMI GOV</option>
|
||||
<option value="5012">5012:PACS</option>
|
||||
<option value="5013">5013:UCB</option>
|
||||
<option value="5014">5014:SCB</option>
|
||||
<option value="5015">5015:CCB</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Account Holder Type:</td>
|
||||
<td><select id="holdType" name="holdType" >
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="1">Single</option>
|
||||
<option value="2">Joint</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Primary CIF Number<font color="red" >*</font>:</lable></td>
|
||||
<td><input type="text" id="cifNumber" name="cifNumber" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'>
|
||||
<input type="button" name="cifNumberSearch" id="cifNumberSearch" value="Search" onclick="javascript:popup_CIF(650, 180, document.accCreatForm.cifNumber.value, document.accCreatForm.productCode.value);"/></td>
|
||||
<td><input type="text" readonly style="display:none" id="name1" name="name1"/></td>
|
||||
</tr>
|
||||
|
||||
<%-- <tr id="forJoint" style="display:none">
|
||||
<td><lable>Secondary CIF Number :</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2">
|
||||
<input type="button" name="cifNumberSearch2" id="cifNumberSearch2" value="Search" onclick="javascript:popup_CIF2(650, 180, document.accCreatForm.cifNumber2.value,document.accCreatForm.productCode.value);"/></td>
|
||||
<td><input type="text" readonly style="display:none" id="name2" name="name2"/></td>
|
||||
</tr>--%>
|
||||
<%--Added By Bitan for Multiple CIF Change--%>
|
||||
<%--<tr id='TextBoxesGroup' style="display:none">--%>
|
||||
<%-- <tr id="TextBoxDiv1">
|
||||
<td><label>Textbox #1 : </label><input type='textbox' id='textbox1' ></td>
|
||||
</tr>--%>
|
||||
|
||||
<tr id='TextBoxDiv1' style="display:none">
|
||||
<td><label>Secondary CIF Number #1: </label></td>
|
||||
<td><input type="text" name="jt_cifNumber1" id="jt_cifNumber1" value="" >
|
||||
<input type="button" name="cifSearch1" id="cifSearch1" value="Search" onclick="javascript:popup_CIF2(650, 180, document.accCreatForm.jt_cifNumber1.value, document.accCreatForm.productCode.value, 1);"/></td>
|
||||
<td><input type="text" name="jt_name1" readonly style="display:none" id="jt_name1"/></td>
|
||||
</tr>
|
||||
<tr id="AddCif" style="display:none">
|
||||
<td><input type='button' value='Add CIF' id='addButton'></td>
|
||||
<td><input type='button' value='Remove CIF' id='removeButton'></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>OD Limit:</td>
|
||||
<td><input type="text" id="ODlimit" name="ODlimit"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><input type="button" name="nomineebtn" id="nomineebtn" value="Add Nominee" onclick="javascript:showNominee();" /></td>
|
||||
</tr>
|
||||
<tr id="addnominee" style="display:none">
|
||||
<td><lable>Nominee CIF Number:</lable></td>
|
||||
<td><input type="text" id="nominee" name="nominee">
|
||||
<input type="button" name="nomineeSearch" id="nomineeSearch" value="Search" onclick="javascript:popup_Nominee(650, 180, document.accCreatForm.nominee.value);"/></td>
|
||||
<td><input type="text" readonly style="display:none" id="nomineeName" name="nomineeName"/></td>
|
||||
</tr>
|
||||
|
||||
<tr><td><hr></td></tr>
|
||||
<tr><td><h3>Additional Information:</h3></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><lable>Activity Code<font color="red" >*</font>:</lable></td>
|
||||
<td>
|
||||
<select id="activityCode" name="activityCode">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="1">Direct Agriculture</option>
|
||||
|
||||
<option value="2">Indirect Agriculture</option>
|
||||
<option value="3">Agricultural Service Units</option>
|
||||
<option value="4">Farm Irrigation</option>
|
||||
<option value="5">Fruits & Vegetables</option>
|
||||
<option value="6">Non-Agriculture</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Customer Type<font color="red" >*</font>:</lable></td>
|
||||
<td>
|
||||
<select id="customerType" name="customerType">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="I">Individual</option>
|
||||
<option value="C">Corporate</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Interest Repay Method:</td>
|
||||
<td><select id="inttrepmethod" name="inttrepmethod">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="T">Transfer</option>
|
||||
<option value="TR">Transfer and Renew</option>
|
||||
<option value="R">Auto-renew</option>
|
||||
<option value="F">Freeze</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Interest Transfer Account:</td>
|
||||
<td><input type="text" id="intttransacc" name="intttransacc" disabled><input type="button" name="transferbutton" id="transferbutton" value="Search" onclick="javascript:popup_savingsAcc(420, 280, document.accCreatForm.cifNumber.value);"/></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><input type="hidden" id="intRate" name="intRate" value="" onkeypress='return event.charCode >= 46 && event.charCode <= 57'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="hidden" id="penIntRate" name="penIntRate" value="" onkeypress='return event.charCode >= 46 && event.charCode <= 57'></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(accCreatForm)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">All fields are mandatory</label>
|
||||
</div>
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
<input type="hidden" name="productCode" value="" />
|
||||
<input type="hidden" name="inttCategory" value="" />
|
||||
|
||||
</form>
|
||||
<script>
|
||||
$('div#create').on('keydown', '#ODlimit,#termValue,#termYears,#termMonth,#termDays,#instAmt', function (event) {
|
||||
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46 || event.keyCode == 190) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ($(this).val().indexOf('.') !== -1 && event.keyCode == 190)
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
@@ -0,0 +1,345 @@
|
||||
<%--
|
||||
Document : accountCreation
|
||||
Created on : Mar 8, 2016, 1:20:58 PM
|
||||
Author : Tcs Helpdesk10
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.DepositAccountCreationBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Deposit Account Creation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function Approveform(accCreatFormReadonly)
|
||||
{
|
||||
if (document.forms[0].AuthComment.value==""||document.forms[0].AuthComment.value==null){
|
||||
|
||||
alert("Comments Required");
|
||||
return false;
|
||||
|
||||
}
|
||||
document.forms[0].handle_id.value="AuthorizeAccOpen";
|
||||
document.forms[0].action = '/PacsApplication/TransactionAuthorizationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function Rform(accCreatFormReadonly)
|
||||
{
|
||||
if (document.forms[0].AuthComment.value==""||document.forms[0].AuthComment.value==null){
|
||||
|
||||
alert("Comments Required");
|
||||
return false;
|
||||
|
||||
}
|
||||
document.forms[0].handle_id.value="RejectAccOpen";
|
||||
document.forms[0].action = '/PacsApplication/TransactionAuthorizationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
Object DepositAccountCreationBeanObj = request.getAttribute("oDepositAccountCreationBean");
|
||||
DepositAccountCreationBean oDepositAccountCreationBean = new DepositAccountCreationBean();
|
||||
|
||||
if (DepositAccountCreationBeanObj != null) {
|
||||
oDepositAccountCreationBean = (DepositAccountCreationBean) request.getAttribute("oDepositAccountCreationBean");
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">DEPOSIT ACCOUNT AUTHORIZATION</legend>
|
||||
|
||||
<form name="accCreatFormReadonly" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<div id="create" align="left">
|
||||
|
||||
<table>
|
||||
<tr><td><hr></td></tr>
|
||||
<tr><td><h3>Account Information :</h3></td></tr>
|
||||
<tr>
|
||||
<td><lable>Product Code :</lable></td>
|
||||
<td><input type="text" id="productCodeDetails" name="productCodeDetails" readonly value="<%=blankNull(oDepositAccountCreationBean.getProductName())%>" ></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Intt Category :</lable></td>
|
||||
<td><input type="text" id="inttCatDetails" name="inttCatDetails" readonly="true" value="<%=blankNull(oDepositAccountCreationBean.getInttDescription())%>"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><lable>Segment Code :</lable></td>
|
||||
<td>
|
||||
<select id="segmentCode" name="segmentCode" disabled>
|
||||
<option value="" disabled <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("")) {%> selected <%}%> style="display:none;">--Select--</option>
|
||||
<option value="0706" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("0706")) {%> selected <%}%>>0706:INDIVIDUAL</option>
|
||||
<option value="0306" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("0306")) {%> selected <%}%>>0306:STAFF</option>
|
||||
<option value="5003" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5003")) {%> selected <%}%>>5003:SENIOR CITIZEN</option>
|
||||
<option value="5010" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5010")) {%> selected <%}%>>5010:SHG</option>
|
||||
<option value="5000" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5000")) {%> selected <%}%>>5000:BANKS</option>
|
||||
<option value="5009" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5009")) {%> selected <%}%>>5009:INSTITUTIONS</option>
|
||||
<option value="5050" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5050")) {%> selected <%}%>>5050:OTHERS</option>
|
||||
<option value="5007" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5007")) {%> selected <%}%>>5007:SOCIETY</option>
|
||||
<option value="5011" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5011")) {%> selected <%}%>>5011:GOV/SEMI GOV</option>
|
||||
<option value="5012" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5012")) {%> selected <%}%>>5012:PACS</option>
|
||||
<option value="5013" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5013")) {%> selected <%}%>>5013:UCB</option>
|
||||
<option value="5014" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5014")) {%> selected <%}%>>5014:SCB</option>
|
||||
<option value="5015" <%if (blankNull(oDepositAccountCreationBean.getSegmentCode()).equals("5015")) {%> selected <%}%>>5015:CCB</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Primary CIF Number:</lable></td>
|
||||
<td><input type="text" id="cifNumber" name="cifNumber" value="<%=blankNull(oDepositAccountCreationBean.getCifNumber())%>" readonly></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Primary Customer Name:</lable></td>
|
||||
<td><input type="text" id="cifName1" name="cifName1" value="<%=blankNull(oDepositAccountCreationBean.getCifName())%>" disabled readonly></td>
|
||||
|
||||
</tr>
|
||||
<%--<tr>
|
||||
<td><lable>Secondary CIF Number :</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getCifNumber2())%>" readonly></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary Customer Name:</lable></td>
|
||||
<td><input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getCifName2())%>" disabled readonly></td>
|
||||
|
||||
</tr>--%>
|
||||
<%--Start Changes By Bitan For Multiple CIF Changes--%>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#1:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber1())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName1())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#2:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber2())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName2())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#3:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber3())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName3())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#4:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber4())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName4())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#5:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber5())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName5())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#6:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber6())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName6())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#7:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber7())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName7())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#8:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber8())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName8())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#9:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber9())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName9())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Secondary CIF Number#10:</lable></td>
|
||||
<td><input type="text" id="cifNumber2" name="cifNumber2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifNumber10())%>" readonly>
|
||||
<input type="text" id="cifName2" name="cifName2" value="<%=blankNA(oDepositAccountCreationBean.getJt_cifName10())%>" disabled readonly></td>
|
||||
</tr>
|
||||
<%--END Changes By Bitan For Multiple CIF Changes--%>
|
||||
<tr>
|
||||
<td><lable>Nominee:</lable></td>
|
||||
<td><input type="text" id="nomineeCif" name="nomineeCif" value="<%=blankNA(oDepositAccountCreationBean.getNominee())%>" readonly>
|
||||
|
||||
<input type="text" id="nomineeName" name="nomineeName" value="<%=blankNA(oDepositAccountCreationBean.getNomineeName())%>" disabled readonly></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Account Open Date :</td>
|
||||
<td><input type="text" id="accOpenDate" name="accOpenDate" readonly="true" value="<%=blankNull(oDepositAccountCreationBean.getAccOpenDate())%>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>OD Limit:</td>
|
||||
<td><input type="text" id="ODlimit" name="ODlimit" readonly value="<%=blankNull(oDepositAccountCreationBean.getODlimit())%>"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr><td><hr></td></tr>
|
||||
<tr><td><h3>Additional Information :</h3></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><lable>Activity Code :</lable></td>
|
||||
<td>
|
||||
<select id="activityCode" name="activityCode" disabled>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="1"<%if (blankNull(oDepositAccountCreationBean.getActivityCode()).equals("1")) {%> selected <%}%>>Direct Agriculture</option>
|
||||
<option value="2"<%if (blankNull(oDepositAccountCreationBean.getActivityCode()).equals("2")) {%> selected <%}%>>Indirect Agriculture</option>
|
||||
<option value="3"<%if (blankNull(oDepositAccountCreationBean.getActivityCode()).equals("3")) {%> selected <%}%>>Agricultural Service Units</option>
|
||||
<option value="4"<%if (blankNull(oDepositAccountCreationBean.getActivityCode()).equals("4")) {%> selected <%}%>>Farm Irrigation</option>
|
||||
<option value="5"<%if (blankNull(oDepositAccountCreationBean.getActivityCode()).equals("5")) {%> selected <%}%>>Fruits & Vegetables</option>
|
||||
<option value="6"<%if (blankNull(oDepositAccountCreationBean.getActivityCode()).equals("6")) {%> selected <%}%>>Non-Agriculture</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Customer Type :</lable></td>
|
||||
<td>
|
||||
<select id="customerType" name="customerType" disabled>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="I"<%if (blankNull(oDepositAccountCreationBean.getCustomerType()).equals("I")) {%> selected <%}%>>Individual</option>
|
||||
<option value="C"<%if (blankNull(oDepositAccountCreationBean.getCustomerType()).equals("C")) {%> selected <%}%>>Corporate</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Intt Repay Method</td>
|
||||
<td><select id="inttrepmethod" name="inttrepmethod" disabled>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="T"<%if (blankNull(oDepositAccountCreationBean.getInttrepmethod()).equals("T")) {%> selected <%}%>>Transfer</option>
|
||||
<option value="TR"<%if (blankNull(oDepositAccountCreationBean.getInttrepmethod()).equals("TR")) {%> selected <%}%>>Transfer and Renew</option>
|
||||
<option value="R"<%if (blankNull(oDepositAccountCreationBean.getInttrepmethod()).equals("R")) {%> selected <%}%>>Auto-renew</option>
|
||||
<option value="F"<%if (blankNull(oDepositAccountCreationBean.getInttrepmethod()).equals("F")) {%> selected <%}%>>Freeze</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Intt Transfer Account:</td>
|
||||
<td><input type="text" id="intttransacc" name="intttransacc" readonly value="<%=blankNull(oDepositAccountCreationBean.getIntttransacc())%>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr><td>Term Value:</td><td><input type="text" readonly id="termValue" name="termValue" value="<%=blankNA(oDepositAccountCreationBean.getTermValue())%>"></td></tr>
|
||||
|
||||
<% if (blankNull(oDepositAccountCreationBean.getProductName()).substring(0, 1).equalsIgnoreCase("3")){%>
|
||||
<tr><td>Installment Amount:</td><td><input type="text" size="4" readonly id="instAmt" name="instAmt" value="<%=blankNA(oDepositAccountCreationBean.getInstAmt())%>"></td></tr>
|
||||
<tr><td>Term Length (In Months):</td><td><input type="text" size="2" readonly id="termMonth" name="termMonth" value="<%=blankNA(oDepositAccountCreationBean.getTermMonth())%>"></td></tr>
|
||||
<%} else {%>
|
||||
<tr><td>Term Length:</td><td><input type="text" size="1" readonly id="termYears" name="termYears" value="<%=blankNA(oDepositAccountCreationBean.getTermYears())%>"><label> Years</label><input type="text" size="1" readonly id="termMonth" name="termMonth" value="<%=blankNA(oDepositAccountCreationBean.getTermMonth())%>"><label> Months</label><input type="text" size="1" readonly id="termDays" name="termDays" value="<%=blankNA(oDepositAccountCreationBean.getTermDays())%>"><label> Days</label></td></tr>
|
||||
<%}%>
|
||||
|
||||
<td><lable>Membership Number :</lable></td>
|
||||
<td><input type="text" id="memberno" name="memberno" value="<%=blankNull(oDepositAccountCreationBean.getMemberno())%>" readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Authorizer's Comment:</td>
|
||||
<td>
|
||||
<textarea name="AuthComment" id="AuthComment"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<center>
|
||||
<input type="button" value="Authorize" onclick="javascript:Approveform(accCreatFormReadonly);" />
|
||||
<input type="button" value="Reject" name="reset" onclick="javascript:Rform(accCreatFormReadonly);" />
|
||||
</center>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">All fields are mandatory</label>
|
||||
</div>
|
||||
<%}%>
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="" />
|
||||
<input type="hidden" name="AuthActivity" value="DEPOSIT_ACCOUNT" />
|
||||
<input type="hidden" name="SearchID" id="SearchID" value="<%=blankNull(oDepositAccountCreationBean.getId())%>" />
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
722
IPKS_Updated/web/web/web/Deposit/DepositAccountEnquiry.jsp
Normal file
722
IPKS_Updated/web/web/web/Deposit/DepositAccountEnquiry.jsp
Normal file
@@ -0,0 +1,722 @@
|
||||
<%--
|
||||
Document : DepositAccountEnquiry
|
||||
Created on : Sep 13, 2016, 2:23:35 PM
|
||||
Author :
|
||||
--%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<% try {
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<title>Deposit Account Enquiry</title>
|
||||
<link rel="shortcut icon" href="img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<style>
|
||||
.underline_on_hover:hover{
|
||||
text-decoration: underline;
|
||||
color: teal;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
function accountsubmitform(enquiryForm)
|
||||
{
|
||||
if(!checkdate()){
|
||||
|
||||
alert("Please select valid date range");
|
||||
return false;
|
||||
}
|
||||
<%--if( document.forms[0].accountNo.value == "" ){
|
||||
alert("Please provide value in Account Number.");
|
||||
document.forms[0].accountNo.focus();
|
||||
return false;
|
||||
}--%>
|
||||
if( document.forms[0].productName.value == ""){
|
||||
alert("Please enter Product Name.");
|
||||
document.forms[0].productName.focus();
|
||||
return false;
|
||||
}
|
||||
document.forms[0].totalRecordCount.value=0;
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
///added Later
|
||||
function checkdate()
|
||||
{
|
||||
var s1 = document.getElementById("fromDate").value;
|
||||
var s2 = document.getElementById("toDate").value;
|
||||
var dateParts1 = s1.split("/");
|
||||
var dateParts2 = s2.split("/");
|
||||
|
||||
var dateObject1 = new Date(dateParts1[2], dateParts1[1] - 1, dateParts1[0]);
|
||||
var dateObject2 = new Date(dateParts2[2], dateParts2[1] - 1, dateParts2[0]);
|
||||
|
||||
if (dateObject1>dateObject2){
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/DepositAccountEnquiry.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
function excelDownload() {
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function callNextPage()
|
||||
{
|
||||
var totalRecordCount=document.forms[0].totalRecordCount.value;
|
||||
var recordCount=document.forms[0].recordCount.value;
|
||||
|
||||
if (totalRecordCount==recordCount){
|
||||
|
||||
alert("No more record to display");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].but_type.value = 'N';
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function callPrevPage()
|
||||
{
|
||||
var totalRecordCount= document.forms[0].totalRecordCount.value;
|
||||
var noOfRecords= document.forms[0].noOfRecords.value;
|
||||
document.forms[0].totalRecordCount.value= Number(totalRecordCount) - Number(noOfRecords)-10;
|
||||
document.forms[0].but_type.value = 'P';
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function dnldReport(){
|
||||
document.forms[0].reportPath.value = "/Reports/DepAcctStmt";
|
||||
document.forms[0].reportName.value = "ACCOUNT STATEMENT REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function blank_NA(s) {
|
||||
return (s == "null") ? "NA" : s;
|
||||
}
|
||||
|
||||
function checkBlank(s){
|
||||
return (s == "null") ? false : true;
|
||||
}
|
||||
|
||||
function getSecondaryCIFTable(cifNumber1 , cifName1 ,
|
||||
cifNumber2 , cifName2 ,
|
||||
cifNumber3 , cifName3 ,
|
||||
cifNumber4 , cifName4 ,
|
||||
cifNumber5 , cifName5 ,
|
||||
cifNumber6 , cifName6 ,
|
||||
cifNumber7 , cifName7 ,
|
||||
cifNumber8 , cifName8 ,
|
||||
cifNumber9 , cifName9 ,
|
||||
cifNumber10 , cifName10 ){
|
||||
|
||||
//alert( cifNumber1)
|
||||
var msg = '<table id="ShowSecondaryCIF" border="2" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px; width: 25%;">'+
|
||||
'<thead class="CSSTableGenerator">'+
|
||||
'<tr>'+
|
||||
'<td>CIF Number</td>'+
|
||||
'<td>Customer Name</td>'+
|
||||
'</tr>'+
|
||||
'</thead>';
|
||||
if(checkBlank(cifNumber1)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber1)+'</td>'+
|
||||
' <td>'+blank_NA(cifName1)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber2)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber2)+'</td>'+
|
||||
' <td>'+blank_NA(cifName2)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber3)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber3)+'</td>'+
|
||||
' <td>'+blank_NA(cifName3)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber4)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber4)+'</td>'+
|
||||
' <td>'+blank_NA(cifName4)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber5)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber5)+'</td>'+
|
||||
' <td>'+blank_NA(cifName5)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber6)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber6)+'</td>'+
|
||||
' <td>'+blank_NA(cifName6)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber7)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber7)+'</td>'+
|
||||
' <td>'+blank_NA(cifName7)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber8)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber8)+'</td>'+
|
||||
' <td>'+blank_NA(cifName8)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber9)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber9)+'</td>'+
|
||||
' <td>'+blank_NA(cifName9)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
if(checkBlank(cifNumber10)){
|
||||
msg=msg+' <tr>'+
|
||||
' <td>'+blank_NA(cifNumber10)+'</td>'+
|
||||
' <td>'+blank_NA(cifName10)+'</td>'+
|
||||
' </tr>';
|
||||
}
|
||||
msg=msg+'</table>';
|
||||
//alert(msg);
|
||||
var timeOut = 7
|
||||
//jQuery('#SecondaryCIF').text(msg).fadeIn()
|
||||
jQuery('#SecondaryCIF').after().html(msg).fadeIn()
|
||||
jQuery('#SecondaryCIF').css("display", "block")
|
||||
setTimeout(function() {
|
||||
jQuery('#SecondaryCIF').fadeOut()
|
||||
jQuery('#SecondaryCIF').css("display", "none")
|
||||
}, timeOut * 1000);
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alEnquiryBeanObj = request.getAttribute("alEnquiryBean");
|
||||
ArrayList<EnquiryBean> alEnquiryBean = new ArrayList<EnquiryBean>();
|
||||
if (alEnquiryBeanObj != null) {
|
||||
alEnquiryBean = (ArrayList<EnquiryBean>) request.getAttribute("alEnquiryBean");
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
int flag2 = 1;
|
||||
int curPage = 0;
|
||||
try {
|
||||
curPage = Integer.parseInt(request.getAttribute("currentPage").toString());
|
||||
} catch (Exception e) {
|
||||
curPage = 1;
|
||||
}
|
||||
if (alEnquiryBean.size() > 0) {
|
||||
flag2 = 2;
|
||||
}
|
||||
int totalRecordCount = 0;
|
||||
int recordCount = 0;
|
||||
int noOfRecords =0;
|
||||
|
||||
try {
|
||||
totalRecordCount = Integer.parseInt(request.getAttribute("totalRecordCount").toString());
|
||||
recordCount = Integer.parseInt(request.getAttribute("recordCount").toString());
|
||||
} catch (Exception e) {
|
||||
totalRecordCount = 0;
|
||||
recordCount = 0;
|
||||
}
|
||||
totalRecordCount = totalRecordCount + alEnquiryBean.size();
|
||||
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Account Enquiry Details</legend>
|
||||
<form id="enquiryForm" name="enquiryForm" method="post" action="">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div id="filterDiv" >
|
||||
<%-- <center>--%>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: right">Account Number: </td>
|
||||
<td><input type="text" style="text-align:right;" name="accountNo" id="accountNo" value="<%=blankNull(oEnquiryBean.getAccountNo())%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">Product Name<font color="red" >*</font>: </td>
|
||||
<td><select id="productName" name="productName" >
|
||||
<%if (oEnquiryBean.getProductName() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select id, prod_name from dep_product where to_number(substr(prod_code,1,1))<6 and pacs_id like '%" + pacsId + "#%'");
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getProductId())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getProductName())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select id, prod_name from dep_product where to_number(substr(prod_code,1,1))<6 and id!='" + oEnquiryBean.getProductId() + "' and pacs_id like '%" + pacsId + "#%'");
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">From Date: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getFromDate())%>" type="text" id="fromDate" style="text-align:center;" name="fromDate" readonly /> <a href="#" onclick="return getCalendar(document.forms[0].fromDate);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">To Date: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getToDate())%>" type="text" id="toDate" style="text-align:center;" name="toDate" readonly /> <a href="#" onclick="return getCalendar(document.forms[0].toDate);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">From Amount: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getFromAmount())%>" type="text" style="text-align:right;" name="fromAmount" onkeypress='return event.charCode >= 46 && event.charCode <= 57'/></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">To Amount: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getToAmount())%>" type="text" style="text-align:right;" name="toAmount" onkeypress='return event.charCode >= 46 && event.charCode <= 57' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">Search By CIF: </td>
|
||||
<td colspan="2"><input value="<%=blankNull(oEnquiryBean.getSrchByCIF())%>" type="text" style="text-align:right;" name="srchByCIF" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td style="text-align: right">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if(!rs.isBeforeFirst()){%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%}
|
||||
else{
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if(!rs.isBeforeFirst()){%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%}
|
||||
else{
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">Old CIF Number:</td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getOldCifNo())%>" type="text" style="text-align:right;" name="oldCifNo" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td> </td>
|
||||
<td>Old A/C or Link CBS A/C:</td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getOldAccNo())%>" type="text" style="text-align:right;" name="oldAccNo" /></td>
|
||||
|
||||
</tr>
|
||||
<%--<tr>
|
||||
<td>Mode Of Account :</td>
|
||||
<td>
|
||||
<select id="modOfAcc" name="modOfAcc" >
|
||||
<%if (oEnquiryBean.getModOfAcc() == null || oEnquiryBean.getModOfAcc() == "") {%>
|
||||
<option value="" selected >--Select--</option>
|
||||
<option value="S" >Single Account</option>
|
||||
<option value="J" >Joint Account</option>
|
||||
<%} else {%>
|
||||
<%if (oEnquiryBean.getModOfAcc().equalsIgnoreCase("J")) {%>
|
||||
<option value="S" >Single Account</option>
|
||||
<option value="J" selected >Joint Account</option>
|
||||
<%}%>
|
||||
<%if (oEnquiryBean.getModOfAcc().equalsIgnoreCase("S")) {%>
|
||||
<option value="S" selected >Single Account</option>
|
||||
<option value="J" >Joint Account</option>
|
||||
<%}}%>
|
||||
|
||||
</select>--%>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr><td style="text-align: right">Customer Name:</td><td><input value="<%=blankNull(oEnquiryBean.getCustomerName())%>" type="text" name="custName"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<br>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:accountsubmitform(enquiryForm)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div><br><br>
|
||||
<input type="hidden" value="DepositAccountEnquiry" name="screenName" />
|
||||
<input name="handle_id" id="handle_id" type="hidden" value="" />
|
||||
<input name="reportname" id="reportname" type="hidden" value="DEPOSIT_ACCOUNT_ENQUIRY_REPORT" />
|
||||
<input type="hidden" name="page" value="<%=request.getAttribute("currentPage")%>">
|
||||
<input type="hidden" name="but_type" >
|
||||
<input type="hidden" name="totalRecordCount" id="totalRecordCount" value="<%=totalRecordCount%>">
|
||||
<input type="hidden" name="recordCount" id="recordCount" value="<%=recordCount%>">
|
||||
<input type="hidden" name="noOfRecords" id="noOfRecords" value="<%=noOfRecords%>">
|
||||
<input type="hidden" name="accno" id="accno" />
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
</form>
|
||||
<div id="SecondaryCIF" align="Center"></div>
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
<div id="displayDiv">
|
||||
<div style="overflow:scroll; width: 1000px;">
|
||||
<table border="2" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px; width: 100%;">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>Pacs ID</td>
|
||||
<td>Account Number</td>
|
||||
<td>CBS Account Number</td>
|
||||
<td>Primary Customer Number</td>
|
||||
<td>Primary Customer Name</td>
|
||||
<%--<td>Secondary Customer Number</td>
|
||||
<td>Secondary Customer Name</td>--%>
|
||||
<td>Secondary CIF Details</td>
|
||||
<td>Nominee Name</td>
|
||||
<td>Product Name</td>
|
||||
<td>Opening Date</td>
|
||||
<td>Account Status</td>
|
||||
<td>Available Balance</td>
|
||||
<td>Interest Rate</td>
|
||||
<td>Interest Available</td>
|
||||
<td>Interest From Date</td>
|
||||
<td>Interest To Date</td>
|
||||
<td>Term Value</td>
|
||||
<td>Maturity Value</td>
|
||||
<td>Maturity Date</td>
|
||||
<td>Term From Date</td>
|
||||
<td>Term To Date</td>
|
||||
<td>Interest Projected</td>
|
||||
<td>Capitalized Interest</td>
|
||||
<td>Installment Amount</td>
|
||||
<td>No.of Installments Paid</td>
|
||||
<td>Next Installment Due Date</td>
|
||||
<td>RD Penal Count</td>
|
||||
<td>Hold Value</td>
|
||||
<td>Term Length</td>
|
||||
<td>Int Repay Method</td>
|
||||
<td>Old Account Number</td>
|
||||
<td>Mode Of Account</td>
|
||||
<td>Account Statement of The Day</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oEnquiryBean = null;
|
||||
|
||||
for (int i = 0; i < alEnquiryBean.size(); i++) {
|
||||
oEnquiryBean = alEnquiryBean.get(i);
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%=blankNull(oEnquiryBean.getPacs_id())%></td>
|
||||
<td><input id="accno<%=i%>" style="border: none; text-align: center" size="20" type="text" readonly value="<%=blankNull(oEnquiryBean.getAccountNo())%>" /></td>
|
||||
<td><%=blankNull(oEnquiryBean.getLinkAccNo())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getCustomerNo())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getCustomerName())%></td>
|
||||
|
||||
<%--<td><%=blankNA(oEnquiryBean.getCif_no2())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getSec_cust_name())%></td>--%>
|
||||
|
||||
<%--<td><input id="show_cif" type="button" value="Show Popup" onclick="showSecondary(<%=i%>)"/></td>--%>
|
||||
|
||||
<%if( blankNA(oEnquiryBean.getJt_cifNumber1()).equals("NA") || oEnquiryBean.getJt_cifNumber1()==null){%>
|
||||
<td>NA</td>
|
||||
<%}
|
||||
else {%>
|
||||
<td><input id="show_cif" type="button" value="Show CIF" onclick="getSecondaryCIFTable('<%=oEnquiryBean.getJt_cifNumber1()%>', '<%=oEnquiryBean.getJt_cifName1()%>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber2()%>','<%=oEnquiryBean.getJt_cifName2() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber3()%>', '<%=oEnquiryBean.getJt_cifName3() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber4()%>', '<%=oEnquiryBean.getJt_cifName4() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber5()%>', '<%=oEnquiryBean.getJt_cifName5() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber6()%>', '<%=oEnquiryBean.getJt_cifName6() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber7()%>', '<%=oEnquiryBean.getJt_cifName7() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber8()%>', '<%=oEnquiryBean.getJt_cifName8() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber9()%>', '<%=oEnquiryBean.getJt_cifName9() %>',
|
||||
'<%=oEnquiryBean.getJt_cifNumber10()%>','<%= oEnquiryBean.getJt_cifName10()%>')"/>
|
||||
</td>
|
||||
<% } %>
|
||||
|
||||
<td><%=blankNA(oEnquiryBean.getNomineeName())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getProductNameDisplay())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getAccountOpenDate())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getCurr_Status())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getAvailBalance())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getInttrate())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getInttAvail())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getInttfroDt())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getInttToDt())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getTermValue())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getMaturityValue())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getMaturityDt())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getTerm_from_date())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getTerm_to_date())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getInttProjected())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getIntt_capptalized())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getInstllAmt())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getInstallPaidNo())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getInstllDueDate())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getPenalCnt())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getHoldValue())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getTermLen())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getIntRepayMethod())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getOldAccNo())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getModOfAcc())%></td>
|
||||
<td><input type="button" value="Download" onclick="document.getElementById('accno').value=document.getElementById('accno<%=i%>').value;javascript:dnldReport();"/></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<%}%>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<br><br>
|
||||
|
||||
<%--For displaying Previous link except for the 1st page --%>
|
||||
|
||||
<table align="right" colspan="2">
|
||||
<% if (curPage > 1 && flag2 == 2) {%>
|
||||
<td><input type="button" name="nextPage" value="Previous" onclick="callPrevPage()"><input type="button" name="nextPage" value="Next" onclick="callNextPage()">
|
||||
<% }%>
|
||||
<% if (flag2 == 2) {%>
|
||||
|
||||
<% if (curPage == 1) {%>
|
||||
<td><input type="button" name="nextPage" value="Next" onclick="callNextPage()">
|
||||
<% }
|
||||
}%>
|
||||
|
||||
</table><br><br>
|
||||
|
||||
<input type="button" value="Export Result" onclick="javascript:excelDownload()">
|
||||
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
</fieldset>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1220
IPKS_Updated/web/web/web/Deposit/DepositKYCCreation.jsp
Normal file
1220
IPKS_Updated/web/web/web/Deposit/DepositKYCCreation.jsp
Normal file
File diff suppressed because it is too large
Load Diff
286
IPKS_Updated/web/web/web/Deposit/DepositKYCDocumentUpload.jsp
Normal file
286
IPKS_Updated/web/web/web/Deposit/DepositKYCDocumentUpload.jsp
Normal file
@@ -0,0 +1,286 @@
|
||||
<%--
|
||||
Document : DepositKYCDocumentUpload
|
||||
Created on : Sep 29, 2016, 12:05:56 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.DepositKYCCreationHdrBean"%>
|
||||
<%@page import="DataEntryBean.DepositKYCCreationDetailBean"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>KYC Document Upload</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_CIF(width, height, cifNumber, cifName) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositKYCDocumentUpload.jsp";
|
||||
var lovKey="PickUPCustomer";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?cifName=' + cifName + '&cifNumber=' + cifNumber + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPCustomer', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
function popup_CIFNAME(width, height, cifName, cifNumber) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositKYCDocumentUpload.jsp";
|
||||
var lovKey="PickUPCustomer";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?cifName=' + cifName + '&cifNumber=' + cifNumber + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPCustomer', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
function submitform(kycDocumentUploadForm)
|
||||
{
|
||||
if (kycDocumentUploadForm.cifNumber.value == "" && kycDocumentUploadForm.cifName.value == "")
|
||||
{
|
||||
alert("!! All the Search Fields are Empty !!");
|
||||
return false;
|
||||
}
|
||||
document.forms[0].handle_id.value = "SearchCIF";
|
||||
document.forms[0].action = '/PacsApplication/DepositKYCDocumentUploadServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
function SearchAsset(width, height,i)
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositKYCDocumentUpload.jsp";
|
||||
var lovKey= "IDTypeScoreSearch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?screenName=' + screenName+'&lovKey='+lovKey+'&textIndex='+i , 'IDTypeScoreSearch', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/DepositKYCDocumentUpload.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%int count = 1;
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object oDepositKYCCreationHdrBeanObj = request.getAttribute("oDepositKYCCreationBeanObj");
|
||||
DepositKYCCreationHdrBean oDepositKYCCreationHdrBean = new DepositKYCCreationHdrBean();
|
||||
if (oDepositKYCCreationHdrBeanObj != null) {
|
||||
oDepositKYCCreationHdrBean = (DepositKYCCreationHdrBean) request.getAttribute("oDepositKYCCreationBeanObj");
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alDepositKYCCreationDetailBeanObj = request.getAttribute("alDepositKYCCreationDetailBean");
|
||||
ArrayList<DepositKYCCreationDetailBean> alDepositKYCCreationDetailBean = new ArrayList<DepositKYCCreationDetailBean>();
|
||||
DepositKYCCreationDetailBean oDepositKYCCreationDetailBean = new DepositKYCCreationDetailBean();
|
||||
if (alDepositKYCCreationDetailBeanObj != null) {
|
||||
alDepositKYCCreationDetailBean = (ArrayList<DepositKYCCreationDetailBean>) request.getAttribute("alDepositKYCCreationDetailBean");
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">KYC DOCUMENT UPLOAD</legend>
|
||||
<form name="kycDocumentUploadForm" id="kycDocumentUploadForm" action="" method="post">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tr><td>Enter CIF Number</td><td><input type="text" name="cifNumber" id="cifNumber" value="<%=blankNull(oDepositKYCCreationHdrBean.getCif())%>"/><input type="button" value="Search" id="Search" onclick="javascript:popup_CIF(850, 200, document.kycDocumentUploadForm.cifNumber.value, document.kycDocumentUploadForm.cifName.value);"/></td></tr>
|
||||
<tr><td> <br></td></tr>
|
||||
<tr><td>Enter CIF Name</td><td><input type="text" name="cifName" id="cifName" value="<%=blankNull(oDepositKYCCreationHdrBean.getCifName())%>"/><input type="button" value="Search" id="Search" onclick="javascript:popup_CIFNAME(850, 200, document.kycDocumentUploadForm.cifName.value, document.kycDocumentUploadForm.cifNumber.value);"/></td></tr>
|
||||
<tr><td> <br></td></tr>
|
||||
</table>
|
||||
<input type="button" value="Submit" id="Submit" onclick="javascript:submitform(kycDocumentUploadForm)"/>
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
if (displayFlag.equalsIgnoreCase("Y")) {
|
||||
|
||||
%>
|
||||
<div id="show" align="left" >
|
||||
|
||||
<center>
|
||||
<table id="order-list" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
|
||||
<td>ID Type</td>
|
||||
<td>ID Number</td>
|
||||
<td>Upload Document</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<%
|
||||
oDepositKYCCreationDetailBean = new DepositKYCCreationDetailBean();
|
||||
count = 0;
|
||||
|
||||
for (int i = 0; i < alDepositKYCCreationDetailBean.size(); i++) {
|
||||
oDepositKYCCreationDetailBean = alDepositKYCCreationDetailBean.get(i);
|
||||
|
||||
count++;
|
||||
|
||||
%>
|
||||
|
||||
<tr>
|
||||
|
||||
|
||||
<td style="background-color: #f2f2f2; text-align: left; padding-left: 10px; padding-right: 10px;"><%=blankNull(oDepositKYCCreationDetailBean.getIdType())%></td>
|
||||
<td style="background-color: #f2f2f2; text-align: left; padding-left: 10px; padding-right: 10px;"><%=blankNull(oDepositKYCCreationDetailBean.getIdNumber())%></td>
|
||||
<td><input type="file" name="file<%=count%>" size="60"/></td>
|
||||
<input type="hidden" name="document_mst_id<%=count%>" id="document_mst_id<%=count%>" value="<%=blankNull(oDepositKYCCreationDetailBean.getDocument_mst_id())%>"/>
|
||||
<input type="hidden" name="KYCCreation_dtl_id<%=count%>" id="KYCCreation_dtl_id<%=count%>" value="<%=blankNull(oDepositKYCCreationDetailBean.getKYCCreation_dtl_id())%>" />
|
||||
</tr>
|
||||
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</center>
|
||||
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td><input type="button" name="UploadFile" id="UploadFile" value="Upload" onclick="" /></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">All Fields are mandatory</label>
|
||||
<% }%>
|
||||
|
||||
<input type="hidden" name="handle_id" value="" >
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
1460
IPKS_Updated/web/web/web/Deposit/DepositKYCInquiry.jsp
Normal file
1460
IPKS_Updated/web/web/web/Deposit/DepositKYCInquiry.jsp
Normal file
File diff suppressed because it is too large
Load Diff
477
IPKS_Updated/web/web/web/Deposit/DepositMiscellaneousEnquiry.jsp
Normal file
477
IPKS_Updated/web/web/web/Deposit/DepositMiscellaneousEnquiry.jsp
Normal file
@@ -0,0 +1,477 @@
|
||||
<%--
|
||||
Document : DepositAccountEnquiry
|
||||
Created on : Sep 13, 2016, 2:23:35 PM
|
||||
Author :
|
||||
--%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Deposit Miscellaneous Enquiry</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
.padding td{
|
||||
padding: 2px 4px 2px 4px;
|
||||
}
|
||||
</style>
|
||||
<body onload="noBack()">
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function accountsubmitform(enquiryForm)
|
||||
{
|
||||
if(!checkdate()){
|
||||
|
||||
alert("Please Select valid date range");
|
||||
return false;
|
||||
}
|
||||
if( document.forms[0].accountNo.value == ""){
|
||||
alert("Please enter Account Number.");
|
||||
document.forms[0].accountNo.focus();
|
||||
return false;
|
||||
}
|
||||
document.forms[0].totalRecordCount.value=0;
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
///added Later
|
||||
function checkdate()
|
||||
{
|
||||
var s1 = document.getElementById("fromDate").value;
|
||||
var s2 = document.getElementById("toDate").value;
|
||||
var dateParts1 = s1.split("/");
|
||||
var dateParts2 = s2.split("/");
|
||||
|
||||
var dateObject1 = new Date(dateParts1[2], dateParts1[1] - 1, dateParts1[0]);
|
||||
var dateObject2 = new Date(dateParts2[2], dateParts2[1] - 1, dateParts2[0]);
|
||||
|
||||
if (dateObject1>dateObject2){
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/DepositMiscellaneousEnquiry.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
function excelDownload() {
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function callNextPage()
|
||||
{
|
||||
var totalRecordCount=document.forms[0].totalRecordCount.value;
|
||||
var recordCount=document.forms[0].recordCount.value;
|
||||
|
||||
if (totalRecordCount==recordCount){
|
||||
|
||||
alert("No more record to display");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].but_type.value = 'N';
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function callPrevPage()
|
||||
{
|
||||
var totalRecordCount= document.forms[0].totalRecordCount.value;
|
||||
var noOfRecords= document.forms[0].noOfRecords.value;
|
||||
document.forms[0].totalRecordCount.value= Number(totalRecordCount) - Number(noOfRecords)-10;
|
||||
document.forms[0].but_type.value = 'P';
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('select#productName').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'HOLD':
|
||||
$('#holdAmtSearch').show(200);
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#holdAmtSearch').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alEnquiryBeanObj = request.getAttribute("alEnquiryBean");
|
||||
ArrayList<EnquiryBean> alEnquiryBean = new ArrayList<EnquiryBean>();
|
||||
if (alEnquiryBeanObj != null) {
|
||||
alEnquiryBean = (ArrayList<EnquiryBean>) request.getAttribute("alEnquiryBean");
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
int flag2 = 1;
|
||||
int curPage = 0;
|
||||
try {
|
||||
curPage = Integer.parseInt(request.getAttribute("currentPage").toString());
|
||||
} catch (Exception e) {
|
||||
curPage = 1;
|
||||
}
|
||||
if (alEnquiryBean.size() > 0) {
|
||||
flag2 = 2;
|
||||
}
|
||||
int totalRecordCount = 0;
|
||||
int recordCount = 0;
|
||||
|
||||
try {
|
||||
totalRecordCount = Integer.parseInt(request.getAttribute("totalRecordCount").toString());
|
||||
recordCount = Integer.parseInt(request.getAttribute("recordCount").toString());
|
||||
} catch (Exception e) {
|
||||
totalRecordCount = 0;
|
||||
recordCount = 0;
|
||||
}
|
||||
totalRecordCount = totalRecordCount + alEnquiryBean.size();
|
||||
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
%>
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Deposit Miscellaneous Enquiry</legend>
|
||||
<form id="enquiryForm" name="enquiryForm" method="post" action="">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<div id="filterDiv" >
|
||||
<%-- <center>--%>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: right">Account Number<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="accountNo" id="accountNo" value="<%=blankNull(oEnquiryBean.getAccountNo())%>" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">Enquiry Type: </td>
|
||||
<td><select id="productName" name="productName" >
|
||||
<option value="" disabled selected style="display:none;" <%if (blankNull(oEnquiryBean.getProductName()).equals("")) {%> selected <%}%>>--Select--</option>
|
||||
<option value="HOLD" <%if (blankNull(oEnquiryBean.getProductName()).equals("HOLD")) {%> selected <%}%>>Hold</option>
|
||||
<option value="RH" <%if (blankNull(oEnquiryBean.getProductName()).equals("RH")) {%> selected <%}%>>Hold Removal</option>
|
||||
<option value="STOP" <%if (blankNull(oEnquiryBean.getProductName()).equals("STOP")) {%> selected <%}%>>Account Stop</option>
|
||||
<option value="RS" <%if (blankNull(oEnquiryBean.getProductName()).equals("RS")) {%> selected <%}%>>Stop Removal</option>
|
||||
<option value="AL" <%if (blankNull(oEnquiryBean.getProductName()).equals("AL")) {%> selected <%}%>>Lien Applied</option>
|
||||
<option value="RL" <%if (blankNull(oEnquiryBean.getProductName()).equals("RL")) {%> selected <%}%>>Lien Removed</option>
|
||||
<option value="M2H" <%if (blankNull(oEnquiryBean.getProductName()).equals("M2H")) {%> selected <%}%>>Modified 2nd Holder</option>
|
||||
<option value="ADR">Apply Dormant</option>
|
||||
<option value="RDR">Remove Dormant</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">From Date: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getFromDate())%>" type="text" id="fromDate" style="text-align:center;" name="fromDate" readonly /> <a href="#" onclick="return getCalendar(document.forms[0].fromDate);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">To Date: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getToDate())%>" type="text" id="toDate" style="text-align:center;" name="toDate" readonly /> <a href="#" onclick="return getCalendar(document.forms[0].toDate);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr id="holdAmtSearch" style="display:none;">
|
||||
<td style="text-align: right">From Hold Amount: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getFromAmount())%>" type="text" name="fromAmount" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57'/></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">To Hold Amount: </td>
|
||||
<td><input value="<%=blankNull(oEnquiryBean.getToAmount())%>" type="text" name="toAmount" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57'/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:accountsubmitform(enquiryForm)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div><br><br>
|
||||
<input type="hidden" value="DepositMiscellaneousEnquiry" name="screenName" />
|
||||
<input name="handle_id" id="handle_id" type="hidden" value="" />
|
||||
<input name="reportname" id="reportname" type="hidden" value="DEPOSIT_MISCELLANEOUS_ENQUIRY_REPORT" />
|
||||
<input type="hidden" name="page" value="<%=request.getAttribute("currentPage")%>">
|
||||
<input type="hidden" name="but_type" >
|
||||
<input type="hidden" name="totalRecordCount" id="totalRecordCount" value="<%=totalRecordCount%>">
|
||||
<input type="hidden" name="recordCount" id="recordCount" value="<%=recordCount%>">
|
||||
<input type="hidden" name="noOfRecords" id="noOfRecords" value="<%=request.getAttribute("noOfRecords")%>">
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
<div id="displayDiv">
|
||||
<div >
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>Account Number</td><!--accountNo-->
|
||||
<td>Customer Number</td><!--customerNo-->
|
||||
<td>Customer Name</td><!--customerName-->
|
||||
<td>Action Name</td><!--action-->
|
||||
<td>Operation Value</td><!--op_Amt-->
|
||||
<td>Action Date</td><!--action_Dt-->
|
||||
<td>Reason Provided</td><!--action_Cmnt-->
|
||||
<td>Teller ID</td><!--action_teller-->
|
||||
<td>Teller Name</td><!--action_teller-->
|
||||
<td>Loan A/C Number</td><!--Loan A/c for lien-->
|
||||
<td style="display:none">Active Status</td><!--action_STAT-->
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oEnquiryBean = null;
|
||||
|
||||
for (int i = 0; i < alEnquiryBean.size(); i++) {
|
||||
oEnquiryBean = alEnquiryBean.get(i);
|
||||
%>
|
||||
|
||||
<tr class="padding">
|
||||
<td><%=blankNull(oEnquiryBean.getAccountNo())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getCustomerNo())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getCustomerName())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getAction())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getOp_Amt())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getAction_Dt())%></td>
|
||||
|
||||
<td><%=blankNull(oEnquiryBean.getAction_Cmnt())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getAction_teller())%></td>
|
||||
<td><%=blankNull(oEnquiryBean.getTeller_name())%></td>
|
||||
<td><%=blankNA(oEnquiryBean.getLoanAcc())%></td>
|
||||
<td style="display:none"><%=blankNull(oEnquiryBean.getAction_STAT())%></td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<br><br>
|
||||
|
||||
<%--For displaying Previous link except for the 1st page --%>
|
||||
|
||||
<table align="right" colspan="2">
|
||||
<% if (curPage > 1 && flag2 == 2) {%>
|
||||
<td><input type="button" name="nextPage" value="Previous" onclick="callPrevPage()"><input type="button" name="nextPage" value="Next" onclick="callNextPage()">
|
||||
<% }%>
|
||||
<% if (flag2 == 2) {%>
|
||||
|
||||
<% if (curPage == 1) {%>
|
||||
<td><input type="button" name="nextPage" value="Next" onclick="callNextPage()">
|
||||
<% }
|
||||
}%>
|
||||
|
||||
</table><br><br>
|
||||
|
||||
<input type="button" value="Export Result" onclick="javascript:excelDownload()">
|
||||
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,900 @@
|
||||
<%--
|
||||
Document : DepositMiscellaneousOperation
|
||||
Created on : Sep 27, 2016, 1:18:55 PM
|
||||
Author : 986137
|
||||
Updated On : Apr 30,2024
|
||||
Author : 1121947
|
||||
--%>
|
||||
|
||||
<%@page import="DataEntryBean.RepayLoanBean"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="DataEntryBean.DepositMiscellaneousBean"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Miscellaneous Operation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#transactionType").change(function(){
|
||||
var selectedOption = $(this).val();
|
||||
if (selectedOption == "Deposit") {
|
||||
$("#depositAccount").show();
|
||||
$("#loanAccount").hide();
|
||||
}else if (selectedOption == "Loan"){
|
||||
$("#depositAccount").hide();
|
||||
$("#loanAccount").show();
|
||||
}else{
|
||||
$("#depositAccount").hide();
|
||||
$("#loanAccount").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function popup_DepositAccLOB(width, height, depositAccSearch) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositMiscellaneousOperation.jsp";
|
||||
var lovKey="DepositAccLOB";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?depositAccSearch=' + depositAccSearch + '&screenName=' + screenName+'&lovKey='+lovKey, 'DepositAccLOB', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
// Added by P.Pahari on 25th April,2024 for loan account reset functionality.
|
||||
function popup_LonAccLOB(width, height, loanAccSearch) {
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositMiscellaneousOperation.jsp";
|
||||
var lovKey="LonAccLOB";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationLoanLOV.jsp?loanAccSearch=' + loanAccSearch + '&screenName=' + screenName+'&lovKey='+lovKey, 'LonAccLOB', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_TransactionNo(width,height,txn_no,acc_no){
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositMiscellaneousOperation.jsp";
|
||||
var lovKey="TransactionNoSearch";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?depositAccNo=' + acc_no + '&TxnNo=' + txn_no + '&screenName=' + screenName+'&lovKey='+lovKey, 'DepositAccLOB', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
// Added by p.pahari on 3rd May,2024 for loan transaction
|
||||
|
||||
function popup_LoanTransactionNo(width,height,txn_no,acc_no){
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
var screenName = "DepositMiscellaneousOperation.jsp";
|
||||
var lovKey="TransactionLoanNoSearch";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?loanAccNo=' + acc_no + '&TxnNo=' + txn_no + '&screenName=' + screenName+'&lovKey='+lovKey, 'LonAccLOB', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function popup_SecondCifLOB(width, height, secondCifSearch ,lovkey) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositMiscellaneousOperation.jsp";
|
||||
var lovKey=lovkey;
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?depositAccSearch=' + secondCifSearch + '&screenName=' + screenName+'&lovKey='+lovKey, 'DepositAccLOB', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function submitform(DepositMiscellaneousForm)
|
||||
{
|
||||
// Changed here on 2nd May,2024 and added loan level details.
|
||||
re = /^\d+$/;
|
||||
const transactionType = document.getElementById("transactionType").value;
|
||||
//alert(transactionType);
|
||||
|
||||
if (DepositMiscellaneousForm.depositAccSearch.value === "" && transactionType === "Deposit")
|
||||
{
|
||||
alert("Please enter deposit Account Number.");
|
||||
DepositMiscellaneousForm.depositAccSearch.focus();
|
||||
return false;
|
||||
}
|
||||
// re = /^\d+$/; //this checks whether field contains digits
|
||||
if ((!re.test(document.getElementById("depositAccSearch").value)) && transactionType === "Deposit")
|
||||
{
|
||||
alert("Deposit Account could only contain numbers.");
|
||||
DepositMiscellaneousForm.depositAccSearch.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.loanAccSearch.value === "" && transactionType === "Loan")
|
||||
{
|
||||
alert("Please enter Loan Account Number.");
|
||||
DepositMiscellaneousForm.loanAccSearch.focus();
|
||||
return false;
|
||||
}
|
||||
// re = /^\d+$/; //this checks whether field contains digits
|
||||
if ((!re.test(document.getElementById("loanAccSearch").value)) && transactionType === "Loan")
|
||||
{
|
||||
alert("Loan Account could only contain numbers.");
|
||||
DepositMiscellaneousForm.loanAccSearch.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.forms[0].handle_id.value = "Search";
|
||||
document.forms[0].action = '/PacsApplication/DepositMiscellaneousOperationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function submitOperation(DepositMiscellaneousForm)
|
||||
{
|
||||
if (DepositMiscellaneousForm.operation_type.value == "Not")
|
||||
{
|
||||
alert("Please select operation.");
|
||||
DepositMiscellaneousForm.operation_type.focus();
|
||||
return false;
|
||||
}
|
||||
if (DepositMiscellaneousForm.operation_type.value == "HOLD" && DepositMiscellaneousForm.holdAmt.value == "")
|
||||
{
|
||||
alert("Please provide Hold Amount.");
|
||||
DepositMiscellaneousForm.holdAmt.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.operation_type.value == "STOP" && DepositMiscellaneousForm.stopReson.value == "")
|
||||
{
|
||||
alert("Please select STOP Account Reason.");
|
||||
DepositMiscellaneousForm.stopReson.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.operation_type.value == "RS" && DepositMiscellaneousForm.rem_stopReson.value == "")
|
||||
{
|
||||
alert("Please select Remove STOP Account Reason.");
|
||||
DepositMiscellaneousForm.rem_stopReson.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.operation_type.value == "M2H" && DepositMiscellaneousForm.modCif2TxtArea.value == "")
|
||||
{
|
||||
alert("Please Provide Modify Reason.");
|
||||
DepositMiscellaneousForm.modCif2TxtArea.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.operation_type.value == "M2H" && DepositMiscellaneousForm.secondCifSearch.value == DepositMiscellaneousForm.cifNo.value)
|
||||
{
|
||||
alert("1st CIF and 2nd CIF Cannot Be Same.");
|
||||
DepositMiscellaneousForm.secondCifSearch.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.operation_type.value == "M2H" && DepositMiscellaneousForm.secondCifSearch.value == DepositMiscellaneousForm.cif2No.value)
|
||||
{
|
||||
alert("2nd CIF and New Modified CIF Cannot Be Same.");
|
||||
DepositMiscellaneousForm.secondCifSearch.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.operation_type.value == "M2H" && DepositMiscellaneousForm.secondCifSearchFlag.value != 'Y' && DepositMiscellaneousForm.secondCifSearch.value != '' )
|
||||
{
|
||||
alert(DepositMiscellaneousForm.operation_type.value);
|
||||
alert(DepositMiscellaneousForm.secondCifSearchFlag.value);
|
||||
alert(DepositMiscellaneousForm.secondCifSearchFlag.value);
|
||||
alert("Kindly Search The 2nd CIF.");
|
||||
DepositMiscellaneousForm.secondCifSearch.focus();
|
||||
return false;
|
||||
}
|
||||
//added by rajdip
|
||||
if (DepositMiscellaneousForm.operation_type.value == "RST" || DepositMiscellaneousForm.operation_type.value == "SPT" )
|
||||
{
|
||||
if( document.getElementById("radio1").checked && DepositMiscellaneousForm.transactionNoInpBox.value == ""){
|
||||
alert("Please select and option provide the transaction no.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (DepositMiscellaneousForm.operation_type.value == "NOM")
|
||||
{
|
||||
if( document.getElementById("radio1").checked && DepositMiscellaneousForm.nomId.value == ""){
|
||||
alert("Please enter the nominee name.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
re = /^\d+$/;
|
||||
if(document.getElementById("displayFlag").value == "Y" && document.getElementById("operation_type").value == "NOM") {
|
||||
if (!re.test(document.getElementById("nomId").value))
|
||||
{
|
||||
alert("Please enter nominee CIF correctly.");
|
||||
document.getElementById("nomId").focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("secondCifSearchFlag").value == "") {
|
||||
alert("Please search the nominee CIF to proceed.");
|
||||
document.getElementById("nomId").focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//added by Bisnu
|
||||
if ( DepositMiscellaneousForm.operation_type.value == "SPT" && DepositMiscellaneousForm.print_date.value == "" )
|
||||
{
|
||||
alert("Skip Print Upto Date can not be null.");
|
||||
document.getElementById("print_date").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.forms[0].handle_id.value = "SubmitOperation";
|
||||
document.forms[0].action = '/PacsApplication/DepositMiscellaneousOperationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/DepositMiscellaneousOperation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#operation_type').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
//added by rajdip
|
||||
document.getElementById("transactionInputBox").style.display='none';
|
||||
document.getElementById("accountInputBox").style.display='none';
|
||||
document.getElementById("rseetDate").style.display='none';
|
||||
document.getElementById("radio1").checked = false;
|
||||
document.getElementById("radio2").checked = false;
|
||||
document.getElementById("radio3").checked = false;
|
||||
//upto this
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'HOLD':
|
||||
$('#holdAmtTr').show(200);
|
||||
$('#stopResonTr').hide(200);
|
||||
$('#rmvLien').hide();
|
||||
$('#rem_stopReasonTr').show(200);
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
|
||||
case 'STOP':
|
||||
$('#holdAmtTr').hide(200);
|
||||
$('#stopResonTr').show(200);
|
||||
$('#rmvLien').hide();
|
||||
$('#rem_stopReasonTr').hide(200);
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'RS':
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#rem_stopReasonTr').show(200);
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'RL':
|
||||
$('#rmvLien').show(200);
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rem_stopReasonTr').hide();
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'M2H':
|
||||
$('#modHolderTr1').show(200);
|
||||
$('#modHolderTr2').show(200);
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rem_stopReasonTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'RST': //added by rajdip
|
||||
$('#resetTransactionRadio').show(200);
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rem_stopReasonTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'NOM': //added by rajdip
|
||||
$('#nom').show(200);
|
||||
$('#resetTransactionRadio').hide();
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rem_stopReasonTr').show(200);
|
||||
$('#rmvLien').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'SPT':
|
||||
$('#resetTransactionRadio').hide();
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rem_stopReasonTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').show();
|
||||
break;
|
||||
case 'RH':
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#rem_stopReasonTr').show(200);
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'ADR':
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#rem_stopReasonTr').show(200);
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
case 'RDR':
|
||||
$('#holdAmtTr').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#rem_stopReasonTr').show(200);
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
default:
|
||||
$('#holdAmtTr').hide();
|
||||
$('#rmvLien').hide();
|
||||
$('#stopResonTr').hide();
|
||||
$('#rem_stopReasonTr').hide();
|
||||
$('#modHolderTr1').hide();
|
||||
$('#modHolderTr2').hide();
|
||||
$('#resetTransactionRadio').hide(); //added by rajdip
|
||||
$('#nom').hide();
|
||||
$('#openCalendar').hide();
|
||||
break;
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
//Added here for Loan operation
|
||||
|
||||
function submitLoanOperation(DepositMiscellaneousForm)
|
||||
{
|
||||
if(DepositMiscellaneousForm.operation_type_loan.value === "Not")
|
||||
{
|
||||
alert("Please select operation.");
|
||||
DepositMiscellaneousForm.operation_type_loan.focus();
|
||||
return false;
|
||||
}
|
||||
if (DepositMiscellaneousForm.operation_type_loan.value === "RST" || DepositMiscellaneousForm.operation_type_loan.value === "SPT" )
|
||||
{
|
||||
if( document.getElementById("radio1").checked && DepositMiscellaneousForm.transactionNoInpBox.value === ""){
|
||||
alert("Please select and option provide the transaction no.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
document.forms[0].handle_id.value = "SubmitLoanOperation";
|
||||
document.forms[0].action = '/PacsApplication/DepositMiscellaneousOperationServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
// Added here for Loan operation
|
||||
$(document).ready(function() {
|
||||
$('select#operation_type_loan').change(function() {
|
||||
var Enable = $(this).val();
|
||||
document.getElementById("transactionInputBox").style.display='none';
|
||||
document.getElementById("accountInputBox").style.display='none';
|
||||
document.getElementById("rseetDate").style.display='none';
|
||||
document.getElementById("radio1").checked = false;
|
||||
document.getElementById("radio2").checked = false;
|
||||
document.getElementById("radio3").checked = false;
|
||||
//upto this
|
||||
switch(Enable)
|
||||
{
|
||||
case 'RST': //added by Paramita
|
||||
$('#resetTransactionLoanRadio').show(200);
|
||||
break
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function onRadioClick(temp)
|
||||
{
|
||||
if (temp == 1){
|
||||
document.getElementById("transactionInputBox").style.display='block';
|
||||
document.getElementById("accountInputBox").style.display='none';
|
||||
document.getElementById("rseetDate").style.display='none';
|
||||
document.getElementById("radio1").value='txn';
|
||||
}
|
||||
else if(temp == 2){
|
||||
document.getElementById("accountInputBox").style.display='block';
|
||||
document.getElementById("transactionInputBox").style.display='none';
|
||||
document.getElementById("rseetDate").style.display='none';
|
||||
document.getElementById("radio2").value='accnt';
|
||||
}
|
||||
else if(temp == 3){
|
||||
document.getElementById("rseetDate").style.display='block';
|
||||
document.getElementById("accountInputBox").style.display='none';
|
||||
document.getElementById("transactionInputBox").style.display='none';
|
||||
document.getElementById("radio3").value='reset';
|
||||
}
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "N";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
System.out.println(displayFlag);
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object oDepositMiscellaneousBeanObj = request.getAttribute("oDepositMiscellaneousBeanObj");
|
||||
DepositMiscellaneousBean oDepositMiscellaneousBean = new DepositMiscellaneousBean();
|
||||
if (oDepositMiscellaneousBeanObj != null) {
|
||||
oDepositMiscellaneousBean = (DepositMiscellaneousBean) request.getAttribute("oDepositMiscellaneousBeanObj");
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object oRepayLoanBeanObj = request.getAttribute("oRepayLoanBeanObj");
|
||||
RepayLoanBean oRepayLoanBean = new RepayLoanBean();
|
||||
if(oRepayLoanBeanObj != null){
|
||||
oRepayLoanBean = (RepayLoanBean) request.getAttribute("oRepayLoanBeanObj");
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Miscellaneous Operation</legend>
|
||||
<form name="DepositMiscellaneousForm" id="DepositMiscellaneousForm" action="" method="post">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<table class="numbersOnly">
|
||||
<tr><td style="text-align:left;">Select Transaction<font color="red" >*</font>:</td><td></td><td><select id="transactionType" name="transactionType"><option value=""> --select-- </option><option value="Deposit">Deposit</option><option value="Loan">Loan</option></select></td></tr>
|
||||
<tr id ="depositAccount" style ="display:none;">
|
||||
<td>Enter Deposit Account <font color="red" >*</font>:</td>
|
||||
<td></td>
|
||||
<td><input type="text" maxlength="25" name="depositAccSearch" id="depositAccSearch" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' value="<%=blankNull(oDepositMiscellaneousBean.getDepositAccountNumber())%>"/><input type="button" value="Search" onclick="javascript:popup_DepositAccLOB(900, 350, document.DepositMiscellaneousForm.depositAccSearch.value);"/></td></tr>
|
||||
<tr id ="loanAccount" style ="display:none;">
|
||||
<td>Enter Loan Account <font color="red" >*</font>:</td>
|
||||
<td></td>
|
||||
<td><input type="text" maxlength="25" name="loanAccSearch" id="loanAccSearch" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' value="<%=blankNull(oRepayLoanBean.getLoanAcc())%>"/><input type="button" value="Search" onclick="javascript:popup_LonAccLOB(900, 350, document.DepositMiscellaneousForm.loanAccSearch.value);"/></td></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<input type="button" value="Get Details" id="Submit" onclick="javascript:submitform(DepositMiscellaneousForm)"/>
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
if (displayFlag.equalsIgnoreCase("FY")) {
|
||||
|
||||
%>
|
||||
<div id="lonDetails" align ="left">
|
||||
<br>
|
||||
<center>
|
||||
<table>
|
||||
<thead>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:right;">Loan Account No: </td>
|
||||
<td><input type="text" name="loanid" id="loanid" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getLoanAcc())%>"/></td><td></td>
|
||||
<td style="text-align:right;">Customer Name: </td>
|
||||
<td><input type="text" name="custName" id="custName" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getCustName())%>"/></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td style="text-align:right;">Sanctioned Amount: </td>
|
||||
<td><input type="text" name="sancAmt" id="sancAmt" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getSancAmt())%>"/></td><td></td>
|
||||
<td style="text-align:right;">Sanctioned Date: </td>
|
||||
<td><input type ="text" name=sancDt" id="sancDt" rreadonly="true" style="text-align:center;" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getSancDt())%>"/></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td>Outstanding Principle: </td>
|
||||
<td><input type="text" name="oustPrin" id="oustPrin" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getOustPrin())%>"/></td><td></td>
|
||||
<td>Interest Outstanding: </td>
|
||||
<td><input type="text" name="oustInt" id="oustInt" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getOustInt())%>"/></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td style="text-align:right;">Last Transaction Date: </td>
|
||||
<td><input type ="text" name ="lstTran" id="lstTran" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getLstRepayDt())%>"/></td><td></td>
|
||||
<td style="text-align:right;"> Product Code: </td>
|
||||
<td><input type ="text" name="prodCode" id="prodCode" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getProdCode())%>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Outstanding Balance: </td>
|
||||
<td><input type="text" name="oustBal" id="oustBal" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getOustBal())%>" /></td><td></td>
|
||||
<td style="text-align:right;">EMI: </td>
|
||||
<td><input type="text" name="emi" id="emi" readonly="true" style="text-align:center;" style="width: 260px" value="<%=blankNull(oRepayLoanBean.getEmi())%>"/></td>
|
||||
</tr>
|
||||
<tr><td colspan="5"><hr></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<center>
|
||||
<table> <tr>
|
||||
<td>Select Operation<font color="red" >*</font>:</td>
|
||||
<td>
|
||||
<select name="operation_type_loan" id="operation_type_loan">
|
||||
<option value="Not"> --Select-- </option>
|
||||
<option value="RST">Reset Passbook Transactions (Re-Print)</option>
|
||||
</select></td></tr>
|
||||
<tr id="resetTransactionLoanRadio" style="display:none;">
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="optradio" id="radio1"onclick="onRadioClick(1)">Re-Print from transaction No
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="optradio" id="radio2" onclick="onRadioClick(2)">Re-Print for account No
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="optradio" id="radio3" onclick="onRadioClick(3)">Re-Print from Date
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr id="transactionInputBox" style="display:none;">
|
||||
<td>Enter Transaction ID:</td>
|
||||
<td><input type="text" maxlength="25" name="transactionNoInpBox" id="transactionNoInpBox" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" id="transactionSearch" value="Search" onclick="javascript:popup_LoanTransactionNo(900,350,document.DepositMiscellaneousForm.transactionNoInpBox.value,document.DepositMiscellaneousForm.loanAccSearch.value)" /></td>
|
||||
</tr>
|
||||
<tr id="accountInputBox" style="display:none;">
|
||||
<td></td>
|
||||
<td>Account Number:</td>
|
||||
<td><input type="text" maxlength="25" name="accountNoInpBox" id="accountNoInpBox" value="<%=blankNull(oRepayLoanBean.getLoanAcc())%>" readonly/></td>
|
||||
</tr>
|
||||
<tr id="rseetDate" style="display:none;">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">Re-Print Transactions from Date:</td>
|
||||
<td><input type="text" style="text-align:center;" id="reset_date" name="reset_date" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].reset_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="javascript:submitLoanOperation(DepositMiscellaneousForm)"/></center> </center>
|
||||
<!--Start for Deposit-->
|
||||
<%}else if (displayFlag.equalsIgnoreCase("Y")) {
|
||||
%>
|
||||
<div id="show" align="left" >
|
||||
<br>
|
||||
<center>
|
||||
<table>
|
||||
<thead>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td style="font:large;">Deposit Account Number:</td>
|
||||
<td><input type="text" readonly="true" name="depositAccountNumber" id="depositAccountNumber" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getDepositAccountNumber())%>" /></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td>Account Balance:</td>
|
||||
<td><input type="text" readonly="true" name="accBalance" id="accBalance" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getAccBalance())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<tr>
|
||||
<td> 1st CIF Number:</td>
|
||||
<td><input type="text" readonly="true" name="cifNo" id="cifNo" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCifNo())%>" /></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td> 1st A/C Holder:</td>
|
||||
<td><input type="text" readonly="true" name="cifName" id="cifName" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCustomer1Name())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<tr>
|
||||
<td> 2nd CIF Number</td>
|
||||
<td><input type="text" readonly="true" name="cif2No" id="cif2No" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCif2No())%>" /></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td> 2nd A/C Holder:</td>
|
||||
<td><input type="text" readonly="true" name="cif2Name" id="cif2Name" style="text-align:right;" style="width: 260px" value="<%=blankNull(oDepositMiscellaneousBean.getCustomer2Name())%>" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<tr>
|
||||
<td>Account Status:</td>
|
||||
<td><input type="text" readonly name="accStat" style="width: 260px" id="accStat" value="<%=blankNull(oDepositMiscellaneousBean.getAccStat())%>"/></td>
|
||||
<td></td><td></td><td></td>
|
||||
<td>Nominee CIF:</td>
|
||||
<td><input type="text" readonly name="nomCif" style="text-align:right;" style="width: 260px" id="nomCif" value="<%=blankNull(oDepositMiscellaneousBean.getNomCif())%>"/></td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan="10"><hr></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<center>
|
||||
<table> <tr>
|
||||
<td>Select Operation<font color="red" >*</font>:</td>
|
||||
<td>
|
||||
<select name="operation_type" id="operation_type">
|
||||
<option value="Not"> --Select-- </option>
|
||||
<option value="HOLD">Apply Hold</option>
|
||||
<option value="RH">Remove Hold</option>
|
||||
<option value="STOP">Stop Account</option>
|
||||
<option value="RS">Remove Stop</option>
|
||||
<option value="RL">Remove Lien</option>
|
||||
<option value="M2H">Modify 2nd Holder</option>
|
||||
<option value="RST">Reset Passbook Transactions (Re-Print)</option>
|
||||
<option value="NOM">Update Nominee</option>
|
||||
<option value="ADR">Apply Dormant</option>
|
||||
<option value="RDR">Remove Dormant</option>
|
||||
<option value="SPT">Set Passbook Transactions (Skip-Print)</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="holdAmtTr" style="display:none;">
|
||||
<td>Hold Amount:</td>
|
||||
<td><input type="text" name="holdAmt" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57' /></td>
|
||||
</tr>
|
||||
|
||||
<tr id="rmvLien" style="display:none;">
|
||||
<td>Reason for removing lien:</td>
|
||||
<td><textarea id="rmvLienRsn" size="12" name="rmvLienRsn"></textarea></td>
|
||||
</tr>
|
||||
|
||||
<tr id="stopResonTr" style="display:none;">
|
||||
<td>Specify Stop Reason:</td>
|
||||
<td><textarea id="stopReson" size="12" name="stopReson"></textarea></td>
|
||||
<%--<td><select name="stopReson" id="stopReson">
|
||||
<option value="">Please select</option>
|
||||
<option value="Stop Reason 1">Stop Reason 1</option>
|
||||
<option value="Stop Reason 2">Stop Reason 2</option>
|
||||
<option value="Stop Reason 3">Stop Reason 3</option>
|
||||
</select>
|
||||
</td>--%>
|
||||
</tr>
|
||||
|
||||
<tr id="rem_stopReasonTr" style="display:none;">
|
||||
<td>Specify Reason:</td>
|
||||
<td><textarea id="rem_stopReson" size="12" name="rem_stopReson"></textarea></td>
|
||||
<%--<td><select name="rem_stopReson" id="rem_stopReson">
|
||||
<option value="">Please select</option>
|
||||
<option value="Remove Stop Reason 1">Remove Stop Reason 1</option>
|
||||
<option value="Remove Stop Reason 2">Remove Stop Reason 2</option>
|
||||
<option value="Remove Stop Reason 3">Remove Stop Reason 3</option>
|
||||
</select>
|
||||
</td>--%>
|
||||
</tr>
|
||||
|
||||
<tr id="modHolderTr1" style="display:none;">
|
||||
<td>Enter 2nd A/C Holder:</td><td><input type="text" maxlength="25" name="secondCifSearch" id="secondCifSearch" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /><input type="button" value="Search" onclick="javascript:popup_SecondCifLOB(350, 300, document.DepositMiscellaneousForm.secondCifSearch.value,'SecondCifLOB');"/></td>
|
||||
</tr>
|
||||
|
||||
<tr id="modHolderTr2" style="display:none;">
|
||||
<td>Specify Modify Reason:</td>
|
||||
<td><textarea id="modCif2TxtArea" size="12" name="modCif2TxtArea"></textarea></td>
|
||||
</tr>
|
||||
<tr id="nom" style="display:none;">
|
||||
<td>Enter Nominee CIF:</td><td><input type="text" maxlength="25" name="nomName" id="nomId" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /><input type="button" value="Search" onclick="javascript:popup_SecondCifLOB(350, 300, document.DepositMiscellaneousForm.nomId.value,'nomineeLov');"/></td>
|
||||
</tr>
|
||||
|
||||
<tr id="resetTransactionRadio" style="display:none;">
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="optradio" id="radio1"onclick="onRadioClick(1)">Re-Print from transaction No
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="optradio" id="radio2" onclick="onRadioClick(2)">Re-Print for account No
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="optradio" id="radio3" onclick="onRadioClick(3)">Re-Print from Date
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="transactionInputBox" style="display:none;">
|
||||
<td>Enter Transaction ID:</td>
|
||||
<td><input type="text" maxlength="25" name="transactionNoInpBox" id="transactionNoInpBox" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" id="transactionSearch" value="Search" onclick="javascript:popup_TransactionNo(900,350,document.DepositMiscellaneousForm.transactionNoInpBox.value,document.DepositMiscellaneousForm.depositAccSearch.value)" /></td>
|
||||
</tr>
|
||||
<tr id="accountInputBox" style="display:none;">
|
||||
<td>Account Number:</td>
|
||||
<td><input type="text" maxlength="25" name="accountNoInpBox" id="accountNoInpBox" value="<%=blankNull(oDepositMiscellaneousBean.getDepositAccountNumber())%>" readonly/></td>
|
||||
</tr>
|
||||
<tr id="rseetDate" style="display:none;">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">Re-Print Transactions from Date:</td>
|
||||
<td><input type="text" style="text-align:center;" id="reset_date" name="reset_date" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].reset_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr id="openCalendar" style ="display:none;">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">Skip Print Upto Date:</td>
|
||||
<td><input type="text" style="text-align:center;" id="print_date" name="print_date" resize="yes" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].print_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</center>
|
||||
|
||||
</center>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="javascript:submitOperation(DepositMiscellaneousForm)"/></center>
|
||||
</div>
|
||||
<%}%>
|
||||
|
||||
<input type="hidden" name="handle_id" value="" >
|
||||
<input type="hidden" name="secondCifSearchFlag" id="secondCifSearchFlag" value="">
|
||||
<input type="hidden" name="displayFlag" id="displayFlag" value="<%=displayFlag%>" >
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
<script>
|
||||
//make all inputs whole numbers only
|
||||
/*$('table.numbersOnly').on('keydown','#depositAccSearch', function(event) {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
});*/
|
||||
</script>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
847
IPKS_Updated/web/web/web/Deposit/DepositRateSlab.jsp
Normal file
847
IPKS_Updated/web/web/web/Deposit/DepositRateSlab.jsp
Normal file
@@ -0,0 +1,847 @@
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.DepositRateSlabBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Term Deposit Rate Slab</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script>
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
if($('#displayFlag').val() != "Y"){
|
||||
$('select#checkOption').change();
|
||||
}
|
||||
}
|
||||
function selectproduct(width, height, pCode, iCat) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositRateSlab.jsp";
|
||||
var lovKey="PickUPProduct";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?pCode=' + pCode + '&iCat=' + iCat + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPProduct', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
function selectproductAmend(width, height, pCode, iCat) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositRateSlab.jsp";
|
||||
var lovKey="PickUPProductAmend";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?pCode=' + pCode + '&iCat=' + iCat + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPProduct', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
function selectproductAmend2(width, height, pCode, iCat) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositRateSlab.jsp";
|
||||
var lovKey="PickUPProductAmend2";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?pCode=' + pCode + '&iCat=' + iCat + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPProductAmend2', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="noBack()">
|
||||
<% int count = 1;
|
||||
int count3 = 1;
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
Object oDepositRateSlabBeanObj = request.getAttribute("oDepositRateSlabBean");
|
||||
DepositRateSlabBean oDepositRateSlabBeanHeader = new DepositRateSlabBean();
|
||||
if (oDepositRateSlabBeanObj != null) {
|
||||
oDepositRateSlabBeanHeader = (DepositRateSlabBean) request.getAttribute("oDepositRateSlabBean");
|
||||
}
|
||||
|
||||
Object alDepositRateSlabBeanObj = request.getAttribute("alDepositRateSlabBean");
|
||||
ArrayList<DepositRateSlabBean> alDepositRateSlabBean = new ArrayList<DepositRateSlabBean>();
|
||||
DepositRateSlabBean oDepositRateSlabBean = new DepositRateSlabBean();
|
||||
if (alDepositRateSlabBeanObj != null) {
|
||||
alDepositRateSlabBean = (ArrayList<DepositRateSlabBean>) request.getAttribute("alDepositRateSlabBean");
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Term Deposit Rate Slab</legend>
|
||||
|
||||
<form name="tdRateSlabForm" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<center style='display:none;'><h3><label style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection:</label>
|
||||
<select id="checkOption" name="checkOption" >
|
||||
<%--<option value="" disabled selected style="display:none;" > --Select-- </option>--%>
|
||||
<%--<option value="create" >Create</option>--%>
|
||||
<option value="amend" >Amend</option>
|
||||
|
||||
</select>
|
||||
</h3></center>
|
||||
|
||||
|
||||
<div id="create" style="display: none;">
|
||||
<table>
|
||||
<%--<tr><td><h4>Amend Effective Date & Interest Rates</h4></td></tr>--%>
|
||||
|
||||
<%--<tr><td><h4>Select Product & Effective Date</h4></td></tr> --%>
|
||||
<tr>
|
||||
<td><lable>Product Code<font color="red" >*</font>:</lable></td>
|
||||
<td><input type="text" readonly id="pCode" name="pCode" ><input type="button" value="Search" onclick="javascript:selectproduct(850, 200, document.tdRateSlabForm.pCode.value, document.tdRateSlabForm.iCat.value);"/></td>
|
||||
</tr>
|
||||
<tr><td></td></tr>
|
||||
<tr><td></td></tr>
|
||||
<tr>
|
||||
<td><lable>Interest Category<font color="red" >*</font>:</lable></td>
|
||||
<td><input type="text" readonly id="iCat" name="iCat" ><input type="button" value="Search" onclick="javascript:selectproduct(850, 200, document.tdRateSlabForm.pCode.value, document.tdRateSlabForm.iCat.value);"/></td>
|
||||
</tr>
|
||||
<tr><td><hr></td></tr>
|
||||
<tr><td><h4>Amend Effective Date & Interest Rates</h4></td></tr>
|
||||
<tr>
|
||||
<td><lable>Effective From Date:</lable></td>
|
||||
<td><input type="text" id="procStartDate" name="procStartDate" readonly="true"> <a href="#" onclick="return getCalendar(getElementById('procStartDate'));"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><lable>Effective To Date:</lable></td>
|
||||
<td><input type="text" id="procEndDate" name="procEndDate" readonly="true"> <a href="#" onclick="return getCalendar(document.forms[0].procEndDate);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
|
||||
<%--<tr><td><hr></td></tr>--%>
|
||||
</table>
|
||||
|
||||
<h4>Interest Rate Details</h4>
|
||||
|
||||
<center>
|
||||
<table class="checkEvents" id="order-list" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td style=""></td>
|
||||
<td>Interest Rate(%)</td>
|
||||
<td >Term From (Days)</td>
|
||||
<td>Term To (Days)</td>
|
||||
<td>From Amount</td>
|
||||
<td>To Amount</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td><input type="text" size="13" style="border:none;" name="inttRate<%=count%>" id="inttRate<%=count%>"/></td>
|
||||
<td><input type="text" style="border:none;" name="termFrom<%=count%>" id="termFrom<%=count%>" class="noDot"/></td>
|
||||
<td><input type="text" style="border:none;" name="termTo<%=count%>" id="termTo<%=count%>" class="noDot" /></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="amountFrom<%=count%>" id="amountFrom<%=count%>"/></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="amountTo<%=count%>" id="amountTo<%=count%>"/></td>
|
||||
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
</center>
|
||||
<center>
|
||||
<input type="button" id="addRow" value="Add Row"/>
|
||||
<input type="button" id="deleteRow" value="Delete Row"/>
|
||||
<input type="button" value="Reset" onclick="javascript:ShowParent()" />
|
||||
</center>
|
||||
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(tdRateSlabForm)">
|
||||
|
||||
</center>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">All fields are mandatory</label>
|
||||
</div>
|
||||
<div id="amend" style="display: none;">
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Product Code<font color="red" >*</font>: </td>
|
||||
<td> <input type="text" readonly name="pCodeSearch" id="pCodeSearch" value=""/></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:selectproductAmend(650, 200, document.tdRateSlabForm.pCodeSearch.value, document.tdRateSlabForm.iCatSearch.value);"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Interest Category<font color="red" >*</font>: </td>
|
||||
<td><input type="text" readonly name="iCatSearch" id="iCatSearch" value=""/></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:selectproductAmend(650, 200, document.tdRateSlabForm.pCodeSearch.value, document.tdRateSlabForm.iCatSearch.value);"/></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:submitformSearch()" />
|
||||
<input type="button" value="Reset" onclick="javascript:ShowParent()" /></center>
|
||||
|
||||
|
||||
</center><br>
|
||||
</div>
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<div id="amend2" >
|
||||
|
||||
|
||||
<table>
|
||||
<%--<tr><td><hr></td></tr>
|
||||
<%--<tr><td><h4>Select Product & Effective Date</h4></td></tr>--%>
|
||||
|
||||
<tr>
|
||||
<td><lable>Product Code :</lable></td>
|
||||
<td><input type="text" readonly id="pCodeAmend" name="pCodeAmend" value="<%=blankNull(oDepositRateSlabBeanHeader.getpCodeSearch())%>" ><input type="button" value="Search" onclick="javascript:selectproductAmend2(850, 200, document.tdRateSlabForm.pCodeAmend.value, document.tdRateSlabForm.iCatAmend.value);"/></td>
|
||||
|
||||
</tr>
|
||||
<tr><td></td></tr>
|
||||
<tr><td></td></tr>
|
||||
<tr>
|
||||
<td><lable>Interest Category :</lable></td>
|
||||
<td><input type="text" readonly id="iCatAmend" name="iCatAmend" value="<%=blankNull(oDepositRateSlabBeanHeader.getiCatSearch())%>" ><input type="button" value="Search" onclick="javascript:selectproductAmend2(850, 200, document.tdRateSlabForm.pCodeAmend.value, document.tdRateSlabForm.iCatAmend.value);"/></td>
|
||||
</tr>
|
||||
|
||||
<tr><td><hr></td></tr>
|
||||
<tr><td><h4>Amend Effective Date & Interest Rates</h4></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><lable>Effective From Date :</lable></td>
|
||||
<td><input type="text" readonly id="procStartDateAmend" name="procStartDateAmend" style="text-align:center;" value="<%=blankNull(oDepositRateSlabBeanHeader.getProcStartDate())%>"> <a href="#" onclick="return getCalendar(getElementById('procStartDateAmend'));"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><lable>Effective To Date :</lable></td>
|
||||
<td><input type="text" readonly id="procEndDateAmend" name="procEndDateAmend" style="text-align:center;" value="<%=blankNull(oDepositRateSlabBeanHeader.getProcEndDate())%>"> <a href="#" onclick="return getCalendar(document.forms[0].procEndDateAmend);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
|
||||
<%--<tr><td><hr></td></tr>--%>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h4>Interest Rate Details</h4>
|
||||
|
||||
<center>
|
||||
<table class="checkEvents" id="order-listAmend" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px" >
|
||||
<%if (blankNull(oDepositRateSlabBeanHeader.getpCodeSearch()).substring(0, 1).equalsIgnoreCase("3")) {%>
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Interest Rate(%)</td>
|
||||
<td>Term From (Months)</td>
|
||||
<td>Term To (Months)</td>
|
||||
<td>From Amount</td>
|
||||
<td>To Amount</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<%} else {%>
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Interest Rate(%)</td>
|
||||
<td>Term From (Days)</td>
|
||||
<td>Term To (Days)</td>
|
||||
<td>From Amount</td>
|
||||
<td>To Amount</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<%}%>
|
||||
<tbody>
|
||||
|
||||
<%
|
||||
oDepositRateSlabBean = new DepositRateSlabBean();
|
||||
count3 = 0;
|
||||
|
||||
for (int i = 0; i < alDepositRateSlabBean.size(); i++) {
|
||||
oDepositRateSlabBean = alDepositRateSlabBean.get(i);
|
||||
|
||||
count3++;
|
||||
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chckboxAmend<%=count3%>" id="chckboxAmend<%=count3%>" onclick="checkboxTrueAmend(<%=count3%>);" value="<%=blankNull(oDepositRateSlabBean.getSlabTable_id())%>" /></td>
|
||||
<td><input type="text" size="13" style="border:none;" class="numeric" name="inttRateAmend<%=count3%>" id="inttRateAmend<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getInttRate())%>"/></td>
|
||||
<td><input type="text" style="border:none;" name="termFromAmend<%=count3%>" id="termFromAmend<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getTermFrom())%>" class="noDot" /></td>
|
||||
<td><input type="text" style="border:none;" name="termToAmend<%=count3%>" id="termToAmend<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getTermTo())%>" class="noDot" /></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="amountFromAmend<%=count3%>" id="amountFromAmend<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getAmountFrom())%>"/></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="amountToAmend<%=count3%>" id="amountToAmend<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getAmountTo())%>"/></td>
|
||||
<td style="display:none"><input type="hidden" name="dep_product_idAmend<%=count3%>" id="dep_product_idAmend<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getDep_product_id())%>"/></td>
|
||||
<td style="display:none"><input type="hidden" name="slabTable_id<%=count3%>" id="slabTable_id<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getSlabTable_id())%>"/></td>
|
||||
<td style="display:none"><input type="hidden" name="rowStatus<%=count3%>" id="rowStatus<%=count3%>" value="A"/></td>
|
||||
</tr>
|
||||
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
</center>
|
||||
<center>
|
||||
<input type="button" id="addRowAmend" value="Add Row"/>
|
||||
<input type="button" id="deleteRowAmend" value="Delete Row"/>
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Update" onclick="javascript:submitformAmend(tdRateSlabForm)">
|
||||
|
||||
</center>
|
||||
<br>
|
||||
<br>
|
||||
<label style=" font-family: Berlin Sans FB; font-weight:normal; ">All fields are mandatory</label>
|
||||
|
||||
</div>
|
||||
<%}%>
|
||||
|
||||
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
<input type="hidden" name="dep_product_id" value="<%=blankNull(oDepositRateSlabBean.getDep_product_id())%>" />
|
||||
<input type="hidden" id="displayFlag" name="displayFlag" value="<%=displayFlag%>"/>
|
||||
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounterDelete" id="rowCounterDelete" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounterAmend" id="rowCounterAmend" value="<%=count3%>">
|
||||
<input type="hidden" name="rowCounterDeleteAmend" id="rowCounterDeleteAmend" value="<%=count3%>">
|
||||
<input type="hidden" name="deletedRows" id="deletedRows" value=""/>
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
<input type="hidden" name="chkboxCounterAmend" id="chkboxCounterAmend" value="0"/>
|
||||
<input type="hidden" name="add" id="add" value="0"/>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
|
||||
function checkboxTrue(i){
|
||||
if(document.getElementById("chckbox"+i).checked==true){
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
|
||||
else{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function checkboxTrueAmend(i){
|
||||
if(document.getElementById("chckboxAmend"+i).checked==true){
|
||||
var counter = $("#chkboxCounterAmend").val();
|
||||
counter++;
|
||||
$("#chkboxCounterAmend").val(counter);
|
||||
}
|
||||
else{
|
||||
var counter = $("#chkboxCounterAmend").val();
|
||||
counter--;
|
||||
$("#chkboxCounterAmend").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
$("#addRow").click(function () {
|
||||
// var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#order-list tr:last').after('<tr> <td><input type="checkbox" name="chckbox' + counter + '" id="chckbox' + counter + '" onclick="checkboxTrue(' + counter + ');" /></td><td><input type="text" size="13" style="border:none;" name="inttRate' + counter + '" id="inttRate' + counter + '"/></td><td><input type="text" style="border:none;" name="termFrom' + counter + '" id="termFrom' + counter + '" class="noDot" /></td><td><input type="text" style="border:none;" name="termTo' + counter + '" id="termTo' + counter + '" class="noDot" /></td><td><input type="text" style="border:none;" class="numeric" name="amountFrom' + counter + '" id="amountFrom' + counter + '"/></td><td><input type="text" style="border:none;" class="numeric" name="amountTo' + counter + '" id="amountTo' + counter + '"/></td> </tr>');
|
||||
$("#rowCounter").val(counter);
|
||||
$("#rowCounterDelete").val(counter);
|
||||
|
||||
});
|
||||
$("#deleteRow").click(function () {
|
||||
var len = ($("#order-list tr").length)-1;
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var rowcount = $("#rowCounterDelete").val();
|
||||
var counterDelete = rowcount-chkboxCounter;
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if (len ==chkboxCounter) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
$("#rowCounterDelete").val( $("#rowCounter").val());
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
}
|
||||
});
|
||||
|
||||
$("#addRowAmend").click(function () {
|
||||
//var counter = $("#rowCounterAmend").val();
|
||||
counter++;
|
||||
$('#order-listAmend tr:last').after('<tr> <td><input type="checkbox" name="chckboxAmend' + counter + '" id="chckboxAmend' + counter + '" onclick="checkboxTrueAmend(' + counter + ');" /></td>\n\
|
||||
<td><input type="text" size="13" style="border:none;" name="inttRateAmend' + counter + '" id="inttRateAmend' + counter + '" class="numeric"/></td>\n\
|
||||
<td><input type="text" style="border:none;" name="termFromAmend' + counter + '" id="termFromAmend' + counter + '" class="noDot"/></td>\n\
|
||||
<td><input type="text" style="border:none;" name="termToAmend' + counter + '" id="termToAmend' + counter + '" class="noDot" /></td>\n\
|
||||
<td><input type="text" style="border:none;" name="amountFromAmend' + counter + '" id="amountFromAmend' + counter + '" class="numeric"/></td>\n\
|
||||
<td><input type="text" style="border:none;" name="amountToAmend' + counter + '" id="amountToAmend' + counter + '" class="numeric"/></td>\n\
|
||||
<td style="display:none"><input type="text" name="dep_product_idAmend' + counter + '" id="dep_product_idAmend' + counter + '" /></td>\n\
|
||||
<td style="display:none"><input type="text" name="slabTable_id' + counter + '" id="slabTable_id' + counter + '"/></td>\n\
|
||||
<td style="display:none"><input type="hidden" name="rowStatus' + counter + '" id="rowStatus' + counter + '" value="N"/></td>\n\
|
||||
</tr>');
|
||||
$("#rowCounterAmend").val(counter);
|
||||
$("#rowCounterDeleteAmend").val(counter);
|
||||
});
|
||||
|
||||
|
||||
$("#deleteRowAmend").click(function () {
|
||||
var len = ($("#order-listAmend tr").length)-1;
|
||||
var chkboxCounter=$("#chkboxCounterAmend").val();
|
||||
var rowcount = $("#rowCounterDeleteAmend").val();
|
||||
var counterDelete = rowcount-chkboxCounter;
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if (len ==chkboxCounter) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
|
||||
var selchbox = [];
|
||||
selchbox= getSelectedChbox(tdRateSlabForm);
|
||||
$("#deletedRows").val(selchbox);
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
$("#rowCounterDeleteAmend").val( $("#rowCounterAmend").val());
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounterAmend").val(chkboxCounter);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function getSelectedChbox(tdRateSlabForm) {
|
||||
var selchbox = [];
|
||||
var inpfields = tdRateSlabForm.getElementsByTagName('input');
|
||||
var nr_inpfields = inpfields.length;
|
||||
for(var i=0; i<nr_inpfields; i++) {
|
||||
if(inpfields[i].type == 'checkbox' && inpfields[i].checked == true){
|
||||
if (inpfields[i].value!=null || inpfields[i].value!="" ){
|
||||
selchbox.push(inpfields[i].value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return selchbox;
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/DepositRateSlab.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function submitform(tdRateSlabForm)
|
||||
{
|
||||
if (checkDiv(tdRateSlabForm))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Create";
|
||||
document.forms[0].action = '/PacsApplication/DepositRateSlabServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function submitformSearch(tdRateSlabForm)
|
||||
{
|
||||
if (checkDivSearch(tdRateSlabForm))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Search";
|
||||
document.forms[0].action = '/PacsApplication/DepositRateSlabServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
function submitformAmend(tdRateSlabForm)
|
||||
{
|
||||
if (checkDivAmend(tdRateSlabForm)){
|
||||
document.forms[0].handle_id.value = "Update";
|
||||
document.forms[0].action = '/PacsApplication/DepositRateSlabServlet';
|
||||
tdRateSlabForm.submit();
|
||||
}
|
||||
|
||||
}
|
||||
function checkDiv(tdRateSlabForm)
|
||||
{
|
||||
if (tdRateSlabForm.dep_product_id.value == "")
|
||||
{
|
||||
alert("Product & Interest category must be filled.");
|
||||
return false;
|
||||
}
|
||||
if (tdRateSlabForm.pCode.value == "")
|
||||
{
|
||||
alert("Product Code must be filled.");
|
||||
tdRateSlabForm.pCode.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tdRateSlabForm.iCat.value == "")
|
||||
{
|
||||
alert("Interest Category must be filled.");
|
||||
tdRateSlabForm.iCat.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tdRateSlabForm.procStartDate.value == "")
|
||||
{
|
||||
alert("Effective From-Date must be filled.");
|
||||
tdRateSlabForm.procStartDate.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tdRateSlabForm.procEndDate.value == "")
|
||||
{
|
||||
alert("Effective To-Date must be filled.");
|
||||
tdRateSlabForm.procEndDate.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (checkdate()){
|
||||
var counter = document.forms[0].rowCounter.value;
|
||||
|
||||
try{
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
var inttRate = document.getElementById("inttRate" + i).value;
|
||||
var termFrom = document.getElementById("termFrom" + i).value;
|
||||
var termTo = document.getElementById("termTo" + i).value;
|
||||
var amountFrom = document.getElementById("amountFrom" + i).value;
|
||||
var amountTo = document.getElementById("amountTo" + i).value;
|
||||
|
||||
//alert("Rate"+inttRate);
|
||||
|
||||
if ( inttRate.indexOf('%') == -1 )
|
||||
{
|
||||
if (inttRate == "" || termFrom == "" || termTo == "" || amountFrom == "" ||amountTo =="") {
|
||||
alert("All Fields are mandatory.");
|
||||
return false;
|
||||
}
|
||||
if(parseInt(termFrom) > parseInt(termTo)){
|
||||
|
||||
alert("Term From (Days) cannot be greater than Term To (Days).");
|
||||
return false;
|
||||
}
|
||||
if(parseInt(amountFrom) > parseInt(amountTo)){
|
||||
alert("From Amount cannot be greater than To Amount.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Please do not enter % in Interest Rate.");
|
||||
document.getElementById("inttRate" + i).focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}catch(e){
|
||||
|
||||
}
|
||||
}
|
||||
else{
|
||||
alert("Effective from date cannot be greater than effective to date.");
|
||||
tdRateSlabForm.procStartDate.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
function checkDivSearch(){
|
||||
if (tdRateSlabForm.dep_product_id.value == "")
|
||||
{
|
||||
alert("Product & Interest category must be filled.");
|
||||
tdRateSlabForm.pCodeSearch.focus();
|
||||
return false;
|
||||
}
|
||||
if (tdRateSlabForm.pCodeSearch.value == "")
|
||||
{
|
||||
alert("Product Code must be filled.");
|
||||
tdRateSlabForm.pCodeSearch.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tdRateSlabForm.iCatSearch.value == "")
|
||||
{
|
||||
alert("Interest Category must be filled.");
|
||||
tdRateSlabForm.iCatSearch.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkDivAmend(tdRateSlabForm)
|
||||
{
|
||||
|
||||
if (tdRateSlabForm.dep_product_id.value == "")
|
||||
{
|
||||
alert("Product & Interest category must be filled.");
|
||||
return false;
|
||||
}
|
||||
if (tdRateSlabForm.pCodeAmend.value == "")
|
||||
{
|
||||
alert("Product Code must be filled.");
|
||||
tdRateSlabForm.pCodeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tdRateSlabForm.iCatAmend.value == "")
|
||||
{
|
||||
alert("Interest Category must be filled.");
|
||||
tdRateSlabForm.iCatAmend.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tdRateSlabForm.procStartDateAmend.value == "")
|
||||
{
|
||||
alert("Effective From-Date must be filled.");
|
||||
tdRateSlabForm.procStartDateAmend.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tdRateSlabForm.procEndDateAmend.value == "")
|
||||
{
|
||||
alert("Effective To-Date must be filled.");
|
||||
tdRateSlabForm.procEndDateAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if(checkdateamend()){
|
||||
var counter = document.forms[0].rowCounterAmend.value;
|
||||
try{
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
var inttRateAmend = document.getElementById("inttRateAmend" + i).value;
|
||||
var termFromAmend = document.getElementById("termFromAmend" + i).value;
|
||||
var termToAmend = document.getElementById("termToAmend" + i).value;
|
||||
var amountFromAmend = document.getElementById("amountFromAmend" + i).value;
|
||||
var amountToAmend = document.getElementById("amountToAmend" + i).value;
|
||||
|
||||
//alert("Rate"+inttRateAmend);
|
||||
|
||||
if ( inttRateAmend.indexOf('%') == -1 )
|
||||
{
|
||||
if (inttRateAmend == "" || termFromAmend == "" || termToAmend == "" || amountFromAmend == "" || amountToAmend == "") {
|
||||
alert("All Fields are mandatory.");
|
||||
return false;
|
||||
}
|
||||
if(parseInt(termFromAmend) > parseInt(termToAmend)){
|
||||
alert("Term From (Days) cannot be greater than Term To (Days).");
|
||||
return false;
|
||||
}
|
||||
if(parseInt(amountFromAmend) > parseInt(amountToAmend)){
|
||||
alert("From Amount cannot be greater than To Amount.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Please do not enter % in Interest Rate.");
|
||||
document.getElementById("inttRateAmend").focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}catch(e){
|
||||
|
||||
}
|
||||
}
|
||||
else{
|
||||
alert("Effective From-Date cannot be greater than Effective To-Date.");
|
||||
tdRateSlabForm.procStartDate.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkdate()
|
||||
{
|
||||
var s1 = document.getElementById("procStartDate").value;
|
||||
var s2 = document.getElementById("procEndDate").value;
|
||||
var dateParts1 = s1.split("/");
|
||||
var dateParts2 = s2.split("/");
|
||||
|
||||
var dateObject1 = new Date(dateParts1[2], dateParts1[1] - 1, dateParts1[0]);
|
||||
var dateObject2 = new Date(dateParts2[2], dateParts2[1] - 1, dateParts2[0]);
|
||||
|
||||
if (dateObject1>dateObject2){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkdateamend()
|
||||
{
|
||||
var s1 = document.getElementById("procStartDateAmend").value;
|
||||
var s2 = document.getElementById("procEndDateAmend").value;
|
||||
var dateParts1 = s1.split("/");
|
||||
var dateParts2 = s2.split("/");
|
||||
|
||||
var dateObject1 = new Date(dateParts1[2], dateParts1[1] - 1, dateParts1[0]);
|
||||
var dateObject2 = new Date(dateParts2[2], dateParts2[1] - 1, dateParts2[0]);
|
||||
|
||||
if (dateObject1>dateObject2){
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#checkOption').change(function () {
|
||||
$('#amend2').hide();
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'create':
|
||||
$('#create').show();
|
||||
$('#amend').hide();
|
||||
break;
|
||||
|
||||
case 'amend':
|
||||
$('#create').hide();
|
||||
$('#amend').show();
|
||||
break;
|
||||
default:
|
||||
$('#create').hide();
|
||||
$('#amend').hide();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$('.checkEvents').on('keydown',':input.numeric[type="text"]', function() {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46 || event.keyCode == 190) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if($(this).val().indexOf('.') !== -1 && event.keyCode == 190)
|
||||
{ event.preventDefault();}
|
||||
|
||||
});
|
||||
|
||||
$('.checkEvents').on('keydown',':input.noDot[type="text"]', function(event) {
|
||||
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39 ) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if($(this).val().indexOf('.') !== -1 && event.keyCode == 190)
|
||||
{event.preventDefault();}
|
||||
});
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
472
IPKS_Updated/web/web/web/Deposit/DepositTransactionEnquiry.jsp
Normal file
472
IPKS_Updated/web/web/web/Deposit/DepositTransactionEnquiry.jsp
Normal file
@@ -0,0 +1,472 @@
|
||||
<%--
|
||||
Document : DepositTransactionEnquiry
|
||||
Created on : Sep 13, 2016, 2:23:35 PM
|
||||
Author :
|
||||
--%>
|
||||
<%@page import="DataEntryBean.TransactionEnquiryBean"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<title>Deposit Transaction Enquiry</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function accountsubmitform(enquiryForm)
|
||||
{
|
||||
if(!checkdate()){
|
||||
|
||||
alert("Please Select valid date range");
|
||||
return false;
|
||||
}
|
||||
if( document.forms[0].accountNo.value == "" )
|
||||
{
|
||||
alert("Please enter Account Number.");
|
||||
document.forms[0].accountNo.focus();
|
||||
return false;
|
||||
}
|
||||
if ( document.forms[0].fromDate.value =="" )
|
||||
{
|
||||
alert("Please enter From Date.");
|
||||
document.forms[0].fromDate.focus();
|
||||
return false;
|
||||
}
|
||||
if ( document.forms[0].toDate.value =="" )
|
||||
{
|
||||
alert("Please enter To Date.");
|
||||
document.forms[0].toDate.focus();
|
||||
return false;
|
||||
}
|
||||
document.forms[0].totalRecordCount.value=0;
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/DepositTransactionEnquiry.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function excelDownload() {
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function checkdate()
|
||||
{
|
||||
var s1 = document.getElementById("fromDate").value;
|
||||
var s2 = document.getElementById("toDate").value;
|
||||
var dateParts1 = s1.split("/");
|
||||
var dateParts2 = s2.split("/");
|
||||
|
||||
var dateObject1 = new Date(dateParts1[2], dateParts1[1] - 1, dateParts1[0]);
|
||||
var dateObject2 = new Date(dateParts2[2], dateParts2[1] - 1, dateParts2[0]);
|
||||
|
||||
if (dateObject1>dateObject2){
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
function callNextPage()
|
||||
{
|
||||
var totalRecordCount=document.forms[0].totalRecordCount.value;
|
||||
var recordCount=document.forms[0].recordCount.value;
|
||||
|
||||
if (totalRecordCount==recordCount){
|
||||
|
||||
alert("No more record to display");
|
||||
return false;
|
||||
|
||||
}
|
||||
document.forms[0].but_type.value = 'N';
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function callPrevPage()
|
||||
{
|
||||
var totalRecordCount= document.forms[0].totalRecordCount.value;
|
||||
var noOfRecords= document.forms[0].noOfRecords.value;
|
||||
document.forms[0].totalRecordCount.value= Number(totalRecordCount) - Number(noOfRecords)-10;
|
||||
document.forms[0].but_type.value = 'P';
|
||||
document.forms[0].action = '/PacsApplication/EnquiryServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
Object alTransactionEnquiryBeanObj = request.getAttribute("alTransactionEnquiryBean");
|
||||
ArrayList<TransactionEnquiryBean> alTransactionEnquiryBean = new ArrayList<TransactionEnquiryBean>();
|
||||
if (alTransactionEnquiryBeanObj != null) {
|
||||
alTransactionEnquiryBean = (ArrayList<TransactionEnquiryBean>) request.getAttribute("alTransactionEnquiryBean");
|
||||
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oTransactionEnquiryBeanobj = request.getAttribute("oTransactionEnquiryBeanSearchObj");
|
||||
TransactionEnquiryBean oTransactionEnquiryBean = new TransactionEnquiryBean();
|
||||
if (oTransactionEnquiryBeanobj != null) {
|
||||
oTransactionEnquiryBean = (TransactionEnquiryBean) request.getAttribute("oTransactionEnquiryBeanSearchObj");
|
||||
session.setAttribute("oTransactionEnquiryBeanSearchObj", oTransactionEnquiryBeanobj);
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
int flag2 = 1;
|
||||
int curPage = 0;
|
||||
try {
|
||||
curPage = Integer.parseInt(request.getAttribute("currentPage").toString());
|
||||
} catch (Exception e) {
|
||||
curPage = 1;
|
||||
}
|
||||
if (alTransactionEnquiryBean.size() > 0) {
|
||||
flag2 = 2;
|
||||
}
|
||||
int totalRecordCount = 0;
|
||||
int recordCount = 0;
|
||||
|
||||
try {
|
||||
totalRecordCount = Integer.parseInt(request.getAttribute("totalRecordCount").toString());
|
||||
recordCount = Integer.parseInt(request.getAttribute("recordCount").toString());
|
||||
} catch (Exception e) {
|
||||
totalRecordCount = 0;
|
||||
recordCount = 0;
|
||||
}
|
||||
totalRecordCount = totalRecordCount + alTransactionEnquiryBean.size();
|
||||
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Transaction Enquiry Details</legend>
|
||||
<form name="enquiryForm" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
|
||||
<div id="filterDiv">
|
||||
<%--<center>--%>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="right">Account Number<font color="red" >*</font>:</td>
|
||||
<td align="left"><input value="<%=blankNull(oTransactionEnquiryBean.getAccountNo())%>" type="text" name="accountNo" id="accountNo" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td> </td>
|
||||
<%--<td align="right">Product Name:</td>
|
||||
<td align="left"><select id="productName" name="productName" >
|
||||
<%if (oTransactionEnquiryBean.getProductName() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select id, prod_name from dep_product where substr(prod_code,1,1) in ('1','2','5','3') and pacs_id like '%" + pacsId + "%'");
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
statement.close();
|
||||
connection.close();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oTransactionEnquiryBean.getProductId())%>" selected style="display:none;"><%=blankNull(oTransactionEnquiryBean.getProductName())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select id, prod_name from dep_product where substr(prod_code,1,1) in ('1','2','5','3') and id!='" + oTransactionEnquiryBean.getProductId() + "' and pacs_id like '%" + pacsId + "%'");
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
statement.close();
|
||||
connection.close();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}%>
|
||||
</select>
|
||||
</td>--%>
|
||||
</tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr>
|
||||
<td align="right">From Date<font color="red" >*</font>:</td>
|
||||
<td align="left"><input value="<%=blankNull(oTransactionEnquiryBean.getFromDate())%>" type="text" style="text-align:center;" name="fromDate" id="fromDate" resize="yes" readonly="true"/> <a href="#" onclick="return getCalendar(document.forms[0].fromDate);"/><img src=" ${pageContext.request.contextPath}/img/calendar.jpg " name=" imgr" border="0" width="25" height="20" /></td>
|
||||
<td> </td>
|
||||
<td align="right">To Date<font color="red" >*</font>:</td>
|
||||
<td align="left"><input value="<%=blankNull(oTransactionEnquiryBean.getToDate())%>" type="text" style="text-align:center;" name="toDate" id="toDate" resize="yes" readonly="true"/> <a href="#" onclick="return getCalendar(document.forms[0].toDate);"/><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></td>
|
||||
</tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr>
|
||||
<td align="right">From Amount:</td>
|
||||
<td align="left"><input value="<%=blankNull(oTransactionEnquiryBean.getFromAmount())%>" type="text" name="fromAmount" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57' /></td>
|
||||
<td> </td>
|
||||
<td align="right">To Amount:</td>
|
||||
<td align="left"><input value="<%=blankNull(oTransactionEnquiryBean.getToAmount())%>" type="text" name="toAmount" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57'/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<tr>
|
||||
<td align="right">Transaction Reference Number:</td>
|
||||
<td align="left"><input value="<%=blankNull(oTransactionEnquiryBean.getTranRefSearch())%>" type="text" name="tranRefSearch" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td> </td>
|
||||
<td style="text-align: right">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oTransactionEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
// connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
connection = DbHandler.getDBConnection();
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oTransactionEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oTransactionEnquiryBean.getSubpacs_name())%></option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
// connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
connection = DbHandler.getDBConnection();
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:accountsubmitform(enquiryForm)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div><br><br>
|
||||
<input type="hidden" value="DepositTransactionEnquiry" name="screenName" />
|
||||
|
||||
<input name="handle_id" id="handle_id" type="hidden" value="" />
|
||||
<input name="reportname" id="reportname" type="hidden" value="DEP_TXN_ENQ_REPORT" />
|
||||
<input type="hidden" name="page" value="<%=request.getAttribute("currentPage")%>">
|
||||
<input type="hidden" name="but_type" >
|
||||
<input type="hidden" name="totalRecordCount" id="totalRecordCount" value="<%=totalRecordCount%>">
|
||||
<input type="hidden" name="recordCount" id="recordCount" value="<%=recordCount%>">
|
||||
<input type="hidden" name="noOfRecords" id="noOfRecords" value="<%=request.getAttribute("noOfRecords")%>">
|
||||
|
||||
</form>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
<div id="displayDiv" >
|
||||
<div style="overflow:scroll; width: 900px;">
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>Account No.</td>
|
||||
<td>Reference No.</td>
|
||||
<td>Product Name</td>
|
||||
<td>Interest Description</td>
|
||||
<td>Transaction Date</td>
|
||||
<td>Transaction Type</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>End Balance</td>
|
||||
<td>Narration</td>
|
||||
<td>Maker ID</td>
|
||||
<td>Autheriser ID</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="background-color: white; font-size: 15px">
|
||||
<%
|
||||
oTransactionEnquiryBean = null;
|
||||
for (int i = 0; i < alTransactionEnquiryBean.size(); i++) {
|
||||
oTransactionEnquiryBean = alTransactionEnquiryBean.get(i);
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getAccountNo())%></td>
|
||||
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getCbs_Ref_No())%></td>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getProductNameDisplay())%></td>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getInttCatDesc())%></td>
|
||||
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getTransactionDate())%></td>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getTransactionType())%></td>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getTransactionAmount())%></td>
|
||||
|
||||
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getAvailableBalance())%></td>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getNarration())%></td>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getMakerID())%></td>
|
||||
<td><%=blankNull(oTransactionEnquiryBean.getAuthID())%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><br><br>
|
||||
|
||||
<%--For displaying Previous link except for the 1st page --%>
|
||||
|
||||
<table align="right" colspan="2">
|
||||
<% if (curPage > 1 && flag2 == 2) {%>
|
||||
<td><input type="button" name="nextPage" value="Previous" onclick="callPrevPage()"><input type="button" name="nextPage" value="Next" onclick="callNextPage()">
|
||||
<% }%>
|
||||
<% if (flag2 == 2) {%>
|
||||
|
||||
<% if (curPage == 1) {%>
|
||||
<td><input type="button" name="nextPage" value="Next" onclick="callNextPage()">
|
||||
<% }
|
||||
}%>
|
||||
|
||||
</table><br><br>
|
||||
|
||||
<input type="button" value="Export Result" onclick="javascript:excelDownload()">
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
1248
IPKS_Updated/web/web/web/Deposit/DepositTransactionOperation.jsp
Normal file
1248
IPKS_Updated/web/web/web/Deposit/DepositTransactionOperation.jsp
Normal file
File diff suppressed because it is too large
Load Diff
1227
IPKS_Updated/web/web/web/Deposit/DepositTransferClosure.jsp
Normal file
1227
IPKS_Updated/web/web/web/Deposit/DepositTransferClosure.jsp
Normal file
File diff suppressed because it is too large
Load Diff
1379
IPKS_Updated/web/web/web/Deposit/DepositTransferOperation.jsp
Normal file
1379
IPKS_Updated/web/web/web/Deposit/DepositTransferOperation.jsp
Normal file
File diff suppressed because it is too large
Load Diff
1015
IPKS_Updated/web/web/web/Deposit/Deposit_Report.jsp
Normal file
1015
IPKS_Updated/web/web/web/Deposit/Deposit_Report.jsp
Normal file
File diff suppressed because it is too large
Load Diff
254
IPKS_Updated/web/web/web/Deposit/EditServices.jsp
Normal file
254
IPKS_Updated/web/web/web/Deposit/EditServices.jsp
Normal file
@@ -0,0 +1,254 @@
|
||||
<%--
|
||||
Document : LoanInquiry
|
||||
Created on : Oct 19, 2016, 3:11:52 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<title>Add/Edit SMS-Email Services</title>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
if($('#smsService').prop('checked') == true){
|
||||
$('#mob_no').attr('readonly',false);
|
||||
$('#miss_call').attr('disabled',false);
|
||||
}
|
||||
if($('#mailservice').prop('checked') == true){
|
||||
$('#mail_id').attr('readonly',false);
|
||||
}
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/EditServices.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function accountsubmitform(editServicesForm)
|
||||
{
|
||||
<%--if( ($('#smsService').prop('checked') == false) && $('#mailservice').prop('checked') == false && $('#deactivate').prop('checked') == false ){
|
||||
alert('You must select at least one service to proceed');
|
||||
$('#smsService').focus();
|
||||
return false;
|
||||
}--%>
|
||||
if($('#acNo').val() == "" && $('#displayFlag').val() != "Y"){
|
||||
alert('Please search the a/c number before proceeding');
|
||||
$('#accountNo').focus();
|
||||
return false;
|
||||
}
|
||||
if($('#change').val() == "N" && $('#displayFlag').val() == "Y"){
|
||||
alert('Please modify atleast one service before proceeding');
|
||||
return false;
|
||||
}
|
||||
if($('#smsService').prop('checked') == true){
|
||||
var filter = /^[0-9]{10}$/;
|
||||
var mob = $('#mob_no').val();
|
||||
//alert(mob);
|
||||
if($('#mob_no').val() == ""){
|
||||
alert('Enter mobile no for SMS service');
|
||||
$('#mob_no').focus();
|
||||
return false;
|
||||
}
|
||||
else if(!filter.test(mob)){
|
||||
alert("Please put 10 digit mobile number");
|
||||
$('#mob_no').focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if($('#smsService').prop('checked') == false){
|
||||
// sms_flag=0;
|
||||
document.forms[0].action = '/PacsApplication/ModifyServicesServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
if($('#mailservice').prop('checked') == true){
|
||||
var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
|
||||
var mail = $('#mail_id').val();
|
||||
|
||||
if($('#mail_id').val() == ""){
|
||||
alert('Enter Email Id for MAIL service');
|
||||
$('#mail_id').focus();
|
||||
return false;
|
||||
}
|
||||
else if(!filter.test(mail)){
|
||||
alert('Enter valid Email Id for MAIL service');
|
||||
$('#mail_id').focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
document.forms[0].action = '/PacsApplication/ModifyServicesServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function popup_accNo(width, height, accNo) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
var screenName = "EditServices.jsp";
|
||||
var lovKey = "FetchAccountList"
|
||||
popWin = open('/PacsApplication/CommonSearchInformationLOV.jsp?accNo=' + accNo + '&screenName=' + screenName + '&lovKey=' + lovKey , 'FetchAccountList', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
function smsCheckBoxFunc(){
|
||||
$('#change').val("Y");
|
||||
if($('#smsService').prop('checked') == true){
|
||||
//alert('checked');
|
||||
$('#mob_no').attr('readonly',false);
|
||||
$('#miss_call').attr('disabled',false);
|
||||
}else {
|
||||
<%--$('#mob_no').attr('readonly',true);
|
||||
$('#mob_no').val("");--%>
|
||||
$('#miss_call').attr('disabled',true);
|
||||
document.getElementById('sms_flag').value="0";
|
||||
}
|
||||
}
|
||||
|
||||
function misscallCheckBoxFunc() {
|
||||
$('#change').val("Y");
|
||||
}
|
||||
|
||||
function mailCheckBoxFunc(){
|
||||
$('#change').val("Y");
|
||||
if($('#mailservice').prop('checked') == true){
|
||||
$('#mail_id').attr('readonly',false);
|
||||
}
|
||||
else{
|
||||
$('#mail_id').attr('readonly',true);
|
||||
$('#mail_id').val("");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Add/Edit SMS-Email Services</legend>
|
||||
<form id="editServicesForm" name="editServicesForm" method="post" action="">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
<input type="hidden" value="EditServices" name="screenName" />
|
||||
<%if (!(displayFlag.equalsIgnoreCase("Y"))) {%>
|
||||
<div id="filterDiv" >
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: right">Account Number<font color="red" >*</font>: </td>
|
||||
<td><input type="text" maxlength="17" name="accountNo" id="accountNo" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' value="<%= blankNull(((String)request.getAttribute("acc_no")))%>"/></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_accNo(420, 180, document.editServicesForm.accountNo.value)"/></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
</div><br><br>
|
||||
<%}%>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
<div id="displayDiv" >
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: right">Account No: </td>
|
||||
<td><input type="text" maxlength="17" name="accountNo" id="accountNo_read" value="<%= blankNull(((String)request.getAttribute("acc_no")))%>" readonly/></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr> <td> </td></tr>
|
||||
<tr><td style="text-align: right">Select Services: </td></tr>
|
||||
<tr>
|
||||
<td><input type ="checkbox" name ="smsService" id="smsService" onclick="smsCheckBoxFunc()" value ="SMS" <%=("1".equals((String)request.getAttribute("sms_flag"))?"checked":"")%>>SMS</td>
|
||||
<td><input type="text" maxlength="10" name="mob_no" id="mob_no" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' readonly value="<%= blankNull(((String)request.getAttribute("mob_no")))%>" placeholder="Enter Mobile No"/></td>
|
||||
</tr>
|
||||
<tr> <td> </td></tr>
|
||||
<tr>
|
||||
<td><input type ="checkbox" name="mailservice" id="mailservice" onclick="mailCheckBoxFunc()" value ="MAIL" <%=("1".equals((String)request.getAttribute("email_flag"))?"checked":"")%>>MAIL</td>
|
||||
<td><input type="text" maxlength="50" name="mail_id" id="mail_id" readonly value="<%= blankNull(((String)request.getAttribute("mail_id")))%>" placeholder="Enter Email Id"/></td>
|
||||
</tr>
|
||||
<tr> <td> </td></tr>
|
||||
<tr>
|
||||
<td><input type ="checkbox" name ="miss_call" id="miss_call" disabled="true" onclick="misscallCheckBoxFunc()" value ="MISSED CALL" <%=("1".equals((String)request.getAttribute("misdcl_flag"))?"checked":"")%>>MISS CALL</td>
|
||||
</tr>
|
||||
<tr> <td> </td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:accountsubmitform(editServicesForm)">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
<input type="hidden" id="acNo" name="acNo" value=""/>
|
||||
<input type="hidden" id="displayFlag" name="displayFlag" value="<%=displayFlag%>"/>
|
||||
<input type="hidden" id="change" name="change" value="N"/>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
146
IPKS_Updated/web/web/web/Deposit/ForceAccountClosure.jsp
Normal file
146
IPKS_Updated/web/web/web/Deposit/ForceAccountClosure.jsp
Normal file
@@ -0,0 +1,146 @@
|
||||
<%--
|
||||
Document : ForceAccountClosure
|
||||
Created on : May 9, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Force Account Closure</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/ForceAccountClosure.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_Acc(width, height, Acc) {
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "ForceAccountClosure.jsp";
|
||||
var lovKey="AccSrch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?Acc=' + Acc + '&screenName=' + screenName+'&lovKey='+lovKey, 'AccSrch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function submitform(){
|
||||
|
||||
if(validateForm()){
|
||||
document.ForceAccountClosure.action = '/PacsApplication/ForceAccountClosureServlet';
|
||||
document.ForceAccountClosure.submit();
|
||||
}
|
||||
}
|
||||
function validateForm(){
|
||||
if($('#accNo').val() == ""){
|
||||
alert("Account Number cannot be blank.");
|
||||
ForceAccountClosure.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message1");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Force Account Closure</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="ForceAccountClosure" id="ForceAccountClosure" action="" method="post">
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Account Number<font color="red" >*</font>:</td>
|
||||
<td><input type="text" name="accNo" id="accNo" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_Acc(500,300,$('#accNo').val());" /></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform();" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
230
IPKS_Updated/web/web/web/Deposit/GLCCBalanceReport.jsp
Normal file
230
IPKS_Updated/web/web/web/Deposit/GLCCBalanceReport.jsp
Normal file
@@ -0,0 +1,230 @@
|
||||
<%--
|
||||
Document : GLCCBalanceReport
|
||||
Created on : Dec 8, 2016, 12:01:30 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="java.lang.String" %>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>GL CC Balance Report</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
<%-- if (document.forms[0].from_date.value == "")
|
||||
{
|
||||
alert("!! From Date Cannot Be Empty !!");
|
||||
document.forms[0].from_date.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.forms[0].to_date.value == "")
|
||||
{
|
||||
alert("!! To Date Cannot Be Empty !!");
|
||||
document.forms[0].to_date.focus();
|
||||
return false;
|
||||
}
|
||||
--%>
|
||||
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/GLCC Balance File1";
|
||||
document.forms[0].reportName.value = "GLCC Balance Report";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<title>GLCC Balance Report</title>
|
||||
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">GLCC Balance Report</legend>
|
||||
|
||||
<form name="glccbalance" method="post" action="/PacsApplication/ExcelReportServlet">
|
||||
<br>
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<table align="center">
|
||||
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td><td colspan="2" align="center" style="text-align: right">Sub-PACS Name: </td>
|
||||
<td align="center"><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</table><br><br>
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Download GLCC Balance Report" onclick="javascript:downloadFiles();">
|
||||
</center>
|
||||
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
605
IPKS_Updated/web/web/web/Deposit/GLProductCreation.jsp
Normal file
605
IPKS_Updated/web/web/web/Deposit/GLProductCreation.jsp
Normal file
@@ -0,0 +1,605 @@
|
||||
<%--
|
||||
Document : gl
|
||||
Created on : Aug 3, 2015, 2:23:35 PM
|
||||
Author : Administrator
|
||||
--%>
|
||||
<%@page import="DataEntryBean.GlProductOperationBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
|
||||
<title>GL Product Operation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function submitform(glForm)
|
||||
{
|
||||
if (checkCreateDiv(glForm))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Create";
|
||||
glForm.submit();
|
||||
}
|
||||
|
||||
}
|
||||
function checkCreateDiv(glForm)
|
||||
{
|
||||
if (glForm.status.value == "")
|
||||
{
|
||||
alert("!! status field must be filled !!");
|
||||
glForm.status.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glName.value == "")
|
||||
{
|
||||
alert("!! glName field must be filled !!");
|
||||
glForm.glName.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glCode.value == "")
|
||||
{
|
||||
alert("!! glCode field must be filled !!");
|
||||
glForm.glCode.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glType.value == "")
|
||||
{
|
||||
alert("!! glType field must be filled !!");
|
||||
glForm.glType.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.productType.value == "")
|
||||
{
|
||||
alert("!! productType field must be filled !!");
|
||||
glForm.productType.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.inttCategory.value == "")
|
||||
{
|
||||
alert("!! inttCategory field must be filled !!");
|
||||
glForm.inttCategory.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glDescription.value == "")
|
||||
{
|
||||
alert("!! glDescription field must be filled !!");
|
||||
glForm.glDescription.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.segmentCode.value == "")
|
||||
{
|
||||
alert("!! segmentCode field must be filled !!");
|
||||
glForm.segmentCode.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.component1.value == "")
|
||||
{
|
||||
alert("!! component1 field must be filled !!");
|
||||
glForm.component1.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.component2.value == "")
|
||||
{
|
||||
alert("!! component2 field must be filled !!");
|
||||
glForm.component2.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.applicableFor.value == "")
|
||||
{
|
||||
alert("!! applicableFor field must be filled !!");
|
||||
glForm.applicableFor.focus();
|
||||
return false;
|
||||
}
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(glForm.productType.value))
|
||||
{
|
||||
alert("!! ProductType could only contain numbers !!");
|
||||
glForm.productType.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(glForm.inttCategory.value))
|
||||
{
|
||||
alert("!! INTT Category could only contain numbers !!");
|
||||
glForm.inttCategory.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(glForm.segmentCode.value))
|
||||
{
|
||||
alert("!! Segment Code could only contain numbers !!");
|
||||
glForm.segmentCode.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function updateform(glForm)
|
||||
{
|
||||
if (checkUpdateDiv(glForm))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Update";
|
||||
glForm.submit();
|
||||
|
||||
}
|
||||
}
|
||||
function checkUpdateDiv(glForm)
|
||||
{
|
||||
|
||||
if (glForm.statusAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.statusAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glNameAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.glNameAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glCodeAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.glCodeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glTypeAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.glTypeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.productTypeAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.productTypeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.inttCategoryAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.inttCategoryAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.glDescriptionAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.glDescriptionAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.segmentCodeAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.segmentCodeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.component1Amend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.component1Amend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.component2Amend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.component2Amend.focus();
|
||||
return false;
|
||||
}
|
||||
if (glForm.applicableForAmend.value == "")
|
||||
{
|
||||
alert("!! All fields must be filled !!");
|
||||
glForm.applicableForAmend.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(glForm.productTypeAmend.value))
|
||||
{
|
||||
alert("!! ProductType could only contain numbers !!");
|
||||
glForm.productTypeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(glForm.inttCategoryAmend.value))
|
||||
{
|
||||
alert("!! INTT Category could only contain numbers !!");
|
||||
glForm.inttCategoryAmend.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
re = /^\d+$/; //this checks whether field contains digits
|
||||
if (!re.test(glForm.segmentCodeAmend.value))
|
||||
{
|
||||
alert("!! Segment Code could only contain numbers !!");
|
||||
glForm.segmentCodeAmend.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkop()
|
||||
{
|
||||
if (document.getElementById("checkOption").value == "create")
|
||||
{
|
||||
document.getElementById('create').style.display = 'block';
|
||||
document.getElementById('amend').style.display = 'none';
|
||||
document.getElementById('active').style.display = 'none';
|
||||
document.getElementById('amend2').style.display = 'none';
|
||||
|
||||
|
||||
}
|
||||
if (document.getElementById("checkOption").value == "amend")
|
||||
{
|
||||
document.getElementById('create').style.display = 'none';
|
||||
document.getElementById('amend').style.display = 'block';
|
||||
document.getElementById('active').style.display = 'none';
|
||||
document.getElementById('amend2').style.display = 'none';
|
||||
|
||||
|
||||
}
|
||||
if (document.getElementById("checkOption").value == "active")
|
||||
{
|
||||
document.getElementById('create').style.display = 'none';
|
||||
document.getElementById('amend').style.display = 'none';
|
||||
document.getElementById('active').style.display = 'block';
|
||||
document.getElementById('amend2').style.display = 'none';
|
||||
|
||||
}
|
||||
if (document.getElementById("checkOption").value == "deactive")
|
||||
{
|
||||
document.getElementById('create').style.display = 'none';
|
||||
document.getElementById('amend').style.display = 'none';
|
||||
document.getElementById('active').style.display = 'none';
|
||||
document.getElementById('amend2').style.display = 'none';
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function searchGL() {
|
||||
|
||||
document.forms[0].handle_id.value = "Search";
|
||||
document.forms[0].action = '/PacsApplication/GlProductOperationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
function ActvDeactv() {
|
||||
|
||||
document.forms[0].handle_id.value = "StatusSearch";
|
||||
document.forms[0].action = '/PacsApplication/GlProductOperationServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object oGlProductOperationBeanObj = request.getAttribute("oGlProductOperationBeanObj");
|
||||
GlProductOperationBean oGlProductOperationBean = new GlProductOperationBean();
|
||||
if (oGlProductOperationBeanObj != null) {
|
||||
oGlProductOperationBean = (GlProductOperationBean) request.getAttribute("oGlProductOperationBeanObj");
|
||||
session.setAttribute("oGlProductOperationBeanObj", oGlProductOperationBeanObj);
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">GL PRODUCT OPERATION</legend>
|
||||
<form name="glForm" method="post" action="GlProductOperationServlet">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<center><lable style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection</lable>
|
||||
<select id="checkOption" onchange="checkop()" name="checkOption" >
|
||||
<option value="" disabled selected style="display:none;" >--select--</option>
|
||||
<option value="create" >Create</option>
|
||||
<option value="amend" >Amend</option>
|
||||
<option value="active" >Active/De-Active </option>
|
||||
</select>
|
||||
</center>
|
||||
<br>
|
||||
|
||||
<div id="create" style="display:none;">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Status:</td>
|
||||
<td><select id="status" name="status">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="A">Active</option>
|
||||
<option value="I">Inactive</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GL Name:</td>
|
||||
<td><input type="text" name="glName" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GL Code:</td>
|
||||
<td><input type="text" name="glCode" size="15" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GL Type:</td>
|
||||
<td><select id="glType" name="glType">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="1">1:Asset</option>
|
||||
<option value="2">2:Liability</option>
|
||||
<option value="7">7:Income</option>
|
||||
<option value="8">8:Expense</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Product Type:</td>
|
||||
<td><input type="text" maxlength="4" name="productType" value="" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>INTT Category:</td>
|
||||
<td><input type="text" maxlength="4" name="inttCategory" value="" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GL Description:</td>
|
||||
<td><input type="text" name="glDescription" style="width: 260px" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Segment Code:</td>
|
||||
<td>
|
||||
<select id="segmentCode" name="segmentCode">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="0706">0706:INDIVIDUAL</option>
|
||||
<option value="0306">0306:STAFF</option>
|
||||
<option value="5003">5003:SENIOR CITIZEN</option>
|
||||
<option value="5010">5010:SHG</option>
|
||||
<option value="5000">5000:BANKS</option>
|
||||
<option value="5009">5009:INSTITUTIONS</option>
|
||||
<option value="5050">5050:OTHERS</option>
|
||||
<option value="5007">5007:SOCIETY</option>
|
||||
<option value="5011">5011:GOV/SEMI GOV</option>
|
||||
<option value="5012">5012:PACS</option>
|
||||
<option value="5013">5013:UCB</option>
|
||||
<option value="5014">5014:SCB</option>
|
||||
<option value="5015">5015:CCB</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Component 1:</td>
|
||||
<td><input type="text" name="component1" value="" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Component 2:</td>
|
||||
<td><input type="text" name="component2" value="" size="10" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Applicable For: </td>
|
||||
<td>
|
||||
<select id="applicableFor" name="applicableFor">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="G">Global</option>
|
||||
<option value="SB">Selected Branches</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label>All fields are mandatory</label></td></tr>
|
||||
</tbody>
|
||||
</table><br><br>
|
||||
|
||||
<center>
|
||||
<input type="button" value="Submit" onclick="javascript:submitform(glForm)">
|
||||
<input type="reset" value="Reset" name="reset" />
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div id="amend" style="display: none;">
|
||||
<center>
|
||||
<lable style=" font-family: Berlin Sans FB; font-weight: normal;" >Enter GL Code: </lable>
|
||||
<input type="text" name="bglCodeSearch"/>
|
||||
<input type="button" value="Search" onclick="javascript:searchGL()" />
|
||||
</center><br>
|
||||
</div>
|
||||
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
|
||||
<div id="amend2" >
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Effective Date:</td>
|
||||
<td><input readonly type="text" style="text-align:center;" name="effectDateAmend" maxlength="11" resize="yes" readonly="true" value="<%=blankNull(oGlProductOperationBean.getEffectDate())%>" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Status:</td>
|
||||
<td><select id="statusAmend" name="statusAmend" readonly >
|
||||
<option value="" disabled selected style="display:none;" <%if (oGlProductOperationBean.getStatus().equals("")) {%> selected <%}%>>--Select--</option>
|
||||
<option value="A" <%if (oGlProductOperationBean.getStatus().equals("A")) {%> selected <%}%>>Active</option>
|
||||
<option value="I" <%if (oGlProductOperationBean.getStatus().equals("I")) {%> selected <%}%>>Inactive</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>GL Name:</td>
|
||||
<td><input type="text" name="glNameAmend" value="<%=blankNull(oGlProductOperationBean.getGlName())%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GL Code:</td>
|
||||
<td><input readonly type="text" name="glCodeAmend" size="15" value="<%=blankNull(oGlProductOperationBean.getGlCode())%>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GL Type:</td>
|
||||
<td><select id="glTypeAmend" name="glTypeAmend" readonly >
|
||||
<option value="" disabled selected style="display:none;" <%if (oGlProductOperationBean.getGlType().equals("")) {%> selected <%}%>>--Select--</option>
|
||||
<option value="1" <%if (oGlProductOperationBean.getGlType().equals("1")) {%> selected <%}%>>1:Asset</option>
|
||||
<option value="2" <%if (oGlProductOperationBean.getGlType().equals("2")) {%> selected <%}%>>2:Liability</option>
|
||||
<option value="7" <%if (oGlProductOperationBean.getGlType().equals("7")) {%> selected <%}%>>7:Income</option>
|
||||
<option value="8" <%if (oGlProductOperationBean.getGlType().equals("8")) {%> selected <%}%>>8:Expense</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Product Type:</td>
|
||||
<td><input type="text" maxlength="4" size="10" name="productTypeAmend" value="<%=blankNull(oGlProductOperationBean.getProductType())%>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>INTT Category:</td>
|
||||
<td><input type="text" maxlength="4" size="10" name="inttCategoryAmend" value="<%=blankNull(oGlProductOperationBean.getInttCategory())%>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GL Description:</td>
|
||||
<td><input type="text" name="glDescriptionAmend" style="width: 260px" value="<%=blankNull(oGlProductOperationBean.getGlDescription())%>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Segment Code:</td>
|
||||
<td><select id="segmentCodeAmend" name="segmentCodeAmend">
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<option value="0706" <%if (oGlProductOperationBean.getSegmentCode().equals("0706")) {%> selected <%}%>>0706:INDIVIDUAL</option>
|
||||
<option value="0306" <%if (oGlProductOperationBean.getSegmentCode().equals("0306")) {%> selected <%}%>>0306:STAFF</option>
|
||||
<option value="5003" <%if (oGlProductOperationBean.getSegmentCode().equals("5003")) {%> selected <%}%>>5003:SENIOR CITIZEN</option>
|
||||
<option value="5010" <%if (oGlProductOperationBean.getSegmentCode().equals("5010")) {%> selected <%}%>>5010:SHG</option>
|
||||
<option value="5000" <%if (oGlProductOperationBean.getSegmentCode().equals("5000")) {%> selected <%}%>>5000:BANKS</option>
|
||||
<option value="5009" <%if (oGlProductOperationBean.getSegmentCode().equals("5009")) {%> selected <%}%>>5009:INSTITUTIONS</option>
|
||||
<option value="5050" <%if (oGlProductOperationBean.getSegmentCode().equals("5050")) {%> selected <%}%>>5050:OTHERS</option>
|
||||
<option value="5007" <%if (oGlProductOperationBean.getSegmentCode().equals("5007")) {%> selected <%}%>>5007:SOCIETY</option>
|
||||
<option value="5011" <%if (oGlProductOperationBean.getSegmentCode().equals("5011")) {%> selected <%}%>>5011:GOV/SEMI GOV</option>
|
||||
<option value="5012" <%if (oGlProductOperationBean.getSegmentCode().equals("5012")) {%> selected <%}%>>5012:PACS</option>
|
||||
<option value="5013" <%if (oGlProductOperationBean.getSegmentCode().equals("5013")) {%> selected <%}%>>5013:UCB</option>
|
||||
<option value="5014" <%if (oGlProductOperationBean.getSegmentCode().equals("5014")) {%> selected <%}%>>5014:SCB</option>
|
||||
<option value="5015" <%if (oGlProductOperationBean.getSegmentCode().equals("5015")) {%> selected <%}%>>5015:CCB</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Component 1:</td>
|
||||
<td><input type="text" name="component1Amend" size="10" value="<%=blankNull(oGlProductOperationBean.getComponent1())%>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Component 2:</td>
|
||||
<td><input type="text" name="component2Amend" size="10" value="<%=blankNull(oGlProductOperationBean.getComponent2())%>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Applicable For: </td>
|
||||
<td>
|
||||
<select id="applicableForAmend" name="applicableForAmend" >
|
||||
<option value="" disabled selected style="display:none;" <%if (oGlProductOperationBean.getApplicableFor().equals("")) {%> selected <%}%>>--Select--</option>
|
||||
<option value="G" <%if (oGlProductOperationBean.getApplicableFor().equals("G")) {%> selected <%}%>>Global</option>
|
||||
<option value="SB" <%if (oGlProductOperationBean.getApplicableFor().equals("SB")) {%> selected <%}%>>Selected Branches</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label>All fields are mandatory</label></td></tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<br><br>
|
||||
<input type="hidden" name="gl_product_id" value="<%=blankNull(oGlProductOperationBean.getGl_product_id())%>"/>
|
||||
<center>
|
||||
<input type="button" value="Update" onclick="javascript:updateform(glForm)">
|
||||
</center>
|
||||
|
||||
</div>
|
||||
<%}%>
|
||||
|
||||
<div id="active" style="display: none;">
|
||||
<center>
|
||||
<lable style=" font-family: Berlin Sans FB; font-weight: normal;">Enter BGL Code: </lable>
|
||||
<input type="text" name="bglCodeActivation"/>
|
||||
|
||||
<lable style=" font-family: Berlin Sans FB; font-weight: normal;">Status:</lable>
|
||||
<select id="BglstatusFlag" name="BglstatusFlag">
|
||||
<option value="" >--Select--</option>
|
||||
<option value="A">Active</option>
|
||||
<option value="I">Inactive</option>
|
||||
</select>
|
||||
<input type="button" value="Sumbit" onclick="javascript:ActvDeactv()">
|
||||
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
175
IPKS_Updated/web/web/web/Deposit/GliffDepositReport.jsp
Normal file
175
IPKS_Updated/web/web/web/Deposit/GliffDepositReport.jsp
Normal file
@@ -0,0 +1,175 @@
|
||||
<%--
|
||||
Document : GliffDepositReport
|
||||
Created on : Nov 29, 2016, 12:27:48 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.GliffDepositReportBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Deposit Report</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/GliffDepositReport.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
|
||||
function excelDownload() {
|
||||
|
||||
if (document.forms[0].fromDate.value==""){
|
||||
|
||||
alert("Please Select a Date");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
Object alGliffDepositReportBeanObj = request.getAttribute("alGliffDepositReportBean");
|
||||
ArrayList<GliffDepositReportBean> alGliffDepositReportBean = new ArrayList<GliffDepositReportBean>();
|
||||
if (alGliffDepositReportBeanObj != null) {
|
||||
alGliffDepositReportBean = (ArrayList<GliffDepositReportBean>) request.getAttribute("alGliffDepositReportBean");
|
||||
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Object oGliffDepositReportBeanSearchObj = request.getAttribute("oGliffDepositReportBeanSearch");
|
||||
GliffDepositReportBean oGliffDepositReportBean = new GliffDepositReportBean();
|
||||
GliffDepositReportBean oGliffDepositReportBeanSearch = new GliffDepositReportBean();
|
||||
if (oGliffDepositReportBeanSearchObj != null) {
|
||||
oGliffDepositReportBeanSearch = (GliffDepositReportBean) request.getAttribute("oGliffDepositReportBeanSearch");
|
||||
session.setAttribute("oGliffDepositReportBeanSearch", oGliffDepositReportBeanSearch);
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">DEPOSIT_REPORT</legend>
|
||||
<form id="enquiryForm" name="enquiryForm" method="post" action="">
|
||||
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<div id="filterDiv" >
|
||||
<center>
|
||||
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right">From Date: </td>
|
||||
<td><input value="<%=blankNull(oGliffDepositReportBeanSearch.getFromDate())%>" type="text" id="fromDate" style="text-align:center;" name="fromDate" readonly /><a href="#" onclick="return getCalendar(document.forms[0].fromDate);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
</tr>
|
||||
|
||||
<br><br>
|
||||
|
||||
<input type="button" value="GENERATE GLIF" onclick="javascript:excelDownload()">
|
||||
<input type="button" value="Reset" name="reset" onclick="ShowParent();" />
|
||||
</center>
|
||||
</div><br><br>
|
||||
<input type="hidden" value="GliffDepositReport" name="screenName" />
|
||||
<input name="handle_id" id="handle_id" type="hidden" value="" />
|
||||
<input name="reportname" id="reportname" type="hidden" value="GLIF_DEPOSIT_REPORT" />
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
425
IPKS_Updated/web/web/web/Deposit/LienMarking.jsp
Normal file
425
IPKS_Updated/web/web/web/Deposit/LienMarking.jsp
Normal file
@@ -0,0 +1,425 @@
|
||||
<%--
|
||||
Document : LienMarking
|
||||
Created on : May 13, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Lien Marking</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nsc{
|
||||
position: right;
|
||||
top:510;
|
||||
right: 425;
|
||||
left: 750;
|
||||
bottom:376;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
#gold{
|
||||
position: right;
|
||||
top:510;
|
||||
right: 425;
|
||||
left: 750;
|
||||
bottom:376;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/LienMarking.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_accSearch(width, height, acc, type) {
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "LienMarking.jsp";
|
||||
var lovKey="accSearch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?acc=' + acc + '&screenName=' + screenName+ '&type=' + type+ '&lovKey='+lovKey, 'accSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function popup_depAccount(width, height, cifNumber) {
|
||||
|
||||
if($('#cifNumber').val() == ""){
|
||||
alert( "Please select CIF Number first !!" );
|
||||
}
|
||||
else{
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "LienMarking.jsp";
|
||||
var lovKey = "Account"
|
||||
popWin = open('/PacsApplication/CommonSearchInfoLOVNew.jsp?cifNumber=' + cifNumber + '&screenName=' + screenName + '&lovKey=' + lovKey, 'Account', attr);
|
||||
popWin.focus();
|
||||
|
||||
}}
|
||||
function popup_nscDetails(width, height){
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "LienMarking.jsp";
|
||||
var lovKey = "NscDetails"
|
||||
popWin = window.open('/PacsApplication/Loan/popupnscdetails.jsp?screenName=' + screenName + '&lovKey=' + lovKey, 'NscDetails', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
function popup_goldDetails(width, height){
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "LienMarking.jsp";
|
||||
var lovKey = "GoldDetailsKey"
|
||||
popWin = window.open('/PacsApplication/Loan/popupGoldLoanDetails.jsp?screenName=' + screenName + '&lovKey=' + lovKey, 'GoldDetailsKey', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
function submitform(LienMarking)
|
||||
{
|
||||
if (checkDiv(LienMarking))
|
||||
{
|
||||
document.LienMarking.action = '/PacsApplication/LienMarkingServlet';
|
||||
document.LienMarking.submit();
|
||||
}
|
||||
}
|
||||
function checkDiv(LienMarking)
|
||||
{
|
||||
if (LienMarking.lienType.value == "N")
|
||||
{
|
||||
alert("Please select Lien Type.");
|
||||
LienMarking.lienType.focus();
|
||||
return false;
|
||||
}
|
||||
if (LienMarking.loanAccount.value == "")
|
||||
{
|
||||
alert("Loan Account must be filled.");
|
||||
LienMarking.loanAccount.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LienMarking.lienType.value == "D")
|
||||
{
|
||||
if (LienMarking.cifNo.value == "")
|
||||
{
|
||||
alert("CIF Number must be fetched from Loan Accoun.");
|
||||
LienMarking.cifNo.focus();
|
||||
return false;
|
||||
}
|
||||
if (LienMarking.dep_acc_no.value == "")
|
||||
{
|
||||
alert("Deposit Account must be filled.");
|
||||
LienMarking.dep_acc_no.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (LienMarking.currentValuation.value == "")
|
||||
{
|
||||
alert("Security Amount must be filled.");
|
||||
LienMarking.currentValuation.focus();
|
||||
return false;
|
||||
}
|
||||
if (LienMarking.description.value == "")
|
||||
{
|
||||
alert("Description must be filled.");
|
||||
LienMarking.description.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#nscBtn').hide();
|
||||
$('#goldBtn').hide();
|
||||
$('#cif').hide();
|
||||
$('#Dep').hide();
|
||||
|
||||
$('select#lienType').change(function () {
|
||||
var val = $(this).val();
|
||||
switch(val)
|
||||
{
|
||||
case 'K':
|
||||
document.getElementById("currentValuation").readOnly = true;
|
||||
$('#Dep').hide();
|
||||
$('#cif').hide();
|
||||
$('#nscBtn').show();
|
||||
$('#goldBtn').hide();
|
||||
break;
|
||||
|
||||
case 'G':
|
||||
document.getElementById("currentValuation").readOnly = false;
|
||||
$('#Dep').hide();
|
||||
$('#cif').hide();
|
||||
$('#nscBtn').hide();
|
||||
$('#goldBtn').show();
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
document.getElementById("currentValuation").readOnly = true;
|
||||
$('#Dep').show();
|
||||
$('#cif').show();
|
||||
$('#nscBtn').hide();
|
||||
$('#goldBtn').hide();
|
||||
break;
|
||||
|
||||
case 'C':
|
||||
document.getElementById("currentValuation").readOnly = true;
|
||||
$('#Dep').show();
|
||||
$('#cif').show();
|
||||
$('#nscBtn').hide();
|
||||
$('#goldBtn').hide();
|
||||
break;
|
||||
|
||||
case 'O':
|
||||
document.getElementById("currentValuation").readOnly = true;
|
||||
$('#Dep').show();
|
||||
$('#cif').show();
|
||||
$('#nscBtn').hide();
|
||||
$('#goldBtn').hide();
|
||||
break;
|
||||
|
||||
default:
|
||||
document.getElementById("currentValuation").readOnly = true;
|
||||
$('#Dep').hide();
|
||||
$('#cif').hide();
|
||||
$('#nscBtn').hide();
|
||||
$('#goldBtn').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Loan Lien Marking</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="LienMarking" id="LienMarking" action="" method="post">
|
||||
<div align="left">
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><lable>Select Lien Type<font color="red" >*</font>:</lable></td>
|
||||
<td> <select id="lienType" name="lienType" >
|
||||
<option value="" selected >--Select--</option>
|
||||
<option value="K" >NSC KVP LOAN</option>
|
||||
<option value="G" >Gold Loan</option>
|
||||
<option value="D" >Loan Against Dep</option>
|
||||
<option value="C" >Cash Credit Loan</option>
|
||||
<option value="O" >Other Loan</option>
|
||||
</select></td>
|
||||
</tr><td><td>
|
||||
|
||||
<tr>
|
||||
<td>Loan Account<font color="red" >*</font>: </td>
|
||||
<td><input type="text" size="20" name="loanAccount" id="loanAccount" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" value="Search" onclick="javascript:popup_accSearch(500,300,$('#loanAccount').val(),document.LienMarking.lienType.value);" /></td>
|
||||
</tr>
|
||||
<tr id="cif">
|
||||
<td>CIF Number: </td>
|
||||
<td><input type="text" name="cifNo" id="cifNo" Value="" readonly="true" style="text-align:right;" /></td></tr>
|
||||
<tr id="Dep">
|
||||
<td>Deposit Account<font color="red" >*</font>: </td>
|
||||
<td><input type="text" size="20" readonly name="dep_acc_no" id="dep_acc_no" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" value="Search" onclick="javascript:popup_depAccount(500,300,document.LienMarking.cifNo.value);" /></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="button" id="nscBtn" name="nscBtn" value="NSC Details" onclick="javascript:popup_nscDetails(750,180);"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="button" id="goldBtn" name="goldBtn" value="Gold Details" onclick="javascript:popup_goldDetails(750,180);"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Security Amount:</lable></td>
|
||||
<td><input type="text" id="currentValuation" name="currentValuation" style="text-align:right;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Safe Lending Margin :</lable></td>
|
||||
<td><input type="text" id="safeLendingMargin" name="safeLendingMargin" value="100" readonly="true" style="text-align:right;" /></td>
|
||||
<td><lable>%</lable></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><lable>Description<font color="red" >*</font>:</lable></td>
|
||||
<td><textarea id="description" name="description" style="width : 150px"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="hidden" name="expDt" id="expDt" Value="" /></td></tr>
|
||||
<tr>
|
||||
<td><input type="hidden" name="openDt" id="openDt" Value="" /></td></tr>
|
||||
<tr>
|
||||
<td><input type="hidden" name="KVPNo" id="KVPNo" Value="" /></td></tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform(LienMarking);" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();"
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div id="nsc" style="display:none;" align="right" >
|
||||
<div style="overflow:scroll; width: 350px; height: 100px;">
|
||||
<table id="order-list" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: right ;overflow-y: scroll; font-size: 5px">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td>REF No</td>
|
||||
<td>Amount</td>
|
||||
<td>Open Date</td>
|
||||
<td>Expiry Date</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%--<tr class="tRow">
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="ref<%=count%>" id="ref<%=count%>"/></td>
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="amt<%=count%>" id="amt<%=count%>" /></td>
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="openDt<%=count%>" id="openDt<%=count%>"/></td>
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="expDt<%=count%>" id="expDt<%=count%>"/></td>
|
||||
|
||||
</tr>--%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="gold" style="display:none;" align="right" >
|
||||
<div style="overflow:scroll; width: 350px; height: 100px;">
|
||||
<table id="order-list2" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: right ;overflow-y: scroll; font-size: 5px">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td>Bond No</td>
|
||||
<td>Gross Weight</td>
|
||||
<td>Net Weight</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%--<tr class="tRow">
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="ref<%=count%>" id="ref<%=count%>"/></td>
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="amt<%=count%>" id="amt<%=count%>" /></td>
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="openDt<%=count%>" id="openDt<%=count%>"/></td>
|
||||
<td><input type="text" style="width: 100%;padding: 5px;margin: 0px;border: 1px solid #CCC;" name="expDt<%=count%>" id="expDt<%=count%>"/></td>
|
||||
|
||||
</tr>--%>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="" />
|
||||
<input type="hidden" name="mat_dt" id="mat_dt" value=""/>
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
362
IPKS_Updated/web/web/web/Deposit/MenuHead_Deposit.jsp
Normal file
362
IPKS_Updated/web/web/web/Deposit/MenuHead_Deposit.jsp
Normal file
@@ -0,0 +1,362 @@
|
||||
<%--
|
||||
Document : MenuHead_Deposit
|
||||
Created on : Apr 20, 2016, 3:19:56 PM
|
||||
Author : 590685
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.*"%>
|
||||
|
||||
|
||||
<% try {
|
||||
%>
|
||||
<%
|
||||
String userName = new String();
|
||||
String pacsName = new String();
|
||||
String userRole = new String();
|
||||
String RoleName = new String();
|
||||
String sysDt = new String();
|
||||
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select to_char(SYSTEM_DATE,'Month DD, YYYY') from system_date");
|
||||
while (rs.next()) {
|
||||
sysDt = rs.getString(1);
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
userName = (String) session.getAttribute("UserName");
|
||||
userName = userName.toUpperCase();
|
||||
pacsName = (String) session.getAttribute("pacsName");
|
||||
userRole = (String) session.getAttribute("userRole");
|
||||
RoleName = (String) session.getAttribute("RoleName");
|
||||
|
||||
String moduleName = new String();
|
||||
moduleName = (String) session.getAttribute("moduleName");
|
||||
|
||||
|
||||
%>
|
||||
<style>
|
||||
.vertical-menu {
|
||||
height: 300px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
<div style="width: 100%; height: auto; top: 0; left: 0; margin-bottom: 0 auto;">
|
||||
|
||||
<div id="IPKSimage" style=" top: 0; left: 0; border-bottom:0px;">
|
||||
<img src="/PacsApplication/img/PACS.jpg" width="100%" height="65px" alt="Image - PACS"/>
|
||||
</div>
|
||||
<!--changed on 15/5/24-->
|
||||
|
||||
<div id="cssmenu" style="padding-bottom:10px;border-bottom:0px; border-color: black; color: rgb(0,140,69); background-color: rgb(177,224,178); ">
|
||||
<div style="width: 20%;float: left;text-align: left;padding: 5px 1px 1px 28px; border-radius: 5px;"><b>User Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=userName%></font></div>
|
||||
<div style="width: 15%;float: right; text-align: left;padding: 5px 5px 1px 1px; border-radius: 5px;"><b>Date:</b><br><font face="Trebuchet MS" size="2.5"> <%=sysDt%></font></div>
|
||||
<div style="width: 15%;float: left; text-align: left; padding: 5px; border-radius: 5px;"><b>PACS Name/ Bank Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=pacsName%></font></div>
|
||||
|
||||
<div style="width: 20%;float: left; margin-right: 20px;text-align: center;padding: 5px; border-radius: 5px;"><b>User Type:</b><br><font face="Trebuchet MS" size="2.5"> <%=RoleName%></font></div>
|
||||
<div style="width: 20%;float: left; margin-right: 20px;text-align: center;padding: 5px; border-radius: 5px;"><b>Module Name:</b><br><font face="Trebuchet MS" size="2.5"> <%=moduleName.toUpperCase()%></font></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!--div id='cssmenu'-->
|
||||
<!--added on 15/5/24-->
|
||||
<div style="display: flex; justify-content: center;background-color: rgb(177,224,178)"><div style="background: #fff; height: 2px; width: 90%"></div></div>
|
||||
<ul id="menu">
|
||||
<li><a href='/PacsApplication/welcome.jsp'><span>Home</span></a></li>
|
||||
<li><a href="#" id="modules"><span>Module List</span></a>
|
||||
<ul>
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201603000005020")) || moduleName.equalsIgnoreCase("Special")) {%>
|
||||
<li class="est_btn"><a href="/PacsApplication/DepositServlet"><span id="dep">Deposit</span></a></li>
|
||||
|
||||
<%}else if((userRole.equalsIgnoreCase(
|
||||
"201603000006020")) || moduleName.equalsIgnoreCase("SpecialKcc")){%>
|
||||
|
||||
<li class="est_btn"><a href="/PacsApplication/KCCSevlet"><span id="kcc">KCC</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/DepositServlet"><span id="dep">Deposit</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/ShareServlet"><span id="share">Share</span></a></li>
|
||||
|
||||
<%}else if((userRole.equalsIgnoreCase(
|
||||
"201603000007020")) || (userRole.equalsIgnoreCase(
|
||||
"201603000008020")) || moduleName.equalsIgnoreCase("SpecialBothDep")){%>
|
||||
<li class="est_btn"><a href="/PacsApplication/KCCSevlet"><span id="kcc">KCC</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/DepositServlet"><span id="dep">Deposit</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/ShareServlet"><span id="share">Share</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/SHGServlet"><span id="shg">Self Help Group</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/LoanServlet"><span id="ln">Loan</span></a></li>
|
||||
|
||||
<%}else{%>
|
||||
<li class="est_btn"><a href="/PacsApplication/KCCSevlet"><span id="kcc">KCC</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/TradingSevlet"><span id="trading">Trading</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/AssetServlet"><span id="asset">Asset</span></a></li>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/PDSServlet"><span id="pds">Public Distribution System</span></a></li>--%>
|
||||
<li class="est_btn"><a href="/PacsApplication/SHGServlet"><span id="shg">Self Help Group</span></a></li>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/GPSServlet"><span id="gps">Government Procurement</span></a></li>--%>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/MISDashboardSevlet"><span id="dashboard">MIS & Dashboard</span></a></li>--%>
|
||||
<li class="est_btn"><a href="/PacsApplication/DepositServlet"><span id="dep">Deposit</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/LoanServlet"><span id="ln">Loan</span></a></li>
|
||||
<li class="est_btn"><a href="/PacsApplication/ShareServlet"><span id="share">Share</span></a></li>
|
||||
<%--<li class="est_btn"><a href="/PacsApplication/SODEODServlet"><span id="eod">SOD/EOD</span></a></li>--%>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%-- <%if (userRole.equalsIgnoreCase(
|
||||
"201603000004021")) {%>
|
||||
<li><a href="#" ><span>Parameter</span></a>
|
||||
<ul>
|
||||
<li><a href="/PacsApplication/Deposit/ProductCreation.jsp"><span>Deposit Product Creation</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositRateSlab.jsp"><span>Term Deposit Rate Slab</span></a></li>
|
||||
<li><a href="/PacsApplication/glProductOperation.jsp"><span>GL Product Operation</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%> --%>
|
||||
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201603000004022")) || (userRole.equalsIgnoreCase("201606000004041")) || (userRole.equalsIgnoreCase(
|
||||
"201603000005020")) || (userRole.equalsIgnoreCase("201603000007020"))) {%>
|
||||
<li><a href="#" >Enquiry</a>
|
||||
<ul>
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201603000005020")) || (userRole.equalsIgnoreCase("201603000007020"))) {%>
|
||||
<li><a href="/PacsApplication/Deposit/DepositAccountEnquiry.jsp"><span>Deposit Account Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositTransactionEnquiry.jsp"><span>Deposit Transaction Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositKYCInquiry.jsp"><span>Customer Basic Details</span></a></li>
|
||||
<li><a href="/PacsApplication/glAccountEnquiry.jsp"><span>GL Account Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/glTransactionEnquiry.jsp"><span>GL Transaction Enquiry</span></a></li>
|
||||
|
||||
<%}else if(moduleName.equalsIgnoreCase(
|
||||
"Special") || moduleName.equalsIgnoreCase(
|
||||
"SpecialBoth") ){%>
|
||||
<li><a href="/PacsApplication/Deposit/DepositAccountEnquiry.jsp"><span>Deposit Account Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositTransactionEnquiry.jsp"><span>Deposit Transaction Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/glAccountEnquiry.jsp"><span>GL Account Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/glTransactionEnquiry.jsp"><span>GL Transaction Enquiry</span></a></li>
|
||||
|
||||
<%}else{%>
|
||||
<li><a href="/PacsApplication/Deposit/DepositAccountEnquiry.jsp"><span>Deposit Account Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositTransactionEnquiry.jsp"><span>Deposit Transaction Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/glAccountEnquiry.jsp"><span>GL Account Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/glTransactionEnquiry.jsp"><span>GL Transaction Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositKYCInquiry.jsp"><span>Customer Basic Details</span></a></li>
|
||||
<li><a href="/PacsApplication/investment_creation.jsp"><span>Investment Of Pacs</span></a></li>
|
||||
<li><a href="/PacsApplication/borrowing_creation.jsp"><span>Borrowing Of Pacs</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositMiscellaneousEnquiry.jsp"><span>Miscellaneous Enquiry</span></a></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
|
||||
|
||||
|
||||
<%if (userRole.equalsIgnoreCase(
|
||||
"201603000004022") || (userRole.equalsIgnoreCase(
|
||||
"201603000005020")) || (userRole.equalsIgnoreCase("201603000007020"))) {%>
|
||||
<li><a href="#" ><span>Deposit Operation</span></a>
|
||||
<ul class="vertical-menu">
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201603000005020")) || (userRole.equalsIgnoreCase("201603000007020"))) {%>
|
||||
<li><a href="/PacsApplication/Deposit/DepositKYCCreation.jsp"><span>KYC Creation</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositAccountCreation.jsp"><span>Account Creation</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/PrintPassbook.jsp"><span>Print Passbook</span></a></li>
|
||||
<li><a href="/PacsApplication/NeftRtgsInitiation.jsp"><span>NEFT RTGS Initiation</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/bulkIncrDetails.jsp"><span>Bulk Mark</span></a></li>
|
||||
<li><a href='/PacsApplication/AccountAmendment.jsp'><span>Account CIF Update</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/BatchTransaction.jsp"><span>Batch Transaction</span></a></li>
|
||||
<%}else{%>
|
||||
<li><a href="/PacsApplication/Deposit/DepositKYCCreation.jsp"><span>KYC Creation</span></a></li>
|
||||
<!-- <li><a href="/PacsApplication/Deposit/DepositKYCDocumentUpload.jsp"><span>KYC Document Upload</span></a></li> -->
|
||||
<li><a href="/PacsApplication/Deposit/DepositAccountCreation.jsp"><span>Account Creation</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositTransactionOperation.jsp"><span>Cash Transaction</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/TDOperation.jsp"><span>Term Deposit Transaction</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/RDOperation.jsp"><span>Recurring Deposit Transaction</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositTransferOperation.jsp"><span>Transfer Operations</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/DepositTransferClosure.jsp"><span>Transfer Operations By Closure</span></a></li>
|
||||
<!-- <li><a href="/PacsApplication/Deposit/ReverseTransaction.jsp"><span>Correction Operation</span></a></li> -->
|
||||
<li><a href="/PacsApplication/Deposit/BatchTransaction.jsp"><span>Batch Transaction</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/PrintPassbook.jsp"><span>Print Passbook</span></a></li>
|
||||
<li><a href="/PacsApplication/NeftRtgsInitiation.jsp"><span>NEFT RTGS Initiation</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/mocOperations.jsp"><span>MOC Operations</span></a></li>
|
||||
<!-- <li><a href="/PacsApplication/AccountAmendment.jsp"><span>Account Amendment</span></a></li> -->
|
||||
<li class='last'><a href="/PacsApplication/Deposit/DepositMiscellaneousOperation.jsp"><span>Miscellaneous Operations</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/EditServices.jsp"><span>Add/Edit Sms-Email Service</span></a><li>
|
||||
<li><a href="/PacsApplication/Deposit/microFileUploadDownload.jsp"><span>Daily Deposit Operations</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/ChequePosting.jsp"><span>Cheque Posting</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/AgentMapping.jsp"><span>Agent Mapping/Limit Setting</span></a></li>
|
||||
<li><a href="/PacsApplication/DDS/TotalCashDepositDDS.jsp"><span>Agent Cash Deposit</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/bulkIncrDetails.jsp"><span>Bulk Mark</span></a></li>
|
||||
<li><a href='/PacsApplication/AccountAmendment.jsp'><span>Account CIF Update</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/AccountModeOfOperation.jsp'><span>Account Mode Of Operation</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/PLAppropriationOperations.jsp"><span>Profit & Loss Appropriation</span></a></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
|
||||
<%if (userRole.equalsIgnoreCase(
|
||||
"201603000004022") || (userRole.equalsIgnoreCase(
|
||||
"201603000005020")) || (userRole.equalsIgnoreCase("201603000007020")) || (userRole.equalsIgnoreCase("201603000008020")) ||
|
||||
(userRole.equalsIgnoreCase("201603000004024")) ||(userRole.equalsIgnoreCase("201606000004041"))) {%>
|
||||
<li><a href="#" ><span>Reports</span></a>
|
||||
<ul><%if ((userRole.equalsIgnoreCase("201603000005020")) || (userRole.equalsIgnoreCase
|
||||
("201603000004024")) || (userRole.equalsIgnoreCase("201603000007020")) || (userRole.equalsIgnoreCase("201603000008020"))) {%>
|
||||
<li><a href="/PacsApplication/Deposit/Deposit_Report.jsp"><span>Deposit Reports</span></a></li>
|
||||
<%}else if (userRole.equalsIgnoreCase("201606000004041") && moduleName.equalsIgnoreCase("Special") || moduleName.equalsIgnoreCase("SpecialBothDep")) {%>
|
||||
<li><a href="/PacsApplication/Deposit/Deposit_Report.jsp"><span>Deposit Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/AccountStatement_Report.jsp"><span>Account Statement Reports</span></a></li>
|
||||
<%} else if ((userRole.equalsIgnoreCase("201606000004041"))) {%>
|
||||
<li><a href="/PacsApplication/Deposit/Deposit_Report.jsp"><span>Deposit Reports</span></a></li>
|
||||
<li><a href="/PacsApplication/trial_balance_report_generation.jsp"><span>Trial Balance Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Report_gen_monthly.jsp"><span>Deposit Return Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/inv_borr_rep.jsp"><span>Investment/Borrowing Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/BCommitteeReport.jsp"><span>B-Committee Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/AccountStatement_Report.jsp"><span>Account Statement Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/CustomerNetWorth_Report.jsp"><span>Customer Net Worth Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/NotificationReport.jsp"><span>Notification Reports</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/Audit_Report.jsp"><span>Audit Reports</span></a></li>
|
||||
<%}else {%>
|
||||
<%--<li><a href="/PacsApplication/Deposit/GliffDepositReport.jsp"><span>GLIF Reports</span></a></li>--%>
|
||||
<li><a href="/PacsApplication/Deposit/Deposit_Report.jsp"><span>Deposit Reports</span></a></li>
|
||||
<%--<li><a href="/PacsApplication/Deposit/GLCCBalanceReport.jsp"><span>GLCC Balance Reports</span></a></li>--%>
|
||||
<li><a href="/PacsApplication/trial_balance_report_generation.jsp"><span>Trial Balance Reports</span></a></li>
|
||||
<%--<li><a href="/PacsApplication/Deposit/AdhocReport.jsp"><span>Adhoc Reports</span></a></li>--%>
|
||||
<li class='last'><a href="/PacsApplication/Report_gen_monthly.jsp"><span>Deposit Return Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/inv_borr_rep.jsp"><span>Investment/Borrowing Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/BCommitteeReport.jsp"><span>B-Committee Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/AccountStatement_Report.jsp"><span>Account Statement Reports</span></a></li>
|
||||
<li class='last'><a href="/PacsApplication/Deposit/CustomerNetWorth_Report.jsp"><span>Customer Net Worth Reports</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/Audit_Report.jsp"><span>Audit Reports</span></a></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
<%if (userRole.equalsIgnoreCase("201603000004022")) {%>
|
||||
<li><a href="#" ><span>Cash Operation</span></a>
|
||||
<ul>
|
||||
|
||||
|
||||
<li><a href="/PacsApplication/Deposit/CashDrawerEnquiryTeller.jsp"><span>Cash Drawer Enquiry</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
<%if (userRole.equalsIgnoreCase("201603000004024")) {%>
|
||||
<li><a href="#" ><span>Cash Operation</span></a>
|
||||
<ul>
|
||||
<li><a href="/PacsApplication/Deposit/AssignToCashDrawer.jsp"><span>Assign To Cash Drawer</span></a></li>
|
||||
<!-- <li><a href="/PacsApplication/Deposit/DepositKYCDocumentUpload.jsp"><span>KYC Document Upload</span></a></li> -->
|
||||
|
||||
<li><a href="/PacsApplication/Deposit/CashReserveEnquiry.jsp"><span>Cash Reserve Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/CashDrawerEnquiry.jsp"><span>Cash Drawer Enquiry</span></a></li>
|
||||
<li><a href="/PacsApplication/SwapCashDenoServlet"><span>Swap/Edit-Update Cash Deno</span></a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
|
||||
<%if ((userRole.equalsIgnoreCase("201606000004041")) && (!moduleName.equalsIgnoreCase(
|
||||
"Special")) && (!moduleName.equalsIgnoreCase(
|
||||
"SpecialBoth")) && (!moduleName.equalsIgnoreCase(
|
||||
"SpecialBothDep")) && (!moduleName.equalsIgnoreCase(
|
||||
"SpecialBothKcc"))) {%>
|
||||
<li><a href="#" ><span>Operation</span></a>
|
||||
<ul class="vertical-menu">
|
||||
<li class='last'><a href="/PacsApplication/StandingInstructionCreation.jsp"><span>Standing Instruction Operation</span></a></li>
|
||||
<%--<li><a href="/PacsApplication/Deposit/BulkFileUpload.jsp"><span>Bulk File Upload</span></a></li>--%>
|
||||
<li><a href="/PacsApplication/Deposit/DepositRateSlab.jsp"><span>TD Rate Slab</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/SBRateSlab.jsp"><span>SB Rate Slab</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/ForceAccountClosure.jsp'><span>Force Account Closure</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/BGLAccountCreation.jsp'><span>SUB-GL Account Creation</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/LienMarking.jsp'><span>Lien Marking</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/mocOperations.jsp"><span>MOC Operations</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/ChequePosting.jsp"><span>Cheque Enquiry-Posting</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/AccountModeOfOperation.jsp'><span>Account Mode Of Operation</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/TDRepayMethod.jsp'><span>TD/RD INT TRF Method Change</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/MiscChargeDeduction.jsp'><span>Miscellaneous Charge Deduction</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/UpdatePacsDetails.jsp'><span>Update PACS Details</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/PLAppropriationOperations.jsp"><span>Profit & Loss Appropriation</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201606000004041")) || (userRole.equalsIgnoreCase("201603000004022")) || (userRole.equalsIgnoreCase("201603000008020"))) {%>
|
||||
<li><a href="#" ><span>Worklist</span></a>
|
||||
<ul>
|
||||
<%if ((userRole.equalsIgnoreCase("201603000008020"))) {%>
|
||||
<%--<li><a href="/PacsApplication/Deposit/authBulkIncr_STB.jsp"><span>Auth Bulk Mark</span></a></li>--%>
|
||||
<li><a href="/PacsApplication/Deposit/viewBulkIncr_STB.jsp"><span>Auth Bulk Mark</span></a></li>
|
||||
<li><a href="/PacsApplication/TransactionAuthorization_STB.jsp"><span>My Queue</span></a><li>
|
||||
<li><a href="/PacsApplication/MyIntimation_STB.jsp"><span>My Intimation</span></a><li>
|
||||
<%}
|
||||
else if ((userRole.equalsIgnoreCase("201606000004041"))) {%>
|
||||
<li><a href="/PacsApplication/TransactionAuthorization.jsp"><span>My Queue</span></a><li>
|
||||
<li><a href="/PacsApplication/MyIntimation.jsp"><span>My Intimation</span></a><li>
|
||||
<li><a href="/PacsApplication/Deposit/BatchAuthorisation.jsp"><span>Batch Transaction</span></a><li>
|
||||
<li><a href="/PacsApplication/tellerQueueDetails.jsp"><span>Transaction Status </span></a><li>
|
||||
<li><a href="/PacsApplication/Deposit/BulkFileUpload.jsp"><span>Bulk File Upload</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/authBulkIncr.jsp"><span>Auth Bulk Mark</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/CBSAccountMapping.jsp'><span>CBS Account Mapping</span></a></li>
|
||||
<%--<% if(!moduleName.equalsIgnoreCase("Special") && (!moduleName.equalsIgnoreCase(
|
||||
"SpecialBoth"))){%>
|
||||
<li><a href="/PacsApplication/Deposit/BatchAuthorisation.jsp"><span>Batch Transaction</span></a><li>
|
||||
<li><a href="/PacsApplication/tellerQueueDetails.jsp"><span>Transaction Status </span></a><li>
|
||||
<li><a href="/PacsApplication/Deposit/BulkFileUpload.jsp"><span>Bulk File Upload</span></a></li>
|
||||
<li><a href="/PacsApplication/Deposit/authBulkIncr.jsp"><span>Auth Bulk Mark</span></a></li>
|
||||
<%}%>--%>
|
||||
<%}else {%>
|
||||
<li><a href="/PacsApplication/MyIntimation.jsp"><span>My Intimation</span></a><li>
|
||||
|
||||
<%}%>
|
||||
</ul>
|
||||
</li>
|
||||
<%}%>
|
||||
<%if (!userRole.equalsIgnoreCase(
|
||||
"201603000004020")) {%>
|
||||
<li class='active has-sub'><a href="#" ><span>User Management</span></a>
|
||||
<ul>
|
||||
<li><a href="/PacsApplication/ResetLogin.jsp"><span>Reset Logged In status </span></a><li>
|
||||
<li><a href="/PacsApplication/changePassword.jsp"><span>Change Password </span></a><li>
|
||||
<%if (userRole.equalsIgnoreCase(
|
||||
"201606000004041")) {%>
|
||||
<li><a href="/PacsApplication/Deposit/ResetPassword.jsp"><span>Reset Password</span></a></li>
|
||||
<li><a href="/PacsApplication/userLoginManagement.jsp"><span>User Login management </span></a><li>
|
||||
<li><a href='/PacsApplication/Deposit/UserCreation.jsp'><span>User Creation</span></a></li>
|
||||
<li><a href='/PacsApplication/Deposit/UserAmendment.jsp'><span>User Amendment</span></a></li>
|
||||
<%-- <li><a href="/PacsApplication/tellerQueueDetails.jsp"><span>Transaction Status </span></a><li>--%>
|
||||
<% }%>
|
||||
</ul>
|
||||
</li>
|
||||
<% }%>
|
||||
<li><a href="/PacsApplication/LogoutServlet" onclick="return confirm('Do you want to logout?')" >LogOut</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<% } catch (Exception e) {
|
||||
System.out.println("EX in " + e);
|
||||
}
|
||||
%>
|
||||
|
||||
252
IPKS_Updated/web/web/web/Deposit/MiscChargeDeduction.jsp
Normal file
252
IPKS_Updated/web/web/web/Deposit/MiscChargeDeduction.jsp
Normal file
@@ -0,0 +1,252 @@
|
||||
<%--
|
||||
Document : MiscChargeDeduction
|
||||
Created on : Sep 20, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Misc Charge Deduction</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nsc{
|
||||
position: right;
|
||||
top:510;
|
||||
right: 425;
|
||||
left: 750;
|
||||
bottom:376;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/MiscChargeDeduction.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_prodCode(width, height, pcode) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "MiscChargeDeduction.jsp";
|
||||
var lovKey="prodLOV"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?pcode=' + pcode + '&screenName=' + screenName+'&lovKey='+lovKey, 'prodLOV', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function submitform(MiscChargeDeductionForm)
|
||||
{
|
||||
if (checkDiv(MiscChargeDeductionForm))
|
||||
{
|
||||
|
||||
document.MiscChargeDeductionForm.action = '/PacsApplication/MiscChargeDeductionServlet';
|
||||
document.MiscChargeDeductionForm.submit();
|
||||
}
|
||||
}
|
||||
function checkDiv(MiscChargeDeductionForm)
|
||||
{
|
||||
if (MiscChargeDeductionForm.methodType.value == "")
|
||||
{
|
||||
alert("Select Charge Deduction Type.");
|
||||
MiscChargeDeductionForm.methodType.focus();
|
||||
return false;
|
||||
}
|
||||
if (MiscChargeDeductionForm.prodCode.value == "")
|
||||
{
|
||||
alert("Product Code can not be null.");
|
||||
MiscChargeDeductionForm.prodCode.focus();
|
||||
return false;
|
||||
}
|
||||
if (MiscChargeDeductionForm.txnAmt.value == "")
|
||||
{
|
||||
alert("Deduction Amount can not be null.");
|
||||
MiscChargeDeductionForm.txnAmt.focus();
|
||||
return false;
|
||||
}
|
||||
if (MiscChargeDeductionForm.narration.value == "")
|
||||
{
|
||||
alert("Narration can not be null.");
|
||||
MiscChargeDeductionForm.narration.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#methodType').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'NONTXNCHARGE':
|
||||
$('#frmdt').show();
|
||||
$('#todt').show();
|
||||
$('#maxTr').hide();
|
||||
break;
|
||||
|
||||
case 'MINCHARGE':
|
||||
$('#minb').show();
|
||||
$('#frmdt').hide();
|
||||
$('#todt').hide();
|
||||
$('#maxTr').hide();
|
||||
break;
|
||||
|
||||
case 'THRESHOLD':
|
||||
$('#minb').hide();
|
||||
$('#frmdt').show();
|
||||
$('#todt').show();
|
||||
$('#maxTr').show();
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#frmdt').hide();
|
||||
$('#todt').hide();
|
||||
$('#minb').hide();
|
||||
$('#maxTr').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Miscellaneous Charge Deduction</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="MiscChargeDeductionForm" id="MiscChargeDeductionForm" action="" method="post">
|
||||
<div align="center">
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td><lable>Select Charge Deduction Type<font color="red" >*</font>:</lable></td>
|
||||
<td> <select id="methodType" name="methodType" >
|
||||
<option value="" selected >--Select--</option>
|
||||
<option value="SMSCHARGE" >SMS Charge Deduction</option>
|
||||
<option value="MISSCHARGE" >Missed Call Charge Deduction</option>
|
||||
<option value="EMAILCHARGE" >E-Mail Charge Deduction</option>
|
||||
<option value="NONTXNCHARGE" >Non Transaction Charge Deduction</option>
|
||||
<option value="MINCHARGE" >Minimum Balance Charge Deduction</option>
|
||||
<%--<option value="THRESHOLD" >Threshold Cash Debit Transaction Count Charge Deduction</option>--%>
|
||||
</select></td>
|
||||
</tr><td><td>
|
||||
<tr id="maxTr" style="display:none">
|
||||
<td>Maximum No of Cash Debit Transaction Allowed: </td>
|
||||
<td><input type="text" size="20" name="maxCashTra" id="maxCashTra" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td>Product Code<font color="red" >*</font>: </td>
|
||||
<td><input type="text" size="20" name="prodCode" id="prodCode" value="" readonly style="text-align:right;" />
|
||||
<input type="button" value="Search" onclick="javascript:popup_prodCode(500,300,$('#prodCode').val());" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Interest Category: </td>
|
||||
<td><input type="text" size="20" name="intCat" id="intCat" readOnly style="text-align:right;" /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td>Deduction Amount<font color="red" >*</font>: </td>
|
||||
<td><input type="text" size="20" name="txnAmt" id="txnAmt" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57' /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr id="minb" style="display:none">
|
||||
<td>Minimum Balance To Be Maintained: </td>
|
||||
<td><input type="text" size="20" name="minBal" id="minBal" style="text-align:right;" onkeypress='return event.charCode >= 46 && event.charCode <= 57' /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr id="frmdt" style="display:none">
|
||||
<td>From Date: </td>
|
||||
<td><input type="text" size="20" name="fromdate" id="fromdate" readonly style="text-align:center;" /> <a href="#" onclick="return getCalendar(document.forms[0].fromdate);" /><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></td></tr>
|
||||
<tr><tr><tr>
|
||||
<tr id="todt" style="display:none">
|
||||
<td>To Date: </td>
|
||||
<td><input type="text" size="20" name="todate" id="todate" readonly style="text-align:center;" /> <a href="#" onclick="return getCalendar(document.forms[0].todate);" /><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></td></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td>Narration<font color="red" >*</font>: </td>
|
||||
<td><input type="text" size="20" name="narration" id="narration" /></tr>
|
||||
<tr><tr><tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform(MiscChargeDeductionForm);" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();"</center>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
447
IPKS_Updated/web/web/web/Deposit/NotificationReport.jsp
Normal file
447
IPKS_Updated/web/web/web/Deposit/NotificationReport.jsp
Normal file
@@ -0,0 +1,447 @@
|
||||
<%--
|
||||
Document : NotificationReport
|
||||
Created on : Nov 13, 2020, 5:28:24 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!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=UTF-8">
|
||||
<meta charset="utf-8" />
|
||||
<title>Notification Reports</title>
|
||||
<link rel="shortcut icon" href="img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="/PacsApplication/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/wrapper.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/bootstrap/css/bootstrap.min.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/jquery-migrate-1.0.0.js"></script>
|
||||
<%-- <script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>--%>
|
||||
|
||||
<style>
|
||||
/* The snackbar - position it at the bottom and in the middle of the screen */
|
||||
#snackbar {
|
||||
visibility: hidden; /* Hidden by default. Visible on click */
|
||||
min-width: 200px; /* Set a default minimum width */
|
||||
margin-left: -125px; /* Divide value of min-width by 2 */
|
||||
background-color: #333; /* Black background color */
|
||||
color: #fff; /* White text color */
|
||||
text-align: center; /* Centered text */
|
||||
border-radius: 2px; /* Rounded borders */
|
||||
padding: 16px; /* Padding */
|
||||
position: fixed; /* Sit on top of the screen */
|
||||
z-index: 1; /* Add a z-index if needed */
|
||||
left: 89%; /* Center the snackbar */
|
||||
bottom: 100px; /* 30px from the bottom */
|
||||
}
|
||||
|
||||
#snackbar2 {
|
||||
visibility: hidden; /* Hidden by default. Visible on click */
|
||||
min-width: 200px; /* Set a default minimum width */
|
||||
margin-left: -125px; /* Divide value of min-width by 2 */
|
||||
background-color: #333; /* Black background color */
|
||||
color: #fff; /* White text color */
|
||||
text-align: center; /* Centered text */
|
||||
border-radius: 2px; /* Rounded borders */
|
||||
padding: 16px; /* Padding */
|
||||
position: fixed; /* Sit on top of the screen */
|
||||
z-index: 1; /* Add a z-index if needed */
|
||||
left: 12%; /* Center the snackbar */
|
||||
bottom: 100px; /* 100px from the bottom */
|
||||
}
|
||||
#snackbar3 {
|
||||
visibility: hidden; /* Hidden by default. Visible on click */
|
||||
min-width: 200px; /* Set a default minimum width */
|
||||
margin-left: -125px; /* Divide value of min-width by 2 */
|
||||
background-color: #333; /* Black background color */
|
||||
color: #fff; /* White text color */
|
||||
text-align: center; /* Centered text */
|
||||
border-radius: 2px; /* Rounded borders */
|
||||
padding: 16px; /* Padding */
|
||||
position: fixed; /* Sit on top of the screen */
|
||||
z-index: 1; /* Add a z-index if needed */
|
||||
left: 12%; /* Center the snackbar */
|
||||
bottom: 100px; /* 100px from the bottom */
|
||||
}
|
||||
#notiButton {
|
||||
|
||||
min-width: 100px; /* Set a default minimum width */
|
||||
margin-left: -125px; /* Divide value of min-width by 2 */
|
||||
background-color: #333; /* Black background color */
|
||||
color: #fff; /* White text color */
|
||||
text-align: center; /* Centered text */
|
||||
border-radius: 2px; /* Rounded borders */
|
||||
padding: 16px; /* Padding */
|
||||
position: fixed; /* Sit on top of the screen */
|
||||
z-index: 1; /* Add a z-index if needed */
|
||||
left: 95%; /* Center the snackbar */
|
||||
bottom: 30px; /* 30px from the bottom */
|
||||
}
|
||||
|
||||
#dReport {
|
||||
|
||||
min-width: 100px; /* Set a default minimum width */
|
||||
margin-left: -125px; /* Divide value of min-width by 2 */
|
||||
background-color: #333; /* Black background color */
|
||||
color: #fff; /* White text color */
|
||||
text-align: center; /* Centered text */
|
||||
border-radius: 2px; /* Rounded borders */
|
||||
padding: 16px; /* Padding */
|
||||
position: fixed; /* Sit on top of the screen */
|
||||
z-index: 1; /* Add a z-index if needed */
|
||||
left: 12%; /* Center the snackbar */
|
||||
bottom: 35px; /* 30px from the bottom */
|
||||
}
|
||||
#dReport2 {
|
||||
|
||||
min-width: 100px; /* Set a default minimum width */
|
||||
margin-left: -125px; /* Divide value of min-width by 2 */
|
||||
background-color: #333; /* Black background color */
|
||||
color: #fff; /* White text color */
|
||||
text-align: center; /* Centered text */
|
||||
border-radius: 2px; /* Rounded borders */
|
||||
padding: 16px; /* Padding */
|
||||
position: fixed; /* Sit on top of the screen */
|
||||
z-index: 1; /* Add a z-index if needed */
|
||||
left: 28%; /* Center the snackbar */
|
||||
bottom: 35px; /* 30px from the bottom */
|
||||
}
|
||||
#footer {
|
||||
width:100%;
|
||||
height:100px;
|
||||
position:fixed;
|
||||
padding-top: 100px;
|
||||
left: 0;
|
||||
padding-bottom:100px;
|
||||
/* position: fixed;
|
||||
padding: 10px 10px 0px 10px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;*/
|
||||
/*height: 40px; Height of the footer*/
|
||||
/* background: #8dce09; 57EE0B; #B5FF33*/
|
||||
}
|
||||
/* Show the snackbar when clicking on a button (class added with JavaScript) */
|
||||
#snackbar.show {
|
||||
visibility: visible; /* Show the snackbar */
|
||||
/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
|
||||
However, delay the fade out process for 2.5 seconds */
|
||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||
}
|
||||
|
||||
#snackbar2.show {
|
||||
visibility: visible; /* Show the snackbar */
|
||||
/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
|
||||
However, delay the fade out process for 2.5 seconds */
|
||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||
}
|
||||
#snackbar3.show {
|
||||
visibility: visible; /* Show the snackbar */
|
||||
/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
|
||||
However, delay the fade out process for 2.5 seconds */
|
||||
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||
}
|
||||
|
||||
/* Animations to fade the snackbar in and out */
|
||||
@-webkit-keyframes fadein {
|
||||
from {bottom: 60; opacity: 0;}
|
||||
to {bottom: 100px; opacity: 1;}
|
||||
}
|
||||
|
||||
@keyframes fadein {
|
||||
from {bottom: 60; opacity: 0;}
|
||||
to {bottom: 100px; opacity: 1;}
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeout {
|
||||
from {bottom: 100px; opacity: 1;}
|
||||
to {bottom: 60; opacity: 0;}
|
||||
}
|
||||
|
||||
@keyframes fadeout {
|
||||
from {bottom: 100px; opacity: 1;}
|
||||
to {bottom: 60; opacity: 0;}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$.ajax({
|
||||
url:'/PacsApplication/WelcomeServlet',
|
||||
data:{"temp":"search"},
|
||||
type:'post',
|
||||
cache:false,
|
||||
success:function(data){
|
||||
|
||||
$("#pQ").text(data.pQue);
|
||||
$("#aQ").text(data.aQue);
|
||||
$("#rQ").text(data.rQue);
|
||||
$("#cIn").text(data.cIn);
|
||||
$("#cOt").text(data.cOut);
|
||||
$("#cDf").text(data.cDf);
|
||||
$("#iQ").text(data.iQ);
|
||||
$("#cinH").text(data.cinH);
|
||||
$("#iQ2").text(data.iQ2);
|
||||
|
||||
},
|
||||
error:function(){
|
||||
$("#pQ").text(0);
|
||||
$("#aQ").text(0);
|
||||
$("#rQ").text(0);
|
||||
$("#cIn").text(0);
|
||||
$("#cOt").text(0);
|
||||
$("#cDf").text(0);
|
||||
$("#iQ").text(0);
|
||||
$("#cinH").text(0);
|
||||
$("#iQ2").text(0);
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
// $(function() {
|
||||
// $('marquee').mouseover(function() {
|
||||
// $(this).attr('scrollamount',0);
|
||||
// }).mouseout(function() {
|
||||
// $(this).attr('scrollamount',5);
|
||||
// });
|
||||
// });
|
||||
//
|
||||
// $( document ).ready(function() {
|
||||
// $(document).on('click','.est_btn',function(event){
|
||||
// if( $('.est_btn').index(this) == 0 ){
|
||||
// document.location.href="/PacsApplication/KCCSevlet";
|
||||
// }else if($('.est_btn').index(this) == 1){
|
||||
// document.location.href="/PacsApplication/TradingSevlet";
|
||||
// }else if($('.est_btn').index(this) == 2){
|
||||
// document.location.href="/PacsApplication/AssetServlet";
|
||||
// <%--}else if($('.est_btn').index(this) == 3){
|
||||
document.location.href="/PacsApplication/PDSServlet";--%>//
|
||||
// }else if($('.est_btn').index(this) == 4){
|
||||
// document.location.href="/PacsApplication/SHGServlet";
|
||||
// <%-- }else if($('.est_btn').index(this) == 5){
|
||||
document.location.href="/PacsApplication/GPSServlet";--%>//
|
||||
// }else if($('.est_btn').index(this) == 6){
|
||||
// document.location.href="/PacsApplication/MISDashboardSevlet";
|
||||
// }else if($('.est_btn').index(this) == 7){
|
||||
// document.location.href="/PacsApplication/DepositServlet";
|
||||
// }else if($('.est_btn').index(this) == 8){
|
||||
// document.location.href="/PacsApplication/LoanServlet";
|
||||
// }else if($('.est_btn').index(this) == 9){
|
||||
// document.location.href="/PacsApplication/ShareServlet";
|
||||
// <%--}else if($('.est_btn').index(this) == 10){
|
||||
document.location.href="/PacsApplication/SODEODServlet";--%>//
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
|
||||
$(function() {
|
||||
// if ($.browser.msie && $.browser.version.substr(0,1)<7)
|
||||
// {
|
||||
$('li').has('ul').mouseover(function(){
|
||||
$(this).children('ul').css('visibility','visible');
|
||||
}).mouseout(function(){
|
||||
$(this).children('ul').css('visibility','hidden');
|
||||
})
|
||||
//}
|
||||
});
|
||||
|
||||
var repeater;
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
// Get the snackbar DIV
|
||||
var x = document.getElementById("snackbar");
|
||||
// Add the "show" class to DIV
|
||||
x.className = "show";
|
||||
// After 3 seconds, remove the show class from DIV
|
||||
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
|
||||
}
|
||||
|
||||
function myFunction2() {
|
||||
var y = document.getElementById("snackbar2");
|
||||
y.className = "show";
|
||||
setTimeout(function(){ y.className = y.className.replace("show", ""); }, 3000);
|
||||
}
|
||||
|
||||
function myFunction3() {
|
||||
var y = document.getElementById("snackbar3");
|
||||
y.className = "show";
|
||||
setTimeout(function(){ y.className = y.className.replace("show", ""); }, 3000);
|
||||
}
|
||||
|
||||
function downloadReport()
|
||||
{
|
||||
var formDownloadReport = document.getElementById("reportForm");
|
||||
formDownloadReport.reportPath.value = "/Reports/investment_mat_report";
|
||||
formDownloadReport.reportName.value = "investment_mat_report";
|
||||
formDownloadReport.DOWNLOAD.value = "P";
|
||||
formDownloadReport.action = '/PacsApplication/ExcelReportServlet';
|
||||
formDownloadReport.submit();
|
||||
}
|
||||
function downloadReport2()
|
||||
{
|
||||
var formDownloadReport = document.getElementById("reportForm3");
|
||||
formDownloadReport.reportPath.value = "/Reports/nsckvp_exp_report";
|
||||
formDownloadReport.reportName.value = "NSC_KVP_Exp_Report";
|
||||
formDownloadReport.DOWNLOAD.value = "P";
|
||||
formDownloadReport.action = '/PacsApplication/ExcelReportServlet';
|
||||
formDownloadReport.submit();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<%
|
||||
String ModuleName = new String();
|
||||
|
||||
ModuleName = (String) session.getAttribute("moduleName");
|
||||
String role = (String) session.getAttribute("userRole");
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
String holidayList = (String) session.getAttribute("holidayList");
|
||||
|
||||
%>
|
||||
<% if (ModuleName.equalsIgnoreCase("KCC")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" /><%--
|
||||
<%} else if (ModuleName.equalsIgnoreCase("pds")) {%>
|
||||
<jsp:include page="/Pds_JSP/MenuHead_PDS.jsp" flush="true" />--%>
|
||||
<%} else if (ModuleName.equalsIgnoreCase("trading")) {%>
|
||||
<jsp:include page="/Trading_JSP/MenuHead_TRADING.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("asset")) {%>
|
||||
<jsp:include page="/Asset_JSP/MenuHead_ASSET.jsp" flush="true" /><%--
|
||||
<%} else if (ModuleName.equalsIgnoreCase("governance")) {%>
|
||||
<jsp:include page="/GPS_JSP/MenuHead_GPS.jsp" flush="true" />--%>
|
||||
<%} else if (ModuleName.equalsIgnoreCase("dashboard")) {%>
|
||||
<jsp:include page="MenuHead_DASHBOARD.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("shg")) {%>
|
||||
<jsp:include page="/Shg_JSP/MenuHead_SHG.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Deposit")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Loan")) {%>
|
||||
<jsp:include page="/Loan/MenuHead_Loan.jsp" flush="true" /><%--
|
||||
<%} else if (ModuleName.equalsIgnoreCase("eod")) {%>
|
||||
<jsp:include page="MenuHead_EOD.jsp" flush="true" />--%>
|
||||
<%} else if (ModuleName.equalsIgnoreCase("dds")) {%>
|
||||
<jsp:include page="/DDS/MenuHead_DDS.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("share")) {%>
|
||||
<jsp:include page="/Share_Module/MenuHead_Share.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("Special")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialKcc")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialBoth")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialBothKcc")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialBothDep")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%}else {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%}%>
|
||||
|
||||
|
||||
<% if(role.equalsIgnoreCase("201606000004041")) { %>
|
||||
<!-- Use a button to open the snackbar -->
|
||||
<button id="notiButton" onmouseover="repeater=setInterval(myFunction(), 100);" onmouseout="clearInterval(repeater);">Show Notification</button>
|
||||
|
||||
<% if(!ModuleName.equalsIgnoreCase("Special")) { %>
|
||||
<button id="dReport" onmouseover="repeater=setInterval(myFunction2(), 100);" onmouseout="clearInterval(repeater);" onclick="downloadReport();">Download Investment Report</button>
|
||||
<%} %>
|
||||
|
||||
<% if(!ModuleName.equalsIgnoreCase("Special")) { %>
|
||||
<button id="dReport2" onmouseover="repeater=setInterval(myFunction3(), 100);" onmouseout="clearInterval(repeater);" onclick="downloadReport2();">NSC KVP LIC Certificate Expiry Report</button>
|
||||
<%} %>
|
||||
|
||||
<%} %>
|
||||
<input type="hidden" name="roleId" id="roleId" value="<%=role%>"/>
|
||||
<input type="hidden" name="pacsId" id="pacsId" value="<%=pacsId%>"/>
|
||||
|
||||
<!-- The actual snackbar -->
|
||||
<div id="snackbar">
|
||||
<table >
|
||||
<tr>
|
||||
<td style="text-align: left">Pending Queues: </td>
|
||||
<td><span id="pQ"> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Authorised Queues. </td>
|
||||
<td><span id="aQ"> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Rejected Queues. </td>
|
||||
<td><span id="rQ"> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Cash In </td>
|
||||
<td><span id="cIn"> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Cash Out </td>
|
||||
<td><span id="cOt"> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Cash In/Out Diff </td>
|
||||
<td><span id="cDf"> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left">Cash In hand </td>
|
||||
<td><span id="cinH"> </span></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="snackbar2">
|
||||
<form name="reportForm" method="post" action="" id="reportForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: left">Investments to be matured within 15 days: </td>
|
||||
<td><span id="iQ"> </span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="snackbar3">
|
||||
<form name="reportForm3" method="post" action="" id="reportForm3">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: left">NSC KVP Certificate to be expired within 15 days: </td>
|
||||
<td><span id="iQ2"> </span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
628
IPKS_Updated/web/web/web/Deposit/PLAppropriationOperations.jsp
Normal file
628
IPKS_Updated/web/web/web/Deposit/PLAppropriationOperations.jsp
Normal file
@@ -0,0 +1,628 @@
|
||||
<%--
|
||||
Document : PLAppropration
|
||||
Created on : Nov 8, 2021, 5:52:10 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.mocProcessingBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>PL Appropriation Operations</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<%
|
||||
String handle_idVal = "";
|
||||
Object handle_id = request.getAttribute("handle_id");
|
||||
if (handle_id != null) {
|
||||
handle_idVal = handle_id.toString();
|
||||
}
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/PLAppropriationOperations.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function checkboxTrue(i){
|
||||
|
||||
if(document.getElementById("chckbox"+i).checked == true){
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
function executeform(PLForm){
|
||||
if(document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the PL ID to search");
|
||||
return false;
|
||||
}
|
||||
document.getElementById("handle_id").value = 'execute';
|
||||
document.PLForm.action = '/PacsApplication/PLAppropriationServlet';
|
||||
document.PLForm.submit();
|
||||
}
|
||||
|
||||
function submitform(PLForm){
|
||||
|
||||
if(document.getElementById("handle_id").value == "search"){
|
||||
if(document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the PL Batch ID to proceed");
|
||||
return false;
|
||||
}
|
||||
document.PLForm.action = '/PacsApplication/PLAppropriationServlet';
|
||||
document.PLForm.submit();
|
||||
return true;
|
||||
} else if(validate()){
|
||||
roundOff();
|
||||
document.PLForm.action = '/PacsApplication/PLAppropriationServlet';
|
||||
document.PLForm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function validate(){
|
||||
var counter = $("#rowCounter").val();
|
||||
//var i = 1;
|
||||
for(i=1;i<=counter;i++){
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/;
|
||||
|
||||
try {
|
||||
if (document.getElementById("accNo"+i).value == "")
|
||||
{
|
||||
alert("Account Number cannot be empty");
|
||||
document.getElementById("accNo"+i).value="";
|
||||
document.getElementById("accNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.getElementById("secAccNo"+i).value == "")
|
||||
{
|
||||
alert("Second Account Number cannot be empty");
|
||||
document.getElementById("secAccNo"+i).value="";
|
||||
document.getElementById("secAccNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.getElementById("txnAmt"+i).value == "")
|
||||
{
|
||||
alert("Transaction Amount cannot be empty");
|
||||
document.getElementById("txnAmt"+i).value="";
|
||||
document.getElementById("txnAmt"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!re.test(document.getElementById("accNo"+i).value))
|
||||
{
|
||||
alert("Account Number could only contain numbers");
|
||||
document.getElementById("accNo"+i).value="";
|
||||
document.getElementById("accNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!re.test(document.getElementById("secAccNo"+i).value))
|
||||
{
|
||||
alert("Account Number could only contain numbers");
|
||||
document.getElementById("secAccNo"+i).value="";
|
||||
document.getElementById("secAccNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!re.test(document.getElementById("txnAmt"+i).value))
|
||||
{
|
||||
alert("Transaction amount could only contain numbers");
|
||||
document.getElementById("txnAmt"+i).value="";
|
||||
document.getElementById("txnAmt"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd"+i).value == "")
|
||||
{
|
||||
alert("Transaction indicator should be selected");
|
||||
document.getElementById("txnInd"+i).value="CR";
|
||||
document.getElementById("txnInd"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((document.getElementById("txnNarration"+i).value.trim()) == "")
|
||||
{
|
||||
alert("Transaction Narration should be filled.");
|
||||
document.getElementById("txnNarration"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("searched").value!="1")
|
||||
{
|
||||
alert("Kindly Search and select the first A/c Number.")
|
||||
document.getElementById("accNo"+i).focus;
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("searchedTwo").value!="1")
|
||||
{
|
||||
alert("Kindly Search and select the second A/c Number.")
|
||||
document.getElementById("secAccNo"+i).focus;
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd"+i).value == "DR" && document.getElementById("accType"+i).value == "L")
|
||||
{
|
||||
alert("Loan cannot be debited from batch transaction");
|
||||
document.getElementById("txnInd"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(err){
|
||||
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function SearchAccount(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
//var accNo = document.getElementById("accNo"+textIndex).value;
|
||||
var screenName = "PLAppropriationOperations.jsp";
|
||||
var lovKey = "AccountSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&accNo=' + accNo + '&textIndex=' + textIndex, 'AccountSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function SearchSecondAccount(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
//var accNo = document.getElementById("secAccNo"+textIndex).value;
|
||||
var screenName = "PLAppropriationOperations.jsp";
|
||||
var lovKey = "SecondAccountSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&accNo=' + accNo + '&textIndex=' + textIndex, 'AccountSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function setVisibility(){
|
||||
//document.getElementById("searchBatch").style.visibility='visible';
|
||||
$('select#PLOption').change();
|
||||
}
|
||||
|
||||
function textChanged(){
|
||||
document.getElementById("searched").value="0";
|
||||
//alert("IN");
|
||||
}
|
||||
|
||||
function textChangedTwo(){
|
||||
document.getElementById("searchedTwo").value="0";
|
||||
//alert("IN");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#create').hide();
|
||||
$('#handle_id').val();
|
||||
$('select#PLOption').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'C':
|
||||
$('#create').show();
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val('create');
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
$('#searchBatch').show();
|
||||
$('#create').hide();
|
||||
$('#handle_id').val('search');
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#create').hide();
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val();
|
||||
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg = "";
|
||||
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
|
||||
Object alMocProcessingBeanObj = request.getAttribute("alMocProcessingBean");
|
||||
ArrayList<mocProcessingBean> alMocProcessingBean = new ArrayList<mocProcessingBean>();
|
||||
mocProcessingBean oMocProcessingBean = new mocProcessingBean();
|
||||
if (alMocProcessingBeanObj != null) {
|
||||
alMocProcessingBean = (ArrayList<mocProcessingBean>) request.getAttribute("alMocProcessingBean");
|
||||
|
||||
|
||||
}
|
||||
error = request.getAttribute("batchID");
|
||||
String batchID = "";
|
||||
if (request.getAttribute("batchID") != null) {
|
||||
batchID = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
%>
|
||||
</head>
|
||||
<body onload="javascript:setVisibility();noBack();">
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">PL Appropriation Operations</legend>
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center style="display:none">
|
||||
<label>Select Operation: </label>
|
||||
<select id="PLOption" name="PLOption">
|
||||
<%--<option value="" selected >--Select--</option>--%>
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201606000004041")) ) {%>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("S")) {%> selected <%}%> value="S">Search</option>
|
||||
<%}else{%>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("C")) {%> selected <%}%> value="C">Create</option>
|
||||
<%}%>
|
||||
</select>
|
||||
</center>
|
||||
|
||||
|
||||
<form action="" method="post" name="PLForm" id="PLForm">
|
||||
|
||||
<div id="create" name="create">
|
||||
<br>
|
||||
|
||||
|
||||
<div align="center">
|
||||
<table id="PLData" name="PLData" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>First Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Second Account Number</td>
|
||||
<td>Narration</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="tRow">
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="accNo<%=count%>" id="accNo<%=count%>" onkeyup="textChanged()" />
|
||||
<input type="button" style="width: 70px" name="search<%=count%>" id="search<%=count%>" value="Search" onclick="javascript:SearchAccount(550,240,<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" onkeypress='return event.charCode >= 46 && event.charCode <= 57' name="txnAmt<%=count%>" id="txnAmt<%=count%>" />
|
||||
</td>
|
||||
<td>
|
||||
<select style="width: 150px" name="txnInd<%=count%>" id="txnInd<%=count%>" >
|
||||
<option value="CR" selected>Credit</option>
|
||||
<option value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="secAccNo<%=count%>" id="secAccNo<%=count%>" onkeyup="textChangedTwo()" />
|
||||
<input type="button" style="width: 70px" name="searchsecAccNo<%=count%>" id="searchsecAccNo<%=count%>" value="Search" onclick="javascript:SearchSecondAccount(550,240,<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" name="txnNarration<%=count%>" id="txnNarration<%=count%>" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td ><input type="button" id="addRow" value="Add Row"/></td>
|
||||
<td><input type="button" id="deleteRow" value="Delete Row"/></td>
|
||||
<td><input type="button" value="Submit" onclick="javascript:submitform(PLForm)"></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="rowCounterDeleteCreate" id="rowCounterDeleteCreate" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
<input type="hidden" name="all_rowsAdded" id="all_rowsAdded" value="1">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<div id="searchBatch" style="display:none">
|
||||
<label>PL ID: </label>
|
||||
<input type="text" name="batchID" id="batchID" value="<%=blankNull(batchID)%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
|
||||
<input type="button" name="searchBatch" id="searchBatch" value="Submit" onclick="javascript:submitform(PLForm)"/>
|
||||
<br><br>
|
||||
|
||||
<%if (handle_idVal.equalsIgnoreCase("S")) {%>
|
||||
<div align="center">
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>First Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Second Account Number</td>
|
||||
<td>Narration</td>
|
||||
<td>Transaction Status</td>
|
||||
<td>Transaction Ref No</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
for (int k = 0; k < alMocProcessingBean.size(); k++) {
|
||||
oMocProcessingBean = alMocProcessingBean.get(k);
|
||||
%>
|
||||
<tr class="tRow">
|
||||
|
||||
<td>
|
||||
<input type="text" readonly onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="accNo<%=k%>" id="accNo<%=k%>" value="<%=oMocProcessingBean.getAccNo()%>" /> </td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="txnAmt<%=k%>" id="txnAmt<%=k%>" value="<%=oMocProcessingBean.getTxnAmt()%>" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.keyCode == 46' />
|
||||
</td>
|
||||
<td>
|
||||
<select disabled style="width: 150px" name="txnInd<%=k%>" id="txnInd<%=k%>" >
|
||||
<option <%if (oMocProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {%>selected <%}%> value="CR">Credit</option>
|
||||
<option <%if (oMocProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {%>selected <%}%> value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="accNo<%=k%>" id="accNo<%=k%>" value="<%=oMocProcessingBean.getSec_acc_no()%>" />
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="txnNarrationTwo<%=k%>" id="txnNarrationTwo<%=k%>" value="<%=oMocProcessingBean.getNarration()%>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnStatus<%=k%>" id="txnStatus<%=k%>" value="<%=oMocProcessingBean.getTxnStatus()%>" /> </td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnRefNo<%=k%>" id="txnRefNo<%=k%>" value="<%=oMocProcessingBean.getTxnRefNo()%>" /> </td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td><input type="button" value="Execute" onclick="javascript:executeform(PLForm)"></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<%}%>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="" />
|
||||
<input type="hidden" name="searched" id="searched" />
|
||||
<input type="hidden" name="searchedTwo" id="searchedTwo" />
|
||||
</form>
|
||||
|
||||
<br><br>
|
||||
|
||||
<script type="text/javascript">
|
||||
var x=1;
|
||||
$("#addRow").click(function () {
|
||||
if(!validate()){
|
||||
alert('Please fillup one row at a time');
|
||||
} else {
|
||||
document.getElementById("searched").value="0";
|
||||
document.getElementById("searchedTwo").value="0";
|
||||
x=x+1;
|
||||
$("#all_rowsAdded").val(x);
|
||||
var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#PLData tr:last').after('<tr class="tRow"> <td><input type="checkbox" name="chckbox' + x + '" id="chckbox' + x + '" onclick="checkboxTrue(' + x + ');" /></td> <td> <input type="text" style="width: 130px;text-align:left;" name="accNo' + x + '" id="accNo' + x + '"/> <input type="button" style="width: 70px" name="search' + x + '" id="search' + x + '" value="Search" onclick="javascript:SearchAccount(550,240,' + x + ');" /></td> <td> <input type="text" name="txnAmt' + x + '" id="txnAmt' + x + '" style="text-align:left;" onkeypress="return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46" /> </td> <td> <select style="width: 150px" name="txnInd' + x + '" id="txnInd' + x + '" > <option value="CR" selected>Credit</option> <option value="DR">Debit</option> </select> </td> <td><input type="text" style="width: 130px;text-align:left;" name="secAccNo' + x + '" id="secAccNo' + x + '" onkeyup="textChangedTwo()"/><input type="button" style="width: 70px" name="searchsecAccNo' + x + '" id="searchsecAccNo' + x + '" value="Search" onclick="javascript:SearchSecondAccount(550,240,' + x + ');" /></td> <td> <input type="text" name="txnNarration' + x + '" id="txnNarration' + x + '"/> </td></tr>');
|
||||
|
||||
$("#rowCounter").val(counter);
|
||||
counter = $("#rowCounterDeleteCreate").val();
|
||||
counter++;
|
||||
$("#rowCounterDeleteCreate").val(counter);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$( "#deleteRow" ).click(function() {
|
||||
|
||||
var len = ($("#PLData tr").length)-1;
|
||||
var counter = $("#rowCounterDeleteCreate").val();
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var counterDelete=counter-chkboxCounter;
|
||||
if (counterDelete==0){
|
||||
alert("All rows cannot be deleted.");
|
||||
}
|
||||
else{
|
||||
if (len == 0) {
|
||||
alert("All rows can not be deleted.");
|
||||
return false;
|
||||
}
|
||||
var rowCounter = $("#rowCounter").val();
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
rowCounter--;
|
||||
$("#rowCounter").val(rowCounter);
|
||||
$("#rowCounterDeleteCreate").val(counterDelete);
|
||||
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
//calcAmt();
|
||||
//if(isNaN(document.getElementById("grandTotal").value)){
|
||||
// document.getElementById("grandTotal").value = 0;
|
||||
//}
|
||||
document.getElementById("searched").value="1";
|
||||
document.getElementById("searchedTwo").value="1";
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function resetRow(i) {
|
||||
document.getElementById("accNo"+i).value = "";
|
||||
document.getElementById("txnAmt"+i).value = "";
|
||||
document.getElementById("txnInd"+i).value = "CR";
|
||||
}
|
||||
|
||||
function calcAmt() {
|
||||
|
||||
var counter = $("#rowCounter").val();
|
||||
var crTotal = parseFloat(0);
|
||||
var drTotal = parseFloat(0);
|
||||
var total = parseFloat(0);
|
||||
//var i = 1;
|
||||
for(i=1;i<=counter;i++) {
|
||||
try {
|
||||
if(document.getElementById("txnInd"+i).value == "CR")
|
||||
crTotal = crTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
else if(document.getElementById("txnInd"+i).value == "DR")
|
||||
drTotal = drTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
|
||||
}
|
||||
catch(err){
|
||||
total=0;
|
||||
}
|
||||
}
|
||||
if(isNaN(crTotal)){
|
||||
crTotal = parseFloat(0);
|
||||
}
|
||||
if(isNaN(drTotal)){
|
||||
drTotal = parseFloat(0);
|
||||
}
|
||||
total = crTotal - drTotal;
|
||||
document.getElementById("crTotal").value = crTotal;
|
||||
document.getElementById("drTotal").value = drTotal;
|
||||
document.getElementById("total").value = total;
|
||||
}
|
||||
|
||||
function roundOff() {
|
||||
var counter = $("#rowCounter").val();
|
||||
for(i=1;i<=counter;i++) {
|
||||
try {
|
||||
var amt = document.getElementById("txnAmt"+i).value;
|
||||
var num1 = parseFloat(amt);
|
||||
var cleanNum1 = num1.toFixed(2);
|
||||
|
||||
document.getElementById("txnAmt"+i).value=cleanNum1;
|
||||
}
|
||||
catch(err){
|
||||
amt=0;
|
||||
document.getElementById("txnAmt"+i).value=amt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
400
IPKS_Updated/web/web/web/Deposit/PrintPassbook.jsp
Normal file
400
IPKS_Updated/web/web/web/Deposit/PrintPassbook.jsp
Normal file
@@ -0,0 +1,400 @@
|
||||
<%--
|
||||
Document : PrintPassbook
|
||||
Created on : Jul 18, 2017, 1:49:12 PM
|
||||
Author : 594267
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<% out.flush(); %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Print Passbook</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<%--<style>
|
||||
#records{
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>--%>
|
||||
</head>
|
||||
<body onload="showPrint()">
|
||||
|
||||
<script type="text/javascript">
|
||||
function popup_Acc(width, height, acc, accType, accSubType) {
|
||||
if((document.getElementById("accSubType").value == '') && (document.getElementById("accType").value == "D")){
|
||||
alert("Select Account Sub-Type.");
|
||||
passbookPrint.accSubType.focus();
|
||||
return false;
|
||||
}
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "PrintPassbook.jsp";
|
||||
var lovKey="accSrch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?acc=' + acc + '&accType=' + accType+ '&accSubType=' + accSubType + '&screenName=' + screenName+'&lovKey='+lovKey, 'accSrch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function submitform(passbookPrint)
|
||||
{
|
||||
var v;
|
||||
if(checkDiv(passbookPrint)){
|
||||
if($('#printType').val() == "U")
|
||||
v="Click OK for print confirmation. Records cannot be printed again";
|
||||
if($('#printType').val() == "F")
|
||||
v="Please confirm printing of first page";
|
||||
|
||||
if(confirm(v)){
|
||||
document.forms[0].action = '/PacsApplication/PassbookServlet';
|
||||
document.forms[0].submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function sendFileToServer(temp)
|
||||
{
|
||||
if(temp==1)
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("PrinterSetup");
|
||||
formDownloadNormal.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
else if(temp==2)
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("SamplePassbook");
|
||||
formDownloadNormal.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/PrintPassbook.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function showPrint(){
|
||||
var printableContents = document.getElementById("records").value;
|
||||
if(printableContents == "" || printableContents == null){
|
||||
$('#records').hide();
|
||||
$('#print').hide();
|
||||
} else {
|
||||
$('#records').show();
|
||||
$('#print').show();
|
||||
}
|
||||
}
|
||||
|
||||
function printPB(){
|
||||
var printableContents = document.getElementById("records").value;
|
||||
var originalContents = document.body.innerHTML;
|
||||
|
||||
document.body.innerHTML = printableContents;
|
||||
|
||||
window.print();
|
||||
|
||||
document.body.innerHTML = originalContents;
|
||||
}
|
||||
|
||||
function printTextArea() {
|
||||
records = document.getElementById('records').value;
|
||||
if(records == ""){
|
||||
alert("No records to print");
|
||||
return false;
|
||||
}
|
||||
childWindow = window.open('','childWindow','location=yes, menubar=yes, toolbar=yes');
|
||||
childWindow.document.open();
|
||||
childWindow.document.write('<html><head><style>@page { size: auto; margin: 0mm; }</style></head><pre><body>');
|
||||
// childWindow.document.write(document.getElementById('records').value.replace(/\n/gi,'<br>'));
|
||||
childWindow.document.write('</body></pre></html>');
|
||||
childWindow.print();
|
||||
childWindow.document.close();
|
||||
childWindow.close();
|
||||
}
|
||||
|
||||
function checkDiv(passbookPrint)
|
||||
{
|
||||
if(document.getElementById("accType").value == ''){
|
||||
alert("Select Account Type.");
|
||||
passbookPrint.accType.focus();
|
||||
return false;
|
||||
}
|
||||
if((document.getElementById("accSubType").value == '') && (document.getElementById("accType").value == "D")){
|
||||
alert("Select Account Sub-Type.");
|
||||
passbookPrint.accSubType.focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("accNo").value == ''){
|
||||
alert("Account number cannot be blank.");
|
||||
passbookPrint.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("custno").value == ''){
|
||||
alert("Please search the account number to proceed");
|
||||
passbookPrint.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("printType").value == ''){
|
||||
alert("Select Print Type.");
|
||||
passbookPrint.printType.focus();
|
||||
return false;
|
||||
}
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/; //this checks whether field contains digits
|
||||
if (!re.test(passbookPrint.accNo.value))
|
||||
{
|
||||
alert("Account No. could only contain numbers");
|
||||
passbookPrint.accNo.focus();
|
||||
return false;
|
||||
}
|
||||
if(passbookPrint.printType.value == 'R'){
|
||||
if(passbookPrint.from_date.value == '' || passbookPrint.to_date.value == ''){
|
||||
alert("From Date and To Date cannot be blank for Re-print option");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
if(document.getElementById("accType").value == "K"){
|
||||
$('#subTp').hide();
|
||||
}
|
||||
if(document.getElementById("accType").value == "L"){
|
||||
$('#subTp').hide();
|
||||
}
|
||||
|
||||
$('select#printType').change(function () {
|
||||
$('#to_date').val('');
|
||||
$('#from_date').val('');
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'U':
|
||||
$('#showDate1').hide();
|
||||
$('#showDate2').hide();
|
||||
break;
|
||||
case 'R':
|
||||
$('#showDate1').show();
|
||||
$('#showDate2').show();
|
||||
break;
|
||||
default:
|
||||
$('#showDate1').hide();
|
||||
$('#showDate2').hide();
|
||||
}
|
||||
});
|
||||
$('select#accType').change(function () {
|
||||
$('#accSubType').val('');
|
||||
$('#accNo').val('');
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'D':
|
||||
$('#subTp').show();
|
||||
break;
|
||||
case 'K':
|
||||
$('#subTp').hide();
|
||||
break;
|
||||
case 'L':
|
||||
$('#subTp').hide();
|
||||
break;
|
||||
default:
|
||||
$('#subTp').show();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<% String userRole = (String) session.getAttribute("userRole");
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
|
||||
String addToPrinter = "";
|
||||
error = request.getAttribute("addToPrinter");
|
||||
if (error != null) {
|
||||
addToPrinter = error.toString();
|
||||
}
|
||||
|
||||
String reprint = "";
|
||||
error = request.getAttribute("reprint");
|
||||
if (error != null) {
|
||||
reprint = error.toString();
|
||||
}
|
||||
|
||||
String accNo = "";
|
||||
error = request.getAttribute("accNo");
|
||||
if (error != null) {
|
||||
accNo = error.toString();
|
||||
}
|
||||
|
||||
String accSubType = "";
|
||||
error = request.getAttribute("accSubType");
|
||||
if (error != null) {
|
||||
accSubType = error.toString();
|
||||
}
|
||||
|
||||
String printType = "";
|
||||
error = request.getAttribute("printType");
|
||||
if (error != null) {
|
||||
printType = error.toString();
|
||||
}
|
||||
|
||||
String accType = "";
|
||||
error = request.getAttribute("accType");
|
||||
if (error != null) {
|
||||
accType = error.toString();
|
||||
}
|
||||
|
||||
String from_date = "";
|
||||
error = request.getAttribute("from_date");
|
||||
if (error != null) {
|
||||
from_date = error.toString();
|
||||
}
|
||||
|
||||
String to_date = "";
|
||||
error = request.getAttribute("to_date");
|
||||
if (error != null) {
|
||||
to_date = error.toString();
|
||||
}
|
||||
|
||||
|
||||
String pageNo = "1";
|
||||
error = request.getAttribute("page");
|
||||
if (error != null) {
|
||||
pageNo = error.toString();
|
||||
}
|
||||
|
||||
int startrow = 0;
|
||||
error = request.getAttribute("startrow");
|
||||
if (error != null) {
|
||||
startrow = Integer.parseInt(error.toString());
|
||||
}
|
||||
|
||||
int endrow = 0;
|
||||
error = request.getAttribute("endrow");
|
||||
if (error != null) {
|
||||
endrow = Integer.parseInt(error.toString());
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Print Passbook</legend>
|
||||
<form name="passbookPrint" id="passbookPrint" action="" method="post">
|
||||
|
||||
<%
|
||||
if (reprint.equalsIgnoreCase("Y")) {
|
||||
%>
|
||||
<script>
|
||||
alert("Printing is not yet complete. Please reprint from here to complete");
|
||||
</script>
|
||||
<% }%>
|
||||
<%--<center><div class="info" id="errorMessage"><center>This Screen is Under TESTING. Please DONOT Print Passbook</center></div></center> --%>
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tr><td style="text-align:right;">Account Type<font color="red" >*</font>:</td><td></td>
|
||||
<td><select id="accType" name="accType" ><%if ((!userRole.equalsIgnoreCase(
|
||||
"201603000005020"))) {%>
|
||||
<option value="D" <%if (accType.equalsIgnoreCase("D")) {%> selected <%}%>>Deposit</option><%}%>
|
||||
<option value="K" <%if (accType.equalsIgnoreCase("K")) {%> selected <%}%>>KCC</option>
|
||||
<option value="L" <%if(accType.equalsIgnoreCase("L")){%> selected <%}%>>Loan</option></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="subTp"><td>Account Sub-Type:</td><td></td>
|
||||
<td><select id="accSubType" name="accSubType" onchange="javascript:$('#accNo').val('');$('#custno').val('');$('#accNo').prop('readonly', false);"><%if ((!userRole.equalsIgnoreCase(
|
||||
"201603000005020"))) {%>
|
||||
<option value="" selected>--Select--</option> <%}%><%{%>
|
||||
<option value="SB" <%if(accSubType.equalsIgnoreCase("SB")) {%>selected<%}%>>Savings</option> <%}%><%{%>
|
||||
<option value="RD" <%if(accSubType.equalsIgnoreCase("RD")) {%>selected<%}%>>Recurring</option><%}%><%{%>
|
||||
<option value="CR" <%if(accSubType.equalsIgnoreCase("CR")) {%>selected<%}%>>Current</option><%}%><%{%>
|
||||
<option value="SHG" <%if(accSubType.equalsIgnoreCase("SHG")) {%>selected<%}%>>SHG</option></select><%}%>
|
||||
</td></tr>
|
||||
<tr><td>Account Number<font color="red" >*</font>:</td><td></td><td><input type="text" maxlength="25" name="accNo" id="accNo" value="<%=accNo%>" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:popup_Acc(800, 180, document.passbookPrint.accNo.value,document.passbookPrint.accType.value,document.passbookPrint.accSubType.value);"/></td></tr>
|
||||
<tr><td style="text-align:right;">Print Type<font color="red" >*</font>:</td><td></td>
|
||||
<td><select id="printType" name="printType" ><%if ((!userRole.equalsIgnoreCase(
|
||||
"201603000005020"))) {%>
|
||||
<option value="U" <%if (printType.equalsIgnoreCase("U")) {%> selected <%}%>>Update Passbook</option><%}%>
|
||||
<option value="F" <%if (printType.equalsIgnoreCase("F")) {%> selected <%}%>>Print First Page</option> <%--<option value="R" <%if(printType.equalsIgnoreCase("Y")){%> selected <%}%>>Re-print</option> --%></select>
|
||||
</td></tr>
|
||||
<tr id="showDate1" style="display: none">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: bold;">From Date: </td><td></td><td><input type="text" style="text-align:center;" name="from_date" id="from_date" maxlength="11" resize="yes" readonly="true" value="<%=from_date%>"> <a href="#" onclick="return getCalendar(document.forms[0].from_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td></tr><tr id="showDate2" style="display: none">
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: bold;">To Date: </td><td></td><td><input type="text" style="text-align:center;" name="to_date" id="to_date" maxlength="11" resize="yes" readonly="true" value="<%=to_date%>"> <a href="#" onclick="return getCalendar(document.forms[0].to_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<input type="button" value="Get Details" id="Submit" onclick="javascript:submitform(passbookPrint)"/><input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
<br><br>
|
||||
<textarea id="records" name="records" cols="125" rows="12" readonly="true"><%=addToPrinter%></textarea>
|
||||
|
||||
<br><br>
|
||||
<input type="button" value="Print" id="print" onclick="javascript:printTextArea()"/>
|
||||
<input type="hidden" id="custno" name="custno" value=""/>
|
||||
<input type="hidden" id="reprint" name="reprint" value="<%=reprint%>"/>
|
||||
<input type="hidden" id="startrow" name="startrow" value="<%=startrow%>"/>
|
||||
<input type="hidden" id="endrow" name="endrow" value="<%=endrow%>"/>
|
||||
<input type="hidden" id="page" name="page" value="<%=pageNo%>"/>
|
||||
|
||||
</center>
|
||||
</form>
|
||||
|
||||
<br><hr><br>
|
||||
<form name="PrinterSetup" id="PrinterSetup" action="" method="post" >
|
||||
<input type="hidden" id="actionId" value="PSetup" name="actionTag">
|
||||
<input type="button" value="Download Printer Setup Document" id ="PrinterSetup" name="FileType" onclick="sendFileToServer(1)" style="float: right"/>
|
||||
</form>
|
||||
<form name="SamplePassbook" id="SamplePassbook" action="" method="post" >
|
||||
<input type="hidden" id="actionId" value="SPassbook" name="actionTag">
|
||||
<input type="button" value="Download Sample Passbook File" id ="SamplePassbook" name="FileType" onclick="sendFileToServer(2)" style="float: right"/>
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
1617
IPKS_Updated/web/web/web/Deposit/ProductCreation.jsp
Normal file
1617
IPKS_Updated/web/web/web/Deposit/ProductCreation.jsp
Normal file
File diff suppressed because it is too large
Load Diff
1302
IPKS_Updated/web/web/web/Deposit/RDOperation.jsp
Normal file
1302
IPKS_Updated/web/web/web/Deposit/RDOperation.jsp
Normal file
File diff suppressed because it is too large
Load Diff
142
IPKS_Updated/web/web/web/Deposit/ResetPassword.jsp
Normal file
142
IPKS_Updated/web/web/web/Deposit/ResetPassword.jsp
Normal file
@@ -0,0 +1,142 @@
|
||||
<%--
|
||||
Document : ResetPassword
|
||||
Created on : Jun 19, 2018, 5:18:08 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Reset Password</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("error");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();%>
|
||||
|
||||
<% }
|
||||
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/ResetPassword.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function submitform()
|
||||
{
|
||||
if (document.getElementById("userId").value=="") {
|
||||
alert('User Id cannot be blank.');
|
||||
document.getElementById("userId").focus();
|
||||
return false;
|
||||
}
|
||||
document.ResetPassword.action = '/PacsApplication/resetPasswordServlet';
|
||||
document.ResetPassword.submit();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body >
|
||||
<%
|
||||
String ModuleName = new String();
|
||||
|
||||
ModuleName = (String) session.getAttribute("moduleName");
|
||||
String role = (String) session.getAttribute("userRole");
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
|
||||
%>
|
||||
<% if (ModuleName.equalsIgnoreCase("KCC")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("pds")) {%>
|
||||
<jsp:include page="/Pds_JSP/MenuHead_PDS.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("trading")) {%>
|
||||
<jsp:include page="/Trading_JSP/MenuHead_TRADING.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("asset")) {%>
|
||||
<jsp:include page="/Asset_JSP/MenuHead_ASSET.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("governance")) {%>
|
||||
<jsp:include page="/GPS_JSP/MenuHead_GPS.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("dashboard")) {%>
|
||||
<jsp:include page="MenuHead_DASHBOARD.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("shg")) {%>
|
||||
<jsp:include page="/Shg_JSP/MenuHead_SHG.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Deposit")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("Loan")) {%>
|
||||
<jsp:include page="/Loan/MenuHead_Loan.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("eod")) {%>
|
||||
<jsp:include page="MenuHead_EOD.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("dds")) {%>
|
||||
<jsp:include page="/DDS/MenuHead_DDS.jsp" flush="true" />
|
||||
<%} else if (ModuleName.equalsIgnoreCase("share")) {%>
|
||||
<jsp:include page="/Share_Module/MenuHead_Share.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("Special")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialKcc")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialBoth")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialBothKcc")) {%>
|
||||
<jsp:include page="/MenuHead.jsp" flush="true" />
|
||||
<%}else if (ModuleName.equalsIgnoreCase("SpecialBothDep")) {%>
|
||||
<jsp:include page="/Deposit/MenuHead_Deposit.jsp" flush="true" />
|
||||
<%}%>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<div id="resetLoginId" style="display:block;">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Reset To Default Password</legend>
|
||||
|
||||
<div><p><font face="Trebuchet MS" color="Green" size="5">Use this feature to reset password of the user.</font></p></div>
|
||||
<br>
|
||||
<form name="ResetPassword" id="ResetPassword" method="post" action="">
|
||||
<table border="0" cellspacing="1" cellpadding="2">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td align="left">User Id:</td>
|
||||
<td align="left"><input type="text" name="userId" id="userId" placeholder="Enter User Id"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right">
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform();" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br> <font color="Blue" ><b><%= error_msg%> </b></font><br>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
110
IPKS_Updated/web/web/web/Deposit/ReverseTransaction.jsp
Normal file
110
IPKS_Updated/web/web/web/Deposit/ReverseTransaction.jsp
Normal file
@@ -0,0 +1,110 @@
|
||||
<%--
|
||||
Document : ReverseTransaction
|
||||
Created on : Nov 29, 2016, 1:16:44 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Reverse Transaction</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function submitJrnl(txnReversal){
|
||||
|
||||
if (checkDiv(txnReversal))
|
||||
{
|
||||
var answer = confirm("Transaction will be reversed. Do you want to continue? ");
|
||||
if(answer){
|
||||
document.txnReversal.action = '/PacsApplication/DepositTxnReversalServlet';
|
||||
document.txnReversal.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
function checkDiv(txnReversal){
|
||||
if(txnReversal.jrnlNo.value=="")
|
||||
{
|
||||
alert("Please enter Journal No. !!");
|
||||
txnReversal.jrnlNo.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
</script>
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("errorMessage");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">TRANSACTION REVERSAL</legend>
|
||||
<form action="" method="post" name="txnReversal">
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<div id="create" align="center">
|
||||
<table class="numberOnly">
|
||||
<tr>
|
||||
<td>Enter Reference No :
|
||||
<input type="text" name="jrnlNo" id="jrnlNo" style="width: 200px" /></td>
|
||||
|
||||
<td><input type="button" value="Submit" onclick="javascript:submitJrnl(txnReversal)"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
//make all inputs whole numbers only
|
||||
$('table.numbersOnly').on('keydown','#jrnlNo', function(event) {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
501
IPKS_Updated/web/web/web/Deposit/SBRateSlab.jsp
Normal file
501
IPKS_Updated/web/web/web/Deposit/SBRateSlab.jsp
Normal file
@@ -0,0 +1,501 @@
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="DataEntryBean.DepositRateSlabBean"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>SB Rate Slab</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<script>
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
if($('#displayFlag').val() != "Y"){
|
||||
$('select#checkOption').change();
|
||||
}
|
||||
}
|
||||
function selectproduct(width, height, pCode, iCat) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "DepositRateSlab.jsp";
|
||||
var lovKey="PickUPProduct";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?pCode=' + pCode + '&iCat=' + iCat + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPProduct', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
function selectproductAmend(width, height, pCode, iCat) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "SBRateSlab.jsp";
|
||||
var lovKey="PickUPProductAmend";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?pCode=' + pCode + '&iCat=' + iCat + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPProduct', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
function selectproductAmend2(width, height, pCode, iCat) {
|
||||
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "SBRateSlab.jsp";
|
||||
var lovKey="PickUPProductAmend2";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?pCode=' + pCode + '&iCat=' + iCat + '&screenName=' + screenName+'&lovKey='+lovKey, 'PickUPProductAmend2', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="noBack()">
|
||||
<% int count = 1;
|
||||
int count3 = 1;
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String displayFlag = "";
|
||||
Object display = request.getAttribute("displayFlag");
|
||||
if (display != null) {
|
||||
displayFlag = display.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
Object oDepositRateSlabBeanObj = request.getAttribute("oDepositRateSlabBean");
|
||||
DepositRateSlabBean oDepositRateSlabBeanHeader = new DepositRateSlabBean();
|
||||
if (oDepositRateSlabBeanObj != null) {
|
||||
oDepositRateSlabBeanHeader = (DepositRateSlabBean) request.getAttribute("oDepositRateSlabBean");
|
||||
}
|
||||
|
||||
Object alDepositRateSlabBeanObj = request.getAttribute("alDepositRateSlabBean");
|
||||
ArrayList<DepositRateSlabBean> alDepositRateSlabBean = new ArrayList<DepositRateSlabBean>();
|
||||
DepositRateSlabBean oDepositRateSlabBean = new DepositRateSlabBean();
|
||||
if (alDepositRateSlabBeanObj != null) {
|
||||
alDepositRateSlabBean = (ArrayList<DepositRateSlabBean>) request.getAttribute("alDepositRateSlabBean");
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">SB Rate Slab</legend>
|
||||
|
||||
<form name="sbRateSlabForm" method="post" action="">
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<center style='display:none;'><h3><label style=" font-family: Berlin Sans FB; font-weight: normal;">Operation Selection:</label>
|
||||
<select id="checkOption" name="checkOption" >
|
||||
<%--<option value="" disabled selected style="display:none;" > --Select-- </option>--%>
|
||||
<%--<option value="create" >Create</option>--%>
|
||||
<option value="amend" >Amend</option>
|
||||
|
||||
</select>
|
||||
</h3></center>
|
||||
|
||||
<center>
|
||||
<div id="amend">
|
||||
<center>
|
||||
<input type="button" value="Fetch Product Parameters" onclick="javascript:submitformSearch()" />
|
||||
</center>
|
||||
|
||||
</div>
|
||||
</center>
|
||||
<br><br>
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
|
||||
<div id="amend2" style="width:930px;overflow: scroll;">
|
||||
|
||||
<center>
|
||||
<table class="checkEvents" id="order-list" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator" >
|
||||
<tr>
|
||||
<td>Product Code</td>
|
||||
<td>Product Description</td>
|
||||
<td>Int Category</td>
|
||||
<td>Int Category Description</td>
|
||||
<td>Interest Rate(%)</td>
|
||||
<td>Int Cap Freq</td>
|
||||
<td>Threshold Balance</td>
|
||||
<td>Threshold Intt Rate</td>
|
||||
<td>Minimum Bal</td>
|
||||
<td>Maximum Bal</td>
|
||||
<td>Minimum Withdrawal</td>
|
||||
<td>Maximum Withdrawal</td>
|
||||
<td>Debit Allow Flag</td>
|
||||
<td>Dormancy</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<%
|
||||
oDepositRateSlabBean = new DepositRateSlabBean();
|
||||
count3 = 0;
|
||||
|
||||
for (int i = 0; i < alDepositRateSlabBean.size(); i++) {
|
||||
oDepositRateSlabBean = alDepositRateSlabBean.get(i);
|
||||
|
||||
count3++;
|
||||
%>
|
||||
<tr>
|
||||
<td><input type="text" style="border:none;" readonly name="prodCode<%=count3%>" id="prodCode<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getProdCode())%>"/></td>
|
||||
<td><input type="text" style="border:none;" readonly name="prodDesc<%=count3%>" id="prodDesc<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getProdDesc())%>"/></td>
|
||||
<td><input type="text" style="border:none;" readonly name="inttCat<%=count3%>" id="inttCat<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getInttCat())%>"/></td>
|
||||
<td><input type="text" style="border:none;" readonly size="25" name="inttCatDesc<%=count3%>" id="inttCatDesc<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getInttCatDesc())%>"/></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="inttRateAmend<%=count3%>" id="inttRateAmend<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getInttRate())%>"/></td>
|
||||
<td>
|
||||
<select style="width: 150px" name="inttCapFreq<%=count3%>" id="inttCapFreq<%=count3%>" >
|
||||
<option <%if (oDepositRateSlabBean.getInttCapFreq().equalsIgnoreCase("Y")) {%>selected <%}%> value="Y">Yearly</option>
|
||||
<option <%if (oDepositRateSlabBean.getInttCapFreq().equalsIgnoreCase("H")) {%>selected <%}%> value="H">Half-Yearly</option>
|
||||
<option <%if (oDepositRateSlabBean.getInttCapFreq().equalsIgnoreCase("Q")) {%>selected <%}%> value="Q">Quarterly</option>
|
||||
<option <%if (oDepositRateSlabBean.getInttCapFreq().equalsIgnoreCase("M")) {%>selected <%}%> value="M">Monthly</option>
|
||||
<option <%if (oDepositRateSlabBean.getInttCapFreq().equalsIgnoreCase("O")) {%>selected <%}%> value="O">On-Closure</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="thresholdBal<%=count3%>" id="thresholdBal<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getThresholdBal())%>"/></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="thresholdInttRate<%=count3%>" id="thresholdInttRate<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getThresholdInttRate())%>"/></td>
|
||||
<td><input type="text" style="border:none;" name="minBal<%=count3%>" id="minBal<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getMinBal())%>" onkeypress='return event.charCode >= 45 && event.charCode <= 57 && event.charCode != 47'/></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="maxBal<%=count3%>" id="maxBal<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getMaxBal())%>"/></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="minWithdraw<%=count3%>" id="minWithdraw<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getMinWithdraw())%>"/></td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="maxWithdraw<%=count3%>" id="maxWithdraw<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getMaxWithdraw())%>"/></td>
|
||||
<td>
|
||||
<select style="width: 150px" name="drTxnFlag<%=count3%>" id="drTxnFlag<%=count3%>" >
|
||||
<option <%if (oDepositRateSlabBean.getDrTxnFlag().equalsIgnoreCase("Y")) {%>selected <%}%> value="Y">Yes</option>
|
||||
<option <%if (oDepositRateSlabBean.getDrTxnFlag().equalsIgnoreCase("N")) {%>selected <%}%> value="N">No</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="text" style="border:none;" class="numeric" name="dormancy<%=count3%>" id="dormancy<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getDormancy())%>"/></td>
|
||||
<td><input type="hidden" name="dep_product_id<%=count3%>" id="dep_product_id<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getDep_product_id())%>"/></td>
|
||||
<td style="display:none"><input type="hidden" name="slabTable_id<%=count3%>" id="slabTable_id<%=count3%>" value="<%=blankNull(oDepositRateSlabBean.getSlabTable_id())%>"/></td>
|
||||
<td style="display:none"><input type="hidden" name="rowStatus<%=count3%>" id="rowStatus<%=count3%>" value="A"/></td>
|
||||
</tr>
|
||||
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</center>
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
<br>
|
||||
<br>
|
||||
<%if (displayFlag.equalsIgnoreCase("Y")) {%>
|
||||
<center>
|
||||
<div>
|
||||
<input type="button" value="Update" id="Update" onclick="javascript:submitformAmend(sbRateSlabForm)">
|
||||
<input type="button" value="Reset" onclick="ShowParent();" />
|
||||
</div>
|
||||
</center>
|
||||
<%}%>
|
||||
<input type="hidden" name="handle_id" value="" />
|
||||
<input type="hidden" id="displayFlag" name="displayFlag" value="<%=displayFlag%>"/>
|
||||
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounterDelete" id="rowCounterDelete" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounterAmend" id="rowCounterAmend" value="<%=count3%>">
|
||||
<input type="hidden" name="rowCounterDeleteAmend" id="rowCounterDeleteAmend" value="<%=count3%>">
|
||||
<input type="hidden" name="deletedRows" id="deletedRows" value=""/>
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
<input type="hidden" name="chkboxCounterAmend" id="chkboxCounterAmend" value="0"/>
|
||||
<input type="hidden" name="add" id="add" value="0"/>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
|
||||
function checkboxTrue(i){
|
||||
if(document.getElementById("chckbox"+i).checked==true){
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
|
||||
else{
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function checkboxTrueAmend(i){
|
||||
if(document.getElementById("chckboxAmend"+i).checked==true){
|
||||
var counter = $("#chkboxCounterAmend").val();
|
||||
counter++;
|
||||
$("#chkboxCounterAmend").val(counter);
|
||||
}
|
||||
else{
|
||||
var counter = $("#chkboxCounterAmend").val();
|
||||
counter--;
|
||||
$("#chkboxCounterAmend").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
$("#addRow").click(function () {
|
||||
//var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#order-list tr:last').after('<tr> <td><input type="checkbox" name="chckbox' + counter + '" id="chckbox' + counter + '" onclick="checkboxTrue(' + counter + ');" /></td><td><input type="text" size="13" style="border:none;" name="inttRate' + counter + '" id="inttRate' + counter + '"/></td><td><input type="text" style="border:none;" name="termFrom' + counter + '" id="termFrom' + counter + '" class="noDot" /></td><td><input type="text" style="border:none;" name="termTo' + counter + '" id="termTo' + counter + '" class="noDot" /></td><td><input type="text" style="border:none;" class="numeric" name="amountFrom' + counter + '" id="amountFrom' + counter + '"/></td><td><input type="text" style="border:none;" class="numeric" name="amountTo' + counter + '" id="amountTo' + counter + '"/></td> </tr>');
|
||||
$("#rowCounter").val(counter);
|
||||
$("#rowCounterDelete").val(counter);
|
||||
|
||||
});
|
||||
$("#deleteRow").click(function () {
|
||||
var len = ($("#order-list tr").length)-1;
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var rowcount = $("#rowCounterDelete").val();
|
||||
var counterDelete = rowcount-chkboxCounter;
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if (len ==chkboxCounter) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
$("#rowCounterDelete").val( $("#rowCounter").val());
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
}
|
||||
});
|
||||
|
||||
$("#addRowAmend").click(function () {
|
||||
// var counter = $("#rowCounterAmend").val();
|
||||
counter++;
|
||||
$('#order-listAmend tr:last').after('<tr> <td><input type="checkbox" name="chckboxAmend' + counter + '" id="chckboxAmend' + counter + '" onclick="checkboxTrueAmend(' + counter + ');" /></td>\n\
|
||||
<td><input type="text" size="13" style="border:none;" name="inttRateAmend' + counter + '" id="inttRateAmend' + counter + '" class="numeric"/></td>\n\
|
||||
<td><input type="text" style="border:none;" name="termFromAmend' + counter + '" id="termFromAmend' + counter + '" class="noDot"/></td>\n\
|
||||
<td><input type="text" style="border:none;" name="termToAmend' + counter + '" id="termToAmend' + counter + '" class="noDot" /></td>\n\
|
||||
<td><input type="text" style="border:none;" name="amountFromAmend' + counter + '" id="amountFromAmend' + counter + '" class="numeric"/></td>\n\
|
||||
<td><input type="text" style="border:none;" name="amountToAmend' + counter + '" id="amountToAmend' + counter + '" class="numeric"/></td>\n\
|
||||
<td style="display:none"><input type="text" name="dep_product_idAmend' + counter + '" id="dep_product_idAmend' + counter + '" /></td>\n\
|
||||
<td style="display:none"><input type="text" name="slabTable_id' + counter + '" id="slabTable_id' + counter + '"/></td>\n\
|
||||
<td style="display:none"><input type="hidden" name="rowStatus' + counter + '" id="rowStatus' + counter + '" value="N"/></td>\n\
|
||||
</tr>');
|
||||
$("#rowCounterAmend").val(counter);
|
||||
$("#rowCounterDeleteAmend").val(counter);
|
||||
});
|
||||
|
||||
|
||||
$("#deleteRowAmend").click(function () {
|
||||
var len = ($("#order-listAmend tr").length)-1;
|
||||
var chkboxCounter=$("#chkboxCounterAmend").val();
|
||||
var rowcount = $("#rowCounterDeleteAmend").val();
|
||||
var counterDelete = rowcount-chkboxCounter;
|
||||
if (counterDelete == 0) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
if (len ==chkboxCounter) {
|
||||
alert("All rows can not be deleted");
|
||||
return false;
|
||||
}
|
||||
|
||||
var selchbox = [];
|
||||
selchbox= getSelectedChbox(sbRateSlabForm);
|
||||
$("#deletedRows").val(selchbox);
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
$("#rowCounterDeleteAmend").val( $("#rowCounterAmend").val());
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounterAmend").val(chkboxCounter);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function getSelectedChbox(sbRateSlabForm) {
|
||||
var selchbox = [];
|
||||
var inpfields = sbRateSlabForm.getElementsByTagName('input');
|
||||
var nr_inpfields = inpfields.length;
|
||||
for(var i=0; i<nr_inpfields; i++) {
|
||||
if(inpfields[i].type == 'checkbox' && inpfields[i].checked == true){
|
||||
if (inpfields[i].value!=null || inpfields[i].value!="" ){
|
||||
selchbox.push(inpfields[i].value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return selchbox;
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/SBRateSlab.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function submitformSearch(sbRateSlabForm)
|
||||
{
|
||||
document.forms[0].handle_id.value = "Search";
|
||||
document.forms[0].action = '/PacsApplication/SBRateSlabServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
function submitformAmend(sbRateSlabForm)
|
||||
{
|
||||
if (checkDivAmend(sbRateSlabForm))
|
||||
{
|
||||
document.forms[0].handle_id.value = "Update";
|
||||
document.forms[0].action = '/PacsApplication/SBRateSlabServlet';
|
||||
sbRateSlabForm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function checkDivAmend(sbRateSlabForm)
|
||||
{
|
||||
var counter = document.forms[0].rowCounterAmend.value;
|
||||
try{
|
||||
for (var i = 1; i <= counter; i++) {
|
||||
var inttRateAmend = document.getElementById("inttRateAmend" + i).value;
|
||||
var thresholdBal = document.getElementById("thresholdBal" + i).value;
|
||||
var thresholdInttRate = document.getElementById("thresholdInttRate" + i).value;
|
||||
var minBal = document.getElementById("minBal" + i).value;
|
||||
var maxBal = document.getElementById("maxBal" + i).value;
|
||||
var minWithdraw = document.getElementById("minWithdraw" + i).value;
|
||||
var maxWithdraw = document.getElementById("maxWithdraw" + i).value;
|
||||
var dormancy = document.getElementById("dormancy" + i).value;
|
||||
|
||||
//alert("Rate"+inttRateAmend);
|
||||
|
||||
if ( inttRateAmend.indexOf('%') == -1 )
|
||||
{
|
||||
if (inttRateAmend == "" || thresholdBal == "" || thresholdInttRate == "" || minBal == "" || maxBal =="" || minWithdraw == "" || maxWithdraw == "" || dormancy =="") {
|
||||
alert("All Fields are mandatory.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Please do not enter % in Interest Rate.");
|
||||
document.getElementById("inttRateAmend").focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}catch(e){
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$('.checkEvents').on('keydown',':input.numeric[type="text"]', function() {
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46 || event.keyCode == 190) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if($(this).val().indexOf('.') !== -1 && event.keyCode == 190)
|
||||
{ event.preventDefault();}
|
||||
|
||||
});
|
||||
|
||||
$('.checkEvents').on('keydown',':input.noDot[type="text"]', function(event) {
|
||||
|
||||
if (event.shiftKey == true) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39 ) {
|
||||
|
||||
} else {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if($(this).val().indexOf('.') !== -1 && event.keyCode == 190)
|
||||
{event.preventDefault();}
|
||||
});
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
273
IPKS_Updated/web/web/web/Deposit/StandingInstructionreport.jsp
Normal file
273
IPKS_Updated/web/web/web/Deposit/StandingInstructionreport.jsp
Normal file
@@ -0,0 +1,273 @@
|
||||
<%--
|
||||
Document : Trading_Report
|
||||
Created on : Jul 28, 2016, 9:18:24 PM
|
||||
Author : 986137
|
||||
--%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
var e = document.getElementById("reportSelection");
|
||||
|
||||
if (document.forms[0].from_date.value == "" && (e.options[e.selectedIndex].value == "1" || e.options[e.selectedIndex].value == "2"))
|
||||
{
|
||||
alert("!! From Date Cannot Be Empty !!");
|
||||
document.forms[0].txn_date.focus();
|
||||
return false;
|
||||
} if (document.forms[0].to_date.value == "" && (e.options[e.selectedIndex].value == "1" || e.options[e.selectedIndex].value == "2"))
|
||||
{
|
||||
alert("!! To Date Cannot Be Empty !!");
|
||||
document.forms[0].txn_date.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (e.options[e.selectedIndex].value == "")
|
||||
{
|
||||
alert("!! Report Name Cannot Be Empty !!");
|
||||
document.forms[0].reportSelection.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (e.options[e.selectedIndex].value) {
|
||||
|
||||
case "1" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/SI TXN DETAILS";
|
||||
document.forms[0].reportName.value = "SI TRANSACTION DETAILS REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
default :
|
||||
|
||||
null;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<title>SI Report</title>
|
||||
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">SI REPORT</legend>
|
||||
|
||||
<form name="pacsreport" method="post" action="/PacsApplication/ExcelReportServlet">
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<%if (request.getAttribute("error") != null) {%>
|
||||
<tr><td colspan="2" align="right"><%=request.getAttribute("error").toString()%></td></tr>
|
||||
<%}%>
|
||||
|
||||
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">From Date: <input type="text" style="text-align:center;" name="from_date" maxlength="11" resize="yes" readonly="true"><a href="#" onclick="return getCalendar(document.forms[0].from_date);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">To Date: <input type="text" style="text-align:center;" name="to_date" maxlength="11" resize="yes" readonly="true"><a href="#" onclick="return getCalendar(document.forms[0].to_date);"><img src="${pageContext.request.contextPath}/img/calendar.gif" name="imgr" border="0" width="15" height="20" /></a></td>
|
||||
|
||||
<td></td>
|
||||
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name: </td>
|
||||
<td> <select id="reportSelection" name="reportSelection" >
|
||||
<option value="" disabled selected style="display:none;" >--Select--</option>
|
||||
<option value="1">SI Transaction Details Report</option>
|
||||
|
||||
|
||||
|
||||
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
<tr></tr>
|
||||
|
||||
<tr><td></td>
|
||||
<td></td>
|
||||
<td></td><td colspan="2" align="centre" style="text-align: right">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td></tr>
|
||||
</table><br><br><br><br>
|
||||
<center>
|
||||
|
||||
|
||||
|
||||
<input type="button" value="FETCH REPORT" onclick="javascript:downloadFiles();">
|
||||
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
2078
IPKS_Updated/web/web/web/Deposit/TDOperation.jsp
Normal file
2078
IPKS_Updated/web/web/web/Deposit/TDOperation.jsp
Normal file
File diff suppressed because it is too large
Load Diff
224
IPKS_Updated/web/web/web/Deposit/TDRepayMethod.jsp
Normal file
224
IPKS_Updated/web/web/web/Deposit/TDRepayMethod.jsp
Normal file
@@ -0,0 +1,224 @@
|
||||
<%--
|
||||
Document : TDRepayMethod
|
||||
Created on : Aug 22, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>TD/RD Interest TRF Method </title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nsc{
|
||||
position: right;
|
||||
top:510;
|
||||
right: 425;
|
||||
left: 750;
|
||||
bottom:376;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/TDRepayMethod.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_DepositAccLOV(width, height, depAccount) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "TDRepayMethod.jsp";
|
||||
var lovKey="TDAccLOV"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?depAccount=' + depAccount + '&screenName=' + screenName+'&lovKey='+lovKey, 'TDAccLOV', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function popup_TransferAccLOV(width,height,customer,trfAccount){
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "TDRepayMethod.jsp";
|
||||
var lovKey="TransferAccLOV";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?customer=' + customer + '&trfAccount=' + trfAccount + '&screenName=' + screenName+'&lovKey='+lovKey, 'TransferAccLOV', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
function submitform(TDRepayMethodForm)
|
||||
{
|
||||
if (checkDiv(TDRepayMethodForm))
|
||||
{
|
||||
|
||||
document.TDRepayMethodForm.action = '/PacsApplication/TDRepayMethodServlet';
|
||||
document.TDRepayMethodForm.submit();
|
||||
}
|
||||
}
|
||||
function checkDiv(TDRepayMethodForm)
|
||||
{
|
||||
if (TDRepayMethodForm.depAccount.value == "")
|
||||
{
|
||||
alert("TD Account cannot be null.");
|
||||
TDRepayMethodForm.depAccount.focus();
|
||||
return false;
|
||||
}
|
||||
if (TDRepayMethodForm.methodType.value == "")
|
||||
{
|
||||
alert("Interest Transfer Account cannot be null.");
|
||||
TDRepayMethodForm.methodType.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#methodType').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'F':
|
||||
$('#trfacc').hide();
|
||||
document.getElementById("trfAccount").disabled = true;
|
||||
break;
|
||||
|
||||
case 'R':
|
||||
$('#trfacc').hide();
|
||||
document.getElementById("trfAccount").disabled = true;
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#trfacc').show();
|
||||
document.getElementById("trfAccount").disabled = false;
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">TD/RD Interest TRF Method Change</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="TDRepayMethodForm" id="TDRepayMethodForm" action="" method="post">
|
||||
<div align="left">
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Account Number<font color="red" >*</font>: </td>
|
||||
<td><input type="text" size="20" name="depAccount" id="depAccount" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" value="Search" onclick="javascript:popup_DepositAccLOV(500,300,$('#depAccount').val());" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Customer Number<font color="red" >*</font>: </td>
|
||||
<td><input type="text" size="20" name="customer" id="customer" readOnly /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td><lable>Select New Interest TD TRF Method<font color="red" >*</font>:</lable></td>
|
||||
<td> <select id="methodType" name="methodType" >
|
||||
<option value="" selected > --Select-- </option>
|
||||
<option value="T" >Transfer Mode</option>
|
||||
<option value="TR" >Transfer And Renew Mode</option>
|
||||
<option value="R" >Auto-Renew Mode</option>
|
||||
<option value="F" >Freeze Mode</option>
|
||||
</select></td>
|
||||
</tr><td><td>
|
||||
|
||||
<tr id="trfacc" >
|
||||
<td>Interest Transfer Account: </td>
|
||||
<td><input type="text" size="20" name="trfAccount" id="trfAccount" value="" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
|
||||
<input type="button" value="Search" onclick="javascript:popup_TransferAccLOV(500,300,$('#customer').val(),$('#trfAccount').val());" /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform(TDRepayMethodForm);" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();"</center>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
226
IPKS_Updated/web/web/web/Deposit/UpdatePacsDetails.jsp
Normal file
226
IPKS_Updated/web/web/web/Deposit/UpdatePacsDetails.jsp
Normal file
@@ -0,0 +1,226 @@
|
||||
<%--
|
||||
Document : UpdatePacsDetails
|
||||
Created on : Oct 21, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Update PACS Details</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#nsc{
|
||||
position: right;
|
||||
top:510;
|
||||
right: 425;
|
||||
left: 750;
|
||||
bottom:376;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/UpdatePacsDetails.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_pacsDetails(width, height) {
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "UpdatePacsDetails.jsp";
|
||||
var lovKey="pacsD"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?screenName=' + screenName+'&lovKey='+lovKey, 'pacsD', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function submitform(PacsDetForm)
|
||||
{
|
||||
if (checkDiv(PacsDetForm))
|
||||
{
|
||||
|
||||
document.PacsDetForm.action = '/PacsApplication/UpdatePacsDetailsServlet';
|
||||
document.PacsDetForm.submit();
|
||||
}
|
||||
}
|
||||
function checkDiv(PacsDetForm)
|
||||
{
|
||||
if (PacsDetForm.pacsName.value == "")
|
||||
{
|
||||
alert("Pacs Name cannot be null.");
|
||||
PacsDetForm.pacsName.focus();
|
||||
return false;
|
||||
}
|
||||
if (PacsDetForm.add1.value == "")
|
||||
{
|
||||
alert("Address1 cannot be null.");
|
||||
PacsDetForm.add1.focus();
|
||||
return false;
|
||||
}
|
||||
if (PacsDetForm.add2.value == "")
|
||||
{
|
||||
alert("Address2 cannot be null.");
|
||||
PacsDetForm.add2.focus();
|
||||
return false;
|
||||
}
|
||||
if (PacsDetForm.add3.value == "")
|
||||
{
|
||||
alert("Address3 cannot be null.");
|
||||
PacsDetForm.add3.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkSpclChar(e) {
|
||||
var k = e.keyCode;
|
||||
//return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || (k >= 48 && k <= 57));
|
||||
return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || k == 32 || (k >= 44 && k <= 57));
|
||||
|
||||
}
|
||||
|
||||
// added for copy paste prevention
|
||||
$(document).ready(function(){
|
||||
$('#pacsName').bind("cut copy paste",function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$('#add1').bind("cut copy paste",function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$('#add2').bind("cut copy paste",function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$('#add3').bind("cut copy paste",function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Update PACS Details</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="PacsDetForm" id="PacsDetForm" action="" method="post">
|
||||
<div align="center">
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr><tr><tr><tr><tr><tr>
|
||||
<tr><td></td>
|
||||
<td><input type="button" value="Get PACS Details" onclick="javascript:popup_pacsDetails(500,300);" /></td>
|
||||
</tr>
|
||||
<tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr>
|
||||
<tr>
|
||||
<td>PACS Name<font color="red" >*</font>: </td>
|
||||
<td><input type="text" readOnly maxlength="70" size="50" name="pacsName" id="pacsName" onkeypress="return checkSpclChar(event)" /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td>Address 1<font color="red" >*</font>: </td>
|
||||
<td><input type="text" maxlength="35" size="50" name="add1" id="add1" onkeypress="return checkSpclChar(event)" /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td>Address 2<font color="red" >*</font>: </td>
|
||||
<td><input type="text" maxlength=35" size="50" name="add2" id="add2" onkeypress="return checkSpclChar(event)" /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td>Address 3<font color="red" >*</font>: </td>
|
||||
<td><input type="text" maxlength="70" size="50" name="add3" id="add3" onkeypress="return checkSpclChar(event)" /></tr>
|
||||
<tr><tr><tr>
|
||||
<tr>
|
||||
<td>GSTIN Number:</td>
|
||||
<td><input type="text" name="gstin" id="gstin" value="" maxlength="20" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 90 && event.charCode != 64' /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br><br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform(PacsDetForm);" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();"</center>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
262
IPKS_Updated/web/web/web/Deposit/UserAmendment.jsp
Normal file
262
IPKS_Updated/web/web/web/Deposit/UserAmendment.jsp
Normal file
@@ -0,0 +1,262 @@
|
||||
<%--
|
||||
Document : UserAmendment
|
||||
Created on : Sep 13, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>User Amendment</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
document.getElementById("block1").style.display = "none";
|
||||
document.getElementById("block2").style.display = "none";
|
||||
document.getElementById("block3").style.display = "none";
|
||||
document.getElementById("block4").style.display = "none";
|
||||
document.getElementById("flag").style.display = "none";
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/UserAmendment.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_user(width, height, userId) {
|
||||
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "UserAmendment.jsp";
|
||||
var lovKey="UserSrch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?screenName=' + screenName+ '&userId='+userId +'&lovKey='+lovKey, 'UserSrch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
function submitform(){
|
||||
|
||||
if(validateForm()){
|
||||
document.UserAmendment.action = '/PacsApplication/UserAmendmentServlet';
|
||||
document.UserAmendment.submit();
|
||||
}
|
||||
}
|
||||
function validateForm()
|
||||
{
|
||||
if($('#opType').val() == "")
|
||||
{
|
||||
alert("Select any Operation first.");
|
||||
UserAmendment.opType.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#userName').val() == "")
|
||||
{
|
||||
alert("User Name cannot be blank.");
|
||||
UserAmendment.userName.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#ipFlag').val() == "")
|
||||
{
|
||||
alert("Please select IP Flag.");
|
||||
UserAmendment.ipFlag.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#ipFlag').val() == "Y")
|
||||
{
|
||||
if( ($('#staticIP').val() == "") || ($('#staticIP').val() == "NA") )
|
||||
{
|
||||
alert("Please enter valid Static IP.");
|
||||
UserAmendment.staticIP.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function checkop() {
|
||||
var opt = document.getElementById("opType").value;
|
||||
document.getElementById("userName").value = "";
|
||||
document.getElementById("userId").value = "";
|
||||
document.getElementById("ipFlag").value = "";
|
||||
document.getElementById("staticIP").value = "";
|
||||
|
||||
if( opt == "" ){
|
||||
document.getElementById("block1").style.display = "none";
|
||||
document.getElementById("block2").style.display = "none";
|
||||
document.getElementById("block3").style.display = "none";
|
||||
document.getElementById("block4").style.display = "none";
|
||||
document.getElementById("flag").style.display = "none";
|
||||
}
|
||||
else if( opt == "DELETE" || opt == "DETAG" ){
|
||||
document.getElementById("userName").readOnly = true;
|
||||
document.getElementById("block1").style.display = "block";
|
||||
document.getElementById("block2").style.display = "block";
|
||||
document.getElementById("block3").style.display = "block";
|
||||
document.getElementById("block4").style.display = "none";
|
||||
document.getElementById("flag").style.display = "none";
|
||||
}
|
||||
else{
|
||||
document.getElementById("userName").readOnly = false;
|
||||
document.getElementById("block1").style.display = "block";
|
||||
document.getElementById("block2").style.display = "block";
|
||||
document.getElementById("block3").style.display = "block";
|
||||
document.getElementById("block4").style.display = "block";
|
||||
document.getElementById("flag").style.display = "block";
|
||||
}
|
||||
}
|
||||
function checkopFlag() {
|
||||
var opt = document.getElementById("ipFlag").value;
|
||||
|
||||
if( opt == "" || opt == "N"){
|
||||
document.getElementById("flag").style.visibility = "hidden";
|
||||
document.getElementById("block2").style.visibility = "visible";
|
||||
document.getElementById("block3").style.visibility = "visible";
|
||||
document.getElementById("block4").style.visibility = "visible";
|
||||
}
|
||||
else if( opt == "Y" ){
|
||||
document.getElementById("flag").style.visibility = "visible";
|
||||
document.getElementById("block2").style.visibility = "visible";
|
||||
document.getElementById("block3").style.visibility = "visible";
|
||||
document.getElementById("block4").style.visibility = "visible";
|
||||
}
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message1");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">User Amendment</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="UserAmendment" id="UserAmendment" action="" method="post">
|
||||
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
|
||||
<center><lable>Operation Selection<font color="red" >*</font>: </lable>
|
||||
<select id="opType" onchange="checkop()" name="opType" >
|
||||
<option value="" > --Select-- </option>
|
||||
<option value="AMEND" >User Amendment</option>
|
||||
<option value="DELETE" >User Deactivation</option>
|
||||
<option value="DETAG" >Detag DDS Device</option>
|
||||
</select>
|
||||
|
||||
<div id="div1" >
|
||||
<table>
|
||||
<tr id="block1">
|
||||
<%--<td><input type="button" value="Search User" onclick="javascript:popup_user(500,300,UserAmendment.userId.value);" /></td>--%>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr id="block2">
|
||||
<td>User Name<font color="red" >*</font>:</td>
|
||||
<td><input type="text" size="30" name="userName" id="userName" Value="" /></td>
|
||||
<td> </td>
|
||||
<td><input type="button" value="Search User" onclick="javascript:popup_user(500,300,UserAmendment.userId.value);" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr id="block3">
|
||||
<td>User Id:</td>
|
||||
<td><input type="text" readonly size="20" name="userId" id="userId" Value="" style="text-align:right;" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr id="block4"><td><lable>Select IP Flag<font color="red" >*</font>: </lable></td>
|
||||
<td><select id="ipFlag" onchange="checkopFlag()" name="ipFlag" >
|
||||
<option value="" > --Select-- </option>
|
||||
<option value="Y" >Yes</option>
|
||||
<option value="N" >No</option>
|
||||
</select>
|
||||
</td></tr><tr></tr><tr></tr>
|
||||
<tr id="flag">
|
||||
<td>Static IP:</td>
|
||||
<td><input type="text" size="30" name="staticIP" id="staticIP" value="" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47' onclick="onChange()"/></td>
|
||||
</tr><tr></tr>
|
||||
<tr>
|
||||
<td><input type="text" hidden size="20" name="roleId" id="roleId" Value="" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform();" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
243
IPKS_Updated/web/web/web/Deposit/UserCreation.jsp
Normal file
243
IPKS_Updated/web/web/web/Deposit/UserCreation.jsp
Normal file
@@ -0,0 +1,243 @@
|
||||
<%--
|
||||
Document : UserCreation
|
||||
Created on : May 15, 2019, 6:00:55 PM
|
||||
Author : 1242938
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>User Creation</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<style>
|
||||
.beforeAccSrch {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="noBack()">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
document.getElementById("limitBody").style.visibility = 'hidden';
|
||||
document.getElementById("flag").style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/UserCreation.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
function popup_user(width, height)
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "UserCreation.jsp";
|
||||
var lovKey="UserSrch"
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInfoLOVNew.jsp?screenName=' + screenName+'&lovKey='+lovKey, 'UserSrch', attr);
|
||||
popWin.focus();
|
||||
|
||||
onChange();
|
||||
}
|
||||
function submitform()
|
||||
{
|
||||
if(validateForm()){
|
||||
document.UserCreation.action = '/PacsApplication/UserCreationServlet';
|
||||
document.UserCreation.submit();
|
||||
}
|
||||
}
|
||||
function validateForm()
|
||||
{
|
||||
if($('#userName').val() == "")
|
||||
{
|
||||
alert("User Name cannot be blank.");
|
||||
UserCreation.userName.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#userRole1').val() == "")
|
||||
{
|
||||
alert("User Role cannot be blank.");
|
||||
UserCreation.userRole1.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#userRole1').val() == "DDS TELLER")
|
||||
{
|
||||
onChange();
|
||||
if($('#limit').val() == "")
|
||||
{
|
||||
alert("DDS Limit cannot be blank.");
|
||||
UserCreation.limit.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if($('#ipFlag').val() == "")
|
||||
{
|
||||
alert("Please select IP Flag.");
|
||||
UserCreation.ipFlag.focus();
|
||||
return false;
|
||||
}
|
||||
if($('#ipFlag').val() == "Y")
|
||||
{
|
||||
if($('#staticIP').val() == "")
|
||||
{
|
||||
alert("Please enter Static IP.");
|
||||
UserCreation.staticIP.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
function onChange()
|
||||
{
|
||||
var userNm = document.getElementById("userRole1").value;
|
||||
|
||||
if( userNm == "DDS TELLER" ){
|
||||
document.getElementById("limitBody").style.visibility = 'visible';
|
||||
}
|
||||
else{
|
||||
document.getElementById("limitBody").style.visibility = 'hidden';
|
||||
}
|
||||
}
|
||||
function checkop() {
|
||||
var opt = document.getElementById("ipFlag").value;
|
||||
|
||||
if( opt == "" || opt == "N"){
|
||||
document.getElementById("flag").style.visibility = "hidden";
|
||||
document.getElementById("b1").style.visibility = "visible";
|
||||
document.getElementById("b1").style.visibility = "visible";
|
||||
}
|
||||
else if( opt == "Y" ){
|
||||
document.getElementById("flag").style.visibility = "visible";
|
||||
document.getElementById("b1").style.visibility = "visible";
|
||||
document.getElementById("b1").style.visibility = "visible";
|
||||
}
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message1");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">User Creation</legend>
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<form name="UserCreation" id="UserCreation" action="" method="post">
|
||||
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<%--<tr>
|
||||
<td><input type="button" value="Search User" onclick="javascript:popup_user(500,300);" onclick="onChange()" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr></tr><tr></tr><tr></tr>--%>
|
||||
<tr id="b1">
|
||||
<td>User Name<font color="red" >*</font>:</td>
|
||||
<td><input type="text" size="30" name="userName" id="userName" Value="" onclick="onChange()" onkeypress="onChange()" /></td>
|
||||
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr id="b2">
|
||||
<td>User Role<font color="red" >*</font>:</td>
|
||||
<td><input type="text" readonly size="20" name="userRole1" id="userRole1" value="" onclick="onChange()" onkeypress="onChange()" /></td>
|
||||
<td> </td>
|
||||
<td><input type="button" value="Search Role" onclick="javascript:popup_user(500,300);" onclick="onChange()" /></td>
|
||||
</tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr><td><lable>Select IP Flag<font color="red" >*</font>: </lable></td>
|
||||
<td><select id="ipFlag" onchange="checkop()" onclick="onChange()" name="ipFlag" >
|
||||
<option value="" > --Select-- </option>
|
||||
<option value="Y" >Yes</option>
|
||||
<option value="N" >No</option>
|
||||
</select>
|
||||
</td></tr><tr></tr><tr></tr>
|
||||
<tr id="flag">
|
||||
<td>Static IP<font color="red" >*</font>:</td>
|
||||
<td><input type="text" size="30" name="staticIP" id="staticIP" value="" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.charCode != 47' onclick="onChange()"/></td>
|
||||
</tr><tr></tr>
|
||||
<tr></tr><tr></tr><tr></tr>
|
||||
<tr id="limitBody">
|
||||
<td>DDS Limit:</td>
|
||||
<td><input type="text" size="20" name="limit" id="limit" value="" /></td>
|
||||
</tr><tr></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td><input type="hidden" name="userRole" id="userRole" Value="" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<center>
|
||||
<input type="button" value="Submit" id="Submit" onclick="submitform();" />
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
</form>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
409
IPKS_Updated/web/web/web/Deposit/authBulkIncr.jsp
Normal file
409
IPKS_Updated/web/web/web/Deposit/authBulkIncr.jsp
Normal file
@@ -0,0 +1,409 @@
|
||||
<%--
|
||||
Document : authBulkIncr
|
||||
Created on : Oct 26, 2018, 1:20:17 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.ChequeDetailsBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Auth Bulk Mark</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<style>
|
||||
|
||||
|
||||
|
||||
#recordsTable {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable td, #recordsTable th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#recordsTable2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable2 td, #recordsTable2 th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable2 tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable2 tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable2 th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<script>
|
||||
getAccountList();
|
||||
getExsAccountList();
|
||||
|
||||
function getAccountList() {
|
||||
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"allAccAuth"},
|
||||
type:'post',
|
||||
cache:false,
|
||||
// success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="accNo'+i+'">').text(item.rejectedQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.cashIn),
|
||||
$('<td>').text(item.cashOut),
|
||||
$('<td>').text(item.guardianName),
|
||||
$('<td>').text(item.idTypeTwo),
|
||||
$('<td>').text(item.idNumberTwo),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="Unmark" onclick="unmarkRecord('+i+')"/>')
|
||||
).appendTo('#recordsTable');
|
||||
//console.log($tr.wrap('<p>').html());
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
function getExsAccountList() {
|
||||
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"allAccAuth_Exs"},
|
||||
type:'post',
|
||||
cache:false,
|
||||
//success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="exAccNo'+i+'">').text(item.rejectedQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.cashIn),
|
||||
$('<td>').text(item.bankCif),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="Unmark" onclick="unmarkRecord_Exs('+i+')"/>')
|
||||
).appendTo('#recordsTable2');
|
||||
//console.log($tr.wrap('<p>').html());
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
function submitform1(bulkDetForm)
|
||||
{
|
||||
|
||||
$("#recordsTable tbody tr").remove();
|
||||
bulkDetForm.action = '/PacsApplication/BulkMarkServlet';
|
||||
bulkDetForm.submit();
|
||||
|
||||
<%--$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"authBulk"},
|
||||
type:'post',
|
||||
cache:false,
|
||||
success:function(data){
|
||||
if(data!=null){
|
||||
alert(data.result);
|
||||
$("#recordsTable tbody tr").remove();
|
||||
getAccountList();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Operation Unsuccessfull");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
alert(value_check);--%>
|
||||
}
|
||||
function submitform2(bulkDetForm)
|
||||
{
|
||||
|
||||
$("#recordsTable tbody tr").remove();
|
||||
//bulkDetForm.markType.value = "E";
|
||||
//document.forms[0].markType.value = "E";
|
||||
bulkDetForm.action = '/PacsApplication/BulkMarkServlet';
|
||||
bulkDetForm.submit();
|
||||
}
|
||||
|
||||
function unmarkRecord(i)
|
||||
{
|
||||
var accno = $('#accNo'+i).text();
|
||||
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"unmark" ,"accNo":accno },
|
||||
type:'post',
|
||||
cache:false,
|
||||
success:function(data){
|
||||
if(data!=null){
|
||||
alert(data.result);
|
||||
$("#recordsTable tbody tr").remove();
|
||||
getAccountList();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Operation Unsuccessfull");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
function unmarkRecord_Exs(i)
|
||||
{
|
||||
var accno = $('#exAccNo'+i).text();
|
||||
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"unmark_Exs" ,"exAccNo":accno },
|
||||
type:'post',
|
||||
cache:false,
|
||||
success:function(data){
|
||||
if(data!=null){
|
||||
alert(data.result);
|
||||
$("#recordsTable2 tbody tr").remove();
|
||||
getExsAccountList();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Operation Unsuccessfull");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$('select#searchCust').change(function () {
|
||||
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'N':
|
||||
$('#chequDetTab').show();
|
||||
$('#exsDetTab').hide();
|
||||
break;
|
||||
case 'E':
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').show();
|
||||
break;
|
||||
default:
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').hide();
|
||||
}
|
||||
var repeater;
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%-- <%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
%>--%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
<body onload="noBack();">
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
|
||||
<div id="ChequeEnquiry">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<%--<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white"></legend>--%>
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Auth Bulk Mark</legend>
|
||||
<form name="bulkDetForm" method="post" action="" id="bulkDetForm">
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br><br>
|
||||
<%-- <center>
|
||||
<td>Account No:</td>
|
||||
<td><input type="text" name="accNo" id="accNo" placeholder="Enter account number" /></td>
|
||||
<td><input type="button" value="Search" onclick="javascript:getAccountList();"/></td>
|
||||
<br><br>
|
||||
<td style="text-align: right">Customer Name.: </td>
|
||||
<td><input type="text " name="custNm" id="custNm" value="" readonly/></td>
|
||||
</center>--%>
|
||||
<center>
|
||||
<tr><td>Auth Bulk Mark for: </td><td><select id="searchCust" name="searchCust"><option value=""> --Select-- </option>
|
||||
<option value="N">Non-Existing Bank CIF</option>
|
||||
<option value="E">Existing Bank CIF</option></select></td></tr>
|
||||
<tr><td> <br></td></tr>
|
||||
<br><br></center>
|
||||
|
||||
<div align="center" style="display:block" id="chequDetTab">
|
||||
<%--<p>Tellerwise Transaction details</p>--%>
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Marked Non-Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
|
||||
<td>Account No</td>
|
||||
<td>Product</td>
|
||||
<td>Customer Name</td>
|
||||
<td>Guardian Name</td>
|
||||
<td>First ID Type</td>
|
||||
<td>First ID Number</td>
|
||||
<td>Second ID Type</td>
|
||||
<td>Second ID Number</td>
|
||||
<td>Select</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<br><br>
|
||||
|
||||
<input type="button" id="submitButton" value="Send for Bulk" onclick="javascript:submitform1(bulkDetForm)">
|
||||
<input type="hidden" id="tempId" value="authBulk" name="temp">
|
||||
|
||||
</center>
|
||||
</div>
|
||||
<div align="center" style="display:block" id="exsDetTab">
|
||||
<%--<p>Tellerwise Transaction details</p>--%>
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Marked Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable2" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
|
||||
<td>Account No</td>
|
||||
<td>Product</td>
|
||||
<td>Customer Name</td>
|
||||
<td>Guardian Name</td>
|
||||
<td>Bank CIF</td>
|
||||
<td>Select</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<br><br>
|
||||
|
||||
<input type="button" id="submitButton" value="Send for Bulk" onclick="javascript:submitform2(bulkDetForm)">
|
||||
<input type="hidden" id="tempId" value="authBulk" name="temp">
|
||||
|
||||
</center>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
334
IPKS_Updated/web/web/web/Deposit/authBulkIncr_STB.jsp
Normal file
334
IPKS_Updated/web/web/web/Deposit/authBulkIncr_STB.jsp
Normal file
@@ -0,0 +1,334 @@
|
||||
<%--
|
||||
Document : authBulkIncr_STB
|
||||
Created on : Oct 26, 2018, 1:20:17 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.ChequeDetailsBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Bulk Mark</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<style>
|
||||
|
||||
#recordsTable {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable td, #recordsTable th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#recordsTable2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable2 td, #recordsTable2 th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable2 tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable2 tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable2 th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
||||
$(window).load(function(){
|
||||
// getAccountList();
|
||||
//getExsAccountList();
|
||||
});
|
||||
|
||||
function getExsAccountList() {
|
||||
|
||||
var pacsId = $('#pacsId_STB').val();
|
||||
$.ajax({
|
||||
url:'/PacsApplication/BulkMarkServletSTB',
|
||||
data:{"temp":"allAccAuth_Exs","pacsId_STB":pacsId},
|
||||
type:'post',
|
||||
cache:false,
|
||||
//success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="accNo'+i+'">').text(item.rejectedQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.cashIn),
|
||||
$('<td>').text(item.bankCif),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="Unmark" onclick="unmarkRecord('+i+')"/>')
|
||||
).appendTo('#recordsTable2');
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
function getAccountList() {
|
||||
|
||||
var pacsId = $('#pacsId_STB').val();
|
||||
$.ajax({
|
||||
url:'/PacsApplication/BulkMarkServletSTB',
|
||||
data:{"temp":"allAccAuth","pacsId_STB":pacsId},
|
||||
type:'post',
|
||||
cache:false,
|
||||
// success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="accNo'+i+'">').text(item.rejectedQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.cashIn),
|
||||
$('<td>').text(item.cashOut),
|
||||
$('<td>').text(item.guardianName),
|
||||
$('<td>').text(item.idTypeTwo),
|
||||
$('<td>').text(item.idNumberTwo),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="Unmark" onclick="unmarkRecord('+i+')"/>')
|
||||
).appendTo('#recordsTable');
|
||||
//console.log($tr.wrap('<p>').html());
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
};
|
||||
|
||||
function submitform(bulkDetForm)
|
||||
{
|
||||
$("#recordsTable tbody tr").remove();
|
||||
$("#recordsTable2 tbody tr").remove();
|
||||
bulkDetForm.action = '/PacsApplication/BulkMarkServletSTB';
|
||||
bulkDetForm.submit();
|
||||
}
|
||||
|
||||
function unmarkRecord(i)
|
||||
{
|
||||
var table =document.getElementById("recordsTable");
|
||||
var accno = $('#accNo'+i).text();
|
||||
var pacsId = $('#pacsId_STB').val();
|
||||
$.ajax({
|
||||
url:'/PacsApplication/BulkMarkServletSTB',
|
||||
data:{"temp":"unmark" ,"accNo":accno,"pacsId_STB":pacsId },
|
||||
type:'post',
|
||||
cache:false,
|
||||
success:function(data){
|
||||
if(data!=null){
|
||||
alert(data.result);
|
||||
$("#recordsTable tbody tr").remove();
|
||||
$("#recordsTable2 tbody tr").remove();
|
||||
getAccountList();
|
||||
getExsAccountList();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Operation Unsuccessfull");
|
||||
}},
|
||||
error:function(){
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
var repeater;
|
||||
|
||||
$(document).ready(function () {
|
||||
var shouldEnable = $(mark_Type).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'N':
|
||||
$('#chequDetTab').show();
|
||||
$('#exsDetTab').hide();
|
||||
getAccountList();
|
||||
break;
|
||||
case 'E':
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').show();
|
||||
getExsAccountList();
|
||||
break;
|
||||
default:
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%-- <%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>--%>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
<body onload="noBack();">
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
|
||||
<div id="ChequeEnquiry">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<%--<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white"></legend>--%>
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Bulk Mark</legend>
|
||||
<form name="bulkDetForm" method="post" action="" id="bulkDetForm">
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
|
||||
<br>
|
||||
<br><br>
|
||||
|
||||
<div align="center" style="display:block" id="chequDetTab">
|
||||
<%--<p>Tellerwise Transaction details</p>--%>
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Marked Non-Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
|
||||
<tr>
|
||||
<td>Account No</td>
|
||||
<td>Product</td>
|
||||
<td>Customer Name</td>
|
||||
<td>Guardian Name</td>
|
||||
<td>First ID Type</td>
|
||||
<td>First ID Number</td>
|
||||
<td>Second ID Type</td>
|
||||
<td>Second ID Number</td>
|
||||
<td>Select</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<br><br>
|
||||
|
||||
<input type="button" id="submitButton" value="Send for Bulk" onclick="javascript:submitform(bulkDetForm)">
|
||||
<input type="hidden" id="tempId" value="authBulk" name="temp">
|
||||
<input type="hidden" id="pacsId_STB" name="pacsId_STB" value='<%=request.getAttribute("messageSTB")%>'>
|
||||
<input type="hidden" id="mark_Type" name="mark_Type" value='<%=request.getAttribute("markType")%>'>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div align="center" style="display:block" id="exsDetTab">
|
||||
<%--<p>Tellerwise Transaction details</p>--%>
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Marked Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable2" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
|
||||
<tr>
|
||||
<td>Account No</td>
|
||||
<td>Product</td>
|
||||
<td>Customer Name</td>
|
||||
<td>Guardian Name</td>
|
||||
<td>Bank CIF Number</td>
|
||||
<td>Select</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<br><br>
|
||||
|
||||
<input type="button" id="submitButton" value="Send for Bulk" onclick="javascript:submitform(bulkDetForm)">
|
||||
<input type="hidden" id="tempId" value="authBulk" name="temp">
|
||||
<input type="hidden" id="pacsId_STB" name="pacsId_STB" value='<%=request.getAttribute("messageSTB")%>'>
|
||||
<input type="hidden" id="mark_Type" name="mark_Type" value='<%=request.getAttribute("markType")%>'>
|
||||
</center>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
382
IPKS_Updated/web/web/web/Deposit/bulkIncrDetails.jsp
Normal file
382
IPKS_Updated/web/web/web/Deposit/bulkIncrDetails.jsp
Normal file
@@ -0,0 +1,382 @@
|
||||
<%--
|
||||
Document : bulkIncrDetails
|
||||
Created on : Oct 26, 2018, 1:20:17 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.ChequeDetailsBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Bulk Mark</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<style>
|
||||
|
||||
|
||||
|
||||
#recordsTable {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable td, #recordsTable th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#recordsTable2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable2 td, #recordsTable2 th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable2 tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable2 tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable2 th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
function getAccountList()
|
||||
{
|
||||
var accN =document.getElementById("accNo").value;
|
||||
if( accN == "" )
|
||||
{
|
||||
alert("Enter Account Number.");
|
||||
document.getElementById("accNo").focus();
|
||||
}
|
||||
else {
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"allAcc" ,"accNo":document.getElementById("accNo").value},
|
||||
type:'post',
|
||||
cache:false,
|
||||
//success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$("#recordsTable tbody tr").remove();
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="accNo'+i+'">').text(item.rejectedQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.cashIn),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="Mark" onclick="submitform('+i+')"/>')
|
||||
//$('<td>').html('<input type="radio"/>')
|
||||
//$('<td>').html('<input type="checkbox" id="chk'+i+'"/>')
|
||||
).appendTo('#recordsTable');
|
||||
//console.log($tr.wrap('<p>').html());
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("No records");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
document.getElementById("accNo").readOnly = true;
|
||||
document.getElementById("srchbttn").disabled = true;
|
||||
}
|
||||
};
|
||||
function getExsAccountList()
|
||||
{
|
||||
var accN =document.getElementById("exAccNo").value;
|
||||
if( accN == "" )
|
||||
{
|
||||
alert("Enter Account Number");
|
||||
document.getElementById("exAccNo").focus();
|
||||
}
|
||||
else {
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"allAcc_Exs" ,"exAccNo":document.getElementById("exAccNo").value},
|
||||
type:'post',
|
||||
cache:false,
|
||||
// success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$("#recordsTable2 tbody tr").remove();
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="exAccNo'+i+'">').text(item.rejectedQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.cashIn),
|
||||
$('<td>').text(item.bankCif),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="Mark" onclick="submitform2('+i+')"/>')
|
||||
//$('<td>').html('<input type="radio"/>')
|
||||
//$('<td>').html('<input type="checkbox" id="chk'+i+'"/>')
|
||||
).appendTo('#recordsTable2');
|
||||
//console.log($tr.wrap('<p>').html());
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("No records");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
document.getElementById("exAccNo").readOnly = true;
|
||||
document.getElementById("srchbttn2").disabled = true;
|
||||
}
|
||||
};
|
||||
$(document).ready(function () {
|
||||
$('select#searchCust').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'N':
|
||||
$('#nonExAcc').show();
|
||||
$('#chequDetTab').show();
|
||||
$('#exAcc').hide();
|
||||
$('#exsTab').hide();
|
||||
break;
|
||||
case 'E':
|
||||
$('#nonExAcc').hide();
|
||||
$('#chequDetTab').hide();
|
||||
$('#exAcc').show();
|
||||
$('#exsTab').show();
|
||||
break;
|
||||
default:
|
||||
$('#nonExAcc').hide();
|
||||
$('#chequDetTab').hide();
|
||||
$('#exAcc').hide();
|
||||
$('#exsTab').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function submitform(i)
|
||||
{
|
||||
var table =document.getElementById("recordsTable");
|
||||
var accno = $('#accNo'+i).text();
|
||||
<%--for (var i = 0; i < table.rows.length; i++) {
|
||||
if ($('#chk'+i).is(':checked')) {
|
||||
value_check += $('#accNo'+i).text()+":";
|
||||
}
|
||||
}--%>
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"markBulk" ,"accNo":accno},
|
||||
type:'post',
|
||||
cache:false,
|
||||
success:function(data){
|
||||
if(data!=null){
|
||||
alert(data.result);
|
||||
$("#recordsTable tbody tr").remove();
|
||||
getAccountList();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Operation Unsuccessfull");
|
||||
}},
|
||||
error:function(){
|
||||
}
|
||||
}
|
||||
);
|
||||
alert(value_check);
|
||||
}
|
||||
function submitform2(i)
|
||||
{
|
||||
var accno = $('#exAccNo'+i).text();
|
||||
|
||||
$.ajax({
|
||||
url:'../BulkMarkServlet',
|
||||
data:{"temp":"markBulk_Exs" ,"exAccNo":accno},
|
||||
type:'post',
|
||||
cache:false,
|
||||
success:function(data){
|
||||
if(data!=null){
|
||||
alert(data.result);
|
||||
$("#recordsTable tbody tr").remove();
|
||||
getExsAccountList();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Operation Unsuccessfull");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
alert(value_check);
|
||||
}
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
$('#nonExAcc').hide();
|
||||
$('#chequDetTab').hide();
|
||||
$('#exAcc').hide();
|
||||
$('#exsTab').hide();
|
||||
}
|
||||
function ShowParent( )
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/bulkIncrDetails.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
var repeater;
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
%>
|
||||
|
||||
<body onload="noBack();">
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
|
||||
<div id="ChequeEnquiry">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<%--<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white"></legend>--%>
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Bulk Mark</legend>
|
||||
<form name="bulkDetForm" method="post" action="" id="bulkDetForm">
|
||||
<%-- <%if (!error_msg1.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg1%></center></div></center>
|
||||
<% }%>
|
||||
<br>--%>
|
||||
<br><br>
|
||||
<center>
|
||||
<tr><td>Bulk Mark for: </td><td><select id="searchCust" name="searchCust"><option value=""> --select-- </option><option value="N">Non-Existing Bank CIF</option><option value="E">Existing Bank CIF</option></select></td></tr>
|
||||
<tr><td> <br></td></tr>
|
||||
<br><br>
|
||||
<div id="nonExAcc" >
|
||||
<td>Non-Existing Account Number<font color="red" >*</font>:</td>
|
||||
<td><input type="text" name="accNo" id="accNo" placeholder="Enter account number" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Get Details" id="srchbttn" onclick="javascript:getAccountList();"/></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td></div>
|
||||
<div id="exAcc" >
|
||||
<td>Existing Account Number<font color="red" >*</font>:</td>
|
||||
<td><input type="text" name="exAccNo" id="exAccNo" placeholder="Enter account number" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
|
||||
<td><input type="button" value="Get Details" id="srchbttn2" onclick="javascript:getExsAccountList();"/></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td></div>
|
||||
<br><br>
|
||||
<%-- <td style="text-align: right">Customer Name.: </td>
|
||||
<td><input type="text " name="custNm" id="custNm" value="" readonly/></td>--%>
|
||||
</center>
|
||||
|
||||
<div align="center" style="display:block" id="chequDetTab">
|
||||
<%--<p>Tellerwise Transaction details</p>--%>
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Non-Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Account Number</td>
|
||||
<td>Product</td>
|
||||
<td>Customer Name</td>
|
||||
<td>Guardian Name</td>
|
||||
<td>Select</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<br><br>
|
||||
<%--<input type="button" id="submitButton" value="Submit" onclick="javascript:submitform(bulkDetForm)">--%>
|
||||
</center>
|
||||
</div>
|
||||
<div align="center" style="display:block" id="exsTab">
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable2" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Account Number</td>
|
||||
<td>Product</td>
|
||||
<td>Customer Name</td>
|
||||
<td>Guardian Name</td>
|
||||
<td>Bank CIF</td>
|
||||
<td>Select</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
389
IPKS_Updated/web/web/web/Deposit/inv_borr_rep.jsp
Normal file
389
IPKS_Updated/web/web/web/Deposit/inv_borr_rep.jsp
Normal file
@@ -0,0 +1,389 @@
|
||||
<%--
|
||||
Document : inv_borr_rep
|
||||
Created on : Dec 22, 2017, 1:36:03 PM
|
||||
Author : 1027350
|
||||
--%>
|
||||
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.EnquiryBean"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="java.lang.String" %>
|
||||
<% try {
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function downloadFiles() {
|
||||
|
||||
var e = document.getElementById("reportSelection");
|
||||
var f = document.getElementById("subpacs_id");
|
||||
|
||||
if (e.options[e.selectedIndex].value == "")
|
||||
{
|
||||
alert("Report Name cannot be empty.");
|
||||
document.forms[0].reportSelection.focus();
|
||||
return false;
|
||||
}
|
||||
if (document.forms[0].to_date.value == "" )
|
||||
{
|
||||
alert("Date cannot be empty.");
|
||||
document.forms[0].to_date.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
<%--var r = "";
|
||||
if (document.getElementById("r1").checked){
|
||||
r = document.getElementById("r1").value;
|
||||
}
|
||||
if (document.getElementById("r2").checked){
|
||||
r = document.getElementById("r2").value;
|
||||
}
|
||||
if(r == "")
|
||||
return;--%>
|
||||
|
||||
if (document.forms[0].gl_id.value == "")
|
||||
{
|
||||
alert("GL Account cannot be empty.");
|
||||
document.forms[0].gl_id.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (e.options[e.selectedIndex].value) {
|
||||
|
||||
case "i" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/investmentdetail";
|
||||
document.forms[0].reportName.value = "INVESTMENT DETAIL REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "b" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/borrowingdetail";
|
||||
document.forms[0].reportName.value = "BORROWING DETAIL REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
case "3" :
|
||||
|
||||
document.forms[0].reportPath.value = "/Reports/transferTxnReport";
|
||||
document.forms[0].reportName.value = "TRANSFER TRANSACTION REPORT";
|
||||
document.forms[0].DOWNLOAD.value = "P";
|
||||
break;
|
||||
|
||||
default :
|
||||
|
||||
null;
|
||||
|
||||
}
|
||||
|
||||
document.forms[0].action = '/PacsApplication/ExcelReportServlet';
|
||||
if (document.getElementById("gl_id").value == ""){
|
||||
document.getElementById("gl_id").value = "ALL";
|
||||
}
|
||||
document.forms[0].submit();
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#reportSelection').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case '6':
|
||||
$('#dep_prod').show(500);
|
||||
break;
|
||||
default:
|
||||
$('#dep_prod').hide();
|
||||
break;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
<%--function handleClick(opType) {
|
||||
var buttonType = 0;
|
||||
buttonType = opType.value;
|
||||
if (buttonType=='i'){
|
||||
document.getElementById('reportSelection').options.selectedIndex=0;
|
||||
document.getElementById('reportSelection').options[2].disabled =true;
|
||||
document.getElementById('reportSelection').options[1].disabled =false;
|
||||
}
|
||||
|
||||
if (buttonType=='b'){
|
||||
document.getElementById('reportSelection').options.selectedIndex=0;
|
||||
document.getElementById('reportSelection').options[1].disabled =true;
|
||||
document.getElementById('reportSelection').options[2].disabled =false;
|
||||
}
|
||||
|
||||
}--%>
|
||||
|
||||
function searchGL(width, height,x)
|
||||
{
|
||||
|
||||
// var r = document.getElementById("reportSelection").value;
|
||||
<%--if (document.getElementById("r1").checked){
|
||||
r = document.getElementById("r1").value;
|
||||
}
|
||||
else if (document.getElementById("r2").checked){
|
||||
r = document.getElementById("r2").value;
|
||||
}
|
||||
else {
|
||||
alert("!! Please Select Any One Button !!");
|
||||
return;
|
||||
}--%>
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
var screenName = "inv_borr_rep.jsp";
|
||||
var lovKey= "searchGl";
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationLOV.jsp?screenName=' + screenName+'&lovKey='+lovKey+'&acNo='+x+'&searchKey='+r , 'GLSearch', attr);
|
||||
popWin.focus();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
|
||||
document.forms[0].action = "${pageContext.request.contextPath}/Deposit/inv_borr_rep.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<title>Investment/Borrowing Report</title>
|
||||
|
||||
</head>
|
||||
<body onload="noBack();">
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
</script>
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
String blankNA(String s) {
|
||||
return (s == null) ? "NA" : s;
|
||||
}
|
||||
%>
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
Object oEnquiryBeanSearchObj = request.getAttribute("oEnquiryBeanSearchObj");
|
||||
EnquiryBean oEnquiryBean = new EnquiryBean();
|
||||
EnquiryBean oEnquiryBeanSearch = new EnquiryBean();
|
||||
if (oEnquiryBeanSearchObj != null) {
|
||||
oEnquiryBean = (EnquiryBean) request.getAttribute("oEnquiryBeanSearchObj");
|
||||
session.setAttribute("oEnquiryBeanSearchObj", oEnquiryBeanSearchObj);
|
||||
}
|
||||
%>
|
||||
<%String subPacsFlag = (String) session.getAttribute("subPacsFlag");
|
||||
%>
|
||||
|
||||
<div style="top:500px">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Investment/Borrowing Report</legend>
|
||||
|
||||
<form name="pacsreport" method="post" action="/PacsApplication/ExcelReportServlet">
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<%if (request.getAttribute("error") != null) {%>
|
||||
<tr><td colspan="2" align="center"><%=request.getAttribute("error").toString()%></td></tr>
|
||||
<%}%>
|
||||
|
||||
<%--<tr align="center">
|
||||
<input type="radio" name="opType" id ="r1" onclick="handleClick(this);" value="i">Investment
|
||||
<input type="radio" name="opType" id ="r2" onclick="handleClick(this);" value="b">Borrowing<br><br>
|
||||
</tr>--%>
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Report Name <font color="red" >*</font>: </td>
|
||||
<td> <select id="reportSelection" name="reportSelection" >
|
||||
<option value="" selected >--Select--</option>
|
||||
<option value="i" >Investment Detail List</option>
|
||||
<option value="b" >Borrowing Detail List</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight: normal;">Date <font color="red" >*</font>: </td><td><input type="text" id="to_date" name="to_date" maxlength="11" resize="yes" readonly="true" style="text-align:center;"> <a href="#" onclick="return getCalendar(document.forms[0].to_date);"><img src="${pageContext.request.contextPath}/img/calendar.jpg" name="imgr" border="0" width="25" height="20" /></a></td></tr>
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">GL Account<font color="red" >*</font>: </td>
|
||||
<td><input type="text" name="gl_id" id="gl_id" style="text-align:right;" onkeypress='return event.charCode >= 48 && event.charCode <= 57' />
|
||||
<input type="button" id="gl_btn" name="gl_btn" value="Search" onclick="javascript:searchGL(220,180,document.getElementById('gl_id').value)" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style=" font-family: Berlin Sans FB; font-weight:normal; ">Sub-PACS Name: </td>
|
||||
<td><select id="subpacs_id" name="subpacs_id" >
|
||||
<%if (oEnquiryBean.getSubpacs_id() == null) {%>
|
||||
<option value="" disabled selected style="display:none;">--Select--</option>
|
||||
<%if (subPacsFlag.equalsIgnoreCase("N")) {%>
|
||||
<option value="ALL" >ALL Pacs</option>
|
||||
<option value="<%=pacsId%>">Own Pacs</option>
|
||||
<% }%>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> '" + pacsId + "'");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="<%=pacsId%>" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
} else {%>
|
||||
<option value="<%=blankNull(oEnquiryBean.getSubpacs_id())%>" selected style="display:none;"><%=blankNull(oEnquiryBean.getSubpacs_name())%></option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select m.pacs_id,m.pacs_name from pacs_master m where m.head_pacs_id = '" + pacsId + "' and m.pacs_id <> m.head_pacs_id ");
|
||||
if (!rs.isBeforeFirst()) {%>
|
||||
<option value="" selected>No Item to Select</option>
|
||||
<%} else {
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>"><%=rs.getString(2)%></option>
|
||||
<%}
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}%>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<tr id="dep_prod" style="display: none;">
|
||||
<td>Select Product:</td><td>
|
||||
<select id="prod_id" name="prod_id">
|
||||
<option value="ALL" >ALL deposit Products</option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select dp.id,dp.prod_code||':'||dp.int_cat||' '||dp.prod_name from dep_product dp where to_number(substr(dp.prod_code,1,1))<5 and dp.pacs_id like '%" + pacsId + "#%'");
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>" ><%=rs.getString(2)%></option>
|
||||
<%
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table><br><br><br><br>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><label><font color="red" >*</font> marked fields are mandatory.</label></td></tr>
|
||||
<center>
|
||||
|
||||
<input type="button" value="Fetch Report" onclick="javascript:downloadFiles();">
|
||||
<input type="button" value="Reset" id="Reset" onclick="ShowParent();" />
|
||||
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="reportPath" value=""/>
|
||||
<input type="hidden" name="reportName" value=""/>
|
||||
<input type="hidden" name="DOWNLOAD" value=""/>
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
117
IPKS_Updated/web/web/web/Deposit/microFileUploadDownload.jsp
Normal file
117
IPKS_Updated/web/web/web/Deposit/microFileUploadDownload.jsp
Normal file
@@ -0,0 +1,117 @@
|
||||
<%--
|
||||
Document : microFileUploadDownload
|
||||
Created on : May 17, 2018, 2:15:10 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Handbill File Processing</title>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<%
|
||||
String pacsId = (String) session.getAttribute("pacsId");
|
||||
|
||||
%>
|
||||
<br>
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Handbill File Processing</legend>
|
||||
<center>
|
||||
<div id="SelectDiv">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Select Operation: </td>
|
||||
<td>
|
||||
<select id="FileTypeId" name="FileType" onchange="toggleDiv(1)">
|
||||
<option value="Def" selected> --Select-- </option>
|
||||
<option value="Upload" >Upload File</option>
|
||||
<option value="Download" >Download File</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
<div id="UploadDiv" style="display:none">
|
||||
<form name="MicroFile" id="MicroFileIdUpload" action="" method="post" enctype="multipart/form-data">
|
||||
<center>
|
||||
|
||||
Select file to upload:
|
||||
<input type="file" name="dataFile" id="fileChooser"/><br/><font color="blue" >*Supported File type: csv</font><br/><br/>
|
||||
<input type="button" value="Upload" id ="FileTypeIdUpload" name="FileType" onclick="sendFileToServer(1)"/>
|
||||
<input type="button" value="Back" id ="BackIdU" name="BackIdUButton" onclick="toggleDiv(3)"/>
|
||||
|
||||
</center>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="DownloadDiv" style="display:none">
|
||||
<form name="MicroFile" id="MicroFileIdDownload" action="" method="post" >
|
||||
<center>
|
||||
<tr>
|
||||
<td>Select Agent <font color="red" >*</font>:</td><td>
|
||||
<select id="agentId" name="agentId">
|
||||
<option value="" > --Select-- </option>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
statement = connection.createStatement();
|
||||
rs = statement.executeQuery("select agent_id,agent_id || ' : ' || (select login_name from login_details ld where ld.pacs_id = k.pacs_id and ld.login_id = k.agent_id) agent_name from dds_agent_limit k where pacs_id like '%" + pacsId + "%'");
|
||||
while (rs.next()) {%>
|
||||
<option value="<%=rs.getString(1)%>" ><%=rs.getString(2)%></option>
|
||||
<%
|
||||
}
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr><td><br></td></tr>
|
||||
<input type="hidden" id="actionId" value="Download" name="actionTag">
|
||||
<input type="button" value="Download" id ="FileTypeIdDownload" name="FileTypeDownload" onclick="sendFileToServer(2)"/>
|
||||
<input type="button" value="Back" id ="BackIdD" name="BackIdDButton" onclick="toggleDiv(2)"/>
|
||||
|
||||
</center>
|
||||
</form>
|
||||
</div>
|
||||
<div id="errorMessageTag"style="color: #FF0000;">${errorMessage}</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jsController/microFileUploadDownloadController.js"></script>
|
||||
</html>
|
||||
658
IPKS_Updated/web/web/web/Deposit/mocOperations.jsp
Normal file
658
IPKS_Updated/web/web/web/Deposit/mocOperations.jsp
Normal file
@@ -0,0 +1,658 @@
|
||||
<%--
|
||||
Document : moc
|
||||
Created on : Mar 19, 2018, 5:52:10 PM
|
||||
Author : 981898
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.mocProcessingBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>MOC Operations</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
<%
|
||||
String handle_idVal = "";
|
||||
Object handle_id = request.getAttribute("handle_id");
|
||||
if (handle_id != null) {
|
||||
handle_idVal = handle_id.toString();
|
||||
}
|
||||
String userRole = (String) session.getAttribute("userRole");
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
}
|
||||
|
||||
function ShowParent()
|
||||
{
|
||||
document.forms[0].action="${pageContext.request.contextPath}/Deposit/mocOperations.jsp";
|
||||
document.forms[0].submit();
|
||||
}
|
||||
|
||||
function checkboxTrue(i){
|
||||
|
||||
if(document.getElementById("chckbox"+i).checked == true){
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter++;
|
||||
$("#chkboxCounter").val(counter);
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
var counter = $("#chkboxCounter").val();
|
||||
counter--;
|
||||
$("#chkboxCounter").val(counter);
|
||||
}
|
||||
}
|
||||
|
||||
function sendFileToServer()
|
||||
{
|
||||
var formDownloadNormal = document.getElementById("MOCManual");
|
||||
formDownloadNormal.action = '/PacsApplication/BulkFileUploadServlet';
|
||||
formDownloadNormal.submit();
|
||||
}
|
||||
|
||||
function executeform(mocForm){
|
||||
if(document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the MOC ID to search");
|
||||
return false;
|
||||
}
|
||||
document.getElementById("handle_id").value = 'execute';
|
||||
document.mocForm.action = '/PacsApplication/mocOperationsServlet';
|
||||
document.mocForm.submit();
|
||||
}
|
||||
|
||||
function submitform(mocForm){
|
||||
|
||||
/*roundOff();
|
||||
//alert(document.getElementById("handle_id").value);
|
||||
if(document.getElementById("handle_id").value == "search"){
|
||||
if(document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the MOC Batch ID to search");
|
||||
return false;
|
||||
}
|
||||
document.mocForm.action = '/PacsApplication/mocOperationsServlet';
|
||||
document.mocForm.submit();
|
||||
return true;
|
||||
}
|
||||
if(validate()){
|
||||
|
||||
document.mocForm.action = '/PacsApplication/mocOperationsServlet';
|
||||
document.mocForm.submit();
|
||||
}*/
|
||||
//alert(document.getElementById("handle_id").value);
|
||||
if(document.getElementById("handle_id").value == "search"){
|
||||
if(document.getElementById("batchID").value == "") {
|
||||
alert("Please enter the MOC Batch ID to proceed");
|
||||
return false;
|
||||
}
|
||||
document.mocForm.action = '/PacsApplication/mocOperationsServlet';
|
||||
document.mocForm.submit();
|
||||
return true;
|
||||
} else if(validate()){
|
||||
roundOff();
|
||||
document.mocForm.action = '/PacsApplication/mocOperationsServlet';
|
||||
document.mocForm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function validate(){
|
||||
var counter = $("#rowCounter").val();
|
||||
//var i = 1;
|
||||
for(i=1;i<=counter;i++){
|
||||
re = /^(?=.*\d)\d*(?:\.\d*)?$/;
|
||||
|
||||
try {
|
||||
if (document.getElementById("accNo"+i).value == "")
|
||||
{
|
||||
alert("Account Number cannot be empty");
|
||||
document.getElementById("accNo"+i).value="";
|
||||
document.getElementById("accNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.getElementById("secAccNo"+i).value == "")
|
||||
{
|
||||
alert("Second Account Number cannot be empty");
|
||||
document.getElementById("secAccNo"+i).value="";
|
||||
document.getElementById("secAccNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.getElementById("txnAmt"+i).value == "")
|
||||
{
|
||||
alert("Transaction Amount cannot be empty");
|
||||
document.getElementById("txnAmt"+i).value="";
|
||||
document.getElementById("txnAmt"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!re.test(document.getElementById("accNo"+i).value))
|
||||
{
|
||||
alert("Account Number could only contain numbers");
|
||||
document.getElementById("accNo"+i).value="";
|
||||
document.getElementById("accNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!re.test(document.getElementById("secAccNo"+i).value))
|
||||
{
|
||||
alert("Account Number could only contain numbers");
|
||||
document.getElementById("secAccNo"+i).value="";
|
||||
document.getElementById("secAccNo"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!re.test(document.getElementById("txnAmt"+i).value))
|
||||
{
|
||||
alert("Transaction amount could only contain numbers");
|
||||
document.getElementById("txnAmt"+i).value="";
|
||||
document.getElementById("txnAmt"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd"+i).value == "")
|
||||
{
|
||||
alert("Transaction indicator should be selected");
|
||||
document.getElementById("txnInd"+i).value="CR";
|
||||
document.getElementById("txnInd"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((document.getElementById("txnNarration"+i).value.trim()) == "")
|
||||
{
|
||||
alert("Transaction Narration should be filled.");
|
||||
document.getElementById("txnNarration"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("searched").value!="1")
|
||||
{
|
||||
alert("Kindly Search and select the first A/c Number.")
|
||||
document.getElementById("accNo"+i).focus;
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById("searchedTwo").value!="1")
|
||||
{
|
||||
alert("Kindly Search and select the second A/c Number.")
|
||||
document.getElementById("secAccNo"+i).focus;
|
||||
return false;
|
||||
}
|
||||
if (document.getElementById("txnInd"+i).value == "DR" && document.getElementById("accType"+i).value == "L")
|
||||
{
|
||||
alert("Loan cannot be debited from batch transaction");
|
||||
document.getElementById("txnInd"+i).focus();
|
||||
//resetRow(i);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch(err){
|
||||
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function SearchAccount(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
|
||||
// var accNo = document.getElementById("accNo"+textIndex).value;
|
||||
var screenName = "mocOperations.jsp";
|
||||
var lovKey = "AccountSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&accNo=' + accNo + '&textIndex=' + textIndex, 'AccountSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function SearchSecondAccount(width, height, textIndex)
|
||||
|
||||
{
|
||||
if (window.innerWidth) {
|
||||
LeftPosition = (window.innerWidth - width) / 2;
|
||||
TopPosition = ((window.innerHeight - height) / 2) - 20;
|
||||
}
|
||||
else {
|
||||
LeftPosition = (parseInt(window.screen.width) - width) / 2;
|
||||
TopPosition = ((parseInt(window.screen.height) - height) / 2) - 20;
|
||||
}
|
||||
|
||||
attr = 'resizable=yes,scrollbars=yes,width=' + width + ',height=' +
|
||||
height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
|
||||
TopPosition + '';
|
||||
// var accNo = document.getElementById("secAccNo"+textIndex).value;
|
||||
var screenName = "mocOperations.jsp";
|
||||
var lovKey = "SecondAccountSearch";
|
||||
|
||||
popWin = open('${pageContext.request.contextPath}/CommonSearchInformationDepositLOV.jsp?screenName=' + screenName+'&lovKey='+lovKey + '&accNo=' + accNo + '&textIndex=' + textIndex, 'AccountSearch', attr);
|
||||
popWin.focus();
|
||||
|
||||
}
|
||||
|
||||
function setVisibility(){
|
||||
//document.getElementById("searchBatch").style.visibility='visible';
|
||||
$('select#mocOption').change();
|
||||
}
|
||||
|
||||
function textChanged(){
|
||||
document.getElementById("searched").value="0";
|
||||
//alert("IN");
|
||||
}
|
||||
|
||||
function textChangedTwo(){
|
||||
document.getElementById("searchedTwo").value="0";
|
||||
//alert("IN");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#create').hide();
|
||||
$('#handle_id').val();
|
||||
$('select#mocOption').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'C':
|
||||
$('#create').show();
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val('create');
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
$('#searchBatch').show();
|
||||
$('#create').hide();
|
||||
$('#handle_id').val('search');
|
||||
break;
|
||||
|
||||
default:
|
||||
$('#create').hide();
|
||||
$('#searchBatch').hide();
|
||||
$('#handle_id').val();
|
||||
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
int count = 1;
|
||||
String error_msg = "";
|
||||
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
|
||||
Object alMocProcessingBeanObj = request.getAttribute("alMocProcessingBean");
|
||||
ArrayList<mocProcessingBean> alMocProcessingBean = new ArrayList<mocProcessingBean>();
|
||||
mocProcessingBean oMocProcessingBean = new mocProcessingBean();
|
||||
if (alMocProcessingBeanObj != null) {
|
||||
alMocProcessingBean = (ArrayList<mocProcessingBean>) request.getAttribute("alMocProcessingBean");
|
||||
|
||||
|
||||
}
|
||||
error = request.getAttribute("batchID");
|
||||
String batchID = "";
|
||||
if (request.getAttribute("batchID") != null) {
|
||||
batchID = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%!
|
||||
String blankNull(String s) {
|
||||
return (s == null) ? "" : s;
|
||||
}
|
||||
|
||||
%>
|
||||
</head>
|
||||
<%--<body onload="javascript:<%if (alMocProcessingBeanObj != null) {%>setVisibility();<%}%>noBack();"> --%>
|
||||
<body onload="javascript:setVisibility();noBack();">
|
||||
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
<br>
|
||||
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">MOC Operations</legend>
|
||||
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
|
||||
<center style="display:none">
|
||||
<label>Select Operation: </label>
|
||||
<select id="mocOption" name="mocOption">
|
||||
<%--<option value="" selected >--Select--</option>--%>
|
||||
<%if ((userRole.equalsIgnoreCase(
|
||||
"201606000004041")) ) {%>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("S")) {%> selected <%}%> value="S">Search</option>
|
||||
<%}else{%>
|
||||
<option <%if (blankNull(handle_idVal).equalsIgnoreCase("C")) {%> selected <%}%> value="C">Create</option>
|
||||
<%}%>
|
||||
</select>
|
||||
</center>
|
||||
|
||||
|
||||
<form action="" method="post" name="mocForm" id="mocForm">
|
||||
|
||||
<div id="create" name="create">
|
||||
<br>
|
||||
|
||||
|
||||
<div align="center">
|
||||
<table id="mocData" name="mocData" border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>First Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Second Account Number</td>
|
||||
<td>Narration</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="tRow">
|
||||
<td><input type="checkbox" name="chckbox<%=count%>" id="chckbox<%=count%>" onclick="checkboxTrue(<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="accNo<%=count%>" id="accNo<%=count%>" onkeyup="textChanged()" />
|
||||
<input type="button" style="width: 70px" name="search<%=count%>" id="search<%=count%>" value="Search" onclick="javascript:SearchAccount(550,240,<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" onkeypress='return event.charCode >= 46 && event.charCode <= 57' name="txnAmt<%=count%>" id="txnAmt<%=count%>" />
|
||||
</td>
|
||||
<td>
|
||||
<select style="width: 150px" name="txnInd<%=count%>" id="txnInd<%=count%>" >
|
||||
<option value="CR" selected>Credit</option>
|
||||
<option value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="secAccNo<%=count%>" id="secAccNo<%=count%>" onkeyup="textChangedTwo()" />
|
||||
<input type="button" style="width: 70px" name="searchsecAccNo<%=count%>" id="searchsecAccNo<%=count%>" value="Search" onclick="javascript:SearchSecondAccount(550,240,<%=count%>);" /></td>
|
||||
<td>
|
||||
<input type="text" name="txnNarration<%=count%>" id="txnNarration<%=count%>" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td ><input type="button" id="addRow" value="Add Row"/></td>
|
||||
<td><input type="button" id="deleteRow" value="Delete Row"/></td>
|
||||
<td><input type="button" value="Submit" onclick="javascript:submitform(mocForm)"></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="rowCounterDeleteCreate" id="rowCounterDeleteCreate" value="<%=count%>">
|
||||
<input type="hidden" name="rowCounter" id="rowCounter" value="<%=count%>">
|
||||
<input type="hidden" name="chkboxCounter" id="chkboxCounter" value="0"/>
|
||||
<input type="hidden" name="all_rowsAdded" id="all_rowsAdded" value="1">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<center>
|
||||
<div id="searchBatch" style="display:none">
|
||||
<label>MOC ID: </label>
|
||||
<input type="text" name="batchID" id="batchID" value="<%=blankNull(batchID)%>" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
|
||||
<input type="button" name="searchBatch" id="searchBatch" value="Submit" onclick="javascript:submitform(mocForm)"/>
|
||||
<br><br>
|
||||
|
||||
<%if (handle_idVal.equalsIgnoreCase("S")) {%>
|
||||
<div align="center">
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
<tr>
|
||||
<td>First Account Number</td>
|
||||
<td>Transaction Amount</td>
|
||||
<td>Transaction Indicator</td>
|
||||
<td>Second Account Number</td>
|
||||
<td>Narration</td>
|
||||
<td>Transaction Status</td>
|
||||
<td>Transaction Ref No</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
for (int k = 0; k < alMocProcessingBean.size(); k++) {
|
||||
oMocProcessingBean = alMocProcessingBean.get(k);
|
||||
%>
|
||||
<tr class="tRow">
|
||||
|
||||
<td>
|
||||
<input type="text" readonly onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="accNo<%=k%>" id="accNo<%=k%>" value="<%=oMocProcessingBean.getAccNo()%>" /> </td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="txnAmt<%=k%>" id="txnAmt<%=k%>" value="<%=oMocProcessingBean.getTxnAmt()%>" onkeypress='return event.charCode >= 46 && event.charCode <= 57 && event.keyCode == 46' />
|
||||
</td>
|
||||
<td>
|
||||
<select disabled style="width: 150px" name="txnInd<%=k%>" id="txnInd<%=k%>" >
|
||||
<option <%if (oMocProcessingBean.getTxnInd().equalsIgnoreCase("CR")) {%>selected <%}%> value="CR">Credit</option>
|
||||
<option <%if (oMocProcessingBean.getTxnInd().equalsIgnoreCase("DR")) {%>selected <%}%> value="DR">Debit</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly onkeypress='return event.charCode >= 48 && event.charCode <= 57' style="width: 130px" name="accNo<%=k%>" id="accNo<%=k%>" value="<%=oMocProcessingBean.getSec_acc_no()%>" />
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text" readonly name="txnNarrationTwo<%=k%>" id="txnNarrationTwo<%=k%>" value="<%=oMocProcessingBean.getNarration()%>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnStatus<%=k%>" id="txnStatus<%=k%>" value="<%=oMocProcessingBean.getTxnStatus()%>" /> </td>
|
||||
<td>
|
||||
<input type="text" readonly name="txnRefNo<%=k%>" id="txnRefNo<%=k%>" value="<%=oMocProcessingBean.getTxnRefNo()%>" /> </td>
|
||||
</tr>
|
||||
<%}%>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<td><input type="button" value="Execute" onclick="javascript:executeform(mocForm)"></td>
|
||||
<td><input type="button" value="Reset" onclick="ShowParent();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<%}%>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<input type="hidden" name="handle_id" id="handle_id" value="" />
|
||||
<input type="hidden" name="searched" id="searched" />
|
||||
<input type="hidden" name="searchedTwo" id="searchedTwo" />
|
||||
</form>
|
||||
|
||||
<form name="MOCManual" id="MOCManual" action="" method="post" >
|
||||
<input type="hidden" id="actionId" value="MOC" name="actionTag">
|
||||
<input type="button" value="Download IPKS MOC Document" id ="MOCManual" name="FileType" onclick="sendFileToServer()" style="float: right"/>
|
||||
</form>
|
||||
|
||||
<br><br>
|
||||
|
||||
<script type="text/javascript">
|
||||
var x=1;
|
||||
$("#addRow").click(function () {
|
||||
if(!validate()){
|
||||
alert('Please fillup one row at a time');
|
||||
} else {
|
||||
document.getElementById("searched").value="0";
|
||||
document.getElementById("searchedTwo").value="0";
|
||||
x=x+1;
|
||||
$("#all_rowsAdded").val(x);
|
||||
var counter = $("#rowCounter").val();
|
||||
counter++;
|
||||
$('#mocData tr:last').after('<tr class="tRow"> <td><input type="checkbox" name="chckbox' + x + '" id="chckbox' + x + '" onclick="checkboxTrue(' + x + ');" /></td> <td> <input type="text" style="width: 130px;text-align:left;" name="accNo' + x + '" id="accNo' + x + '"/> <input type="button" style="width: 70px" name="search' + x + '" id="search' + x + '" value="Search" onclick="javascript:SearchAccount(550,240,' + x + ');" /></td> <td> <input type="text" name="txnAmt' + x + '" id="txnAmt' + x + '" style="text-align:left;" onkeypress="return event.charCode >= 48 && event.charCode <= 57 && event.keyCode = 46" /> </td> <td> <select style="width: 150px" name="txnInd' + x + '" id="txnInd' + x + '" > <option value="CR" selected>Credit</option> <option value="DR">Debit</option> </select> </td> <td><input type="text" style="width: 130px;text-align:left;" name="secAccNo' + x + '" id="secAccNo' + x + '" onkeyup="textChangedTwo()"/><input type="button" style="width: 70px" name="searchsecAccNo' + x + '" id="searchsecAccNo' + x + '" value="Search" onclick="javascript:SearchSecondAccount(550,240,' + x + ');" /></td> <td> <input type="text" name="txnNarration' + x + '" id="txnNarration' + x + '"/> </td></tr>');
|
||||
|
||||
$("#rowCounter").val(counter);
|
||||
counter = $("#rowCounterDeleteCreate").val();
|
||||
counter++;
|
||||
$("#rowCounterDeleteCreate").val(counter);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$( "#deleteRow" ).click(function() {
|
||||
|
||||
var len = ($("#mocData tr").length)-1;
|
||||
var counter = $("#rowCounterDeleteCreate").val();
|
||||
var chkboxCounter=$("#chkboxCounter").val();
|
||||
var counterDelete=counter-chkboxCounter;
|
||||
if (counterDelete==0){
|
||||
alert("All rows cannot be deleted.");
|
||||
}
|
||||
else{
|
||||
if (len == 0) {
|
||||
alert("All rows can not be deleted.");
|
||||
return false;
|
||||
}
|
||||
var rowCounter = $("#rowCounter").val();
|
||||
$('input:checkbox:checked').closest('tr').remove();
|
||||
rowCounter--;
|
||||
$("#rowCounter").val(rowCounter);
|
||||
$("#rowCounterDeleteCreate").val(counterDelete);
|
||||
|
||||
chkboxCounter=0;
|
||||
$("#chkboxCounter").val(chkboxCounter);
|
||||
//calcAmt();
|
||||
//if(isNaN(document.getElementById("grandTotal").value)){
|
||||
// document.getElementById("grandTotal").value = 0;
|
||||
//}
|
||||
document.getElementById("searched").value="1";
|
||||
document.getElementById("searchedTwo").value="1";
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function resetRow(i) {
|
||||
document.getElementById("accNo"+i).value = "";
|
||||
document.getElementById("txnAmt"+i).value = "";
|
||||
document.getElementById("txnInd"+i).value = "CR";
|
||||
}
|
||||
|
||||
function calcAmt() {
|
||||
|
||||
var counter = $("#rowCounter").val();
|
||||
var crTotal = parseFloat(0);
|
||||
var drTotal = parseFloat(0);
|
||||
var total = parseFloat(0);
|
||||
//var i = 1;
|
||||
for(i=1;i<=counter;i++) {
|
||||
try {
|
||||
if(document.getElementById("txnInd"+i).value == "CR")
|
||||
crTotal = crTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
else if(document.getElementById("txnInd"+i).value == "DR")
|
||||
drTotal = drTotal + parseFloat(document.getElementById("txnAmt"+i).value);
|
||||
|
||||
}
|
||||
catch(err){
|
||||
total=0;
|
||||
}
|
||||
}
|
||||
if(isNaN(crTotal)){
|
||||
crTotal = parseFloat(0);
|
||||
}
|
||||
if(isNaN(drTotal)){
|
||||
drTotal = parseFloat(0);
|
||||
}
|
||||
total = crTotal - drTotal;
|
||||
document.getElementById("crTotal").value = crTotal;
|
||||
document.getElementById("drTotal").value = drTotal;
|
||||
document.getElementById("total").value = total;
|
||||
}
|
||||
|
||||
function roundOff() {
|
||||
var counter = $("#rowCounter").val();
|
||||
for(i=1;i<=counter;i++) {
|
||||
try {
|
||||
var amt = document.getElementById("txnAmt"+i).value;
|
||||
var num1 = parseFloat(amt);
|
||||
var cleanNum1 = num1.toFixed(2);
|
||||
|
||||
document.getElementById("txnAmt"+i).value=cleanNum1;
|
||||
}
|
||||
catch(err){
|
||||
amt=0;
|
||||
document.getElementById("txnAmt"+i).value=amt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
298
IPKS_Updated/web/web/web/Deposit/viewBulkIncr_STB.jsp
Normal file
298
IPKS_Updated/web/web/web/Deposit/viewBulkIncr_STB.jsp
Normal file
@@ -0,0 +1,298 @@
|
||||
<%--
|
||||
Document : viewBulkIncr_STB
|
||||
Created on : Oct 26, 2018, 1:20:17 PM
|
||||
Author : 1004242
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.SQLException"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.util.Date"%>
|
||||
<%@page import="DataEntryBean.ChequeDetailsBean"%>
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="java.util.UUID" %>
|
||||
<%String uuid = UUID.randomUUID().toString();%>
|
||||
<% try {
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Bulk Mark</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
|
||||
</head>
|
||||
<style>
|
||||
|
||||
|
||||
#recordsTable {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable td, #recordsTable th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#recordsTable2 {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#recordsTable2 td, #recordsTable2 th {
|
||||
border: 2px solid #000000;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
#recordsTable2 tr:<%--nth-child(even)--%>{background-color: #f2f2f2;}
|
||||
|
||||
#recordsTable2 tr:hover {background-color: #a8ecab;}
|
||||
|
||||
#recordsTable2 th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<script>
|
||||
getPacsAccountList();
|
||||
getExsPacsAccountList();
|
||||
|
||||
function getPacsAccountList() {
|
||||
|
||||
$.ajax({
|
||||
url:'../BulkMarkServletSTB',
|
||||
data:{"temp":"viewAccAuthSTB"},
|
||||
type:'post',
|
||||
cache:false,
|
||||
// success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="pacsId'+i+'">').text(item.rejectedQ),
|
||||
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="View" onclick="viewDetails('+i+')"/>')
|
||||
).appendTo('#recordsTable');
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
function getExsPacsAccountList() {
|
||||
|
||||
$.ajax({
|
||||
url:'../BulkMarkServletSTB',
|
||||
data:{"temp":"viewAccAuthSTB_Exs"},
|
||||
type:'post',
|
||||
cache:false,
|
||||
//success:function(data){
|
||||
if(data!=null){
|
||||
//response = $.parseJSON(data);
|
||||
$(function() {
|
||||
$.each(data, function(i, item) {
|
||||
var $tr = $('<tr>').append(
|
||||
$('<td id="pacsId_Exs'+i+'">').text(item.rejectedQ),
|
||||
|
||||
$('<td>').text(item.pendingQ),
|
||||
$('<td>').text(item.authorisedQ),
|
||||
$('<td>').html('<input type="button" id="'+i+'" value="View" onclick="viewDetails_Exs('+i+')"/>')
|
||||
).appendTo('#recordsTable2');
|
||||
//console.log($tr.wrap('<p>').html());
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("no records");
|
||||
}},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
function viewDetails(i)
|
||||
{
|
||||
var pacsId = $('#pacsId'+i).text();
|
||||
document.forms[0].temp.value = "redirectBulkForm";
|
||||
document.forms[0].tempId2.value = pacsId;
|
||||
bulkDetForm.action = '/PacsApplication/BulkMarkServletSTB';
|
||||
bulkDetForm.submit();
|
||||
}
|
||||
function viewDetails_Exs(i)
|
||||
{
|
||||
var pacsId = $('#pacsId_Exs'+i).text();
|
||||
document.forms[0].temp.value = "redirectBulkForm_Exs";
|
||||
document.forms[0].tempId2.value = pacsId;
|
||||
bulkDetForm.action = '/PacsApplication/BulkMarkServletSTB';
|
||||
bulkDetForm.submit();
|
||||
}
|
||||
|
||||
function noBack()
|
||||
{
|
||||
window.history.forward();
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').hide();
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('select#searchCust').change(function () {
|
||||
var shouldEnable = $(this).val();
|
||||
switch(shouldEnable)
|
||||
{
|
||||
case 'N':
|
||||
$('#chequDetTab').show();
|
||||
$('#exsDetTab').hide();
|
||||
// getPacsAccountList();
|
||||
break;
|
||||
case 'E':
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').show();
|
||||
// getExsPacsAccountList();
|
||||
break;
|
||||
default:
|
||||
$('#chequDetTab').hide();
|
||||
$('#exsDetTab').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var repeater;
|
||||
|
||||
// to restrict back button
|
||||
history.pushState(null, null, location.href);
|
||||
window.addEventListener('popstate', function(event) {
|
||||
history.pushState(null, null, location.href);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%
|
||||
String error_msg = "";
|
||||
Object error = request.getAttribute("message");
|
||||
if (error != null) {
|
||||
error_msg = error.toString();
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
|
||||
<body onload="noBack();">
|
||||
<jsp:include page="MenuHead_Deposit.jsp" flush="true" />
|
||||
|
||||
<div id="ChequeEnquiry">
|
||||
<fieldset style="border-color: black; background-image: url('/PacsApplication/img/download.jpg'); border-width: 3px">
|
||||
<%--<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white"></legend>--%>
|
||||
<legend style="padding: 8px; border-radius: 20px; background-color: #006600; color: white">Bulk Mark</legend>
|
||||
<form name="bulkDetForm" method="post" action="" id="bulkDetForm">
|
||||
<%if (!error_msg.equalsIgnoreCase("")) {%>
|
||||
<center><div class="info" id="errorMessage"><center><%= error_msg%></center></div></center>
|
||||
<% }%>
|
||||
<br>
|
||||
<br><br>
|
||||
<center>
|
||||
<tr><td>Auth Bulk Mark for: </td><td><select id="searchCust" name="searchCust">
|
||||
<option value=""> --Select-- </option>
|
||||
<option value="N">Non-Existing Bank CIF</option>
|
||||
<option value="E">Existing Bank CIF</option>
|
||||
</select></td></tr>
|
||||
<tr><td> <br></td></tr>
|
||||
<br><br></center>
|
||||
|
||||
<div align="center" style="display:block" id="chequDetTab">
|
||||
<%--<p>Tellerwise Transaction details</p>--%>
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Marked Non-Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
|
||||
<tr>
|
||||
<td>Pacs Id</td>
|
||||
<td>Pacs Name</td>
|
||||
<td>Count</td>
|
||||
<td>Select</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<br><br>
|
||||
<input type="hidden" id="tempId" value="redirectBulkForm" name="temp">
|
||||
<input type="hidden" id="tempId2" name="tempId2">
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div align="center" style="display:block" id="exsDetTab">
|
||||
<div><p><font face="Trebuchet MS" color="#000000" size="4"><u>Marked Existing Bank CIF Bulk Account Details</u></font></p></div>
|
||||
<table border="2" width="auto" cellspacing="1" cellpadding="1" id ="recordsTable2" style="text-align: center ;overflow-y: scroll; font-size: 15px">
|
||||
<thead class="CSSTableGenerator">
|
||||
|
||||
<tr>
|
||||
<td>Pacs Id</td>
|
||||
<td>Pacs Name</td>
|
||||
<td>Count</td>
|
||||
<td>Select</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<br><br>
|
||||
</center>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<% } catch (Exception e) {
|
||||
|
||||
}
|
||||
%>
|
||||
82
IPKS_Updated/web/web/web/DynamicInttCategory.jsp
Normal file
82
IPKS_Updated/web/web/web/DynamicInttCategory.jsp
Normal file
@@ -0,0 +1,82 @@
|
||||
<%--
|
||||
Document : DynamicInttCategory
|
||||
Created on : Mar 9, 2016, 6:27:36 PM
|
||||
Author : Tcs Helpdesk10
|
||||
--%>
|
||||
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.AccountCreationBean"%>
|
||||
<%@page import="DataEntryBean.GlProductOperationBean"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="controller.*"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Dynamic Drop Down</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
ResultSet rs_pname = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
try {
|
||||
AccountCreationBean oAccountCreationBean = new AccountCreationBean();
|
||||
ArrayList<AccountCreationBean> alAccountCreationBean = new ArrayList<AccountCreationBean>();
|
||||
// String str = request.getParameter("handle_id");
|
||||
statement = connection.createStatement();
|
||||
// rs = statement.executeQuery("select prod_code,prod_desc,int_cat,intt_cat_desc from dep_product where prod_code='" + str + "'");
|
||||
while(rs.next()){
|
||||
|
||||
oAccountCreationBean = new AccountCreationBean();
|
||||
oAccountCreationBean.setId(str);
|
||||
oAccountCreationBean.setProductCode(rs.getString("prod_code"));
|
||||
oAccountCreationBean.setProductName(rs.getString("prod_desc"));
|
||||
oAccountCreationBean.setInttCategory(rs.getString("int_cat"));
|
||||
oAccountCreationBean.setInttDescription(rs.getString("intt_cat_desc"));
|
||||
|
||||
alAccountCreationBean.add(oAccountCreationBean);
|
||||
|
||||
}
|
||||
|
||||
request.setAttribute("oAccountCreationBeanObj", alAccountCreationBean);
|
||||
request.setAttribute("flag", 'Y');
|
||||
request.getRequestDispatcher("/accountCreation.jsp").forward(request, response);
|
||||
// statement.close();
|
||||
//connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
94
IPKS_Updated/web/web/web/DynamicPacsDisplay.jsp
Normal file
94
IPKS_Updated/web/web/web/DynamicPacsDisplay.jsp
Normal file
@@ -0,0 +1,94 @@
|
||||
<%--
|
||||
Document : DynamicPacsDisplay
|
||||
Created on : Mar 9, 2016, 6:27:36 PM
|
||||
Author : Tcs Helpdesk10
|
||||
--%>
|
||||
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page import="DataEntryBean.UserMaintainanceBean"%>
|
||||
<%@page import="LoginDb.DbHandler"%>
|
||||
<%@page import="java.sql.Statement"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="controller.*"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Dynamic Drop Down</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="${pageContext.request.contextPath}/js/Calendar.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/TableCSSCode.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico?pacs=<%=((new java.util.Date()).getTime())%>" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/styles.css?pacs=<%=((new java.util.Date()).getTime())%>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/ButtonAndText.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<link rel="stylesheet" type="text/css" href="/PacsApplication/css/info.css?pacs=<%=((new java.util.Date()).getTime())%>" />
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-ui-1.10.4.custom/development-bundle/jquery-1.10.2.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/chromejs/chrome.js?pacs=<%=((new java.util.Date()).getTime())%>"></script>
|
||||
<script type="text/javascript" src="/PacsApplication/js/iFrame_killer.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
Connection connection = null;
|
||||
ResultSet rs = null;
|
||||
ResultSet rs_pname = null;
|
||||
Statement statement = null;
|
||||
connection = DbHandler.getDBConnection();
|
||||
String Option = request.getParameter("checkOption");
|
||||
int Search = 0;
|
||||
|
||||
if (Option.equalsIgnoreCase("create")) {
|
||||
|
||||
try {
|
||||
UserMaintainanceBean oUserMaintainanceBean = new UserMaintainanceBean();
|
||||
ArrayList<UserMaintainanceBean> alUserMaintainanceBean = new ArrayList<UserMaintainanceBean>();
|
||||
|
||||
//String str = request.getParameter("dccbCode");
|
||||
statement = connection.createStatement();
|
||||
// rs = statement.executeQuery("select t.pacs_id,t.pacs_id||':'||t.pacs_name from pacs_master t where t.dccb_code='" + str + "'");
|
||||
while (rs.next()) {
|
||||
oUserMaintainanceBean = new UserMaintainanceBean();
|
||||
|
||||
oUserMaintainanceBean.setPacsId(rs.getString(1));
|
||||
oUserMaintainanceBean.setPacsDetails(rs.getString(2));
|
||||
|
||||
alUserMaintainanceBean.add(oUserMaintainanceBean);
|
||||
Search = 1;
|
||||
request.setAttribute("flag", "Y");
|
||||
oUserMaintainanceBean.setDccbCode(str);
|
||||
}
|
||||
|
||||
|
||||
oUserMaintainanceBean.setCheckOption("create");
|
||||
if (Search == 0) {
|
||||
request.setAttribute("flag", "N");
|
||||
}
|
||||
request.setAttribute("alUserMaintainanceBean", alUserMaintainanceBean);
|
||||
request.setAttribute("oUserMaintainanceBeanObj", oUserMaintainanceBean);
|
||||
|
||||
request.getRequestDispatcher("/userMaintenance.jsp").forward(request, response);
|
||||
// statement.close();
|
||||
// connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error occurred during processing.");
|
||||
} finally {
|
||||
try {
|
||||
if(statement !=null)
|
||||
statement.close();
|
||||
if (connection != null)
|
||||
connection.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error Occurred during connection close.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user