Ejemplo n.º 1
0
        public static bool Equals(OutputPack?left, OutputPack?right)
        {
            bool result = PackId.Equals(left?.Id, right?.Id);

            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.OutputDestination, right?.OutputDestination) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.OutputPoint, right?.OutputPoint) : false);
            result &= (result ? String.Equals(left?.DeliveryNumber, right?.DeliveryNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.BatchNumber, right?.BatchNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.ExternalId, right?.ExternalId, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.SerialNumber, right?.SerialNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.ScanCode, right?.ScanCode, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.MachineLocation, right?.MachineLocation, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? StockLocationId.Equals(left?.StockLocationId, right?.StockLocationId) : false);
            result &= (result ? PackDate.Equals(left?.ExpiryDate, right?.ExpiryDate) : false);
            result &= (result ? PackDate.Equals(left?.StockInDate, right?.StockInDate) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.SubItemQuantity, right?.SubItemQuantity) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Depth, right?.Depth) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Width, right?.Width) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Height, right?.Height) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Weight, right?.Weight) : false);
            result &= (result ? PackShape.Equals(left?.Shape, right?.Shape) : false);
            result &= (result ? EqualityComparer <bool?> .Default.Equals(left?.IsInFridge, right?.IsInFridge) : false);
            result &= (result ? EqualityComparer <LabelStatus?> .Default.Equals(left?.LabelStatus, right?.LabelStatus) : false);

            return(result);
        }
Ejemplo n.º 2
0
        public static bool Equals(InputMessagePack?left, InputMessagePack?right)
        {
            bool result = PackId.Equals(left?.Id, right?.Id);

            result &= (result ? EqualityComparer <InputMessagePackHandling?> .Default.Equals(left?.Handling, right?.Handling) : false);
            result &= (result ? String.Equals(left?.DeliveryNumber, right?.DeliveryNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.BatchNumber, right?.BatchNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.ExternalId, right?.ExternalId, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.SerialNumber, right?.SerialNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.ScanCode, right?.ScanCode, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.MachineLocation, right?.MachineLocation, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? StockLocationId.Equals(left?.StockLocationId, right?.StockLocationId) : false);
            result &= (result ? PackDate.Equals(left?.ExpiryDate, right?.ExpiryDate) : false);
            result &= (result ? PackDate.Equals(left?.StockInDate, right?.StockInDate) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Index, right?.Index) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.SubItemQuantity, right?.SubItemQuantity) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Depth, right?.Depth) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Width, right?.Width) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Height, right?.Height) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Weight, right?.Weight) : false);
            result &= (result ? PackShape.Equals(left?.Shape, right?.Shape) : false);
            result &= (result ? PackState.Equals(left?.State, right?.State) : false);
            result &= (result ? EqualityComparer <bool?> .Default.Equals(left?.IsInFridge, right?.IsInFridge) : false);

            return(result);
        }
Ejemplo n.º 3
0
        public static bool Equals(InitiateInputResponsePack?left, InitiateInputResponsePack?right)
        {
            bool result = String.Equals(left?.ScanCode, right?.ScanCode, StringComparison.OrdinalIgnoreCase);

            result &= (result ? String.Equals(left?.DeliveryNumber, right?.DeliveryNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.BatchNumber, right?.BatchNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.ExternalId, right?.ExternalId, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.SerialNumber, right?.SerialNumber, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? StockLocationId.Equals(left?.StockLocationId, right?.StockLocationId) : false);
            result &= (result ? PackDate.Equals(left?.ExpiryDate, right?.ExpiryDate) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Index, right?.Index) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.SubItemQuantity, right?.SubItemQuantity) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Depth, right?.Depth) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Width, right?.Width) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Height, right?.Height) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.Weight, right?.Weight) : false);
            result &= (result ? PackShape.Equals(left?.Shape, right?.Shape) : false);

            return(result);
        }