Commit 51aa5d9f authored by pchavan's avatar pchavan

Resolve issue related to validation.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@176692 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 06490ceb
...@@ -55,7 +55,7 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos ...@@ -55,7 +55,7 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos
Node parentNode = null; Node parentNode = null;
String updateFlag=""; String updateFlag="";
int parentNodeListLength=0; int parentNodeListLength=0;
String allocPerc =""; String allocPerc ="",resBasis="";
double allocPercVal = 0.0; double allocPercVal = 0.0;
boolean isLocCon = false; boolean isLocCon = false;
boolean isError = false; boolean isError = false;
...@@ -68,7 +68,7 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos ...@@ -68,7 +68,7 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos
isLocCon = true; isLocCon = true;
} }
System.out.println("connection is :"+conn); System.out.println("connection is :"+conn);
/* parentNodeList = dom.getElementsByTagName("Detail2"); /*parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeLength = childNodeList.getLength();*/ childNodeLength = childNodeList.getLength();*/
...@@ -89,6 +89,10 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos ...@@ -89,6 +89,10 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos
} }
} }
} }
resBasis = checkNull(genericUtility.getColumnValue("alloc_basis",dom)).trim();
System.out.println("resBasis IN PRESAVE : "+resBasis);
if("1".equalsIgnoreCase(resBasis))
{
System.out.println("allocPercVal :"+allocPercVal); System.out.println("allocPercVal :"+allocPercVal);
if(allocPercVal <100) if(allocPercVal <100)
{ {
...@@ -103,6 +107,7 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos ...@@ -103,6 +107,7 @@ public class CostallocPrs extends ValidatorEJB implements CostallocPrsLocal, Cos
isError = true; isError = true;
} }
} }
}
catch(Exception e) catch(Exception e)
{ {
System.out.println("The Exception occurs in CostallocPrs :"+e); System.out.println("The Exception occurs in CostallocPrs :"+e);
......
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