|
|
|
@ -306,10 +306,15 @@ class _MonthlyAttendanceScreenState extends State<MonthlyAttendanceScreen> {
|
|
|
|
if (details.date.month == formattedDate.month && details.date.year == formattedDate.year) {
|
|
|
|
if (details.date.month == formattedDate.month && details.date.year == formattedDate.year) {
|
|
|
|
int val = details.date.day;
|
|
|
|
int val = details.date.day;
|
|
|
|
//check day is off
|
|
|
|
//check day is off
|
|
|
|
if (getDayHoursTypeDetailsList.isNotEmpty) {
|
|
|
|
|
|
|
|
bool isDayIsOff = getDayHoursTypeDetailsList[val - 1].aTTENDEDFLAG == 'N' && getDayHoursTypeDetailsList[val - 1].dAYTYPE == 'OFF';
|
|
|
|
List<GetDayHoursTypeDetailsList> getDayHours = getDayHoursTypeDetailsList.where((GetDayHoursTypeDetailsList element) => DateFormat("MM/dd/yyyy", "en_US").parse(element.sCHEDULEDATE!).day == details.date.day).toList();
|
|
|
|
bool isDayIsPresent = getDayHoursTypeDetailsList[val - 1].aTTENDEDFLAG == 'Y';
|
|
|
|
|
|
|
|
bool isDayIsAbsent = getDayHoursTypeDetailsList[val - 1].aTTENDEDFLAG == 'N' && getDayHoursTypeDetailsList[val - 1].aBSENTFLAG == 'Y';
|
|
|
|
if (getDayHours.isNotEmpty) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool isDayIsOff = getDayHoursTypeDetailsList[0].aTTENDEDFLAG == 'N' && getDayHoursTypeDetailsList[0].dAYTYPE == 'OFF';
|
|
|
|
|
|
|
|
bool isDayIsPresent = getDayHoursTypeDetailsList[0].aTTENDEDFLAG == 'Y';
|
|
|
|
|
|
|
|
bool isDayIsAbsent = getDayHoursTypeDetailsList[0].aTTENDEDFLAG == 'N' && getDayHoursTypeDetailsList[0].aBSENTFLAG == 'Y';
|
|
|
|
|
|
|
|
|
|
|
|
if (isDayIsOff) {
|
|
|
|
if (isDayIsOff) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
|