Add Employee Recognition feature to notifications system
- Add Recognition notification type (ID 5) with blue color - Add employeesso field to notifications table - Create carousel display for Recognition on shopfloor dashboard - Show employee names (lookup from wjf_employees) instead of SSO - Auto-set starttime to NOW and endtime to 4AM next day - Auto-enable shopfloor display for Recognition type - Add Achievements tab to employee profile (displayprofile.asp) - Hide Recognition from calendar view - Add lookupemployee.asp AJAX endpoint for name preview - Fix datetime double-formatting bug in save/update files - Fix URL parameter loading on shopfloor dashboard init 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -185,11 +185,13 @@ Function FormatDateISO(dt)
|
||||
End Function
|
||||
|
||||
' Fetch all ACTIVE notifications with type information and convert to FullCalendar events
|
||||
' Exclude Recognition type (notificationtypeid = 5) from calendar view
|
||||
Dim strSQL, rs, isFirst
|
||||
strSQL = "SELECT n.notificationid, n.notification, n.starttime, n.endtime, n.isactive, n.ticketnumber, n.link, " & _
|
||||
"nt.typename, nt.typecolor " & _
|
||||
"FROM notifications n " & _
|
||||
"LEFT JOIN notificationtypes nt ON n.notificationtypeid = nt.notificationtypeid " & _
|
||||
"WHERE (nt.typename IS NULL OR nt.typename <> 'Recognition') " & _
|
||||
"ORDER BY n.starttime ASC"
|
||||
Set rs = objconn.Execute(strSQL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user