public dtoActivity(litePmActivity activity) { Id = activity.Id; IdProject = activity.IdProject; IdParent = (activity.Parent != null) ? activity.Parent.Id : 0; Name = activity.Name; Description = activity.Description; Note = activity.Notes; DisplayOrder = activity.DisplayOrder; WBSindex = activity.WBSindex; WBSstring = activity.WBSstring; Depth = activity.Depth; Deadline = activity.Deadline; IsCompleted = activity.IsCompleted; IsSummary = activity.IsSummary; EarlyStartDate = activity.EarlyStartDate; EarlyFinishDate = activity.EarlyFinishDate; LatestStartDate = activity.LatestStartDate; LatestFinishDate = activity.LatestFinishDate; isAfterDeadline = activity.isAfterDeadline; isCritical = activity.isCritical; Duration = new dtoDuration(activity.Duration, activity.IsDurationEstimated); Links = activity.Predecessors.Where(p => p.Target != null).Select(p => new dtoActivityLink() { Id = p.Id, IdTarget = p.Target.Id, IdSource = Id, LeadLag = p.LeadLag, Type = p.Type }).ToList(); IdResources = activity.CurrentAssignments.Select(a => a.Resource.Id).ToList(); Assignments = activity.CurrentAssignments.Select(a => new dtoActivityCompletion() { Id = Id, IdResource = a.Resource.Id, Completeness = a.Completeness, IsApproved = a.IsApproved }).ToList(); Completeness = activity.Completeness; Status = activity.Status; Permission = new dtoActivityPermission(); }
public dtoActivity() { Permission = new dtoActivityPermission(); IdResources = new List <long>(); Duration = new dtoDuration(); Links = new List <dtoActivityLink>(); Assignments = new List <dtoActivityCompletion>(); }
public dtoLiteValue() { Duration = new dtoDuration(); IdActivityLinks = new List <long>(); Links = new List <ParsedActivityLink>(); IdSummaryLinks = new List <long>(); SummaryLinks = new List <ParsedActivityLink>(); PredecessorsIdString = ""; }
public dtoActivityTreeItem(litePmActivity task, long rowNumber) { Id = task.Id; IdParent = (task.Parent != null) ? task.Parent.Id : 0; RowNumber = rowNumber; Name = task.Name; DisplayOrder = task.DisplayOrder; WBSindex = task.WBSindex; WBSstring = task.WBSstring; Deadline = task.Deadline; IsSummary = task.IsSummary; EarlyStartDate = task.EarlyStartDate; EarlyFinishDate = task.EarlyFinishDate; isCritical = task.isCritical; Duration = new dtoDuration(task.Duration, task.IsDurationEstimated); Links = task.Predecessors.Where(p => p.Target != null).Select(p => new ParsedActivityLink() { Id = p.Target.Id, LeadLag = p.LeadLag, LinkType = p.Type }).ToList(); Children = new List <dtoActivityTreeItem>(); Depth = task.Depth; }
public dtoActivityTreeItem() { Children = new List <dtoActivityTreeItem>(); Duration = new dtoDuration(); }