public ejpAssignmentMetaData(Guid id, string title, int ejsDatabaseId, DateTime creationDate, DateTime lastModifiedDate, int version, int revision, Enumerations.AssignmentType assignmentContentType, bool isManagedByEJournalServer, Guid ownerUserId) { this.OwnerUserId = ownerUserId; this.Id = id; this.Title = title; this.EJSDatabaseId = ejsDatabaseId; this.CreationDate = creationDate; this.LastModifiedDate = lastModifiedDate; this.Revision = revision; this.Version = version; this.AssignmentContentType = assignmentContentType; this.IsManagedByEJournalServer = isManagedByEJournalServer; }
public static string GetServiceTypeText(Enumerations.AssignmentType assignmentType) { string type; switch (assignmentType) { case Enumerations.AssignmentType.FieldService: type = "Servicio de Campo"; break; case Enumerations.AssignmentType.Scheduled: type = "Programado"; break; default: throw new ArgumentOutOfRangeException(nameof(assignmentType), assignmentType, null); } return(type); }