/// <summary> /// Converts this instance of <see cref="servicecomponent"/> to an instance of <see cref="servicecomponentDto"/>. /// </summary> /// <param name="entity"><see cref="servicecomponent"/> to convert.</param> public static servicecomponentDto ToDTO(this servicecomponent entity) { if (entity == null) { return(null); } var dto = new servicecomponentDto(); dto.v_ServiceComponentId = entity.v_ServiceComponentId; dto.v_ServiceId = entity.v_ServiceId; dto.v_ComponentId = entity.v_ComponentId; dto.i_ServiceComponentStatusId = entity.i_ServiceComponentStatusId; dto.i_ExternalInternalId = entity.i_ExternalInternalId; dto.i_ServiceComponentTypeId = entity.i_ServiceComponentTypeId; dto.i_IsVisibleId = entity.i_IsVisibleId; dto.i_IsInheritedId = entity.i_IsInheritedId; dto.d_CalledDate = entity.d_CalledDate; dto.d_StartDate = entity.d_StartDate; dto.d_EndDate = entity.d_EndDate; dto.i_index = entity.i_index; dto.r_Price = entity.r_Price; dto.i_IsInvoicedId = entity.i_IsInvoicedId; dto.i_IsRequiredId = entity.i_IsRequiredId; dto.i_IsManuallyAddedId = entity.i_IsManuallyAddedId; dto.i_QueueStatusId = entity.i_QueueStatusId; dto.v_NameOfice = entity.v_NameOfice; dto.v_Comment = entity.v_Comment; dto.i_Iscalling = entity.i_Iscalling; dto.i_IsApprovedId = entity.i_IsApprovedId; 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.d_UpdateDate = entity.d_UpdateDate; dto.i_ApprovedInsertUserId = entity.i_ApprovedInsertUserId; dto.i_ApprovedUpdateUserId = entity.i_ApprovedUpdateUserId; dto.d_ApprovedInsertDate = entity.d_ApprovedInsertDate; dto.d_ApprovedUpdateDate = entity.d_ApprovedUpdateDate; 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_InsertUserTechnicalDataRegisterId = entity.i_InsertUserTechnicalDataRegisterId; dto.i_UpdateUserTechnicalDataRegisterId = entity.i_UpdateUserTechnicalDataRegisterId; dto.d_InsertDateTechnicalDataRegister = entity.d_InsertDateTechnicalDataRegister; dto.d_UpdateDateTechnicalDataRegister = entity.d_UpdateDateTechnicalDataRegister; dto.i_Iscalling_1 = entity.i_Iscalling_1; dto.i_AuditorInsertUserId = entity.i_AuditorInsertUserId; dto.d_AuditorInsertUser = entity.d_AuditorInsertUser; dto.i_AuditorUpdateUserId = entity.i_AuditorUpdateUserId; dto.d_AuditorUpdateUser = entity.d_AuditorUpdateUser; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="servicecomponent"/> to an instance of <see cref="servicecomponentDto"/>. /// </summary> /// <param name="entity"><see cref="servicecomponent"/> to convert.</param> public static servicecomponentDto ToDTO(this servicecomponent entity) { if (entity == null) { return(null); } var dto = new servicecomponentDto(); dto.v_ServiceComponentId = entity.v_ServiceComponentId; dto.v_ServiceId = entity.v_ServiceId; dto.v_ComponentId = entity.v_ComponentId; dto.i_ServiceComponentStatusId = entity.i_ServiceComponentStatusId; dto.i_ExternalInternalId = entity.i_ExternalInternalId; dto.i_ServiceComponentTypeId = entity.i_ServiceComponentTypeId; dto.i_IsVisibleId = entity.i_IsVisibleId; dto.i_IsInheritedId = entity.i_IsInheritedId; dto.d_CalledDate = entity.d_CalledDate; dto.d_StartDate = entity.d_StartDate; dto.d_EndDate = entity.d_EndDate; dto.i_index = entity.i_index; dto.r_Price = entity.r_Price; dto.i_IsInvoicedId = entity.i_IsInvoicedId; dto.i_IsRequiredId = entity.i_IsRequiredId; dto.i_IsManuallyAddedId = entity.i_IsManuallyAddedId; dto.i_QueueStatusId = entity.i_QueueStatusId; dto.v_NameOfice = entity.v_NameOfice; dto.v_Comment = entity.v_Comment; dto.i_Iscalling = entity.i_Iscalling; dto.i_IsApprovedId = entity.i_IsApprovedId; 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.d_UpdateDate = entity.d_UpdateDate; dto.i_ApprovedInsertUserId = entity.i_ApprovedInsertUserId; dto.i_ApprovedUpdateUserId = entity.i_ApprovedUpdateUserId; dto.d_ApprovedInsertDate = entity.d_ApprovedInsertDate; dto.d_ApprovedUpdateDate = entity.d_ApprovedUpdateDate; 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_InsertUserTechnicalDataRegisterId = entity.i_InsertUserTechnicalDataRegisterId; dto.i_UpdateUserTechnicalDataRegisterId = entity.i_UpdateUserTechnicalDataRegisterId; dto.d_InsertDateTechnicalDataRegister = entity.d_InsertDateTechnicalDataRegister; dto.d_UpdateDateTechnicalDataRegister = entity.d_UpdateDateTechnicalDataRegister; dto.i_Iscalling_1 = entity.i_Iscalling_1; dto.i_AuditorInsertUserId = entity.i_AuditorInsertUserId; dto.d_AuditorInsertUser = entity.d_AuditorInsertUser; dto.i_AuditorUpdateUserId = entity.i_AuditorUpdateUserId; dto.d_AuditorUpdateUser = entity.d_AuditorUpdateUser; dto.v_IdUnidadProductiva = entity.v_IdUnidadProductiva; dto.d_SaldoPaciente = entity.d_SaldoPaciente; dto.d_SaldoAseguradora = entity.d_SaldoAseguradora; dto.i_MedicoTratanteId = entity.i_MedicoTratanteId; dto.i_SystemUserEspecialistaId = entity.i_SystemUserEspecialistaId; dto.i_ConCargoA = entity.i_ConCargoA; dto.i_TipoDesc = entity.i_TipoDesc; dto.v_ComentaryUpdate = entity.v_ComentaryUpdate; entity.OnDTO(dto); return(dto); }