private void ReplaceAssignmentStep(Procedure procedure, Protocol protocol, Staff reassignToStaff) { ProtocolAssignmentStep replacementAssignmentStep = new ProtocolAssignmentStep(protocol); procedure.AddProcedureStep(replacementAssignmentStep); if (reassignToStaff != null) { replacementAssignmentStep.Assign(reassignToStaff); } replacementAssignmentStep.Schedule(Platform.Time); }
public void Execute(ProtocolAssignmentStep assignmentStep) { assignmentStep.Complete(); assignmentStep.Protocol.SubmitForApproval(); // Replace with new step scheduled step ProtocolAssignmentStep approvalStep = new ProtocolAssignmentStep(assignmentStep.Protocol); assignmentStep.Procedure.AddProcedureStep(approvalStep); approvalStep.Schedule(Platform.Time); approvalStep.Assign(assignmentStep.Protocol.Supervisor); }
public ProtocolAssignmentStep Execute(ProtocolAssignmentStep assignmentStep, Staff author) { assignmentStep.Protocol.Status = ProtocolStatus.PN; assignmentStep.Protocol.Supervisor = null; assignmentStep.Discontinue(); // Replace with new step scheduled step ProtocolAssignmentStep replacementStep = new ProtocolAssignmentStep(assignmentStep.Protocol); assignmentStep.Procedure.AddProcedureStep(replacementStep); replacementStep.Assign(author); replacementStep.Start(author); return(replacementStep); }