Exemple #1
0
        /// <summary>
        /// Converts this instance of <see cref="vigilancia"/> to an instance of <see cref="vigilanciaDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="vigilancia"/> to convert.</param>
        public static vigilanciaDto ToDTO(this vigilancia entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new vigilanciaDto();

            dto.v_VigilanciaId          = entity.v_VigilanciaId;
            dto.v_PersonId              = entity.v_PersonId;
            dto.v_PlanVigilanciaId      = entity.v_PlanVigilanciaId;
            dto.i_WasNotifiedId         = entity.i_WasNotifiedId;
            dto.i_ConfirmedNotification = entity.i_ConfirmedNotification;
            dto.v_Commentary            = entity.v_Commentary;
            dto.i_DoctorRespondibleId   = entity.i_DoctorRespondibleId;
            dto.i_StateVigilanciaId     = entity.i_StateVigilanciaId;
            dto.d_StartDate             = entity.d_StartDate;
            dto.d_EndDate      = entity.d_EndDate;
            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);
        }
Exemple #2
0
        /// <summary>
        /// Converts this instance of <see cref="vigilanciaDto"/> to an instance of <see cref="vigilancia"/>.
        /// </summary>
        /// <param name="dto"><see cref="vigilanciaDto"/> to convert.</param>
        public static vigilancia ToEntity(this vigilanciaDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new vigilancia();

            entity.v_VigilanciaId          = dto.v_VigilanciaId;
            entity.v_PersonId              = dto.v_PersonId;
            entity.v_PlanVigilanciaId      = dto.v_PlanVigilanciaId;
            entity.i_WasNotifiedId         = dto.i_WasNotifiedId;
            entity.i_ConfirmedNotification = dto.i_ConfirmedNotification;
            entity.v_Commentary            = dto.v_Commentary;
            entity.i_DoctorRespondibleId   = dto.i_DoctorRespondibleId;
            entity.i_StateVigilanciaId     = dto.i_StateVigilanciaId;
            entity.d_StartDate             = dto.d_StartDate;
            entity.d_EndDate      = dto.d_EndDate;
            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);
        }
Exemple #3
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="vigilanciaDto"/> converted from <see cref="vigilancia"/>.</param>
 static partial void OnDTO(this vigilancia entity, vigilanciaDto dto);
Exemple #4
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="vigilancia"/> converted from <see cref="vigilanciaDto"/>.</param>
 static partial void OnEntity(this vigilanciaDto dto, vigilancia entity);
Exemple #5
0
 public vigilanciaserviceDto(String v_VigilanciaServiceId, String v_VigilanciaId, String v_ServiceId, String v_Commentary, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, vigilanciaDto vigilancia, serviceDto service)
 {
     this.v_VigilanciaServiceId = v_VigilanciaServiceId;
     this.v_VigilanciaId        = v_VigilanciaId;
     this.v_ServiceId           = v_ServiceId;
     this.v_Commentary          = v_Commentary;
     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.vigilancia            = vigilancia;
     this.service = service;
 }