Commit 9fa212e6 authored by kshinde's avatar kshinde

Bug fix

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187109 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 414cb718
...@@ -5204,28 +5204,32 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu ...@@ -5204,28 +5204,32 @@ public class SReturnForm extends ValidatorEJB implements SReturnFormLocal, SRetu
if( childNodeName.equalsIgnoreCase( "item_ser" ) ) if( childNodeName.equalsIgnoreCase( "item_ser" ) )
{ {
mVal = genericUtility.getColumnValue( "item_ser", dom ); mVal = genericUtility.getColumnValue( "item_ser", dom );
sqlStr = " Select Count(*) cnt from itemser where item_ser = ? ";
pstmt = conn.prepareStatement( sqlStr );
pstmt.setString( 1, mVal );
rs = pstmt.executeQuery();
if( rs.next() )
{
cnt = rs.getInt( "cnt" );
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if( cnt == 0 ) if(mVal!=null || mVal.trim().length()>0)
{ {
errCode = "VTITMSER1"; sqlStr = " Select Count(*) cnt from itemser where item_ser = ? ";
//errString = getErrorString( childNodeName, errCode, userId ); pstmt = conn.prepareStatement( sqlStr );
//break;
errList.add( errCode ); pstmt.setString( 1, mVal );
errFields.add( childNodeName.toLowerCase() );
rs = pstmt.executeQuery();
if( rs.next() )
{
cnt = rs.getInt( "cnt" );
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if( cnt == 0 )
{
errCode = "VTITMSER1";
//errString = getErrorString( childNodeName, errCode, userId );
//break;
errList.add( errCode );
errFields.add( childNodeName.toLowerCase() );
}
} }
} }
if( childNodeName.equalsIgnoreCase( "curr_code" ) || childNodeName.equalsIgnoreCase( "curr_code__bc" ) ) if( childNodeName.equalsIgnoreCase( "curr_code" ) || childNodeName.equalsIgnoreCase( "curr_code__bc" ) )
......
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