Commit 1b1096d8 authored by sghate's avatar sghate

shital : done changes on ItDeclarationFmt.java

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@206822 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76c4f435
......@@ -88,8 +88,6 @@ public class ItDeclarationFmt extends ValidatorEJB implements ItDeclarationFmtLo
String updproofRequired = "";
E12GenericUtility genericUtility = new E12GenericUtility();
AdmCommon admCommon = new AdmCommon();
//To get login Employee Code And Login Site
String loginEmpCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode"));
StringBuffer valueXmlString = new StringBuffer();
......@@ -485,7 +483,7 @@ public class ItDeclarationFmt extends ValidatorEJB implements ItDeclarationFmtLo
}
}
}
if(childNodeName.equalsIgnoreCase("ad_code"))
else if(childNodeName.equalsIgnoreCase("ad_code"))
{
count = 0;
count1 = 0;
......@@ -495,7 +493,7 @@ public class ItDeclarationFmt extends ValidatorEJB implements ItDeclarationFmtLo
if(adCode == null || adCode.trim().length() == 0)
{
System.out.println("Invalid adCode ::::");
System.out.println("Empty adCode ::::");
errList.add( "VMINVADCOD" );
errFields.add( childNodeName.toLowerCase() );
......@@ -532,10 +530,10 @@ public class ItDeclarationFmt extends ValidatorEJB implements ItDeclarationFmtLo
{
System.out.println("Invalid adCode , AdCode not defined in ALLOWEDN table::::");
errList.add( "VMINADCOD" );
errList.add( "VMINADCOD1" );
errFields.add( childNodeName.toLowerCase() );
msgType = errorType( conn , "VMINADCOD" );
msgType = errorType( conn , "VMINADCOD1" );
if ( msgType.equalsIgnoreCase("E"))
{
break;
......@@ -597,14 +595,14 @@ public class ItDeclarationFmt extends ValidatorEJB implements ItDeclarationFmtLo
}
}
}
if(childNodeName.equalsIgnoreCase("description"))
else if(childNodeName.equalsIgnoreCase("description"))
{
description = checkNull(genericUtility.getColumnValue("description",dom,objContext));
System.out.println("description got in the validation ..::["+description+"]");
if(description == null || description.trim().length() == 0)
{
System.out.println("Invalid description ::::");
System.out.println("Empty description ::::");
errList.add( "VMINVDESCR" );
errFields.add( childNodeName.toLowerCase() );
......@@ -616,7 +614,7 @@ public class ItDeclarationFmt extends ValidatorEJB implements ItDeclarationFmtLo
}
}
}
if(childNodeName.equalsIgnoreCase("template_file_name"))
else if(childNodeName.equalsIgnoreCase("template_file_name"))
{
count = 0;
......@@ -806,4 +804,4 @@ public class ItDeclarationFmt extends ValidatorEJB implements ItDeclarationFmtLo
}
return msgType;
}
}
}
\ No newline at end of file
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