Commit 3b2a8e02 authored by sanashaikh's avatar sanashaikh

Sana S : Modified on 14/01/2020

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215101 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5c12a1fc
...@@ -302,7 +302,10 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal, ...@@ -302,7 +302,10 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal,
if (rs.next()) if (rs.next())
{ {
ls_accfilt = rs.getString("ls_accfilt"); //Modified by Sana S on 14/01/2020 [start]
//ls_accfilt = rs.getString("ls_accfilt");
ls_accfilt = checkNull(rs.getString("ls_accfilt"));
//Modified by Sana S on 14/01/2020 [end]
} }
if (rs != null) if (rs != null)
{ {
...@@ -315,8 +318,10 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal, ...@@ -315,8 +318,10 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal,
pstmt = null; pstmt = null;
} }
System.out.print("ls_accfilt:"+ls_accfilt); System.out.print("ls_accfilt:"+ls_accfilt);
//if(!ls_accfilt.equals("") && ls_accfilt.trim().length() > 0) //Modified by Sana S on 14/01/2020 [start]
if(ls_accfilt != null && ls_accfilt.trim().length() > 0) //Modified by Shital on 13/01/2020 if(!ls_accfilt.equals("") && ls_accfilt.trim().length() > 0)
//if(ls_accfilt != null && ls_accfilt.trim().length() > 0) //Modified by Shital on 13/01/2020
//Modified by Sana S on 14/01/2020 [end]
{ {
System.out.print("U R IN"); System.out.print("U R IN");
sql="select count(1) from allwdedn where ad_code = ? and " + ls_accfilt; sql="select count(1) from allwdedn where ad_code = ? and " + ls_accfilt;
...@@ -651,6 +656,10 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal, ...@@ -651,6 +656,10 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal,
UtilMethods utilMethods=new UtilMethods(); UtilMethods utilMethods=new UtilMethods();
SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yy"); SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yy");
//Added by Sana S on 14/01/2020 [start]
String amount="";
//Added by Sana S on 14/01/2020 [end]
try try
{ {
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
...@@ -739,6 +748,18 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal, ...@@ -739,6 +748,18 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal,
valueXmlString.append("<allwdedn_descr ><![CDATA[").append(descr).append("]]></allwdedn_descr>\r\n"); valueXmlString.append("<allwdedn_descr ><![CDATA[").append(descr).append("]]></allwdedn_descr>\r\n");
AdmCommon.setNodeValue(dom, "allwdedn_descr", descr); AdmCommon.setNodeValue(dom, "allwdedn_descr", descr);
} }
//Added by Sana S on 14/01/2020 [start]
else if ("amount".equalsIgnoreCase(currentColumn))
{
amount=checkNull(genericUtility.getColumnValue("amount", dom));
if(amount.equals(null) || amount.length() == 0 || amount.equals(""))
{
valueXmlString.append("<amount><![CDATA[").append("0").append("]]></amount>\r\n");
}
}
//Added by Sana S on 14/01/2020 [end]
else if ("last_proc_for".equalsIgnoreCase(currentColumn)) else if ("last_proc_for".equalsIgnoreCase(currentColumn))
{ {
lastProcFor=checkNull(genericUtility.getColumnValue("last_proc_for", dom)); lastProcFor=checkNull(genericUtility.getColumnValue("last_proc_for", dom));
......
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