Commit 32b2cd23 authored by dsawant's avatar dsawant

if condition added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95194 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2018d40f
...@@ -105,6 +105,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos ...@@ -105,6 +105,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos
stmt = conn.createStatement(); stmt = conn.createStatement();
try try
{ {
//ADDED BY DEEPAK SAWANT (02/06/14)
sql = "select status from workorder where work_order = ?"; sql = "select status from workorder where work_order = ?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1,workorder); pstmt.setString(1,workorder);
...@@ -155,7 +156,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos ...@@ -155,7 +156,7 @@ public class WoPostSave extends ValidatorEJB implements WoPostSaveLocal, WoPos
} }
//ADDED BY DEEPAK SAWANT (02/06/14)
sql1 = "SELECT CASE WHEN generate_lot_no IS NULL THEN '0' ELSE generate_lot_no END " sql1 = "SELECT CASE WHEN generate_lot_no IS NULL THEN '0' ELSE generate_lot_no END "
......
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