Commit 620a09c0 authored by pchavan's avatar pchavan

Add connection to explodeBom method.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191085 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f27d469d
......@@ -95,9 +95,9 @@ public class ExplodeBom
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
// public String explodeBom(String xmlString, Connection conn)//Commented by Jiten as per Kandarp Sir 13/11/06 - Connenction to be opened and to be closed here
public String explodeBom(String xmlString) throws Exception //Added by Jiten 13/11/06 -
//Changed By PriyankaC on 21SEP2018.
public String explodeBom(String xmlString, Connection conn) throws Exception//Commented by Jiten as per Kandarp Sir 13/11/06 - Connenction to be opened and to be closed here
//public String explodeBom(String xmlString) throws Exception //Added by Jiten 13/11/06 -
{
utilMethods = new UtilMethods(); // 10/12/07 manoharan
//genericUtility = GenericUtility.getInstance();
......@@ -109,8 +109,9 @@ public class ExplodeBom
ResultSet rs = null;
ResultSet rsInner = null;
ResultSet rsLead = null;
Connection conn = null;//Added by Jiten 13/11/06 -
ConnDriver connDriver = new ConnDriver();//Added by Jiten 13/11/06 -
// Connection conn = null;//Added by Jiten 13/11/06 - //Changed By PriyankaC on 21SEP2018.
// ConnDriver connDriver = new ConnDriver();//Added by Jiten 13/11/06 -//Changed By PriyankaC on 21SEP2018.
int iLeadTime = 0;
int iiLeadTime = 0;
String sqlLead = null, tempXML = null;
......@@ -119,7 +120,9 @@ public class ExplodeBom
try
{
conn = connDriver.getConnectDB("DriverITM");//Added by Jiten 13/11/06 -
// conn = connDriver.getConnectDB("DriverITM");//Added by Jiten 13/11/06 - //Changed By PriyankaC on 21SEP2018.
dom = genericUtility.parseString(xmlString);
siteCode = genericUtility.getColumnValue("site_code",dom);
itemCode = genericUtility.getColumnValue("item_code",dom);
......@@ -626,8 +629,9 @@ public class ExplodeBom
tempXMLString.append("<qc_lead_time>").append("<![CDATA[").append(dqcLeadTime).append("]]>").append("</qc_lead_time>");
tempXMLString.append("</Detail>");
tempXMLString.append("</Root>");
//errString = explodeBom(tempXMLString.toString(), conn);//Commented by Jiten 13/11/06 -
errString = explodeBom(tempXMLString.toString()); // Added by Jiten 13/11/06 -
//Changed By PriyankaC on 21SEP2018.
errString = explodeBom(tempXMLString.toString(), conn);//Commented by Jiten 13/11/06 -
// errString = explodeBom(tempXMLString.toString()); // Added by Jiten 13/11/06 -
if ( errString != null && errString.trim().length() > 0 )
{
System.out.println("Error While Exploding Bom Further:..."+errString);
......
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