public WorklistSummary(EntityRef worklistRef, string displayName, string description, string className, string classCategoryName, string classDisplayName, StaffSummary ownerStaff, StaffGroupSummary ownerGroup) { WorklistRef = worklistRef; DisplayName = displayName; Description = description; ClassName = className; ClassCategoryName = classCategoryName; ClassDisplayName = classDisplayName; OwnerStaff = ownerStaff; OwnerGroup = ownerGroup; }
/// <summary> /// Constructor /// </summary> /// <param name="orderNoteRef"></param> /// <param name="category"></param> /// <param name="creationTime"></param> /// <param name="postTime"></param> /// <param name="author"></param> /// <param name="onBehalfOfGroup"></param> /// <param name="isAcknowledged"></param> /// <param name="urgent"></param> /// <param name="noteBody"></param> public OrderNoteSummary(EntityRef orderNoteRef, string category, DateTime?creationTime, DateTime?postTime, StaffSummary author, StaffGroupSummary onBehalfOfGroup, bool isAcknowledged, bool urgent, string noteBody) { OrderNoteRef = orderNoteRef; Category = category; CreationTime = creationTime; PostTime = postTime; Author = author; OnBehalfOfGroup = onBehalfOfGroup; IsAcknowledged = isAcknowledged; Urgent = urgent; NoteBody = noteBody; }
/// <summary> /// Constructor for creating detail for an existing order note. /// </summary> /// <param name="orderNoteRef"></param> /// <param name="category"></param> /// <param name="creationTime"></param> /// <param name="postTime"></param> /// <param name="author"></param> /// <param name="onBehalfOfGroup"></param> /// <param name="urgent"></param> /// <param name="staffRecipients"></param> /// <param name="groupRecipients"></param> /// <param name="noteBody"></param> /// <param name="canAcknowledge"></param> public OrderNoteDetail(EntityRef orderNoteRef, string category, DateTime creationTime, DateTime?postTime, StaffSummary author, StaffGroupSummary onBehalfOfGroup, bool urgent, List <StaffRecipientDetail> staffRecipients, List <GroupRecipientDetail> groupRecipients, string noteBody, bool canAcknowledge) { OrderNoteRef = orderNoteRef; Category = category; CreationTime = creationTime; PostTime = postTime; Author = author; OnBehalfOfGroup = onBehalfOfGroup; Urgent = urgent; StaffRecipients = staffRecipients; GroupRecipients = groupRecipients; NoteBody = noteBody; CanAcknowledge = canAcknowledge; }
/// <summary> /// Constructor for generating a new order note. /// </summary> /// <param name="category"></param> /// <param name="noteBody"></param> /// <param name="onBehalfOfGroup"></param> /// <param name="urgent"></param> /// <param name="staffRecipients"></param> /// <param name="groupRecipients"></param> public OrderNoteDetail(string category, string noteBody, StaffGroupSummary onBehalfOfGroup, bool urgent, List <StaffSummary> staffRecipients, List <StaffGroupSummary> groupRecipients) { Category = category; NoteBody = noteBody; OnBehalfOfGroup = onBehalfOfGroup; Urgent = urgent; StaffRecipients = staffRecipients == null ? null : CollectionUtils.Map <StaffSummary, StaffRecipientDetail>(staffRecipients, delegate(StaffSummary staff) { return(new StaffRecipientDetail(staff, false, null)); }); GroupRecipients = groupRecipients == null ? null : CollectionUtils.Map <StaffGroupSummary, GroupRecipientDetail>(groupRecipients, delegate(StaffGroupSummary group) { return(new GroupRecipientDetail(group, false, null, null)); }); }
/// <summary> /// Constructor /// </summary> /// <param name="isAcknowledged"></param> /// <param name="acknowledgedTime"></param> /// <param name="group"></param> /// <param name="acknowledgedBy"></param> public GroupRecipientDetail(StaffGroupSummary group, bool isAcknowledged, DateTime?acknowledgedTime, StaffSummary acknowledgedBy) : base(isAcknowledged, acknowledgedTime) { Group = group; AcknowledgedByStaff = acknowledgedBy; }