Commit 4062477a authored by smestry's avatar smestry

Updated the java for auto barcode generation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104109 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0f3e9604
......@@ -1878,6 +1878,9 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
public String generateTranId( String windowName, String siteCode, Connection conn )throws ITMException
{
System.out.println("windowName inside generateTranId =========>>"+windowName);
System.out.println("siteCode inside generateTranId =========>>"+siteCode);
PreparedStatement pstmt = null;
ResultSet rs = null;
String selSql = "";
......@@ -1894,11 +1897,6 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
try
{
if(conn == null)
{
conn = getConnection();
}
SimpleDateFormat sdfAppl = new SimpleDateFormat(genericUtility.getApplDateFormat());
currDate = new java.sql.Timestamp(System.currentTimeMillis());
......@@ -1959,11 +1957,6 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
pstmt.close();
pstmt = null;
}
if (conn != null && !conn.isClosed())
{
conn.close();
conn = null;
}
}
catch(Exception e){}
}
......
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