Commit 1cbaa817 authored by kmandhre's avatar kmandhre

change date format


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95034 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d6c7cb65
<%@page import = "org.jpedal.*,org.jpedal.fonts.*"%> <%@page import = "org.jpedal.*,org.jpedal.fonts.*"%>
<%@page import = "org.jpedal.exception.PdfException"%> <%@page import = "org.jpedal.exception.PdfException"%>
<%@page import="java.awt.Image, javax.imageio.ImageIO,java.awt.image.*,java.util.*"%> <%@page import="java.awt.Image, javax.imageio.ImageIO,java.awt.image.*,java.util.*,java.text.SimpleDateFormat,ibase.webitm.utility.GenericUtility"%>
<%@page import="java.io.*,java.sql.*,ibase.system.config.ConnDriver,ibase.utility.CommonConstants"%> <%@page import="java.io.*,java.sql.*,ibase.system.config.ConnDriver,ibase.utility.CommonConstants"%>
<%! <%!
...@@ -13,6 +13,8 @@ String fileType="",str="",siteDescr=""; ...@@ -13,6 +13,8 @@ String fileType="",str="",siteDescr="";
String add1="",add2="",add3="",pinPass="",countName="",nationality="",grpCode=""; String add1="",add2="",add3="",pinPass="",countName="",nationality="",grpCode="";
String city="",stateDescr="",tel1="",mobNo="",passportFullName="",status=""; String city="",stateDescr="",tel1="",mobNo="",passportFullName="",status="";
java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null,dateOfIssue=null,validUpto=null,confDate=null; java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null,dateOfIssue=null,validUpto=null,confDate=null;
GenericUtility genericUtility = GenericUtility.getInstance();
SimpleDateFormat sdf;
%> %>
<% <%
...@@ -36,6 +38,7 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null ...@@ -36,6 +38,7 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null
boolean flag = false; boolean flag = false;
try try
{ {
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
FileOutputStream fos = null; FileOutputStream fos = null;
boolean deleteDir = delete(file); boolean deleteDir = delete(file);
...@@ -222,7 +225,7 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null ...@@ -222,7 +225,7 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null
<table style='font-family:arial;color:black;font-size:15px;'> <table style='font-family:arial;color:black;font-size:15px;'>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Tran Id :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=tranID%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Tran Id :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=tranID%></td></tr>
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Devision : </td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=itemSer%></td></tr> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Devision : </td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=itemSer%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Tran Date : </td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=tranDate==null?" ":tranDate%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Tran Date : </td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=tranDate==null?" ":sdf.format(tranDate)%></td></tr>
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Site Code : </td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=siteCode%> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Site Code : </td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=siteCode%>
</tr> </tr>
...@@ -245,8 +248,8 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null ...@@ -245,8 +248,8 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Telephone :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=tel1%></td></tr> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Telephone :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=tel1%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Mobile :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=mobNo%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Mobile :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=mobNo%></td></tr>
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Confirmed :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=confirmed%></td></tr> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Confirmed :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=confirmed%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Conf Date :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=confDate==null?" ":confDate%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Conf Date :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=confDate==null?" ":sdf.format(confDate)%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Status :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=status==null?" ":confDate%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Status :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=status%></td></tr>
</table> </table>
<!-- </tr> --> <!-- </tr> -->
<!-- <tr> --> <!-- <tr> -->
...@@ -259,24 +262,23 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null ...@@ -259,24 +262,23 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null
<div STYLE= 'font-family:arial;color:black;background-color:#48D1CC;POSITION:relative;TOP:1;'><h5>Travel information:</h5></div> <div STYLE= 'font-family:arial;color:black;background-color:#48D1CC;POSITION:relative;TOP:1;'><h5>Travel information:</h5></div>
<table style='font-family:arial;color:black;font-size:15px;'> <table style='font-family:arial;color:black;font-size:15px;'>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Group Code :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=grpCode%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Group Code :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=grpCode%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Date of travel from :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=travelDateFrom==null?" ":travelDateFrom%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Date of travel from :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=travelDateFrom==null?" ":sdf.format(travelDateFrom)%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Date of travel to :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=travelDateTo==null?" ":travelDateTo%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Date of travel to :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=travelDateTo==null?" ":sdf.format(travelDateTo)%></td></tr>
</table> </table>
<div STYLE= 'font-family:arial;color:black;background-color:#48D1CC;POSITION:relative;TOP:1;'><h5>Passport information:</h5></div> <div STYLE= 'font-family:arial;color:black;background-color:#48D1CC;POSITION:relative;TOP:1;'><h5>Passport information:</h5></div>
<div align = 'left' STYLE= 'font-family:arial;color:#FF0000;font-size:15px;font-style: bold;'>Please enter below detail he is as per show in passport</div>
<table style='font-family:arial;color:black;font-size:15px;'> <table style='font-family:arial;color:black;font-size:15px;'>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Title :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=namePrefix%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Title :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=namePrefix%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Surname :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=empLname%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Surname :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=empLname%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Given name :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=passportFullName%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Given name :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=passportFullName%></td></tr>
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Birth Date :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=birthDate==null?" ":birthDate%></td></tr> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Birth Date :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=birthDate==null?" ":sdf.format(birthDate)%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Birth Place :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=birthPlace%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Birth Place :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=birthPlace%></td></tr>
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Passport No :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=passportNo%></td></tr> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Passport No :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=passportNo%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Meal Pref :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=mealPref%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Meal Pref :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=mealPref%></td></tr>
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Date Of Issue :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=dateOfIssue==null?" ":dateOfIssue%></td></tr> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Date Of Issue :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=dateOfIssue==null?" ":sdf.format(dateOfIssue)%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Valid Upto :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=validUpto==null?" ":validUpto%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Valid Upto :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=validUpto==null?" ":sdf.format(validUpto)%></td></tr>
<tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Place of Issue :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=placeOfIssue%></td></tr> <tr STYLE= 'background-color:#DCDCDC;'><td align="right" style = "width:300px">Place of Issue :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=placeOfIssue%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Country :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=countName%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Country :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=countName%></td></tr>
<tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Nationality :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=nationality%></td></tr> <tr STYLE= 'background-color:#D3D3D3;'><td align="right" style = "width:300px">Nationality :</td><td align="left" STYLE= 'POSITION:relative;TOP:1;left:20;width:1000'><%=nationality%></td></tr>
...@@ -309,7 +311,7 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null ...@@ -309,7 +311,7 @@ java.sql.Date travelDateFrom=null,travelDateTo=null,tranDate=null,birthDate=null
out.println("<figure><td align='left'>"); out.println("<figure><td align='left'>");
if(".jpg".equalsIgnoreCase(fileExtn.trim()) || ".png".equalsIgnoreCase(fileExtn.trim()) || ".jpeg".equalsIgnoreCase(fileExtn.trim()) || ".bmp".equalsIgnoreCase(fileExtn.trim()) || ".gif".equalsIgnoreCase(fileExtn.trim())) if(".jpg".equalsIgnoreCase(fileExtn.trim()) || ".png".equalsIgnoreCase(fileExtn.trim()) || ".jpeg".equalsIgnoreCase(fileExtn.trim()) || ".bmp".equalsIgnoreCase(fileExtn.trim()) || ".gif".equalsIgnoreCase(fileExtn.trim()))
{ {
out.println("<img src = '../tempDoc/"+filename+"' width='80px' height='100px'/></br>"); out.println("<img src = '../tempDoc/"+filename+"' width='100px' height='100px'/></br>");
out.println("<FONT SIZE='2'><a style='text-decoration: none;color:#696969;' width='100px' height='100px' href= '../tempDoc/"+filename+"' target = '_blank'> "+filename+" </a></font>"); out.println("<FONT SIZE='2'><a style='text-decoration: none;color:#696969;' width='100px' height='100px' href= '../tempDoc/"+filename+"' target = '_blank'> "+filename+" </a></font>");
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment