Esempio n. 1
0
        /// <summary>
        /// Get Notification E-Mail Object
        /// </summary>
        /// <param name="alarmObject"></param>
        /// <returns></returns>
        private NotifyPopupAddressList GetNotifyPopupAddressList(Interface.Alarm.AlarmObject alarmObject)
        {
            NotifyPopupAddressList notificationPopupAddressList = null;

            try
            {
                /*Fetch Popup Address list based on Notification Profile ID*/
                notificationPopupAddressList = new NotifyPopupAddressList();
                Criteria criteria = new Criteria();
                criteria.ID = GetPopupNotificationID(alarmObject.NotifyProfileID);//Replace with
                notificationPopupAddressList.Load(criteria);
            }
            catch (Exception ex)
            {
                /*Debug Object values for reference*/
                LogBook.Debug(notificationPopupAddressList, this);

                /*Write exception log*/
                LogBook.Write(_logContent + " Error has occurred while fetching Popup address list from 'GenNotifyEmails' table", ex, "CooperAtkins.NotificationClient.NotificationComposer.EmailNotificationComposer");
            }
            return(notificationPopupAddressList);
        }