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

            var dto = new professionalDto();

            dto.v_PersonId                = entity.v_PersonId;
            dto.i_ProfessionId            = entity.i_ProfessionId;
            dto.v_ProfessionalCode        = entity.v_ProfessionalCode;
            dto.v_ProfessionalInformation = entity.v_ProfessionalInformation;
            dto.b_SignatureImage          = entity.b_SignatureImage;
            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_UpdateNodeId            = entity.i_UpdateNodeId;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <summary>
        /// Converts this instance of <see cref="professionalDto"/> to an instance of <see cref="professional"/>.
        /// </summary>
        /// <param name="dto"><see cref="professionalDto"/> to convert.</param>
        public static professional ToEntity(this professionalDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new professional();

            entity.v_PersonId                = dto.v_PersonId;
            entity.i_ProfessionId            = dto.i_ProfessionId;
            entity.v_ProfessionalCode        = dto.v_ProfessionalCode;
            entity.v_ProfessionalInformation = dto.v_ProfessionalInformation;
            entity.b_SignatureImage          = dto.b_SignatureImage;
            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;
            entity.i_UpdateNodeId            = dto.i_UpdateNodeId;

            dto.OnEntity(entity);

            return(entity);
        }
Example #3
0
 public personDto(String v_PersonId, String v_FirstName, String v_FirstLastName, String v_SecondLastName, Nullable <Int32> i_DocTypeId, String v_DocNumber, Nullable <DateTime> d_Birthdate, String v_BirthPlace, Nullable <Int32> i_SexTypeId, Nullable <Int32> i_MaritalStatusId, Nullable <Int32> i_LevelOfId, String v_TelephoneNumber, String v_AdressLocation, String v_GeografyLocationId, String v_ContactName, String v_EmergencyPhone, Byte[] b_PersonImage, String v_Mail, Nullable <Int32> i_BloodGroupId, Nullable <Int32> i_BloodFactorId, Byte[] b_FingerPrintTemplate, Byte[] b_RubricImage, Byte[] b_FingerPrintImage, String t_RubricImageText, String v_CurrentOccupation, Nullable <Int32> i_DepartmentId, Nullable <Int32> i_ProvinceId, Nullable <Int32> i_DistrictId, Nullable <Int32> i_ResidenceInWorkplaceId, String v_ResidenceTimeInWorkplace, Nullable <Int32> i_TypeOfInsuranceId, Nullable <Int32> i_NumberLivingChildren, Nullable <Int32> i_NumberDependentChildren, Nullable <Int32> i_OccupationTypeId, String v_OwnerName, Nullable <Int32> i_NumberLiveChildren, Nullable <Int32> i_NumberDeadChildren, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, Nullable <Int32> i_InsertNodeId, Nullable <Int32> i_UpdateNodeId, Nullable <Int32> i_Relationship, String v_ExploitedMineral, Nullable <Int32> i_AltitudeWorkId, Nullable <Int32> i_PlaceWorkId, String v_NroPoliza, Nullable <Decimal> v_Deducible, Nullable <Int32> i_NroHermanos, String v_Password, List <blacklistpersonDto> blacklistperson, List <calendarDto> calendar, List <familymedicalantecedentsDto> familymedicalantecedents, List <historyDto> history, List <multimediafileDto> multimediafile, List <noxioushabitsDto> noxioushabits, pacientDto pacient, List <personmedicalhistoryDto> personmedicalhistory, professionalDto professional, List <serviceDto> service, List <systemuserDto> systemuser)
 {
     this.v_PersonId           = v_PersonId;
     this.v_FirstName          = v_FirstName;
     this.v_FirstLastName      = v_FirstLastName;
     this.v_SecondLastName     = v_SecondLastName;
     this.i_DocTypeId          = i_DocTypeId;
     this.v_DocNumber          = v_DocNumber;
     this.d_Birthdate          = d_Birthdate;
     this.v_BirthPlace         = v_BirthPlace;
     this.i_SexTypeId          = i_SexTypeId;
     this.i_MaritalStatusId    = i_MaritalStatusId;
     this.i_LevelOfId          = i_LevelOfId;
     this.v_TelephoneNumber    = v_TelephoneNumber;
     this.v_AdressLocation     = v_AdressLocation;
     this.v_GeografyLocationId = v_GeografyLocationId;
     this.v_ContactName        = v_ContactName;
     this.v_EmergencyPhone     = v_EmergencyPhone;
     this.b_PersonImage        = b_PersonImage;
     this.v_Mail                     = v_Mail;
     this.i_BloodGroupId             = i_BloodGroupId;
     this.i_BloodFactorId            = i_BloodFactorId;
     this.b_FingerPrintTemplate      = b_FingerPrintTemplate;
     this.b_RubricImage              = b_RubricImage;
     this.b_FingerPrintImage         = b_FingerPrintImage;
     this.t_RubricImageText          = t_RubricImageText;
     this.v_CurrentOccupation        = v_CurrentOccupation;
     this.i_DepartmentId             = i_DepartmentId;
     this.i_ProvinceId               = i_ProvinceId;
     this.i_DistrictId               = i_DistrictId;
     this.i_ResidenceInWorkplaceId   = i_ResidenceInWorkplaceId;
     this.v_ResidenceTimeInWorkplace = v_ResidenceTimeInWorkplace;
     this.i_TypeOfInsuranceId        = i_TypeOfInsuranceId;
     this.i_NumberLivingChildren     = i_NumberLivingChildren;
     this.i_NumberDependentChildren  = i_NumberDependentChildren;
     this.i_OccupationTypeId         = i_OccupationTypeId;
     this.v_OwnerName                = v_OwnerName;
     this.i_NumberLiveChildren       = i_NumberLiveChildren;
     this.i_NumberDeadChildren       = i_NumberDeadChildren;
     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.i_InsertNodeId             = i_InsertNodeId;
     this.i_UpdateNodeId             = i_UpdateNodeId;
     this.i_Relationship             = i_Relationship;
     this.v_ExploitedMineral         = v_ExploitedMineral;
     this.i_AltitudeWorkId           = i_AltitudeWorkId;
     this.i_PlaceWorkId              = i_PlaceWorkId;
     this.v_NroPoliza                = v_NroPoliza;
     this.v_Deducible                = v_Deducible;
     this.i_NroHermanos              = i_NroHermanos;
     this.v_Password                 = v_Password;
     this.blacklistperson            = blacklistperson;
     this.calendar                   = calendar;
     this.familymedicalantecedents   = familymedicalantecedents;
     this.history                    = history;
     this.multimediafile             = multimediafile;
     this.noxioushabits              = noxioushabits;
     this.pacient                    = pacient;
     this.personmedicalhistory       = personmedicalhistory;
     this.professional               = professional;
     this.service                    = service;
     this.systemuser                 = systemuser;
 }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="professional"/> converted from <see cref="professionalDto"/>.</param>
 static partial void OnEntity(this professionalDto dto, professional entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="professionalDto"/> converted from <see cref="professional"/>.</param>
 static partial void OnDTO(this professional entity, professionalDto dto);