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