Commit cffe5512 authored by vdhoble's avatar vdhoble

changes made for worder_route sql for dept code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96975 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 868bfd01
......@@ -102,13 +102,30 @@ public class WoIssPartialIC extends ValidatorEJB implements WoIssPartialICLocal,
{
worder = genericUtility.getColumnValue("work_order", dom);
System.out.println("::worder::received -" + worder);
sql = " select quantity,dept_code from workorder where work_order = ? ";
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");
//deptCode = rs.getString("dept_code")==null?" ": rs.getString("dept_code");
}
if (pstmt != null)
pstmt.close();
pstmt = null;
if (rs != null)
rs.close();
rs = null;
sql = " select dept_code from worder_route where work_order = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, worder);
rs = pstmt.executeQuery();
if(rs.next())
{
//batchQuantity = rs.getDouble("quantity");
deptCode = rs.getString("dept_code")==null?" ": rs.getString("dept_code");
}
if (pstmt != null)
......
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