Commit ae919832 authored by prane's avatar prane

DriverITM is changed to getConnection()

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175512 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d7747b69
...@@ -34,11 +34,12 @@ public class PriceListMasterWF ...@@ -34,11 +34,12 @@ public class PriceListMasterWF
try try
{ {
connDriver = new ConnDriver(); //connDriver = new ConnDriver();
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; //connDriver = null;
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateTimeFormat()); simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateTimeFormat());
currDate = simpleDateFormat.format(Calendar.getInstance().getTime() ); currDate = simpleDateFormat.format(Calendar.getInstance().getTime() );
currDate = genericUtility.getValidDateTimeString( currDate, genericUtility.getApplDateTimeFormat(),genericUtility.getDBDateTimeFormat() ) ; currDate = genericUtility.getValidDateTimeString( currDate, genericUtility.getApplDateTimeFormat(),genericUtility.getDBDateTimeFormat() ) ;
...@@ -176,11 +177,12 @@ public class PriceListMasterWF ...@@ -176,11 +177,12 @@ public class PriceListMasterWF
try try
{ {
connDriver = new ConnDriver(); //connDriver = new ConnDriver();
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; //connDriver = null;
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateTimeFormat()); simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateTimeFormat());
currDate = simpleDateFormat.format( Calendar.getInstance().getTime() ); currDate = simpleDateFormat.format( Calendar.getInstance().getTime() );
currDate = genericUtility.getValidDateTimeString( currDate, genericUtility.getApplDateTimeFormat(),genericUtility.getDBDateTimeFormat() ) ; currDate = genericUtility.getValidDateTimeString( currDate, genericUtility.getApplDateTimeFormat(),genericUtility.getDBDateTimeFormat() ) ;
...@@ -295,10 +297,11 @@ public class PriceListMasterWF ...@@ -295,10 +297,11 @@ public class PriceListMasterWF
try try
{ {
connDriver = new ConnDriver(); //connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; //connDriver = null;
processInfo = processId.split(":"); processInfo = processId.split(":");
prcId = checkNull(processInfo[0]); prcId = checkNull(processInfo[0]);
instanceId = checkNull(processInfo[1]); instanceId = checkNull(processInfo[1]);
...@@ -385,10 +388,11 @@ public class PriceListMasterWF ...@@ -385,10 +388,11 @@ public class PriceListMasterWF
try try
{ {
connDriver = new ConnDriver(); //connDriver = new ConnDriver();
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
connDriver = null; conn = getConnection();
//connDriver = null;
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateTimeFormat()); simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateTimeFormat());
currDate = simpleDateFormat.format( Calendar.getInstance().getTime() ); currDate = simpleDateFormat.format( Calendar.getInstance().getTime() );
currDate = genericUtility.getValidDateTimeString( currDate, genericUtility.getApplDateTimeFormat(),genericUtility.getDBDateTimeFormat() ) ; currDate = genericUtility.getValidDateTimeString( currDate, genericUtility.getApplDateTimeFormat(),genericUtility.getDBDateTimeFormat() ) ;
......
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