Commit 4d9286e5 authored by steurwadkar's avatar steurwadkar

Changes made to remove incorrect validation in profile

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173194 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 65862d05
...@@ -119,6 +119,9 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal ...@@ -119,6 +119,9 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal
childNodeName = childNode.getNodeName(); childNodeName = childNode.getNodeName();
int seriesCount=0; int seriesCount=0;
if(childNodeName.equalsIgnoreCase("profile_id")) if(childNodeName.equalsIgnoreCase("profile_id"))
{
//Added by Santosh on 07-11-2017 to validate in add mode only
if("A".equalsIgnoreCase(editFlag))
{ {
String id = genericUtility.getColumnValue("profile_id", dom); String id = genericUtility.getColumnValue("profile_id", dom);
String Sql = "SELECT COUNT(1) AS COUNT FROM profile WHERE profile_id=?"; String Sql = "SELECT COUNT(1) AS COUNT FROM profile WHERE profile_id=?";
...@@ -138,6 +141,7 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal ...@@ -138,6 +141,7 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal
errString = getErrorString(" ", "VMPRFLIDEX", userId); errString = getErrorString(" ", "VMPRFLIDEX", userId);
break; break;
} }
}
profileId = checkNull(genericUtility.getColumnValue("profile_id", dom)); profileId = checkNull(genericUtility.getColumnValue("profile_id", dom));
System.out.println("profileId="+profileId); System.out.println("profileId="+profileId);
if(profileId == null || profileId.trim().length() == 0) if(profileId == null || profileId.trim().length() == 0)
...@@ -145,7 +149,8 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal ...@@ -145,7 +149,8 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal
errString = itmDBAccessEJB.getErrorString("","VMNUPROID ",userId); errString = itmDBAccessEJB.getErrorString("","VMNUPROID ",userId);
break ; break ;
} }
else //Commented by Santosh on 07-11-2017 to remove invalid validation
/*else
{ {
sql = " select count ( *) from users where profile_id = ? "; sql = " select count ( *) from users where profile_id = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -164,7 +169,7 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal ...@@ -164,7 +169,7 @@ public class ProfileResourceIC extends ValidatorEJB implements TaxChapterICLocal
errString = itmDBAccessEJB.getErrorString("","VTINVPROID ",userId); errString = itmDBAccessEJB.getErrorString("","VTINVPROID ",userId);
break ; break ;
} }
} }*/
} }
} }
......
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