Commit ed38f228 authored by prane's avatar prane

DriverITM is changed to getConnection()

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175551 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 401f3f08
...@@ -40,7 +40,8 @@ public class PricelistGenerationWF { ...@@ -40,7 +40,8 @@ public class PricelistGenerationWF {
} }
else{ else{
try { try {
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
connDriver = null; connDriver = null;
conn.setAutoCommit(false); conn.setAutoCommit(false);
empCodeAprv = empCodeAprv == null ? "" : empCodeAprv.trim(); empCodeAprv = empCodeAprv == null ? "" : empCodeAprv.trim();
...@@ -171,7 +172,8 @@ public class PricelistGenerationWF { ...@@ -171,7 +172,8 @@ public class PricelistGenerationWF {
remarks = checkNull(remarks); remarks = checkNull(remarks);
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;
if ("C".equalsIgnoreCase(wfStatus) || "R".equalsIgnoreCase(wfStatus)) { if ("C".equalsIgnoreCase(wfStatus) || "R".equalsIgnoreCase(wfStatus)) {
...@@ -248,7 +250,8 @@ public class PricelistGenerationWF { ...@@ -248,7 +250,8 @@ public class PricelistGenerationWF {
{ {
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());
...@@ -390,7 +393,8 @@ public class PricelistGenerationWF { ...@@ -390,7 +393,8 @@ public class PricelistGenerationWF {
{ {
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());
...@@ -507,7 +511,8 @@ public class PricelistGenerationWF { ...@@ -507,7 +511,8 @@ public class PricelistGenerationWF {
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(":");
......
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