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

            var dto = new movementDto();

            dto.v_MovementId           = entity.v_MovementId;
            dto.v_WarehouseId          = entity.v_WarehouseId;
            dto.v_SupplierId           = entity.v_SupplierId;
            dto.i_ProcessTypeId        = entity.i_ProcessTypeId;
            dto.v_ParentMovementId     = entity.v_ParentMovementId;
            dto.v_Motive               = entity.v_Motive;
            dto.i_MotiveTypeId         = entity.i_MotiveTypeId;
            dto.d_Date                 = entity.d_Date;
            dto.r_TotalQuantity        = entity.r_TotalQuantity;
            dto.i_MovementTypeId       = entity.i_MovementTypeId;
            dto.i_RequireRemoteProcess = entity.i_RequireRemoteProcess;
            dto.v_RemoteWarehouseId    = entity.v_RemoteWarehouseId;
            dto.i_CurrencyId           = entity.i_CurrencyId;
            dto.r_ExchangeRate         = entity.r_ExchangeRate;
            dto.v_ReferenceDocument    = entity.v_ReferenceDocument;
            dto.i_CostCenterId         = entity.i_CostCenterId;
            dto.v_Observations         = entity.v_Observations;
            dto.i_IsLocallyProcessed   = entity.i_IsLocallyProcessed;
            dto.i_IsRemoteProcessed    = entity.i_IsRemoteProcessed;
            dto.i_InsertUserId         = entity.i_InsertUserId;
            dto.i_UpdateUserId         = entity.i_UpdateUserId;
            dto.d_UpdateDate           = entity.d_UpdateDate;
            dto.i_UpdateNodeId         = entity.i_UpdateNodeId;

            entity.OnDTO(dto);

            return(dto);
        }
Beispiel #2
0
 public movementdetailDto(String v_MovementId, String v_ProductId, String v_WarehouseId, Nullable <Single> r_StockMax, Nullable <Single> r_StockMin, Nullable <Int32> i_MovementTypeId, Nullable <Single> r_Quantity, Nullable <Single> r_Price, Nullable <Single> r_SubTotal, Nullable <DateTime> d_UpdateDate, movementDto movement, productDto product, warehouseDto warehouse)
 {
     this.v_MovementId     = v_MovementId;
     this.v_ProductId      = v_ProductId;
     this.v_WarehouseId    = v_WarehouseId;
     this.r_StockMax       = r_StockMax;
     this.r_StockMin       = r_StockMin;
     this.i_MovementTypeId = i_MovementTypeId;
     this.r_Quantity       = r_Quantity;
     this.r_Price          = r_Price;
     this.r_SubTotal       = r_SubTotal;
     this.d_UpdateDate     = d_UpdateDate;
     this.movement         = movement;
     this.product          = product;
     this.warehouse        = warehouse;
 }
Beispiel #3
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="movement"/> converted from <see cref="movementDto"/>.</param>
 static partial void OnEntity(this movementDto dto, movement entity);
Beispiel #4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="movementDto"/> converted from <see cref="movement"/>.</param>
 static partial void OnDTO(this movement entity, movementDto dto);