Commit 15a3e64f authored by mpatidar's avatar mpatidar

After site code validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91740 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3a288d2c
......@@ -88,6 +88,7 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
String tranIdHold = null;
String lineNo = null;
String siteCode = null;
ConnDriver connDriver = new ConnDriver();
try
......@@ -115,7 +116,7 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
childNodeName = childNode.getNodeName();
if ( childNodeName.equalsIgnoreCase( "site_code" ) )
{
String siteCode = null;
//Commented and changed the "cust_code" to "site_code" - Gulzar - 02/12/11
//siteCode = genericUtility.getColumnValue( "cust_code", dom, "1" );
siteCode = genericUtility.getColumnValue( "site_code", dom, "1" );
......@@ -212,6 +213,7 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
if( childNodeName.equalsIgnoreCase( "tran_id__hold" ) || childNodeName.equalsIgnoreCase( "LINE_NO__HOLD" ) )
{
siteCode = genericUtility.getColumnValue( "site_code", dom1, "1" );//Added By Mahesh Patidar on 28/06/12
tranIdHold = genericUtility.getColumnValue( "tran_id__hold", dom, "2" );
lineNo = genericUtility.getColumnValue( "line_no__hold", dom, "2" );
if( tranIdHold != null && tranIdHold.length() > 0 )
......@@ -273,6 +275,29 @@ public class InvHoldRelIC extends ValidatorEJB implements InvHoldRelICLocal , In
errCode = "VTTRANUNC";
}
}
//Added By Mahesh Patidar on 28/06/12
if(siteCode != null && siteCode.trim().length() > 0)
{
String siteCode1 = "";
sql = "select site_code from inv_hold where tran_id = ?";
pstmt = conn.prepareStatement( sql );
pstmt.setString(1,tranIdHold);
rs = pstmt.executeQuery();
if( rs.next() )
{
siteCode1 = rs.getString(1)==null?"":rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(! (siteCode.equals(siteCode1)))
{
errCode = "VMSITEINV";
}
}
//Ended By Mahesh Patidar
}
else
{
......
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