Commit eb338fdb authored by ppatro's avatar ppatro

wave status


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92188 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0999ba8c
...@@ -19151,7 +19151,10 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -19151,7 +19151,10 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
System.out.println("-------@@@@@---------> refSer ["+refSer+"]"); System.out.println("-------@@@@@---------> refSer ["+refSer+"]");
//Changed by Rohan Bhogale on 1-11-12 to set wave stats c in case of pratial to active replanishment //Changed by Rohan Bhogale on 1-11-12 to set wave stats c in case of pratial to active replanishment
//if ("R-DSO".equalsIgnoreCase(refSer) || "R-TASK".equalsIgnoreCase(refSer) || "RS-DSO".equalsIgnoreCase(refSer) ) //if ("R-DSO".equalsIgnoreCase(refSer) || "R-TASK".equalsIgnoreCase(refSer) || "RS-DSO".equalsIgnoreCase(refSer) )
if ("R-DSO".equalsIgnoreCase(refSer) || "R-TASK".equalsIgnoreCase(refSer) || "RS-DSO".equalsIgnoreCase(refSer) || "RP-ACT".equalsIgnoreCase(refSer))
//Changed by sumit on 06/11/12 adding ref_ser RD-DSA i.e from deep store to PND, RR-DSA i.e reserve to active
//if ("R-DSO".equalsIgnoreCase(refSer) || "R-TASK".equalsIgnoreCase(refSer) || "RS-DSO".equalsIgnoreCase(refSer) || "RP-ACT".equalsIgnoreCase(refSer))
if ("R-DSO".equalsIgnoreCase(refSer) || "R-TASK".equalsIgnoreCase(refSer) || "RS-DSO".equalsIgnoreCase(refSer) || "RP-ACT".equalsIgnoreCase(refSer) || "RD-DSA".equalsIgnoreCase(refSer) || "RR-DSA".equalsIgnoreCase(refSer) )
{ {
sql = "UPDATE WAVE_TASK_DET SET WAVE_STATUS = 'C' WHERE REF_ID = ? "; sql = "UPDATE WAVE_TASK_DET SET WAVE_STATUS = 'C' WHERE REF_ID = ? ";
pstmt2 = conn.prepareStatement(sql); pstmt2 = conn.prepareStatement(sql);
...@@ -19164,7 +19167,9 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -19164,7 +19167,9 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
pstmt2 = null; pstmt2 = null;
} }
} }
else if ( "R-DSA".equalsIgnoreCase(refSer) ) //Changed by sumit on 06/11/12 adding ref_ser R-CPA
//else if ( "R-DSA".equalsIgnoreCase(refSer) )
else if ( "R-DSA".equalsIgnoreCase(refSer) || "R-CPA".equalsIgnoreCase(refSer))
{ {
tempOrder = ""; tempOrder = "";
sql1 = "SELECT PICK_ORDER FROM REPL_ORD_DET WHERE REPL_ORDER = ? "; sql1 = "SELECT PICK_ORDER FROM REPL_ORD_DET WHERE REPL_ORDER = ? ";
...@@ -19225,11 +19230,27 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -19225,11 +19230,27 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
} }
} }
//Changed by sumit on 17/11/12 updating ref_id in case of null pick_order in repl_ord_det ( not dependent) start.
else if( tempOrder.trim().length() == 0 && "R-CPA".equalsIgnoreCase(refSer))
{
update = pstmt1.executeUpdate();
if( pstmt1 != null )
{
pstmt1.close();
pstmt1 = null;
}
if( update > 0 )
{
System.out.println(update +" ref_ser R-CPA is updated ");
}
}
//Changed by sumit on 17/11/12 updating ref_id in case of null pick_order in repl_ord_det ( not dependent) end.
if( pstmt1 != null ) if( pstmt1 != null )
{ {
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
} }
//Changed by sumit on 17/11/12 updating ref_id in case of null pick_order in repl_ord_det ( not dependent) start.
} }
else if( "A-PICK".equalsIgnoreCase(refSer) || "C-PICK".equalsIgnoreCase(refSer) || "M-PICK".equalsIgnoreCase(refSer)) else if( "A-PICK".equalsIgnoreCase(refSer) || "C-PICK".equalsIgnoreCase(refSer) || "M-PICK".equalsIgnoreCase(refSer))
......
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