コード例 #1
0
            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);
            }
コード例 #2
0
            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);
            }
コード例 #3
0
            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);
            }