public static MovementTableData Load(ImportMovement movement,
            ImportMovementReceipt movementReceipt,
            ImportMovementRejection movementRejection,
            ImportMovementCompletedReceipt movementOperationReceipt)
        {
            var data = new MovementTableData();

            if (movement != null)
            {
                data.Number = movement.Number;
                data.PreNotification = movement.PrenotificationDate;
                data.ShipmentDate = movement.ActualShipmentDate;
                data.IsCancelled = movement.IsCancelled;
            }

            if (movementReceipt != null)
            {
                data.Received = movementReceipt.Date;
                data.Quantity = movementReceipt.Quantity;
                data.Unit = movementReceipt.Unit;
            }

            if (movementRejection != null)
            {
                data.Rejected = movementRejection.Date;
            }

            if (movementOperationReceipt != null)
            {
                data.RecoveredOrDisposedOf = movementOperationReceipt.Date;
            }

            return data;
        }
        public static MovementTableData Load(ImportMovement movement,
                                             ImportMovementReceipt movementReceipt,
                                             ImportMovementRejection movementRejection,
                                             ImportMovementCompletedReceipt movementOperationReceipt)
        {
            var data = new MovementTableData();

            if (movement != null)
            {
                data.Id              = movement.Id;
                data.Number          = movement.Number;
                data.PreNotification = movement.PrenotificationDate;
                data.ShipmentDate    = movement.ActualShipmentDate;
                data.IsCancelled     = movement.IsCancelled;
            }

            if (movementReceipt != null)
            {
                data.Received = movementReceipt.Date;
                data.Quantity = movementReceipt.Quantity;
                data.Unit     = movementReceipt.Unit;
            }

            if (movementRejection != null)
            {
                data.Rejected = movementRejection.Date;
            }

            if (movementOperationReceipt != null)
            {
                data.RecoveredOrDisposedOf = movementOperationReceipt.Date;
            }

            return(data);
        }