/// <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;

            entity.OnDTO(dto);

            return(dto);
        }
Exemple #2
0
 public servicecomponentmultimediaDto(String v_ServiceComponentMultimediaId, String v_ServiceComponentId, String v_MultimediaFileId, String v_Comment, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, multimediafileDto multimediafile, servicecomponentDto servicecomponent)
 {
     this.v_ServiceComponentMultimediaId = v_ServiceComponentMultimediaId;
     this.v_ServiceComponentId           = v_ServiceComponentId;
     this.v_MultimediaFileId             = v_MultimediaFileId;
     this.v_Comment        = v_Comment;
     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.multimediafile   = multimediafile;
     this.servicecomponent = servicecomponent;
 }
Exemple #3
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="servicecomponent"/> converted from <see cref="servicecomponentDto"/>.</param>
 static partial void OnEntity(this servicecomponentDto dto, servicecomponent entity);
Exemple #4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="servicecomponentDto"/> converted from <see cref="servicecomponent"/>.</param>
 static partial void OnDTO(this servicecomponent entity, servicecomponentDto dto);
Exemple #5
0
        /// <summary>
        /// Converts this instance of <see cref="servicecomponentDto"/> to an instance of <see cref="servicecomponent"/>.
        /// </summary>
        /// <param name="dto"><see cref="servicecomponentDto"/> to convert.</param>
        public static servicecomponent ToEntity(this servicecomponentDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new servicecomponent();

            entity.v_ServiceComponentId       = dto.v_ServiceComponentId;
            entity.v_ServiceId                = dto.v_ServiceId;
            entity.v_ComponentId              = dto.v_ComponentId;
            entity.i_ServiceComponentStatusId = dto.i_ServiceComponentStatusId;
            entity.i_ExternalInternalId       = dto.i_ExternalInternalId;
            entity.i_ServiceComponentTypeId   = dto.i_ServiceComponentTypeId;
            entity.i_IsVisibleId              = dto.i_IsVisibleId;
            entity.i_IsInheritedId            = dto.i_IsInheritedId;
            entity.d_CalledDate               = dto.d_CalledDate;
            entity.d_StartDate                = dto.d_StartDate;
            entity.d_EndDate                           = dto.d_EndDate;
            entity.i_index                             = dto.i_index;
            entity.r_Price                             = dto.r_Price;
            entity.i_IsInvoicedId                      = dto.i_IsInvoicedId;
            entity.i_IsRequiredId                      = dto.i_IsRequiredId;
            entity.i_IsManuallyAddedId                 = dto.i_IsManuallyAddedId;
            entity.i_QueueStatusId                     = dto.i_QueueStatusId;
            entity.v_NameOfice                         = dto.v_NameOfice;
            entity.v_Comment                           = dto.v_Comment;
            entity.i_Iscalling                         = dto.i_Iscalling;
            entity.i_IsApprovedId                      = dto.i_IsApprovedId;
            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_ApprovedInsertUserId              = dto.i_ApprovedInsertUserId;
            entity.i_ApprovedUpdateUserId              = dto.i_ApprovedUpdateUserId;
            entity.d_ApprovedInsertDate                = dto.d_ApprovedInsertDate;
            entity.d_ApprovedUpdateDate                = dto.d_ApprovedUpdateDate;
            entity.i_InsertUserMedicalAnalystId        = dto.i_InsertUserMedicalAnalystId;
            entity.i_UpdateUserMedicalAnalystId        = dto.i_UpdateUserMedicalAnalystId;
            entity.d_InsertDateMedicalAnalyst          = dto.d_InsertDateMedicalAnalyst;
            entity.d_UpdateDateMedicalAnalyst          = dto.d_UpdateDateMedicalAnalyst;
            entity.i_InsertUserTechnicalDataRegisterId = dto.i_InsertUserTechnicalDataRegisterId;
            entity.i_UpdateUserTechnicalDataRegisterId = dto.i_UpdateUserTechnicalDataRegisterId;
            entity.d_InsertDateTechnicalDataRegister   = dto.d_InsertDateTechnicalDataRegister;
            entity.d_UpdateDateTechnicalDataRegister   = dto.d_UpdateDateTechnicalDataRegister;
            entity.i_Iscalling_1                       = dto.i_Iscalling_1;
            entity.i_AuditorInsertUserId               = dto.i_AuditorInsertUserId;
            entity.d_AuditorInsertUser                 = dto.d_AuditorInsertUser;
            entity.i_AuditorUpdateUserId               = dto.i_AuditorUpdateUserId;
            entity.d_AuditorUpdateUser                 = dto.d_AuditorUpdateUser;
            entity.v_IdUnidadProductiva                = dto.v_IdUnidadProductiva;
            entity.d_SaldoPaciente                     = dto.d_SaldoPaciente;
            entity.d_SaldoAseguradora                  = dto.d_SaldoAseguradora;
            entity.i_MedicoTratanteId                  = dto.i_MedicoTratanteId;
            entity.i_SystemUserEspecialistaId          = dto.i_SystemUserEspecialistaId;
            entity.i_ConCargoA                         = dto.i_ConCargoA;

            dto.OnEntity(entity);

            return(entity);
        }
Exemple #6
0
 public servicecomponentfieldsDto(String v_ServiceComponentFieldsId, String v_ServiceComponentId, String v_ComponentId, String v_ComponentFieldId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, componentfieldsDto componentfields, servicecomponentDto servicecomponent, List <servicecomponentfieldvaluesDto> servicecomponentfieldvalues)
 {
     this.v_ServiceComponentFieldsId = v_ServiceComponentFieldsId;
     this.v_ServiceComponentId       = v_ServiceComponentId;
     this.v_ComponentId               = v_ComponentId;
     this.v_ComponentFieldId          = v_ComponentFieldId;
     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.componentfields             = componentfields;
     this.servicecomponent            = servicecomponent;
     this.servicecomponentfieldvalues = servicecomponentfieldvalues;
 }