Commit de228fba authored by rtiwari's avatar rtiwari

EJB ADDED FOR MF3GSUP004


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94016 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f7dffef6
...@@ -68,7 +68,8 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr ...@@ -68,7 +68,8 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr
Node parentNode1 = null; Node parentNode1 = null;
String childNodeName = null; String childNodeName = null;
String sql = ""; String sql = "";
String locCode = "",descr=""; String locCode = "",descr="",worder="";
double batchQuantity=0.0;
int currentFormNo = 0; int currentFormNo = 0;
Connection conn = null; Connection conn = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
...@@ -108,8 +109,34 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr ...@@ -108,8 +109,34 @@ public class WoTransferIC extends ValidatorEJB implements WoTransferICLocal,WoTr
{ {
descr = rs.getString("descr"); descr = rs.getString("descr");
} }
if (pstmt != null)
pstmt.close();
pstmt = null;
if (rs != null)
rs.close();
rs = null;
valueXmlString.append("<descr>").append("<![CDATA["+ descr +"]]>").append("</descr>"); valueXmlString.append("<descr>").append("<![CDATA["+ descr +"]]>").append("</descr>");
} }
if (currentColumn.trim().equalsIgnoreCase("work_order"))
{
worder = genericUtility.getColumnValue("work_order", dom);
System.out.println("::descr::loc_code - " + locCode);
sql = " select quantity from workorder where work_order = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, worder);
rs = pstmt.executeQuery();
if(rs.next())
{
batchQuantity = rs.getDouble("quantity");
}
if (pstmt != null)
pstmt.close();
pstmt = null;
if (rs != null)
rs.close();
rs = null;
valueXmlString.append("<batch_quantity>").append("<![CDATA["+ batchQuantity +"]]>").append("</batch_quantity>");
}
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
} }
valueXmlString.append("</Root>"); valueXmlString.append("</Root>");
......
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