Esempio n. 1
0
        public new MemberCaseCareIntervention Copy()
        {
            Server.Application.MemberCaseCareIntervention serverObject = (Server.Application.MemberCaseCareIntervention)ToServerObject();

            MemberCaseCareIntervention copiedCareIntervention = new MemberCaseCareIntervention(application, serverObject);

            return(copiedCareIntervention);
        }
Esempio n. 2
0
        public MemberCaseCareIntervention CareIntervention(Int64 forCareInterventionId)
        {
            MemberCaseCareIntervention careIntervention = null;

            foreach (MemberCaseCareIntervention currentCareIntervention in careInterventions)
            {
                if (currentCareIntervention.Id == forCareInterventionId)
                {
                    careIntervention = currentCareIntervention;

                    break;
                }
            }

            return(careIntervention);
        }
Esempio n. 3
0
        public Boolean IsEqual(MemberCaseCareIntervention compareObject)
        {
            Boolean isEqual = base.IsEqual((CareIntervention)compareObject);


            isEqual &= (activities.Count == compareObject.Activities.Count);

            if (isEqual)
            {
                for (Int32 currentIndex = 0; currentIndex < activities.Count; currentIndex++)
                {
                    isEqual &= activities[currentIndex].IsEqual(compareObject.Activities[currentIndex]);
                }
            }


            return(isEqual);
        }
Esempio n. 4
0
        public MemberCase(Application applicationReference, Mercury.Server.Application.MemberCase serverObject)
        {
            BaseConstructor(applicationReference, serverObject);


            memberId = serverObject.MemberId;

            referenceNumber = serverObject.ReferenceNumber;

            status = serverObject.Status;


            assignedToWorkTeamId = serverObject.AssignedToWorkTeamId;

            assignedToWorkTeamDate = serverObject.AssignedToWorkTeamDate;


            assignedToSecurityAuthorityId = serverObject.AssignedToSecurityAuthorityId;

            assignedToUserAccountId = serverObject.AssignedToUserAccountId;

            assignedToUserAccountName = serverObject.AssignedToUserAccountName;

            assignedToUserDisplayName = serverObject.AssignedToUserDisplayName;

            assignedToDate = serverObject.AssignedToDate;


            lockedBySecurityAuthorityId = serverObject.LockedBySecurityAuthorityId;

            lockedByUserAccountId = serverObject.LockedByUserAccountId;

            lockedByUserAccountName = serverObject.LockedByUserAccountName;

            lockedByUserDisplayName = serverObject.LockedByUserDisplayName;

            lockedByDate = serverObject.LockedByDate;


            effectiveDate = serverObject.EffectiveDate;

            terminationDate = serverObject.TerminationDate;


            problemClasses.Clear();

            foreach (Server.Application.MemberCaseProblemClass currentServerProblemClass in serverObject.ProblemClasses)
            {
                MemberCaseProblemClass problemClass = new MemberCaseProblemClass(Application, currentServerProblemClass);

                problemClass.MemberCase = this;

                problemClasses.Add(problemClass);
            }

            carePlans.Clear();

            foreach (Server.Application.MemberCaseCarePlan currentServerCarePlan in serverObject.CarePlans)
            {
                MemberCaseCarePlan carePlan = new MemberCaseCarePlan(Application, currentServerCarePlan);

                carePlan.MemberCase = this;

                carePlans.Add(carePlan);
            }

            careInterventions.Clear();

            foreach (Server.Application.MemberCaseCareIntervention currentServerCareIntervention in serverObject.CareInterventions)
            {
                MemberCaseCareIntervention careIntervention = new MemberCaseCareIntervention(Application, currentServerCareIntervention);

                careIntervention.MemberCase = this;

                careInterventions.Add(careIntervention);
            }

            return;
        }