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);
        }
 public ImportMovementSummary(ImportMovement movement, 
     ImportMovementReceipt receipt, 
     ImportMovementRejection rejection, 
     ImportMovementCompletedReceipt completedReceipt, 
     NotificationType notificationType, 
     string notificationNumber,
     ShipmentQuantityUnits units)
 {
     Movement = movement;
     Receipt = receipt;
     Rejection = rejection;
     CompletedReceipt = completedReceipt;
     NotificationType = notificationType;
     NotificationNumber = notificationNumber;
     Units = units;
 }
Beispiel #4
0
 public ImportMovementSummary(ImportMovement movement,
                              ImportMovementReceipt receipt,
                              ImportMovementRejection rejection,
                              ImportMovementCompletedReceipt completedReceipt,
                              NotificationType notificationType,
                              string notificationNumber,
                              ShipmentQuantityUnits units)
 {
     Movement           = movement;
     Receipt            = receipt;
     Rejection          = rejection;
     CompletedReceipt   = completedReceipt;
     NotificationType   = notificationType;
     NotificationNumber = notificationNumber;
     Units = units;
 }