Exemplo n.º 1
0
        /// <summary>
        /// Converts this instance of <see cref="node"/> to an instance of <see cref="nodeDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="node"/> to convert.</param>
        public static nodeDto ToDTO(this node entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new nodeDto();

            dto.i_NodeId                      = entity.i_NodeId;
            dto.v_Description                 = entity.v_Description;
            dto.v_GeografyLocationId          = entity.v_GeografyLocationId;
            dto.v_GeografyLocationDescription = entity.v_GeografyLocationDescription;
            dto.i_NodeTypeId                  = entity.i_NodeTypeId;
            dto.d_BeginDate                   = entity.d_BeginDate;
            dto.d_EndDate                     = entity.d_EndDate;
            dto.v_PharmacyWarehouseId         = entity.v_PharmacyWarehouseId;
            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);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Converts this instance of <see cref="nodeDto"/> to an instance of <see cref="node"/>.
        /// </summary>
        /// <param name="dto"><see cref="nodeDto"/> to convert.</param>
        public static node ToEntity(this nodeDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new node();

            entity.i_NodeId                      = dto.i_NodeId;
            entity.v_Description                 = dto.v_Description;
            entity.v_GeografyLocationId          = dto.v_GeografyLocationId;
            entity.v_GeografyLocationDescription = dto.v_GeografyLocationDescription;
            entity.i_NodeTypeId                  = dto.i_NodeTypeId;
            entity.d_BeginDate                   = dto.d_BeginDate;
            entity.d_EndDate                     = dto.d_EndDate;
            entity.v_PharmacyWarehouseId         = dto.v_PharmacyWarehouseId;
            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);
        }
Exemplo n.º 3
0
 public nodeserviceprofileDto(String v_NodeServiceProfileId, Nullable <Int32> i_NodeId, Nullable <Int32> i_ServiceTypeId, Nullable <Int32> i_MasterServiceId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, nodeDto node)
 {
     this.v_NodeServiceProfileId = v_NodeServiceProfileId;
     this.i_NodeId          = i_NodeId;
     this.i_ServiceTypeId   = i_ServiceTypeId;
     this.i_MasterServiceId = i_MasterServiceId;
     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.node = node;
 }
 public nodeorganizationlocationprofileDto(Int32 i_NodeId, String v_OrganizationId, String v_LocationId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, organizationDto organization, locationDto location, nodeDto node)
 {
     this.i_NodeId         = i_NodeId;
     this.v_OrganizationId = v_OrganizationId;
     this.v_LocationId     = v_LocationId;
     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.organization     = organization;
     this.location         = location;
     this.node             = node;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="node"/> converted from <see cref="nodeDto"/>.</param>
 static partial void OnEntity(this nodeDto dto, node entity);
Exemplo n.º 6
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="nodeDto"/> converted from <see cref="node"/>.</param>
 static partial void OnDTO(this node entity, nodeDto dto);
 public attentioninareaDto(String v_AttentionInAreaId, Int32 i_NodeId, String v_Name, String v_OfficeNumber, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, nodeDto node, List <attentioninareacomponentDto> attentioninareacomponent)
 {
     this.v_AttentionInAreaId = v_AttentionInAreaId;
     this.i_NodeId            = i_NodeId;
     this.v_Name                   = v_Name;
     this.v_OfficeNumber           = v_OfficeNumber;
     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.node                     = node;
     this.attentioninareacomponent = attentioninareacomponent;
 }
Exemplo n.º 8
0
 public rolenodeDto(Int32 i_NodeId, Int32 i_RoleId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, nodeDto node, List <rolenodecomponentprofileDto> rolenodecomponentprofile, List <rolenodeprofileDto> rolenodeprofile, List <systemuserrolenodeDto> systemuserrolenode)
 {
     this.i_NodeId                 = i_NodeId;
     this.i_RoleId                 = i_RoleId;
     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.node                     = node;
     this.rolenodecomponentprofile = rolenodecomponentprofile;
     this.rolenodeprofile          = rolenodeprofile;
     this.systemuserrolenode       = systemuserrolenode;
 }