public PlanContinuingProcessResource(RHumanResource resource, Process process, Deliverable deliverable, Activity activity, Period period, double dedication) { _resource = resource; _process = process; _deliverable = deliverable; _activity = activity; _dedication = dedication; _period = period; }
public UnAssignResource(RHumanResource resource, Release release, Project project, Milestone milestone, Deliverable deliverable, Activity activity, Period period) { _resource = resource; _release = release; _milestone = milestone; _deliverable = deliverable; _activity = activity; _period = period; _project = project; }
public PlanReleaseResource(RHumanResource resource, Release release, Project project, Milestone milestone, Deliverable deliverable, Activity activity, Period period, double focusFactor) { _resource = resource; _release = release; _milestone = milestone; _deliverable = deliverable; _activity = activity; _focusFactor = focusFactor; _period = period; _project = project; }
/// <summary> /// UnAssign the resource from the specified deliverable activity /// </summary> /// <param name="str"></param> /// <returns></returns> public static void UnAssignFromRelease(this RHumanResource person, Release release, Project project, Milestone milestone, Deliverable deliverable, Activity activity, Period assignedPeriod) { var rep = new ResourceRepository(); try { rep.DeleteReleaseAssignment(release.Id, project.Id, person.Id, milestone.Id, deliverable.Id, activity.Id, assignedPeriod.StartDate, assignedPeriod.EndDate); } catch (Exception ex) { throw; } }
/// <summary> /// TODO: not used yet; first create continuing process logic /// Plan the resource for a continuing process /// </summary> /// <param name="str"></param> /// <returns></returns> public static void PlanForContinuingProcess(this RHumanResource person, Process process, Deliverable deliverable, Activity activity, Period assignedPeriod, double dedication) { var rep = new ResourceRepository(); try { rep.SaveContinuingProcessAssignment(process.Id, person.Id, deliverable.Id, activity.Id, assignedPeriod.StartDate, assignedPeriod.EndDate, dedication); } catch (Exception ex) { throw; } }
/// <summary> /// Plan the resource for an assignment /// </summary> /// <param name="str"></param> /// <returns></returns> public static void PlanForRelease(this RHumanResource person, RReleasePlanning release, Project project, Milestone milestone, Deliverable deliverable, Activity activity, Period assignedPeriod, double focusFactor) { var rep = new ResourceRepository(); try { rep.SaveReleaseAssignment(release.Id, project.Id, person.Id, milestone.Id, deliverable.Id, activity.Id, assignedPeriod.StartDate, assignedPeriod.EndDate, focusFactor); // make sure we have status records for all release, project, milestone and deliverable combinations if (release.Milestones.Count == 0) release.LoadPhasesAndMilestonesAndProjects(); release.GenerateMilestoneStatusRecords(); } catch (Exception ex) { throw; } }