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

            var dto = new locationDto();

            dto.v_LocationId     = entity.v_LocationId;
            dto.v_OrganizationId = entity.v_OrganizationId;
            dto.v_Name           = entity.v_Name;
            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);
        }
        /// <summary>
        /// Converts this instance of <see cref="locationDto"/> to an instance of <see cref="location"/>.
        /// </summary>
        /// <param name="dto"><see cref="locationDto"/> to convert.</param>
        public static location ToEntity(this locationDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new location();

            entity.v_LocationId     = dto.v_LocationId;
            entity.v_OrganizationId = dto.v_OrganizationId;
            entity.v_Name           = dto.v_Name;
            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);
        }
Пример #3
0
 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, locationDto location, nodeDto node, organizationDto organization)
 {
     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.location         = location;
     this.node             = node;
     this.organization     = organization;
 }
 public groupoccupationDto(String v_GroupOccupationId, String v_LocationId, String v_Name, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, locationDto location, List <occupationDto> occupation)
 {
     this.v_GroupOccupationId = v_GroupOccupationId;
     this.v_LocationId        = v_LocationId;
     this.v_Name         = v_Name;
     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.location       = location;
     this.occupation     = occupation;
 }
Пример #5
0
 public areaDto(String v_AreaId, String v_LocationId, String v_Name, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, locationDto location, List <gesDto> ges)
 {
     this.v_AreaId       = v_AreaId;
     this.v_LocationId   = v_LocationId;
     this.v_Name         = v_Name;
     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.location       = location;
     this.ges            = ges;
 }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="location"/> converted from <see cref="locationDto"/>.</param>
 static partial void OnEntity(this locationDto dto, location entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="locationDto"/> converted from <see cref="location"/>.</param>
 static partial void OnDTO(this location entity, locationDto dto);
Пример #8
0
 public warehouseDto(String v_WarehouseId, String v_OrganizationId, String v_LocationId, String v_Name, String v_AdditionalInformation, Nullable <Int32> i_CostCenterId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, List <movementDto> movement, List <movementdetailDto> movementdetail, List <nodeorganizationlocationwarehouseprofileDto> nodeorganizationlocationwarehouseprofile, List <productwarehouseDto> productwarehouse, List <restrictedwarehouseprofileDto> restrictedwarehouseprofile, locationDto location, organizationDto organization)
 {
     this.v_WarehouseId           = v_WarehouseId;
     this.v_OrganizationId        = v_OrganizationId;
     this.v_LocationId            = v_LocationId;
     this.v_Name                  = v_Name;
     this.v_AdditionalInformation = v_AdditionalInformation;
     this.i_CostCenterId          = i_CostCenterId;
     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.movement                = movement;
     this.movementdetail          = movementdetail;
     this.nodeorganizationlocationwarehouseprofile = nodeorganizationlocationwarehouseprofile;
     this.productwarehouse           = productwarehouse;
     this.restrictedwarehouseprofile = restrictedwarehouseprofile;
     this.location     = location;
     this.organization = organization;
 }