Commit e9877e00 authored by rtelang's avatar rtelang

AttdDailyPos.java

-Changes done to re-processe the attaindance on add / edit & delete.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202722 ce508802-f39f-4f6c-b175-0d175dae99d5
parent efe9b5aa
......@@ -121,18 +121,28 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att
{
tokens.add(st.nextToken());
}
if(tokens.size() > 2)
//Modified by Rohini T on 27/06/19[start][changes done to reprocess attaindance after delete records ]
//if(tokens.size() > 2)
////Modified by Rohini T on 27/06/19[end][changes done to reprocess attaindance after delete records ]
if(tokens.size() == 2)
{
empCode = (String) tokens.get(0);
attdDateStr = (String) tokens.get(1);
attdDateStr = genericUtility.getValidDateString(attdDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
attdDate = java.sql.Timestamp.valueOf(attdDateStr + " 00:00:00");
}
}
else if("A".equalsIgnoreCase(editFlag))
{
toUpdate = true;
isReproc = false;
//Modified by Rohini T on 27/06/19[start][changes done to reprocess attaindance after delete records ]
//toUpdate = true;
//isReproc = false;
toUpdate = false;
isReproc = true;
//Modified by Rohini T on 27/06/19[end][changes done to reprocess attaindance after delete records ]
}
else if("E".equalsIgnoreCase(editFlag))
{
......@@ -207,6 +217,9 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att
//Modified by Azhar K. commented on 26/APR/2019[Req ID: A17DSUN001][Start]
/*if (toUpdate)
{*/
//Modified by Rohini T on 27/06/19[start][changes done to reprocess attaindance after delete records ]
if (isReproc)
{
//Modified by Azhar K. commented on 26/APR/2019[Req ID: A17DSUN001][END]
//Modified by Rohini Telang on 25/March/2019[Req ID: A17DSUN001][START]
sql = "SELECT code,TO_DATE FROM PERIOD WHERE ? BETWEEN FR_DATE AND TO_DATE";
......@@ -285,6 +298,7 @@ public class AttdDailyPos extends ValidatorEJB implements AttdDailyPosLocal, Att
errString = confirmAttendanceProcess("attd_daily", xmlStringDt, xtraParams, "false", conn);
}
}
}
//}//Modified by Azhar K. commented on 26/feb/2019[Req ID: A17DSUN001][END]
//Modified by Rohini Telang on 12/feb/2019[Req ID: A17DSUN001][END]
}
......
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