示例#1
0
        public Notification(QmsCore.Model.NtfNotification notification)
        {
            this.NotificationId = notification.NotificationId;
            this.UserId = notification.UserId;
            this.WorkitemId = notification.WorkitemId;
            this.WorkItemType = notification.WorkItemTypeCode;
            this.Title = notification.Title;
            this.Message = notification.Message;
            this.HasBeenRead = notification.HasBeenRead;
            this.ReadAt = notification.ReadAt;
            this.CreatedAt = notification.CreatedAt;
            this.NotificationRecipient = new User(notification.User,false,false);
            this.SentAt = notification.SentAt;
            this.DeletedAt = notification.DeletedAt;

        }
示例#2
0
        public NtfNotification Clone()
        {
            NtfNotification retval = new NtfNotification();

            retval.CreatedAt           = this.CreatedAt;
            retval.DeletedAt           = this.DeletedAt;
            retval.HasBeenRead         = this.HasBeenRead;
            retval.Message             = this.Message;
            retval.Title               = this.Title;
            retval.NotificationEventId = this.NotificationEventId;
            retval.ReadAt              = this.ReadAt;
            retval.SendAsEmail         = this.SendAsEmail;
            retval.SentAt              = this.SentAt;
            retval.UserId              = this.UserId;
            retval.WorkitemId          = this.WorkitemId;
            retval.WorkItemTypeCode    = this.WorkItemTypeCode;
            return(retval);
        }