Exemplo n.º 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);
            }
Exemplo n.º 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);
            }