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;
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.EMail;
import ibase.webitm.ejb.ITMDBAccessEJB;
......@@ -396,7 +396,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
logInSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
//genericUtility = GenericUtility.getInstance();
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
{
context = genericUtility.getColumnValue("wizard", dom);
......@@ -591,9 +591,11 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId");
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);
connDriver = null;
//connDriver = null;
//pavan R on 12nov18 end
// validate the filter parameter entered by the user
errString = validateFilterParams(dom);
......@@ -8528,8 +8530,11 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
if( conn == null)
{
isbomReplaceFlag= true;
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
//commented and added by pavan R on 12nov18 [to get conn from getConnection() instead of ConnDriver] start
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' ";
......
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