Esempio n. 1
0
        public ThreadTO(gov.va.medora.mdo.domain.sm.Thread thread)
        {
            if (thread == null)
            {
                return;
            }

            id              = thread.Id;
            oplock          = thread.Oplock;
            mailGroup       = new TriageGroupTO(thread.MailGroup);
            subject         = thread.Subject;
            messageCategory = (Int32)thread.MessageCategoryType;

            if (thread.Annotations != null)
            {
                annotations = new AnnotationTO[thread.Annotations.Count];
                for (int i = 0; i < thread.Annotations.Count; i++)
                {
                    annotations[i] = new AnnotationTO(thread.Annotations[i]);
                }
            }
            if (thread.Messages != null)
            {
                messages = new MessageTO[thread.Messages.Count];
                for (int i = 0; i < thread.Messages.Count; i++)
                {
                    messages[i] = new MessageTO(thread.Messages[i]);
                }
            }
        }
Esempio n. 2
0
        public ThreadTO(gov.va.medora.mdo.domain.sm.Thread thread)
        {
            if (thread == null)
            {
                return;
            }

            id = thread.Id;
            oplock = thread.Oplock;
            mailGroup = new TriageGroupTO(thread.MailGroup);
            subject = thread.Subject;
            messageCategory = (Int32)thread.MessageCategoryType;

            if (thread.Annotations != null)
            {
                annotations = new AnnotationTO[thread.Annotations.Count];
                for (int i = 0; i < thread.Annotations.Count; i++)
                {
                    annotations[i] = new AnnotationTO(thread.Annotations[i]);
                }
            }
            if (thread.Messages != null)
            {
                messages = new MessageTO[thread.Messages.Count];
                for (int i = 0; i < thread.Messages.Count; i++)
                {
                    messages[i] = new MessageTO(thread.Messages[i]);
                }
            }
        }
Esempio n. 3
0
        public SmUserTO(mdo.domain.sm.User user)
        {
            if (user == null)
            {
                return;
            }

            id               = user.Id;
            username         = user.Username;
            lastName         = user.LastName;
            firstName        = user.FirstName;
            middleName       = user.MiddleName;
            email            = user.Email;
            ssn              = user.Ssn;
            nSsn             = user.Nssn;
            lastNotification = user.LastNotification;

            if (user.Groups != null && user.Groups.Count > 0)
            {
                groups = new TriageGroupTO[user.Groups.Count];
                for (int i = 0; i < user.Groups.Count; i++)
                {
                    groups[i] = new TriageGroupTO(user.Groups[i]);
                }
            }

            if (user.Mailbox != null)
            {
                mailbox = new MailboxTO(user.Mailbox);
            }
        }
Esempio n. 4
0
        public SmUserTO(mdo.domain.sm.User user)
        {
            if (user == null)
            {
                return;
            }

            id = user.Id;
            username = user.Username;
            lastName = user.LastName;
            firstName = user.FirstName;
            middleName = user.MiddleName;
            email = user.Email;
            ssn = user.Ssn;
            nSsn = user.Nssn;
            lastNotification = user.LastNotification;

            if (user.Groups != null && user.Groups.Count > 0)
            {
                groups = new TriageGroupTO[user.Groups.Count];
                for (int i = 0; i < user.Groups.Count; i++)
                {
                    groups[i] = new TriageGroupTO(user.Groups[i]);
                }
            }

            if (user.Mailbox != null)
            {
                mailbox = new MailboxTO(user.Mailbox);
            }
        }
Esempio n. 5
0
        public TriageGroupsTO(IList<gov.va.medora.mdo.domain.sm.TriageGroup> groups)
        {
            if (groups == null || groups.Count <= 0)
            {
                return;
            }

            count = groups.Count;
            triageGroups = new TriageGroupTO[count];

            for (int i = 0; i < count; i++)
            {
                triageGroups[i] = new TriageGroupTO(groups[i]);
            }
        }
Esempio n. 6
0
        public TriageGroupsTO(IList <gov.va.medora.mdo.domain.sm.TriageGroup> groups)
        {
            if (groups == null || groups.Count <= 0)
            {
                return;
            }

            count        = groups.Count;
            triageGroups = new TriageGroupTO[count];

            for (int i = 0; i < count; i++)
            {
                triageGroups[i] = new TriageGroupTO(groups[i]);
            }
        }