Commit 17bc69d3 authored by ssarkar's avatar ssarkar

changes by sumit 18/12/12 adding validation in case picking( pickissic) ,...

changes by sumit 18/12/12 adding validation in case picking( pickissic) , commented validation for quantity missmatch and closeed statement in wave file


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92384 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 54f4b593
...@@ -1914,6 +1914,30 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC ...@@ -1914,6 +1914,30 @@ public class PickIssIC extends ValidatorEJB implements PickIssICLocal, PickIssIC
errList.add( "INVSUGLOC" ); errList.add( "INVSUGLOC" );
errFields.add( childNodeName.toLowerCase() ); errFields.add( childNodeName.toLowerCase() );
} }
//Changed by sumit on 18/12/12 checking loc code in location master start.
else
{
sql = "SELECT LOC_CODE FROM LOCATION WHERE LOC_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, locCodeTo);
rs = pstmt.executeQuery();
if( !rs.next())
{
errList.add( "VTLOC1" );
errFields.add( childNodeName.toLowerCase() );
}
if( rs != null)
{
rs.close();
rs = null;
}
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
//Changed by sumit on 18/12/12 checking loc code in location master start.
} }
} }
......
...@@ -1184,7 +1184,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal ...@@ -1184,7 +1184,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal
System.out.println("No of pallet ="+noPallet); System.out.println("No of pallet ="+noPallet);
System.out.println("No of pallet scan="+counter); System.out.println("No of pallet scan="+counter);
if(counter == noPallet) //added by Kunal on 05/09/12 //Changed by sumit on 18/12/12 commented this as per Ashish Mehta no need of this check start
/*if(counter == noPallet) //added by Kunal on 05/09/12
{ {
if(totDomQty<quantity) if(totDomQty<quantity)
{ {
...@@ -1196,8 +1197,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal ...@@ -1196,8 +1197,8 @@ public class PoRcpIC extends ValidatorEJB implements PoRcpICRemote, PoRcpICLocal
{ {
errList.add( "INVALIDQTY" ); errList.add( "INVALIDQTY" );
errFields.add( childNodeName.toLowerCase() ); errFields.add( childNodeName.toLowerCase() );
} }*/
//Changed by sumit on 18/12/12 commented this as per Ashish Mehta no need of this check end
} }
/*Added By Ashish Sonawane on 02/AUG/12 for checking lot no from the lot master and validating with alt_lot_no [END] */ /*Added By Ashish Sonawane on 02/AUG/12 for checking lot no from the lot master and validating with alt_lot_no [END] */
......
...@@ -1849,9 +1849,18 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -1849,9 +1849,18 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
//count = rs.getInt("CNT"); //count = rs.getInt("CNT");
waveFlag = rs.getString("WAVE_FLAG"); waveFlag = rs.getString("WAVE_FLAG");
if(waveFlag == null) if(waveFlag == null)
waveFlag = "N"; waveFlag = "N"
}
if( rs != null)
{
rs.close();
rs = null;
}
if( pstmt != null)
{
pstmt.close();
pstmt = null;
} }
//--;//need to close result set and prepared statment //--;//need to close result set and prepared statment
//if(count == 1) //if(count == 1)
......
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