Commit 49b455a9 authored by prane's avatar prane

to get conn from getConnection() instead of ConnDriver

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192796 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6ac78399
...@@ -18,7 +18,7 @@ package ibase.webitm.ejb.mfg; ...@@ -18,7 +18,7 @@ package ibase.webitm.ejb.mfg;
6. in of case mfgtype = "O" create workorder instead of mps order 6. in of case mfgtype = "O" create workorder instead of mps order
*/ */
import ibase.system.config.ConnDriver; //import ibase.system.config.ConnDriver;//commented by pavan R on 12nov18 [to get conn from getConnection() instead of ConnDriver]
import ibase.utility.CommonConstants; import ibase.utility.CommonConstants;
import ibase.utility.EMail; import ibase.utility.EMail;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
...@@ -396,7 +396,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -396,7 +396,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
logInSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"); logInSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
//genericUtility = GenericUtility.getInstance(); //genericUtility = GenericUtility.getInstance();
genericUtility= new E12GenericUtility(); genericUtility= new E12GenericUtility();
ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();//commented by pavan R on 12nov18 [to get conn from getConnection() instead of ConnDriver]
try try
{ {
context = genericUtility.getColumnValue("wizard", dom); context = genericUtility.getColumnValue("wizard", dom);
...@@ -591,9 +591,11 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -591,9 +591,11 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"); chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"); chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId");
CommonConstants.setIBASEHOME(); CommonConstants.setIBASEHOME();
conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");//commented and added by pavan R on 12nov18 [to get conn from getConnection() instead of ConnDriver] start
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; //connDriver = null;
//pavan R on 12nov18 end
// validate the filter parameter entered by the user // validate the filter parameter entered by the user
errString = validateFilterParams(dom); errString = validateFilterParams(dom);
...@@ -8528,8 +8530,11 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -8528,8 +8530,11 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
if( conn == null) if( conn == null)
{ {
isbomReplaceFlag= true; isbomReplaceFlag= true;
ConnDriver connDriver = new ConnDriver(); //commented and added by pavan R on 12nov18 [to get conn from getConnection() instead of ConnDriver] start
conn = connDriver.getConnectDB("DriverITM"); conn = getConnection();
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
//pavan R on 12nov18 end
} }
sqlIndent = " DELETE FROM INDENT " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE IN (" + "SELECT CASE WHEN ITEM_CODE__PLAN IS NULL THEN ITEM_CODE ELSE ITEM_CODE__PLAN END " + "FROM ITEM " + "WHERE ITEM_CODE = ? ) " + "AND STATUS = 'U' " + "AND IND_TYPE = 'M' "; sqlIndent = " DELETE FROM INDENT " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE IN (" + "SELECT CASE WHEN ITEM_CODE__PLAN IS NULL THEN ITEM_CODE ELSE ITEM_CODE__PLAN END " + "FROM ITEM " + "WHERE ITEM_CODE = ? ) " + "AND STATUS = 'U' " + "AND IND_TYPE = 'M' ";
......
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