Commit 9b6a7e69 authored by vkadam's avatar vkadam

Add validation for Location code is available or not.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98460 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fc844c30
...@@ -456,6 +456,31 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption ...@@ -456,6 +456,31 @@ public class ConsumptionOdrIssuWizIc extends ValidatorEJB implements Consumption
// rs1=null; // rs1=null;
// } // }
// } // }
if(childNodeName.equalsIgnoreCase("loc_code"))
{
locCode=genericUtility.getColumnValue("loc_code", dom);
sql1="select count(*) as cnt from location a,invstat b "
+ "where a.inv_stat = b.inv_stat and b.available='N' and a.loc_code =?";
pstmt1=conn.prepareStatement(sql1);
pstmt1.setString(1, locCode);
rs1=pstmt1.executeQuery();
if(rs1.next())
{
cnt=rs1.getInt("cnt");
}
if(cnt>0)
{
errList.add("LOCCDNTAVL");
errFields.add(childNodeName.toLowerCase());
}
pstmt1.close();
pstmt1=null;
rs1.close();
rs1=null;
}
if(childNodeName.equalsIgnoreCase("req_qty")) if(childNodeName.equalsIgnoreCase("req_qty"))
{ {
reqQty=genericUtility.getColumnValue("req_qty", dom); reqQty=genericUtility.getColumnValue("req_qty", dom);
......
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