예제 #1
0
        public Boolean IsEqual(MemberCaseCarePlan compareObject)
        {
            Boolean isEqual = base.IsEqual((CoreExtensibleObject)compareObject);



            return(isEqual);
        }
예제 #2
0
        public MemberCaseCarePlan Copy()
        {
            Server.Application.MemberCaseCarePlan serverObject = (Server.Application.MemberCaseCarePlan)ToServerObject();

            MemberCaseCarePlan copiedObject = new MemberCaseCarePlan(application, serverObject);

            return(copiedObject);
        }
예제 #3
0
        public MemberCaseCarePlan CarePlan(Int64 forCarePlanId)
        {
            MemberCaseCarePlan carePlan = null;

            foreach (MemberCaseCarePlan currentCarePlan in carePlans)
            {
                if (currentCarePlan.Id == forCarePlanId)
                {
                    carePlan = currentCarePlan;

                    break;
                }
            }

            return(carePlan);
        }
예제 #4
0
        public MemberCaseCarePlan FindMemberCaseCarePlan(Int64 memberCaseCarePlanId)
        {
            MemberCaseCarePlan memberCaseCarePlan = null;


            foreach (MemberCaseCarePlan currentCarePlan in CarePlans)
            {
                if (currentCarePlan.Id == memberCaseCarePlanId)
                {
                    memberCaseCarePlan = currentCarePlan;

                    break;
                }
            }


            return(memberCaseCarePlan);
        }
예제 #5
0
        public MemberCaseCarePlan FindMemberCaseCarePlanByGoalId(Int64 memberCaseCarePlanGoalId)
        {
            MemberCaseCarePlan memberCaseCarePlan = null;


            foreach (MemberCaseCarePlan currentCarePlan in CarePlans)
            {
                if (currentCarePlan.ContainsGoal(memberCaseCarePlanGoalId))
                {
                    memberCaseCarePlan = currentCarePlan;

                    break;
                }
            }


            return(memberCaseCarePlan);
        }
예제 #6
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;
        }