public HandleClientDataEntryPropertyAccess(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_ExecutionStatus.ContinueExecutionOnHalt = false;
            this.m_Rule = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_Rule.ActionList.Add(HasOrderBeenReceived);
            this.m_Rule.ActionList.Add(IsCurrentUserTheOwnerOfThisOrder);

            this.m_Rule.ActionList.Add(SetAreDemographicsEnabledToTrue);  //Must be last.
        }
        public HandleClientDataEntryPropertyAccess(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_ExecutionStatus.ContinueExecutionOnHalt = false;
            this.m_Rule = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_Rule.ActionList.Add(HasOrderBeenReceived);
            this.m_Rule.ActionList.Add(IsCurrentUserTheOwnerOfThisOrder);

            this.m_Rule.ActionList.Add(SetAreDemographicsEnabledToTrue);  //Must be last.
        }
Ejemplo n.º 3
0
        public SignInRules(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_Rule            = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_ApplicationSettings = ApplicationSettings.Instance;
            this.m_ApplicationIdentity = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance;

            this.m_Rule.ActionList.Add(IsAccountKeySet);
            this.m_Rule.ActionList.Add(LookupWebServiceAccount);
            this.m_Rule.ActionList.Add(SetDomainAccount);
        }
Ejemplo n.º 4
0
        public ClientAuthentication(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_ApplicationSettings = ApplicationSettings.Instance;
            this.m_ApplicationIdentity = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance;
            this.m_Rule = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_Rule.ActionList.Add(ValidateWithWebService);

            //this.m_Rule.ActionList.Add(LookupDomainAccount);
            //this.m_Rule.ActionList.Add(IsPasswordCorret);
            //this.m_Rule.ActionList.Add(SaveCurrentSignInfo);
        }
Ejemplo n.º 5
0
        public ApplicationStartupRules(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_Rule            = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_ApplicationSettings = ApplicationSettings.Instance;
            this.m_ApplicationIdentity = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance;

            this.m_Rule.ActionList.Add(CreateApplicationRoot);
            this.m_Rule.ActionList.Add(CreateSettingsFile);
            this.m_Rule.ActionList.Add(UpgradeSettings);
            this.m_Rule.ActionList.Add(CreateLocalFolders);
        }
Ejemplo n.º 6
0
        public ContainerIdValidation(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_Rule = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_ExecutionStatus.ContinueExecutionOnHalt = false;
            this.m_ExecutionStatus.SuccessMessage = "The container id is valid.";

            this.m_Rule.ActionList.Add(IsContainerIdLengthValid);
            this.m_Rule.ActionList.Add(IsContainerIdFormatValid);
            this.m_Rule.ActionList.Add(DoesConainerIdExistInCurrentOrder);
            this.m_Rule.ActionList.Add(DoesConainerIdExistInOrderCollection);
        }
Ejemplo n.º 7
0
        public ContainerIdValidation(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_Rule            = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_ExecutionStatus.ContinueExecutionOnHalt = false;
            this.m_ExecutionStatus.SuccessMessage          = "The container id is valid.";

            this.m_Rule.ActionList.Add(IsContainerIdLengthValid);
            this.m_Rule.ActionList.Add(IsContainerIdFormatValid);
            this.m_Rule.ActionList.Add(DoesConainerIdExistInCurrentOrder);
            this.m_Rule.ActionList.Add(DoesConainerIdExistInOrderCollection);
        }
Ejemplo n.º 8
0
        public ClientAuthentication(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus     = executionStatus;
            this.m_ApplicationSettings = ApplicationSettings.Instance;
            this.m_ApplicationIdentity = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance;
            this.m_Rule = new Business.Rules.SimpleRule(this.m_ExecutionStatus);


            this.m_Rule.ActionList.Add(ValidateWithWebService);

            //this.m_Rule.ActionList.Add(LookupDomainAccount);
            //this.m_Rule.ActionList.Add(IsPasswordCorret);
            //this.m_Rule.ActionList.Add(SaveCurrentSignInfo);
        }
Ejemplo n.º 9
0
        public ClientOrderValidation(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_Rule = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_ExecutionStatus.ContinueExecutionOnHalt = true;
            this.m_ExecutionStatus.SuccessMessage = "The client order has been successfully validated.";
            this.m_ExecutionStatus.FailureMessage = "We were unable to validate the client order because of the following issues:";

            this.m_Rule.ActionList.Add(IsPreOpNull);
            this.m_Rule.ActionList.Add(IsBirthdateValid);
            this.m_Rule.ActionList.Add(IsSvhMedicalRecordValid);
            this.m_Rule.ActionList.Add(IsSvhAccountNoValid);
            this.m_Rule.ActionList.Add(DoesFirstNameExist);
            this.m_Rule.ActionList.Add(DoesLastNameExist);
            this.m_Rule.ActionList.Add(DoesProviderExist);
            this.m_Rule.ActionList.Add(DoAllSpecimenHaveDescriptions);
            this.m_Rule.ActionList.Add(IsPlacentalQuestionnaireNeeded);
        }
Ejemplo n.º 10
0
        public ClientOrderValidation(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            this.m_ExecutionStatus = executionStatus;
            this.m_Rule            = new Business.Rules.SimpleRule(this.m_ExecutionStatus);

            this.m_ExecutionStatus.ContinueExecutionOnHalt = true;
            this.m_ExecutionStatus.SuccessMessage          = "The client order has been successfully validated.";
            this.m_ExecutionStatus.FailureMessage          = "We were unable to validate the client order because of the following issues:";

            this.m_Rule.ActionList.Add(IsPreOpNull);
            this.m_Rule.ActionList.Add(IsBirthdateValid);
            this.m_Rule.ActionList.Add(IsSvhMedicalRecordValid);
            this.m_Rule.ActionList.Add(IsSvhAccountNoValid);
            this.m_Rule.ActionList.Add(DoesFirstNameExist);
            this.m_Rule.ActionList.Add(DoesLastNameExist);
            this.m_Rule.ActionList.Add(DoesProviderExist);
            this.m_Rule.ActionList.Add(DoAllSpecimenHaveDescriptions);
            this.m_Rule.ActionList.Add(IsPlacentalQuestionnaireNeeded);
        }