/// <summary> /// Converts this instance of <see cref="protocol"/> to an instance of <see cref="protocolDto"/>. /// </summary> /// <param name="entity"><see cref="protocol"/> to convert.</param> public static protocolDto ToDTO(this protocol entity) { if (entity == null) { return(null); } var dto = new protocolDto(); dto.v_ProtocolId = entity.v_ProtocolId; dto.v_Name = entity.v_Name; dto.v_EmployerOrganizationId = entity.v_EmployerOrganizationId; dto.v_EmployerLocationId = entity.v_EmployerLocationId; dto.i_EsoTypeId = entity.i_EsoTypeId; dto.v_GroupOccupationId = entity.v_GroupOccupationId; dto.v_CustomerOrganizationId = entity.v_CustomerOrganizationId; dto.v_CustomerLocationId = entity.v_CustomerLocationId; dto.v_NombreVendedor = entity.v_NombreVendedor; dto.v_WorkingOrganizationId = entity.v_WorkingOrganizationId; dto.v_WorkingLocationId = entity.v_WorkingLocationId; dto.v_CostCenter = entity.v_CostCenter; dto.i_MasterServiceTypeId = entity.i_MasterServiceTypeId; dto.i_MasterServiceId = entity.i_MasterServiceId; dto.i_HasVigency = entity.i_HasVigency; dto.i_ValidInDays = entity.i_ValidInDays; dto.i_IsActive = entity.i_IsActive; 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.v_AseguradoraOrganizationId = entity.v_AseguradoraOrganizationId; dto.v_ComentaryUpdate = entity.v_ComentaryUpdate; dto.r_PriceFactor = entity.r_PriceFactor; dto.r_MedicineDiscount = entity.r_MedicineDiscount; dto.r_HospitalBedPrice = entity.r_HospitalBedPrice; dto.r_DiscountExam = entity.r_DiscountExam; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="protocol"/> to an instance of <see cref="protocolDto"/>. /// </summary> /// <param name="entity"><see cref="protocol"/> to convert.</param> public static protocolDto ToDTO(this protocol entity) { if (entity == null) { return(null); } var dto = new protocolDto(); dto.v_ProtocolId = entity.v_ProtocolId; dto.v_Name = entity.v_Name; dto.v_EmployerOrganizationId = entity.v_EmployerOrganizationId; dto.v_EmployerLocationId = entity.v_EmployerLocationId; dto.i_EsoTypeId = entity.i_EsoTypeId; dto.v_GroupOccupationId = entity.v_GroupOccupationId; dto.v_CustomerOrganizationId = entity.v_CustomerOrganizationId; dto.v_CustomerLocationId = entity.v_CustomerLocationId; dto.v_NombreVendedor = entity.v_NombreVendedor; dto.v_WorkingOrganizationId = entity.v_WorkingOrganizationId; dto.v_WorkingLocationId = entity.v_WorkingLocationId; dto.v_CostCenter = entity.v_CostCenter; dto.i_MasterServiceTypeId = entity.i_MasterServiceTypeId; dto.i_MasterServiceId = entity.i_MasterServiceId; dto.i_HasVigency = entity.i_HasVigency; dto.i_ValidInDays = entity.i_ValidInDays; dto.i_IsActive = entity.i_IsActive; 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; entity.OnDTO(dto); return(dto); }