Commit eba5bbff authored by rbhogale's avatar rbhogale

Changed by Rohan on 03-05-12 for adding validation on multiple line active replanishment


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93008 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8f603c64
...@@ -2698,7 +2698,35 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -2698,7 +2698,35 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
} }
} }
} }
//Changed by Rohan on 26-03-13 for define validation out of singleLotSl validation.start
System.out.println("singleLotSl:::["+singleLotSl+"itemLotOpt::["+itemLotOpt+"]");
if( singleLotSl.trim().equalsIgnoreCase("Y") || !itemLotOpt.trim().equals("2") )
{
locCodeNodeList = allFormDataDom.getElementsByTagName("Detail4");
noOfLocCode = locCodeNodeList.getLength();
if(noOfLocCode > 1)
{
for( int idx = 0; idx < noOfLocCode; idx++ )
{
if ( locCodeNodeList.item( idx ).getFirstChild() != null )
{
currentLoction = GenericUtility.getInstance().getColumnValueFromNode("loc_code__to",locCodeNodeList.item(idx)).trim();
System.out.println("Current location["+currentLoction);
if(!locCodeList.containsKey(currentLoction))
{
locCodeList.put(currentLoction,"ACTLOC");
System.out.println("Additing location to list"+currentLoction);
}
else
{
errList.add( "DUPLOCCODE" );
errFields.add( childNodeName.toLowerCase() );
}
}
}
}
}
//Changed by Rohan on 26-03-13 for define validation out of singleLotSl validation.end
sql = "SELECT RIH.CONFIRMED FROM REPL_ISS_HDR RIH, REPL_ISS_DET RID" sql = "SELECT RIH.CONFIRMED FROM REPL_ISS_HDR RIH, REPL_ISS_DET RID"
+ " WHERE RIH.TRAN_ID = RID.TRAN_ID AND RID.ITEM_CODE = ?" + " WHERE RIH.TRAN_ID = RID.TRAN_ID AND RID.ITEM_CODE = ?"
+ " AND RID.SITE_CODE = ? AND RID.LOC_CODE__TO = ?" + " AND RID.SITE_CODE = ? AND RID.LOC_CODE__TO = ?"
......
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