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(ArticleInfoResponseArticle?left, ArticleInfoResponseArticle?right)
        {
            bool result = ArticleId.Equals(left?.Id, right?.Id);

            result &= (result ? String.Equals(left?.Name, right?.Name, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.DosageForm, right?.DosageForm, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.PackagingUnit, right?.PackagingUnit, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? EqualityComparer <bool?> .Default.Equals(left?.RequiresFridge, right?.RequiresFridge) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.MaxSubItemQuantity, right?.MaxSubItemQuantity) : false);
            result &= (result ? PackDate.Equals(left?.SerialNumberSinceExpiryDate, right?.SerialNumberSinceExpiryDate) : false);

            return(result);
        }
        public static bool Equals(InitiateInputResponseArticle?left, InitiateInputResponseArticle?right)
        {
            bool result = ArticleId.Equals(left?.Id, right?.Id);

            result &= (result ? String.Equals(left?.Name, right?.Name, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.DosageForm, right?.DosageForm, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.PackagingUnit, right?.PackagingUnit, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.MaxSubItemQuantity, right?.MaxSubItemQuantity) : false);
            result &= (result ? PackDate.Equals(left?.SerialNumberSinceExpiryDate, right?.SerialNumberSinceExpiryDate) : false);
            result &= (result ? (left?.ProductCodes.SequenceEqual(right?.ProductCodes)).GetValueOrDefault() : false);
            result &= (result ? (left?.Packs.SequenceEqual(right?.Packs)).GetValueOrDefault() : false);

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

            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?.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 ? EqualityComparer <int?> .Default.Equals(left?.Quantity, right?.Quantity) : false);

            return(result);
        }
Ejemplo n.º 6
0
        public static bool Equals(InputRequestPack?left, InputRequestPack?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 ? 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 ? EqualityComparer <int?> .Default.Equals(left?.Index, right?.Index) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.SubItemQuantity, right?.SubItemQuantity) : false);

            return(result);
        }
Ejemplo n.º 7
0
        public static bool Equals(OutputCriteria?left, OutputCriteria?right)
        {
            bool result = EqualityComparer <int?> .Default.Equals(left?.Quantity, right?.Quantity);

            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.SubItemQuantity, right?.SubItemQuantity) : false);
            result &= (result ? ArticleId.Equals(left?.ArticleId, right?.ArticleId) : false);
            result &= (result ? PackId.Equals(left?.PackId, right?.PackId) : false);
            result &= (result ? PackDate.Equals(left?.MinimumExpiryDate, right?.MinimumExpiryDate) : 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?.MachineLocation, right?.MachineLocation, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? StockLocationId.Equals(left?.StockLocationId, right?.StockLocationId) : false);
            result &= (result ? EqualityComparer <bool?> .Default.Equals(left?.SingleBatchNumber, right?.SingleBatchNumber) : false);
            result &= (result ? (left?.Labels.SequenceEqual(right?.Labels)).GetValueOrDefault() : false);

            return(result);
        }
Ejemplo n.º 8
0
        public static bool Equals(InputResponsePack?left, InputResponsePack?right)
        {
            bool result = EqualityComparer <InputResponsePackHandling?> .Default.Equals(left?.Handling, right?.Handling);

            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);

            return(result);
        }
Ejemplo n.º 9
0
        public static bool Equals(ArticleMasterSetArticle?left, ArticleMasterSetArticle?right)
        {
            bool result = ArticleId.Equals(left?.Id, right?.Id);

            result &= (result ? String.Equals(left?.Name, right?.Name, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.DosageForm, right?.DosageForm, StringComparison.OrdinalIgnoreCase) : false);
            result &= (result ? String.Equals(left?.PackagingUnit, right?.PackagingUnit, 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 ? EqualityComparer <bool?> .Default.Equals(left?.RequiresFridge, right?.RequiresFridge) : false);
            result &= (result ? EqualityComparer <int?> .Default.Equals(left?.MaxSubItemQuantity, right?.MaxSubItemQuantity) : 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 ? PackDate.Equals(left?.SerialNumberSinceExpiryDate, right?.SerialNumberSinceExpiryDate) : false);
            result &= (result ? (left?.ProductCodes.SequenceEqual(right?.ProductCodes)).GetValueOrDefault() : false);

            return(result);
        }
Ejemplo n.º 10
0
 public PackDate?ConvertNullableTo(String?value)
 {
     return(value is null ? null : PackDate.Parse(value));
 }
Ejemplo n.º 11
0
 public PackDate ConvertTo(String value)
 {
     return(PackDate.Parse(value));
 }
Ejemplo n.º 12
0
 public String ConvertFrom(PackDate value)
 {
     return(value.ToString());
 }