Commit 929df594 authored by vvengurlekar's avatar vvengurlekar

SiteRegNoIC.java - Added else condition for setting fin_entity and descr blank...

SiteRegNoIC.java - Added else condition for setting fin_entity and descr blank if site code is blank 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182990 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dc432924
......@@ -545,12 +545,14 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe
{
System.out.println("@@@@@ site_code item change called");
siteCode = genericUtility.getColumnValue("site_code",dom);
finEntity= "" ; finEntityDescr = "";
if(siteCode != null && siteCode.trim().length() > 0)
{
if ("99999".equalsIgnoreCase(siteCode))
{
//fin_entity = genericUtility.getColumnValue("fin_entity",dom);
valueXmlString.append( "<fin_entity protect=\"0\" ><![CDATA[" ).append(finEntity==null?"":finEntity).append( "]]></fin_entity>\r\n" );
valueXmlString.append( "<finent_descr protect=\"0\" ><![CDATA[" ).append(finEntityDescr==null?"":finEntityDescr).append( "]]></finent_descr>\r\n" );
}
else
{
......@@ -589,9 +591,14 @@ public class SiteRegNoIC extends ValidatorEJB implements SiteRegNoICLocal,SiteRe
valueXmlString.append( "<fin_entity protect=\"1\" ><![CDATA[" ).append(finEntity==null?"":finEntity).append( "]]></fin_entity>\r\n" );
valueXmlString.append( "<finent_descr protect=\"1\" ><![CDATA[" ).append(finEntityDescr==null?"":finEntityDescr).append( "]]></finent_descr>\r\n" );
}
}
}//Added else condition for setting fin_entity and descr blank if site code is blank
else
{
valueXmlString.append( "<fin_entity protect=\"1\" ><![CDATA[" ).append(finEntity==null?"":finEntity).append( "]]></fin_entity>\r\n" );
valueXmlString.append( "<finent_descr protect=\"1\" ><![CDATA[" ).append(finEntityDescr==null?"":finEntityDescr).append( "]]></finent_descr>\r\n" );
}
}
//Ended itemchange for site_code by Varsha V
......
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