public void MapDataFields(System.Data.DataRow currentRow) { populationMembershipId = (Int64)currentRow["PopulationMembershipId"]; populationId = (Int64)currentRow["PopulationId"]; memberId = (Int64)currentRow["MemberId"]; memberName = (String)currentRow["MemberName"]; effectiveDate = (DateTime)currentRow["EffectiveDate"]; status = (Mercury.Server.Core.Population.Enumerations.PopulationServiceEventStatus)(Int32) currentRow["status"]; return; }
override public void MapDataFields(System.Data.DataRow currentRow) { base.MapDataFields(currentRow); populationServiceEventId = (Int64)currentRow["PopulationServiceEventId"]; populationId = (Int64)currentRow["PopulationId"]; relativeDateValue = (Int32)currentRow["RelativeDateValue"]; relativeDateQualifier = (Mercury.Server.Core.Enumerations.DateQualifier)(Int32) currentRow["RelativeDateQualifier"]; status = (Mercury.Server.Core.Population.Enumerations.PopulationServiceEventStatus)(Int32) currentRow["Status"]; action = new Mercury.Server.Core.Action.Action(base.application); action.MapDataFields(String.Empty, currentRow); return; }
public void MapDataFields(System.Data.DataRow currentRow) { populationMembershipId = (Int64)currentRow["PopulationMembershipId"]; memberId = (Int64)currentRow["MemberId"]; populationId = (Int64)currentRow["PopulationId"]; populationName = (String)currentRow["PopulationName"]; effectiveDate = (DateTime)currentRow["EffectiveDate"]; terminationDate = (DateTime)currentRow["TerminationDate"]; anchorDate = (DateTime)currentRow["AnchorDate"]; identifyingEventMemberServiceId = CommonFunctions.IdFromSql(currentRow, "IdentifyingEventMemberServiceId"); identifyingEventServiceId = CommonFunctions.IdFromSql(currentRow, "IdentifyingEventServiceId"); identifyingEventServiceName = (String)currentRow["IdentifyingEventServiceName"]; identifyingEventDate = CommonFunctions.DateTimeFromSql(currentRow, "IdentifyingEventDate"); terminatingEventMemberServiceId = CommonFunctions.IdFromSql(currentRow, "TerminatingEventMemberServiceId"); terminatingEventServiceId = CommonFunctions.IdFromSql(currentRow, "TerminatingEventServiceId"); terminatingEventServiceName = (String)currentRow["TerminatingEventServiceName"]; terminatingEventDate = CommonFunctions.DateTimeFromSql(currentRow, "TerminatingEventDate"); serviceId = CommonFunctions.IdFromSql(currentRow, "ServiceId"); serviceName = (String)currentRow["ServiceName"]; expectedEventDate = CommonFunctions.DateTimeFromSql(currentRow, "ExpectedEventDate"); previousThresholdDate = CommonFunctions.DateTimeFromSql(currentRow, "PreviousThresholdDate"); nextThresholdDate = CommonFunctions.DateTimeFromSql(currentRow, "NextThresholdDate"); status = (Mercury.Server.Core.Population.Enumerations.PopulationServiceEventStatus)(Int32) currentRow["Status"]; switch (status) { case Enumerations.PopulationServiceEventStatus.CompliantOrNoChange: statusText = "Compliant"; break; case Enumerations.PopulationServiceEventStatus.Open: statusText = "Open"; break; case Enumerations.PopulationServiceEventStatus.OpenInformational: statusText = "Open - Informational"; break; case Enumerations.PopulationServiceEventStatus.OpenWarning: statusText = "Open - Warning"; break; case Enumerations.PopulationServiceEventStatus.OpenCritical: statusText = "Open - Critical"; break; default: statusText = "Open - Unknown"; break; } populationEnabled = (Boolean)currentRow["PopulationEnabled"]; populationVisible = (Boolean)currentRow["PopulationVisible"]; return; }
public void MapDataFields(System.Data.DataRow currentRow) { populationMembershipId = (Int64)currentRow["PopulationMembershipId"]; serviceId = (Int64)currentRow["ServiceId"]; serviceName = (String)currentRow["ServiceName"]; if (currentRow["ExpectedEventDate"] is DBNull) { expectedEventDate = null; } else { expectedEventDate = (DateTime)currentRow["ExpectedEventDate"]; } if (currentRow["EventDate"] is DBNull) { eventDate = null; } else { eventDate = (DateTime)currentRow["EventDate"]; } if (currentRow["PreviousThresholdDate"] is DBNull) { previousThresholdDate = null; } else { previousThresholdDate = (DateTime)currentRow["PreviousThresholdDate"]; } if (currentRow["NextThresholdDate"] is DBNull) { nextThresholdDate = null; } else { nextThresholdDate = (DateTime)currentRow["NextThresholdDate"]; } status = (Mercury.Server.Core.Population.Enumerations.PopulationServiceEventStatus)(Int32) currentRow["Status"]; switch (status) { case Enumerations.PopulationServiceEventStatus.CompliantOrNoChange: statusText = "Compliant"; break; case Enumerations.PopulationServiceEventStatus.Open: statusText = "Open"; break; case Enumerations.PopulationServiceEventStatus.OpenInformational: statusText = "Open - Informational"; break; case Enumerations.PopulationServiceEventStatus.OpenWarning: statusText = "Open - Warning"; break; case Enumerations.PopulationServiceEventStatus.OpenCritical: statusText = "Open - Critical"; break; default: statusText = "Open - Unknown"; break; } scheduleValue = (Int32)currentRow["ScheduleValue"]; scheduleQualifier = (Mercury.Server.Core.Enumerations.DateQualifier)(Int32) currentRow["ScheduleQualifier"]; Reoccurring = (Boolean)currentRow["Reoccurring"]; return; }