/// <summary>
        /// Converts this instance of <see cref="planvigilancia"/> to an instance of <see cref="planvigilanciaDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="planvigilancia"/> to convert.</param>
        public static planvigilanciaDto ToDTO(this planvigilancia entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new planvigilanciaDto();

            dto.v_PlanVigilanciaId = entity.v_PlanVigilanciaId;
            dto.v_Name             = entity.v_Name;
            dto.v_Description      = entity.v_Description;
            dto.v_OrganizationId   = entity.v_OrganizationId;
            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);
        }
        /// <summary>
        /// Converts this instance of <see cref="planvigilanciaDto"/> to an instance of <see cref="planvigilancia"/>.
        /// </summary>
        /// <param name="dto"><see cref="planvigilanciaDto"/> to convert.</param>
        public static planvigilancia ToEntity(this planvigilanciaDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new planvigilancia();

            entity.v_PlanVigilanciaId = dto.v_PlanVigilanciaId;
            entity.v_Name             = dto.v_Name;
            entity.v_Description      = dto.v_Description;
            entity.v_OrganizationId   = dto.v_OrganizationId;
            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.d_UpdateDate       = dto.d_UpdateDate;

            dto.OnEntity(entity);

            return(entity);
        }
Example #3
0
 public planvigilanciadiseasesDto(String v_PlanVigilanciaDiseasesId, String v_PlanVigilanciaId, String v_DiseasesId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, planvigilanciaDto planvigilancia, diseasesDto diseases)
 {
     this.v_PlanVigilanciaDiseasesId = v_PlanVigilanciaDiseasesId;
     this.v_PlanVigilanciaId         = v_PlanVigilanciaId;
     this.v_DiseasesId   = v_DiseasesId;
     this.i_IsDeleted    = i_IsDeleted;
     this.i_InsertUserId = i_InsertUserId;
     this.d_InsertDate   = d_InsertDate;
     this.i_UpdateUserId = i_UpdateUserId;
     this.d_UpdateDate   = d_UpdateDate;
     this.planvigilancia = planvigilancia;
     this.diseases       = diseases;
 }
 public vigilanciaDto(String v_VigilanciaId, String v_PersonId, String v_PlanVigilanciaId, Nullable <Int32> i_WasNotifiedId, Nullable <Int32> i_ConfirmedNotification, String v_Commentary, Nullable <Int32> i_DoctorRespondibleId, Nullable <Int32> i_StateVigilanciaId, Nullable <DateTime> d_StartDate, Nullable <DateTime> d_EndDate, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, planvigilanciaDto planvigilancia, personDto person, List <vigilanciaserviceDto> vigilanciaservice)
 {
     this.v_VigilanciaId          = v_VigilanciaId;
     this.v_PersonId              = v_PersonId;
     this.v_PlanVigilanciaId      = v_PlanVigilanciaId;
     this.i_WasNotifiedId         = i_WasNotifiedId;
     this.i_ConfirmedNotification = i_ConfirmedNotification;
     this.v_Commentary            = v_Commentary;
     this.i_DoctorRespondibleId   = i_DoctorRespondibleId;
     this.i_StateVigilanciaId     = i_StateVigilanciaId;
     this.d_StartDate             = d_StartDate;
     this.d_EndDate         = d_EndDate;
     this.i_IsDeleted       = i_IsDeleted;
     this.i_InsertUserId    = i_InsertUserId;
     this.d_InsertDate      = d_InsertDate;
     this.i_UpdateUserId    = i_UpdateUserId;
     this.d_UpdateDate      = d_UpdateDate;
     this.planvigilancia    = planvigilancia;
     this.person            = person;
     this.vigilanciaservice = vigilanciaservice;
 }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="planvigilancia"/> converted from <see cref="planvigilanciaDto"/>.</param>
 static partial void OnEntity(this planvigilanciaDto dto, planvigilancia entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="planvigilanciaDto"/> converted from <see cref="planvigilancia"/>.</param>
 static partial void OnDTO(this planvigilancia entity, planvigilanciaDto dto);