Commit 103ef19b authored by rbhogale's avatar rbhogale

CHnaged by rohan on 20-02-13 for Repanishment cancel


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92722 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fe180be2
...@@ -292,6 +292,29 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -292,6 +292,29 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
pstmt = null; */ pstmt = null; */
//Changed by sumit on 02/10/12 stop validation as this repl is required for other wave task task (as per pragyan) end. //Changed by sumit on 02/10/12 stop validation as this repl is required for other wave task task (as per pragyan) end.
//Changed by sumit on 28/09/12 validation in case of wave canceled end. //Changed by sumit on 28/09/12 validation in case of wave canceled end.
//Changed by Rohan on 19-02-13 to add validation if all replanishment line item cancle.start
sql=" SELECT COUNT(*) AS CNT FROM REPL_ORD_DET WHERE REPL_ORDER = ? AND CASE WHEN CANCEL_MODE IS NULL THEN 'N' ELSE CANCEL_MODE END <> 'Y' ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, replOrder );
rs = pstmt.executeQuery();
if( rs.next() )
{
cntRepl = rs.getInt("CNT");
}
System.out.println("cntRepl::::"+cntRepl);
if(cntRepl == 0)
{
errList.add( "CANCELREPL" );
errFields.add( childNodeName.toLowerCase() );
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//Changed by Rohan on 19-02-13 to add validation if all replanishment line item cancle.end
//Changed by sankara on 10-08-2012 for proces hold[start] //Changed by sankara on 10-08-2012 for proces hold[start]
sql=" SELECT WAVE_ID FROM REPL_ORD_HDR WHERE REPL_ORDER = ? "; sql=" SELECT WAVE_ID FROM REPL_ORD_HDR WHERE REPL_ORDER = ? ";
......
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