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

            var dto = new supplierDto();

            dto.v_SupplierId           = entity.v_SupplierId;
            dto.i_SectorTypeId         = entity.i_SectorTypeId;
            dto.v_IdentificationNumber = entity.v_IdentificationNumber;
            dto.v_Name         = entity.v_Name;
            dto.v_Address      = entity.v_Address;
            dto.v_PhoneNumber  = entity.v_PhoneNumber;
            dto.v_Mail         = entity.v_Mail;
            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_UpdateNodeId = entity.i_UpdateNodeId;

            entity.OnDTO(dto);

            return(dto);
        }
Esempio n. 2
0
        /// <summary>
        /// Converts this instance of <see cref="supplierDto"/> to an instance of <see cref="supplier"/>.
        /// </summary>
        /// <param name="dto"><see cref="supplierDto"/> to convert.</param>
        public static supplier ToEntity(this supplierDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new supplier();

            entity.v_SupplierId           = dto.v_SupplierId;
            entity.i_SectorTypeId         = dto.i_SectorTypeId;
            entity.v_IdentificationNumber = dto.v_IdentificationNumber;
            entity.v_Name         = dto.v_Name;
            entity.v_Address      = dto.v_Address;
            entity.v_PhoneNumber  = dto.v_PhoneNumber;
            entity.v_Mail         = dto.v_Mail;
            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_UpdateNodeId = dto.i_UpdateNodeId;

            dto.OnEntity(entity);

            return(entity);
        }
Esempio n. 3
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="supplierDto"/> converted from <see cref="supplier"/>.</param>
 static partial void OnDTO(this supplier entity, supplierDto dto);
Esempio n. 4
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="supplier"/> converted from <see cref="supplierDto"/>.</param>
 static partial void OnEntity(this supplierDto dto, supplier entity);
Esempio n. 5
0
 public movementDto(String v_MovementId, String v_WarehouseId, String v_SupplierId, Nullable <Int32> i_ProcessTypeId, String v_ParentMovementId, String v_Motive, Nullable <Int32> i_MotiveTypeId, Nullable <DateTime> d_Date, Nullable <Single> r_TotalQuantity, Nullable <Int32> i_MovementTypeId, Nullable <Int32> i_RequireRemoteProcess, String v_RemoteWarehouseId, Nullable <Int32> i_CurrencyId, Nullable <Single> r_ExchangeRate, String v_ReferenceDocument, Nullable <Int32> i_CostCenterId, String v_Observations, Nullable <Int32> i_IsLocallyProcessed, Nullable <Int32> i_IsRemoteProcessed, Nullable <Int32> i_InsertUserId, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, Nullable <Int32> i_UpdateNodeId, supplierDto supplier, warehouseDto warehouse, List <movementdetailDto> movementdetail)
 {
     this.v_MovementId           = v_MovementId;
     this.v_WarehouseId          = v_WarehouseId;
     this.v_SupplierId           = v_SupplierId;
     this.i_ProcessTypeId        = i_ProcessTypeId;
     this.v_ParentMovementId     = v_ParentMovementId;
     this.v_Motive               = v_Motive;
     this.i_MotiveTypeId         = i_MotiveTypeId;
     this.d_Date                 = d_Date;
     this.r_TotalQuantity        = r_TotalQuantity;
     this.i_MovementTypeId       = i_MovementTypeId;
     this.i_RequireRemoteProcess = i_RequireRemoteProcess;
     this.v_RemoteWarehouseId    = v_RemoteWarehouseId;
     this.i_CurrencyId           = i_CurrencyId;
     this.r_ExchangeRate         = r_ExchangeRate;
     this.v_ReferenceDocument    = v_ReferenceDocument;
     this.i_CostCenterId         = i_CostCenterId;
     this.v_Observations         = v_Observations;
     this.i_IsLocallyProcessed   = i_IsLocallyProcessed;
     this.i_IsRemoteProcessed    = i_IsRemoteProcessed;
     this.i_InsertUserId         = i_InsertUserId;
     this.i_UpdateUserId         = i_UpdateUserId;
     this.d_UpdateDate           = d_UpdateDate;
     this.i_UpdateNodeId         = i_UpdateNodeId;
     this.supplier               = supplier;
     this.warehouse              = warehouse;
     this.movementdetail         = movementdetail;
 }