public ProjectWBS(WBSType type, long targetId, float wf, string wbsCode, Guid projectId, long?parentId, string name, WfCalculationType caltype) { this.Id = targetId; this.Type = type; this.TargetId = targetId; this.WF = wf; this.WBSCode = wbsCode; this.ProjectId = projectId; this.ParentId = parentId; this.Name = name; this.CalculationType = caltype; this.Progress = 0; this.ActivityCount = 0; this.Childeren = new List <ProjectWBS>(); }
public static ProjectWBS CreateProjectWBSToParent(WBSType type, long targetId, float wf, string wbsCode, Guid projectId, string name, ProjectWBS parent, WfCalculationType calType) { var newItem = new ProjectWBS { ProjectId = projectId, TargetId = targetId, Type = type, WBSCode = wbsCode, WF = wf, Name = name, Parent = parent, ParentId = parent.Id }; newItem.Childeren = new List <ProjectWBS>(); return(newItem); }
public static IStatusGeneric <ProjectWBS> CreateProjectWBS(WBSType type, long targetId, float wf, string wbsCode, Guid projectId, long?parentId, string name, WfCalculationType calType) { var status = new StatusGenericHandler <ProjectWBS>(); var newItem = new ProjectWBS { ParentId = parentId, ProjectId = projectId, TargetId = targetId, Type = type, WBSCode = wbsCode, WF = wf, Name = name, CalculationType = calType, }; status.Result = newItem; return(status); }