<%-- 
    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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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) {
                
            }
%>






