/// <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;
            entity.v_ComentaryUpdate             = dto.v_ComentaryUpdate;

            dto.OnEntity(entity);

            return(entity);
        }
        /// <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;
            dto.v_ComentaryUpdate             = entity.v_ComentaryUpdate;

            entity.OnDTO(dto);

            return(dto);
        }
示例#3
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)
 {
     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;
 }
 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;
 }
示例#5
0
 public nodeorganizationlocationwarehouseprofileDto(Int32 i_NodeId, String v_OrganizationId, String v_LocationId, String v_WarehouseId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, String v_ComentaryUpdate, organizationDto organization, locationDto location, warehouseDto warehouse, nodeDto node)
 {
     this.i_NodeId          = i_NodeId;
     this.v_OrganizationId  = v_OrganizationId;
     this.v_LocationId      = v_LocationId;
     this.v_WarehouseId     = v_WarehouseId;
     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.v_ComentaryUpdate = v_ComentaryUpdate;
     this.organization      = organization;
     this.location          = location;
     this.warehouse         = warehouse;
     this.node = node;
 }
 /// <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);
 /// <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, String v_ComentaryUpdate, 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.v_ComentaryUpdate = v_ComentaryUpdate;
     this.node = node;
     this.attentioninareacomponent = attentioninareacomponent;
 }
 public nodeorganizationprofileDto(Int32 i_NodeId, String v_OrganizationId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, nodeDto node, organizationDto organization)
 {
     this.i_NodeId         = i_NodeId;
     this.v_OrganizationId = v_OrganizationId;
     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.organization     = organization;
 }
示例#10
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;
 }