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

            var dto = new systemuserDto();

            dto.i_SystemUserId     = entity.i_SystemUserId;
            dto.v_PersonId         = entity.v_PersonId;
            dto.v_UserName         = entity.v_UserName;
            dto.v_Password         = entity.v_Password;
            dto.v_SecretQuestion   = entity.v_SecretQuestion;
            dto.v_SecretAnswer     = entity.v_SecretAnswer;
            dto.d_ExpireDate       = entity.d_ExpireDate;
            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_SystemUserTypeId = entity.i_SystemUserTypeId;
            dto.i_RolVentaId       = entity.i_RolVentaId;

            entity.OnDTO(dto);

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

            var entity = new systemuser();

            entity.i_SystemUserId     = dto.i_SystemUserId;
            entity.v_PersonId         = dto.v_PersonId;
            entity.v_UserName         = dto.v_UserName;
            entity.v_Password         = dto.v_Password;
            entity.v_SecretQuestion   = dto.v_SecretQuestion;
            entity.v_SecretAnswer     = dto.v_SecretAnswer;
            entity.d_ExpireDate       = dto.d_ExpireDate;
            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_SystemUserTypeId = dto.i_SystemUserTypeId;
            entity.i_RolVentaId       = dto.i_RolVentaId;

            dto.OnEntity(entity);

            return(entity);
        }
 public systemusergobalprofileDto(Int32 i_SystemUserId, Int32 i_ApplicationHierarchyId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, applicationhierarchyDto applicationhierarchy, systemuserDto systemuser)
 {
     this.i_SystemUserId           = i_SystemUserId;
     this.i_ApplicationHierarchyId = i_ApplicationHierarchyId;
     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.applicationhierarchy = applicationhierarchy;
     this.systemuser           = systemuser;
 }
 public systemuserrolenodeDto(Int32 i_SystemUserId, 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, systemuserDto systemuser)
 {
     this.i_SystemUserId = i_SystemUserId;
     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.systemuser     = systemuser;
 }
示例#5
0
 public restrictedwarehouseprofileDto(Int32 i_SystemUserId, String v_WarehouseId, Int32 i_NodeId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, warehouseDto warehouse, systemuserDto systemuser)
 {
     this.i_SystemUserId = i_SystemUserId;
     this.v_WarehouseId  = v_WarehouseId;
     this.i_NodeId       = i_NodeId;
     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.warehouse      = warehouse;
     this.systemuser     = systemuser;
 }
 public protocolsystemuserDto(String v_ProtocolSystemUserId, Int32 i_SystemUserId, String v_ProtocolId, Nullable <Int32> i_ApplicationHierarchyId, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, applicationhierarchyDto applicationhierarchy, protocolDto protocol, systemuserDto systemuser)
 {
     this.v_ProtocolSystemUserId   = v_ProtocolSystemUserId;
     this.i_SystemUserId           = i_SystemUserId;
     this.v_ProtocolId             = v_ProtocolId;
     this.i_ApplicationHierarchyId = i_ApplicationHierarchyId;
     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.applicationhierarchy = applicationhierarchy;
     this.protocol             = protocol;
     this.systemuser           = systemuser;
 }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="systemuser"/> converted from <see cref="systemuserDto"/>.</param>
 static partial void OnEntity(this systemuserDto dto, systemuser entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="systemuserDto"/> converted from <see cref="systemuser"/>.</param>
 static partial void OnDTO(this systemuser entity, systemuserDto dto);