Пример #1
0
        public void LoadNotications()
        {
            Session currentSession = Session.Instance;

            Trinity.BE.User user = getSuperviseeLogin();

            DAL_Notification dalNotification = new DAL_Notification();

            List <Trinity.BE.Notification> myNotifications = dalNotification.GetAllNotifications(user.UserId);

            var model = myNotifications;

            _web.LoadPageHtml("Notifications.html", myNotifications);
        }
Пример #2
0
        public List <Notification> getAlertsSendToDutyOfficer()
        {
            if (_isFocusQueue)
            {
                SmartCardReaderUtil.Instance.StopSmartCardMonitor();
                _isFocusQueue = false;
            }

            var    dalNotify = new DAL_Notification();
            string userID    = ((Trinity.BE.User)Session.Instance[CommonConstants.USER_LOGIN]).UserId;

            if (userID != null || userID != "")
            {
                //Receive alerts and notifications from APS, ARK, ALK, SHP and SSP
                List <string> modules = new List <string>()
                {
                    EnumStation.APS, EnumStation.ARK, EnumStation.ALK, EnumStation.SHP, EnumStation.SSP, EnumStation.ENROLMENT
                };
                return(dalNotify.GetAllNotifications(userID, modules, true));
            }
            return(null);
        }