Commit 7375762a authored by prane's avatar prane

added validation on blank for site_code

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187767 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7a7bca0e
......@@ -138,9 +138,13 @@ public class StockAllocVerifyWiz extends ValidatorEJB implements StockAllocVerif
childNodeName = childNode.getNodeName();
if (childNodeName.equalsIgnoreCase("site_code"))
{
siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
if ( siteCode != null && siteCode.trim().length() > 0)
siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
if (siteCode == null || siteCode.trim().length() == 0 )
{
errList.add("NULLSITE");
errFields.add(childNodeName.toLowerCase());
}
else
sql = "select count(*) as cnt from site where site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
......
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