/// <summary> /// Converts this instance of <see cref="serviceDto"/> to an instance of <see cref="service"/>. /// </summary> /// <param name="dto"><see cref="serviceDto"/> to convert.</param> public static service ToEntity(this serviceDto dto) { if (dto == null) { return(null); } var entity = new service(); entity.v_ServiceId = dto.v_ServiceId; entity.v_ProtocolId = dto.v_ProtocolId; entity.v_PersonId = dto.v_PersonId; entity.i_MasterServiceId = dto.i_MasterServiceId; entity.i_ServiceStatusId = dto.i_ServiceStatusId; entity.v_Motive = dto.v_Motive; entity.i_AptitudeStatusId = dto.i_AptitudeStatusId; entity.d_ServiceDate = dto.d_ServiceDate; entity.d_GlobalExpirationDate = dto.d_GlobalExpirationDate; entity.d_ObsExpirationDate = dto.d_ObsExpirationDate; entity.i_FlagAgentId = dto.i_FlagAgentId; entity.v_OrganizationId = dto.v_OrganizationId; entity.v_LocationId = dto.v_LocationId; entity.v_MainSymptom = dto.v_MainSymptom; entity.i_TimeOfDisease = dto.i_TimeOfDisease; entity.i_TimeOfDiseaseTypeId = dto.i_TimeOfDiseaseTypeId; entity.v_Story = dto.v_Story; entity.i_DreamId = dto.i_DreamId; entity.i_UrineId = dto.i_UrineId; entity.i_DepositionId = dto.i_DepositionId; entity.i_AppetiteId = dto.i_AppetiteId; entity.i_ThirstId = dto.i_ThirstId; entity.d_Fur = dto.d_Fur; entity.v_CatemenialRegime = dto.v_CatemenialRegime; entity.i_MacId = dto.i_MacId; entity.i_IsNewControl = dto.i_IsNewControl; entity.i_HasMedicalBreakId = dto.i_HasMedicalBreakId; entity.d_MedicalBreakStartDate = dto.d_MedicalBreakStartDate; entity.d_MedicalBreakEndDate = dto.d_MedicalBreakEndDate; entity.v_GeneralRecomendations = dto.v_GeneralRecomendations; entity.i_DestinationMedicationId = dto.i_DestinationMedicationId; entity.i_TransportMedicationId = dto.i_TransportMedicationId; entity.d_StartDateRestriction = dto.d_StartDateRestriction; entity.d_EndDateRestriction = dto.d_EndDateRestriction; entity.i_HasRestrictionId = dto.i_HasRestrictionId; entity.i_HasSymptomId = dto.i_HasSymptomId; entity.d_UpdateDate = dto.d_UpdateDate; entity.d_NextAppointment = dto.d_NextAppointment; entity.i_IsDeleted = dto.i_IsDeleted; entity.i_InsertUserId = dto.i_InsertUserId; entity.d_InsertDate = dto.d_InsertDate; entity.i_UpdateUserId = dto.i_UpdateUserId; entity.i_SendToTracking = dto.i_SendToTracking; entity.i_InsertUserMedicalAnalystId = dto.i_InsertUserMedicalAnalystId; entity.i_UpdateUserMedicalAnalystId = dto.i_UpdateUserMedicalAnalystId; entity.d_InsertDateMedicalAnalyst = dto.d_InsertDateMedicalAnalyst; entity.d_UpdateDateMedicalAnalyst = dto.d_UpdateDateMedicalAnalyst; entity.i_InsertUserOccupationalMedicalId = dto.i_InsertUserOccupationalMedicalId; entity.i_UpdateUserOccupationalMedicaltId = dto.i_UpdateUserOccupationalMedicaltId; entity.d_InsertDateOccupationalMedical = dto.d_InsertDateOccupationalMedical; entity.d_UpdateDateOccupationalMedical = dto.d_UpdateDateOccupationalMedical; entity.i_HazInterconsultationId = dto.i_HazInterconsultationId; entity.v_Gestapara = dto.v_Gestapara; entity.v_Menarquia = dto.v_Menarquia; entity.d_PAP = dto.d_PAP; entity.d_Mamografia = dto.d_Mamografia; entity.v_CiruGine = dto.v_CiruGine; entity.v_Findings = dto.v_Findings; entity.i_StatusLiquidation = dto.i_StatusLiquidation; entity.i_ServiceTypeOfInsurance = dto.i_ServiceTypeOfInsurance; entity.i_ModalityOfInsurance = dto.i_ModalityOfInsurance; entity.i_IsFac = dto.i_IsFac; entity.i_InicioEnf = dto.i_InicioEnf; entity.i_CursoEnf = dto.i_CursoEnf; entity.i_Evolucion = dto.i_Evolucion; entity.v_ExaAuxResult = dto.v_ExaAuxResult; entity.v_ObsStatusService = dto.v_ObsStatusService; dto.OnEntity(entity); return(entity); }
/// <summary> /// Converts this instance of <see cref="serviceDto"/> to an instance of <see cref="service"/>. /// </summary> /// <param name="dto"><see cref="serviceDto"/> to convert.</param> public static service ToEntity(this serviceDto dto) { if (dto == null) { return(null); } var entity = new service(); entity.v_ServiceId = dto.v_ServiceId; entity.v_ProtocolId = dto.v_ProtocolId; entity.v_PersonId = dto.v_PersonId; entity.i_MasterServiceId = dto.i_MasterServiceId; entity.i_ServiceStatusId = dto.i_ServiceStatusId; entity.v_Motive = dto.v_Motive; entity.i_AptitudeStatusId = dto.i_AptitudeStatusId; entity.d_ServiceDate = dto.d_ServiceDate; entity.d_GlobalExpirationDate = dto.d_GlobalExpirationDate; entity.d_ObsExpirationDate = dto.d_ObsExpirationDate; entity.i_FlagAgentId = dto.i_FlagAgentId; entity.v_OrganizationId = dto.v_OrganizationId; entity.v_LocationId = dto.v_LocationId; entity.v_MainSymptom = dto.v_MainSymptom; entity.i_TimeOfDisease = dto.i_TimeOfDisease; entity.i_TimeOfDiseaseTypeId = dto.i_TimeOfDiseaseTypeId; entity.v_Story = dto.v_Story; entity.i_DreamId = dto.i_DreamId; entity.i_UrineId = dto.i_UrineId; entity.i_DepositionId = dto.i_DepositionId; entity.i_AppetiteId = dto.i_AppetiteId; entity.i_ThirstId = dto.i_ThirstId; entity.d_Fur = dto.d_Fur; entity.v_CatemenialRegime = dto.v_CatemenialRegime; entity.i_MacId = dto.i_MacId; entity.i_IsNewControl = dto.i_IsNewControl; entity.i_HasMedicalBreakId = dto.i_HasMedicalBreakId; entity.d_MedicalBreakStartDate = dto.d_MedicalBreakStartDate; entity.d_MedicalBreakEndDate = dto.d_MedicalBreakEndDate; entity.v_GeneralRecomendations = dto.v_GeneralRecomendations; entity.i_DestinationMedicationId = dto.i_DestinationMedicationId; entity.i_TransportMedicationId = dto.i_TransportMedicationId; entity.d_StartDateRestriction = dto.d_StartDateRestriction; entity.d_EndDateRestriction = dto.d_EndDateRestriction; entity.i_HasRestrictionId = dto.i_HasRestrictionId; entity.i_HasSymptomId = dto.i_HasSymptomId; entity.d_UpdateDate = dto.d_UpdateDate; entity.d_NextAppointment = dto.d_NextAppointment; entity.i_IsDeleted = dto.i_IsDeleted; entity.i_InsertUserId = dto.i_InsertUserId; entity.d_InsertDate = dto.d_InsertDate; entity.i_UpdateUserId = dto.i_UpdateUserId; entity.i_SendToTracking = dto.i_SendToTracking; entity.i_InsertUserMedicalAnalystId = dto.i_InsertUserMedicalAnalystId; entity.i_UpdateUserMedicalAnalystId = dto.i_UpdateUserMedicalAnalystId; entity.d_InsertDateMedicalAnalyst = dto.d_InsertDateMedicalAnalyst; entity.d_UpdateDateMedicalAnalyst = dto.d_UpdateDateMedicalAnalyst; entity.i_InsertUserOccupationalMedicalId = dto.i_InsertUserOccupationalMedicalId; entity.i_UpdateUserOccupationalMedicaltId = dto.i_UpdateUserOccupationalMedicaltId; entity.d_InsertDateOccupationalMedical = dto.d_InsertDateOccupationalMedical; entity.d_UpdateDateOccupationalMedical = dto.d_UpdateDateOccupationalMedical; entity.i_HazInterconsultationId = dto.i_HazInterconsultationId; entity.v_Gestapara = dto.v_Gestapara; entity.v_Menarquia = dto.v_Menarquia; entity.d_PAP = dto.d_PAP; entity.d_Mamografia = dto.d_Mamografia; entity.v_CiruGine = dto.v_CiruGine; entity.v_Findings = dto.v_Findings; entity.i_StatusLiquidation = dto.i_StatusLiquidation; entity.i_ServiceTypeOfInsurance = dto.i_ServiceTypeOfInsurance; entity.i_ModalityOfInsurance = dto.i_ModalityOfInsurance; entity.i_IsFac = dto.i_IsFac; entity.i_InicioEnf = dto.i_InicioEnf; entity.i_CursoEnf = dto.i_CursoEnf; entity.i_Evolucion = dto.i_Evolucion; entity.v_ExaAuxResult = dto.v_ExaAuxResult; entity.v_ObsStatusService = dto.v_ObsStatusService; entity.d_FechaEntrega = dto.d_FechaEntrega; entity.v_AreaId = dto.v_AreaId; entity.v_FechaUltimoPAP = dto.v_FechaUltimoPAP; entity.v_ResultadosPAP = dto.v_ResultadosPAP; entity.v_FechaUltimaMamo = dto.v_FechaUltimaMamo; entity.v_ResultadoMamo = dto.v_ResultadoMamo; entity.r_Costo = dto.r_Costo; entity.i_EnvioCertificado = dto.i_EnvioCertificado; entity.i_EnvioHistoria = dto.i_EnvioHistoria; entity.v_IdVentaCliente = dto.v_IdVentaCliente; entity.v_IdVentaAseguradora = dto.v_IdVentaAseguradora; entity.v_InicioVidaSexaul = dto.v_InicioVidaSexaul; entity.v_NroParejasActuales = dto.v_NroParejasActuales; entity.v_NroAbortos = dto.v_NroAbortos; entity.v_PrecisarCausas = dto.v_PrecisarCausas; entity.i_MedicoTratanteId = dto.i_MedicoTratanteId; entity.i_IsFacMedico = dto.i_IsFacMedico; entity.v_centrocosto = dto.v_centrocosto; entity.v_NroLiquidacion = dto.v_NroLiquidacion; entity.i_MedicoPagado = dto.i_MedicoPagado; entity.i_PagoEspecialista = dto.i_PagoEspecialista; entity.i_IsControl = dto.i_IsControl; entity.i_IsRevisedHistoryId = dto.i_IsRevisedHistoryId; entity.i_StatusVigilanciaId = dto.i_StatusVigilanciaId; entity.v_NroCartaSolicitud = dto.v_NroCartaSolicitud; entity.v_ComentaryUpdate = dto.v_ComentaryUpdate; entity.i_PlanId = dto.i_PlanId; entity.i_AptitudesStatusId_First = dto.i_AptitudesStatusId_First; entity.v_CommentAptitusStatus_First = dto.v_CommentAptitusStatus_First; entity.v_ComprobantePago = dto.v_ComprobantePago; dto.OnEntity(entity); return(entity); }