Commit 0170d859 authored by steurwadkar's avatar steurwadkar

Changed by Manish on 05/07/16 for get connection.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@40534 ce508802-f39f-4f6c-b175-0d175dae99d5
parent de677789
......@@ -67,8 +67,11 @@ public class ItemAttribute extends ValidatorEJB implements ItemAttributeLocal, I
SimpleDateFormat simpleDateFormat = null;
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
loginSite = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
......
......@@ -73,8 +73,11 @@ public class ItemAttributeIC extends ValidatorEJB implements ItemAttributeICLoca
String sql = "";
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
loginSite = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
......
......@@ -88,8 +88,11 @@ public class ItmAttribValIC extends ValidatorEJB implements ItmAttribValICRemote
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode");
System.out.println("site code ->["+siteCode+"]");
System.out.println("Current Column> > > > ->["+currentColumn+"]");
......@@ -281,9 +284,11 @@ public class ItmAttribValIC extends ValidatorEJB implements ItmAttribValICRemote
PreparedStatement pstmt1 = null;
ResultSet rs1 = null;
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
{ //Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
E12GenericUtility genericUtility = new E12GenericUtility();
descr = checkNull(genericUtility.getColumnValue("descr", dom));
......
......@@ -153,10 +153,13 @@ public class LocWisePickWizIC extends ValidatorEJB implements LocWisePickWizICLo
int childNodeListLength = 0;
try
{
int currentFormNo = 0;
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
int currentFormNo = 0;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverITM" );
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getApplDateFormat());
String userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
......@@ -1199,10 +1202,12 @@ public class LocWisePickWizIC extends ValidatorEJB implements LocWisePickWizICLo
String dbDateFormat = genericUtility.getDBDateFormat();
String applDateFormat = genericUtility.getApplDateFormat();
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverITM" );
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
if( objContext != null && objContext.trim().length() > 0 )
{
......
......@@ -31,14 +31,18 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
ResultSet rs = null;
Connection conn = null;
PreparedStatement pstmt = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
StringBuffer xmlData = null;
try
{
System.out.println("Calling EJB getLocPhyArea ---------");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
//connDriver = null;
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
//Changed by Sneha, for display of Lock Code on 16-07-2015, Request ID: W15ESUN005
//sql = "select distinct loc_phy_area from location order by loc_phy_area ";
......@@ -97,13 +101,17 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
ResultSet rs = null;
Connection conn = null;
PreparedStatement pstmt = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
String selectedArea = "";
try
{
System.out.println("Calling EJB getSelectedArea ---------");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//Changed by Sneha, for display of Lock Code on 16-07-2015, Request ID: W15ESUN005
//sql = " select distinct loc_phy_area from location order by loc_phy_area ";
......@@ -154,7 +162,8 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
ResultSet rs = null, rs1 = null, rs2 = null;
Connection conn = null;
PreparedStatement pstmt = null, pstmt1 = null, pstmt2 = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
StringBuffer xmlData = null;
String previousRow = "";
String previousStack = "";
......@@ -167,8 +176,11 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
try
{
System.out.println("Calling EJB getLocDtl ---------");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
if(locationRange!=null && locationRange.trim().length()>0)
{
......@@ -419,13 +431,17 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
ResultSet rs = null;
Connection conn = null;
PreparedStatement pstmt = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
StringBuffer xmlData = null;
String siteCode = "";
try
{
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
//connDriver = null;
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[START]
// sql = "select distinct loc_phy_area from location order by loc_phy_area ";
sql = "SELECT VAR_VALUE FROM DISPARM WHERE PRD_CODE='999999' AND VAR_NAME='SITE_CODE' ";
System.out.println(" sql is =" + sql);
......
......@@ -105,8 +105,11 @@ public class LockGroupIC extends ValidatorEJB implements LockGroupICRemote,LockG
E12GenericUtility genericUtility = new E12GenericUtility();
DateFormat dtFormat = new SimpleDateFormat(genericUtility.getApplDateTimeFormat());
ConnDriver connDriver = new ConnDriver();
connectionObject = connDriver.getConnectDB( "DriverValidator" );
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//connectionObject = connDriver.getConnectDB( "DriverValidator" );
connectionObject = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
String userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
if ( objContext != null && objContext.trim().length() > 0 )
......@@ -348,9 +351,11 @@ public class LockGroupIC extends ValidatorEJB implements LockGroupICRemote,LockG
try
{
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverValidator" );
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverValidator" );
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
columnValue = genericUtility.getColumnValue( currentColumn, dom );
if( objContext != null && objContext.trim().length() > 0 )
......
......@@ -75,9 +75,12 @@ public class LpnNoGenIC extends ValidatorEJB implements LpnNoGenICLocal, LpnNoGe
{
String columnValue = "";
int currentFormNo = 0;
ConnDriver connDriver = null;
connDriver = new ConnDriver();
connObject = connDriver.getConnectDB("DriverValidator");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = null;
//connDriver = new ConnDriver();
//connObject = connDriver.getConnectDB("DriverValidator");
connObject = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[START]
NodeList parentList = null;
NodeList childList = null;
......
......@@ -82,10 +82,12 @@ public class LpnNoGenPrc extends ProcessEJB implements LpnNoGenPrcLocal,LpnNoGe
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false);
//Changed and Commented By Santosh on 14-06-2016 :[START]
if ( windowName == null || windowName.trim().length() == 0 )
{
......
......@@ -83,7 +83,8 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal,
int childNodeListLength;
double quantity = 0;
double qty = 0;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
String columnValue ="", sSQL = "", itemCode = "", lotNo = "", lotSl ="";
String locCode = "";
......@@ -110,8 +111,11 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal,
try
{
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getApplDateFormat());
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
if(objContext != null && objContext.trim().length()>0)
......@@ -916,17 +920,20 @@ public class MPhyItemScanIC extends ValidatorEJB implements MPhyItemScanICLocal,
java.util.Date currDate = null;
java.util.Date todayDate=new java.util.Date();
String currDateStr = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
E12GenericUtility genericUtility = new E12GenericUtility();
String phyHanUOM = "";
java.util.Date utilDate = new java.util.Date();
String isStock="";
try
{
conn = connDriver.getConnectDB("DriverITM");
{ //Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false);
connDriver=null;
//connDriver=null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
Timestamp date1 = Timestamp.valueOf(sdf.format(utilDate).toString() + " 00:00:00.0");
String applDateFormat = genericUtility.getApplDateFormat();
......
......@@ -157,9 +157,12 @@ public class MasterPackIC extends ValidatorEJB implements MasterPackICRemote, Ma
Node parentNode = null;//added by sumit on 08/02/13
int currentFormNo = 0, cnt = 0, count = 0;
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = null;
//connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
NodeList parentList = null;
NodeList childList = null;
......@@ -1390,11 +1393,14 @@ public class MasterPackIC extends ValidatorEJB implements MasterPackICRemote, Ma
DateFormat dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
String dbDateFormat = genericUtility.getDBDateFormat();
String applDateFormat = genericUtility.getApplDateFormat();
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = null;
//connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
if( objContext != null && objContext.trim().length() > 0 )
{
......
......@@ -58,10 +58,13 @@ public class MultipleMasterPackWizPos extends ValidatorEJB implements MultipleMa
try
{
conn = null;
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false);
connDriver = null;
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
isLocalConn = true;
if(domString !=null && domString.length() > 0)
{
......
......@@ -124,10 +124,13 @@ public class MultiplePtcnWiz extends ValidatorEJB implements MultiplePtcnWizLoca
System.out.println("DOM1----->>["+genericUtility.serializeDom(dom1).toString()+"]");
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false);
connDriver = null;
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0) {
......@@ -882,9 +885,12 @@ public class MultiplePtcnWiz extends ValidatorEJB implements MultiplePtcnWizLoca
String applDateFormat = genericUtility.getApplDateFormat();
System.out.println("loginEmpCode---->>["+loginEmpCode+"] chgUser---->>["+chgUser+"]");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverITM" );
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
if( objContext != null && objContext.trim().length() > 0 )
{
......
......@@ -139,10 +139,13 @@ public class NearExpiryIC extends ValidatorEJB implements NearExpiryICRemote, Ne
{
int currentFormNo = 0, cnt = 0;
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = null;
//connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
DistCommon dComm = new DistCommon();
......@@ -494,9 +497,12 @@ public class NearExpiryIC extends ValidatorEJB implements NearExpiryICRemote, Ne
String dbDateFormat = genericUtility.getDBDateFormat();
String applDateFormat = genericUtility.getApplDateFormat();
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = null;
//connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
if( objContext != null && objContext.trim().length() > 0 )
{
......
......@@ -141,10 +141,13 @@ public class NearExpiryPrc extends ProcessEJB implements NearExpiryPrcLocal,Near
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
conn.setAutoCommit(false);
//Changed and Commented By Santosh on 14-06-2016 :[END]
DistCommon distComm = new DistCommon();
......
......@@ -82,8 +82,11 @@ public class NetPrintersIC extends ValidatorEJB implements NetPrintersICLocal, N
ResultSet rs1 = null;
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
......
......@@ -77,8 +77,11 @@ public class ObjAttributeIC extends ValidatorEJB implements ObjAttributeICLocal,
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
loginSite = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
......
......@@ -87,11 +87,15 @@ public class PackingConf extends ActionHandlerEJB implements PackingConfLocal, P
//added by chaitali on 03/12/11
if ( conn == null )
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
conn.setAutoCommit(false);
connStatus = true;
}
E12GenericUtility genericUtility = new E12GenericUtility();
......
......@@ -127,9 +127,12 @@ public class PackingIC extends ValidatorEJB implements PackingICRemote, PackingI
int currentFormNo = 0, cnt = 0;
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = null;
//connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
NodeList parentList = null;
NodeList childList = null;
......@@ -665,10 +668,13 @@ public class PackingIC extends ValidatorEJB implements PackingICRemote, PackingI
String dbDateFormat = genericUtility.getDBDateFormat();
String applDateFormat = genericUtility.getApplDateFormat();
ConnDriver connDriver = null;
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = null;
//connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
if( objContext != null && objContext.trim().length() > 0 )
{
......
......@@ -74,7 +74,8 @@ public class PalletMergeIC extends ValidatorEJB implements PalletMergeICLocal, P
String userId = "";
int currentFormNo=0;
int childNodeListLength;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
String columnValue ="";
String palletNo = "";
//Changed by sumit on 16/11/12
......@@ -82,8 +83,11 @@ public class PalletMergeIC extends ValidatorEJB implements PalletMergeICLocal, P
try
{
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
if(objContext != null && objContext.trim().length()>0)
......@@ -448,14 +452,18 @@ public class PalletMergeIC extends ValidatorEJB implements PalletMergeICLocal, P
String itemCode = "",lotNo = "", lotSl = "";
java.util.Date currDate = null;
String currDateStr = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false);
connDriver=null;
//connDriver=null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
String applDateFormat = genericUtility.getApplDateFormat();
currDate = new java.util.Date();
......
......@@ -154,9 +154,12 @@ public class PalletNoIC extends ValidatorEJB implements PalletNoICLocal, PalletN
{
//Changed by Dadaso pawar merge DDUk and SUN WMS [START] [04/11/15]
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverITM" );
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
projectCode = disCommonObj.getDisparams("999999","PROJECT",conn);
if("DDUK".equalsIgnoreCase(projectCode))
......@@ -825,9 +828,12 @@ public class PalletNoIC extends ValidatorEJB implements PalletNoICLocal, PalletN
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverITM" );
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
String ptcnPalletNo = "";
projectCode =checkNullAndTrim(distCommon.getDisparams("999999","PROJECT",conn));
System.out.println("projectCode["+projectCode+"]");
......
......@@ -134,10 +134,13 @@ public class PalletOutIC extends ValidatorEJB implements PalletOutICLocal, Palle
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false);
connDriver = null;
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0)
......@@ -503,10 +506,13 @@ public class PalletOutIC extends ValidatorEJB implements PalletOutICLocal, Palle
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
System.out.println("loginEmpCode---->>["+loginEmpCode+"] chgUser---->>["+chgUser+"]");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverITM" );
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
dispDamageLock = checkNullAndTrim(distComm.getDisparams("999999", "DM_LOCKS", conn));
dispHoldLock = checkNullAndTrim(distComm.getDisparams("999999", "HOLD_LOCKS", conn));
dispNexpLoc = distComm.getDisparams("999999","NEAR_EXP_LOCK",conn);
......
......@@ -74,7 +74,8 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal
String lineNo = "",palletNo = "",locCodeInput = "",locCodeSugg = "",siteCode = "",palleNoInterface = "",bayNo = "";
int caseCount = 0;
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
Document dom = null;
try
......@@ -84,8 +85,11 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal
System.out.println("XML String="+domString);
System.out.println("Connection not found from Framework so creating new");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
conn.setAutoCommit(false);
siteCode = checkNullAndTrim((genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode")));
......@@ -1515,11 +1519,15 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal
String sql = "";
ResultSet rs = null;
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
Statement stmt = null;
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
stmt = conn.createStatement();
char type = checkIntegralQty.charAt(0);
......@@ -2007,13 +2015,17 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal
String sql = "";
ResultSet rs = null;
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
Statement stmt = null;
double reoQty = 0.0D; double capacity = 0.0D; double integralQty = 0.0D; double mod = 0.0D; double noArt3 = 0.0D;
double noArt = 0.0D; double noArt1 = 0.0D; double noArt2 = 0.0D;
try
{
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
stmt = conn.createStatement();
System.out.println("type :" + type);
switch (type)
......
......@@ -44,14 +44,17 @@ implements PalletReqConfLocal, PalletReqConfRemote
{
String retString = "";
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
//Commented by Santosh on 14-06-2016
//ConnDriver connDriver = new ConnDriver();
boolean isConn = true;
try
{
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//conn.setAutoCommit(false);
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
retString = confirm(tranID, xtraParams, forcedFlag, conn, isConn);
if ((retString == null) && (retString.length() < 0))
......
......@@ -86,8 +86,11 @@ implements PalletReqExpiryActLocal, PalletReqExpiryActRemote
ResultSet rs = null;
String locCode = ""; String status = "",actualPallet ="",descr="",invDescr="";
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
StringBuffer xmlString = new StringBuffer("<Root>");
String tranId="";
try
......@@ -314,8 +317,11 @@ implements PalletReqExpiryActLocal, PalletReqExpiryActRemote
String locCode = ""; String status = ""; String palletNo = ""; String itemCode = ""; String lotNo = ""; String lotSl = ""; String quantity = ""; String noArt = ""; String sql = ""; String siteCode = "";
E12GenericUtility genericUtility = new E12GenericUtility();
StringBuffer xmlString = new StringBuffer("<Root>");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
PreparedStatement pstmt = null;
ResultSet rs = null;
String tranId="",actualPallet ="",descr="" ,invDescr="";
......@@ -544,8 +550,11 @@ implements PalletReqExpiryActLocal, PalletReqExpiryActRemote
String locCode = ""; String status = ""; String palletNo = ""; String itemCode = ""; String lotNo = ""; String lotSl = ""; String quantity = ""; String noArt = ""; String siteCode = ""; String sql = "";
E12GenericUtility genericUtility = new E12GenericUtility();
StringBuffer xmlString = new StringBuffer("<Root>");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
String tranId="",actualPallet ="",descr="",invDescr="";
try
{
......@@ -704,8 +713,11 @@ implements PalletReqExpiryActLocal, PalletReqExpiryActRemote
String locCode = ""; String status = ""; String palletNo = ""; String itemCode = ""; String lotNo = ""; String lotSl = ""; String quantity = ""; String noArt = ""; String siteCode = ""; String sql = "";
E12GenericUtility genericUtility = new E12GenericUtility();
StringBuffer xmlString = new StringBuffer("<Root>");
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
String tranId="",actualPallet ="",descr="",invDescr ="";
try
{
......
......@@ -144,10 +144,13 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false);
connDriver = null;
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0)
......@@ -1143,9 +1146,12 @@ public class PalletReqIC extends ValidatorEJB implements PalletReqICLocal, Palle
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat simpleDateFormatObj = new SimpleDateFormat(genericUtility.getApplDateFormat());
tranDate = simpleDateFormatObj.format(currentDate.getTime());
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB( "DriverITM" );
conn = getConnection();
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
if( objContext != null && objContext.trim().length() > 0 )
{
......
......@@ -63,10 +63,13 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
System.out.println("::::::::::::::::: Inside postSave for palletization confirm :::::::::::::::: ");
E12GenericUtility genericUtility = new E12GenericUtility();
ConnDriver connDriver = new ConnDriver();
conn1 = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn1 = connDriver.getConnectDB("DriverITM");
conn1 = getConnection();
conn1.setAutoCommit(false);
connDriver = null;
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
Document dom = null;
dom = genericUtility.parseString(domString);
......@@ -443,8 +446,11 @@ public class PalletizationConf extends ValidatorEJB implements PalletizationConf
DistCommon distComm = new DistCommon();
String nexpLoc = "", lockCode = "", expLoc = "";
ArrayList interfaceArrList = new ArrayList();
ConnDriver connDriver = new ConnDriver();
conn1 = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn1 = connDriver.getConnectDB("DriverITM");
conn1 = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
int interfaceQty1 = 0;
//Changed By Jagruti Shinde on 4/1/2016 Request Id:W15JSUN001[Start]
stroPrefF = distComm.getDisparams("999999", "AWMS_FAST_MOVING", conn1);
......
......@@ -53,10 +53,13 @@ public class PalletizationPos extends ValidatorEJB implements PalletizationPosLo
boolean isDelete = false;
try
{
ConnDriver connDriver = new ConnDriver();
conn1 = connDriver.getConnectDB("DriverITM");
//Changed and Commented By Santosh on 14-06-2016 :[START]
//ConnDriver connDriver = new ConnDriver();
//conn1 = connDriver.getConnectDB("DriverITM");
conn1 = getConnection();
conn1.setAutoCommit(false);
connDriver = null;
//connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
E12GenericUtility genericUtility = new E12GenericUtility();
Document dom = null;
......
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