Commit 5e2aaad9 authored by rbhogale's avatar rbhogale

Changed by Rohan on 29-may-13 for validation of location in active picking


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93171 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3a5672d0
...@@ -2369,6 +2369,10 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -2369,6 +2369,10 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
int noOfLocCode = 0; int noOfLocCode = 0;
NodeList locCodeNodeList = null; NodeList locCodeNodeList = null;
HashMap<String, String> locCodeList = new HashMap<String, String>(); HashMap<String, String> locCodeList = new HashMap<String, String>();
String itemCode1 = "";
String lotNo1 = "";
String locKeyVal = "";
String[] temp ;
//Changed by Rohan on 26-04-13 for define variable.end //Changed by Rohan on 26-04-13 for define variable.end
childList = parentList.item(0).getChildNodes(); childList = parentList.item(0).getChildNodes();
...@@ -2757,11 +2761,15 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -2757,11 +2761,15 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
if ( locCodeNodeList.item( idx ).getFirstChild() != null ) if ( locCodeNodeList.item( idx ).getFirstChild() != null )
{ {
currentLoction = GenericUtility.getInstance().getColumnValueFromNode("loc_code__to",locCodeNodeList.item(idx)).trim(); currentLoction = GenericUtility.getInstance().getColumnValueFromNode("loc_code__to",locCodeNodeList.item(idx)).trim();
System.out.println("Current location["+currentLoction); itemCode1 = GenericUtility.getInstance().getColumnValueFromNode("item_code",locCodeNodeList.item(idx)).trim();
lotNo1 = GenericUtility.getInstance().getColumnValueFromNode("lot_no",locCodeNodeList.item(idx)).trim();
System.out.println("Current location["+currentLoction+"itemCode1"+itemCode1+"lotNo1"+lotNo1);
//Chnaged by Rohan on 29-05-13 for bug fixing.start
if(singleLotSl.trim().equalsIgnoreCase("Y"))
{
if(!locCodeList.containsKey(currentLoction)) if(!locCodeList.containsKey(currentLoction))
{ {
locCodeList.put(currentLoction,"ACTLOC"); locCodeList.put(currentLoction,"ACTLOC");
System.out.println("Additing location to list"+currentLoction);
} }
else else
{ {
...@@ -2769,6 +2777,43 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -2769,6 +2777,43 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
errFields.add( childNodeName.toLowerCase() ); errFields.add( childNodeName.toLowerCase() );
} }
} }
//Chnaged by Rohan on 29-05-13 for bug fixing.start
else if(itemLotOpt.trim().equalsIgnoreCase("0"))
{
if(!locCodeList.containsKey(currentLoction))
{
locCodeList.put(currentLoction,itemCode1+":"+lotNo1);
}
else
{
locKeyVal = locCodeList.get(currentLoction);
temp = locKeyVal.split(":");
if(!temp[0].trim().equalsIgnoreCase(itemCode1.trim()) || !temp[1].trim().equalsIgnoreCase(lotNo1.trim()))
{
errList.add( "SNGIEMLOT" );
errFields.add( childNodeName.toLowerCase() );
}
}
}
else
{
if(!locCodeList.containsKey(currentLoction))
{
locCodeList.put(currentLoction,itemCode1);
}
else
{
locKeyVal = locCodeList.get(currentLoction);
if(!locKeyVal.trim().equalsIgnoreCase(itemCode1.trim()))
{
errList.add( "SGITMMULLT" );
errFields.add( childNodeName.toLowerCase() );
}
}
}
//Chnaged by Rohan on 29-05-13 for bug fixing.end
}
} }
} }
} }
......
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