Commit f2239fcf authored by ssalve's avatar ssalve

Sarita : Updated component to resolve unparsable error on 18-09-2019

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@207616 ce508802-f39f-4f6c-b175-0d175dae99d5
parent da178b04
...@@ -119,8 +119,10 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att ...@@ -119,8 +119,10 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att
//Modified by Rohini T on [20/05/19][start] //Modified by Rohini T on [20/05/19][start]
shiftStr = checkNullAndTrim(genericUtility.getColumnValue("shift",headerDom)); shiftStr = checkNullAndTrim(genericUtility.getColumnValue("shift",headerDom));
//Modified by Anjali R. on [04/07/2019][Start] //Modified by Anjali R. on [04/07/2019][Start]
attdDateStr = genericUtility.getValidDateString(attdDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()); //Modified by sarita on [18/09/2019][START]
attdDate = java.sql.Timestamp.valueOf(attdDateStr + " 00:00:00"); //attdDateStr = genericUtility.getValidDateString(attdDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
//attdDate = java.sql.Timestamp.valueOf(attdDateStr + " 00:00:00");
//Modified by sarita on [18/09/2019][END]
//Modified by Anjali R. on [04/07/2019][End] //Modified by Anjali R. on [04/07/2019][End]
if("D".equalsIgnoreCase(editFlag)) if("D".equalsIgnoreCase(editFlag))
{ {
...@@ -144,9 +146,10 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att ...@@ -144,9 +146,10 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att
empCode = (String) tokens.get(0); empCode = (String) tokens.get(0);
attdDateStr = (String) tokens.get(1); attdDateStr = (String) tokens.get(1);
//Modified by sarita on [18/09/2019][START]
attdDateStr = genericUtility.getValidDateString(attdDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()); //attdDateStr = genericUtility.getValidDateString(attdDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
attdDate = java.sql.Timestamp.valueOf(attdDateStr + " 00:00:00"); //attdDate = java.sql.Timestamp.valueOf(attdDateStr + " 00:00:00");
//Modified by sarita on [18/09/2019][END]
} }
} }
else if("A".equalsIgnoreCase(editFlag)) else if("A".equalsIgnoreCase(editFlag))
...@@ -214,6 +217,14 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att ...@@ -214,6 +217,14 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att
//Modified by Rohini T on [20/05/19][end] //Modified by Rohini T on [20/05/19][end]
//Modified by sarita on [18/09/2019] [START]
System.out.println("attdDateStr is ::: ["+attdDateStr+"]");
if(attdDateStr != null && attdDateStr.trim().length() > 0)
{
attdDateStr = genericUtility.getValidDateString(attdDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
attdDate = java.sql.Timestamp.valueOf(attdDateStr + " 00:00:00");
}
//Modified by sarita on [18/09/2019] [END]
if (toUpdate) if (toUpdate)
{ {
...@@ -325,7 +336,8 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att ...@@ -325,7 +336,8 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att
} }
else else
{ {
bussinessObj = "att_proc_norule"; //bussinessObj = "att_proc_norule"; Modified by sarita on 18-09-2019
bussinessObj = "attd_proc_norule";
} }
System.out.println("addOnDays::::::"+addOnDays); System.out.println("addOnDays::::::"+addOnDays);
System.out.println("attdDate::::::"+attdDate); System.out.println("attdDate::::::"+attdDate);
......
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