public override Object ToServerObject() { Server.Application.MemberCase serverObject = new Server.Application.MemberCase(); MapToServerObject(serverObject); return(serverObject); }
public MemberCase Copy() { Server.Application.MemberCase serverObject = (Server.Application.MemberCase)ToServerObject(); MemberCase copiedObject = new MemberCase(application, serverObject); return(copiedObject); }
public virtual void MapToServerObject(Server.Application.MemberCase serverObject) { base.MapToServerObject((Server.Application.CoreExtensibleObject)serverObject); serverObject.MemberId = memberId; serverObject.ReferenceNumber = referenceNumber; serverObject.Status = status; serverObject.AssignedToSecurityAuthorityId = AssignedToSecurityAuthorityId; serverObject.AssignedToUserAccountId = AssignedToUserAccountId; serverObject.AssignedToUserAccountName = AssignedToUserAccountName; serverObject.AssignedToUserDisplayName = AssignedToUserDisplayName; serverObject.AssignedToDate = AssignedToDate; serverObject.LockedBySecurityAuthorityId = LockedBySecurityAuthorityId; serverObject.LockedByUserAccountId = LockedByUserAccountId; serverObject.LockedByUserAccountName = LockedByUserAccountName; serverObject.LockedByUserDisplayName = LockedByUserDisplayName; serverObject.LockedByDate = LockedByDate; serverObject.EffectiveDate = effectiveDate; serverObject.TerminationDate = terminationDate; serverObject.CarePlans = new Server.Application.MemberCaseCarePlan[carePlans.Count]; foreach (MemberCaseCarePlan currentCarePlan in carePlans) { Server.Application.MemberCaseCarePlan serverCarePlan = (Server.Application.MemberCaseCarePlan)currentCarePlan.ToServerObject(); serverObject.CarePlans[carePlans.IndexOf(currentCarePlan)] = serverCarePlan; } serverObject.CareInterventions = new Server.Application.MemberCaseCareIntervention[careInterventions.Count]; foreach (MemberCaseCareIntervention currentCareIntervention in careInterventions) { Server.Application.MemberCaseCareIntervention serverCareIntervention = (Server.Application.MemberCaseCareIntervention)currentCareIntervention.ToServerObject(); serverObject.CareInterventions[careInterventions.IndexOf(currentCareIntervention)] = serverCareIntervention; } serverObject.ProblemClasses = new Server.Application.MemberCaseProblemClass[problemClasses.Count]; foreach (MemberCaseProblemClass currentProblemClass in problemClasses) { Server.Application.MemberCaseProblemClass serverProblemClass = (Server.Application.MemberCaseProblemClass)currentProblemClass.ToServerObject(); serverObject.ProblemClasses[problemClasses.IndexOf(currentProblemClass)] = serverProblemClass; } return; }