Пример #1
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);
        }
Пример #2
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);
        }
Пример #3
0
        public static bool Equals(StockLocation?left, StockLocation?right)
        {
            bool result = StockLocationId.Equals(left?.Id, right?.Id);

            result &= (result ? String.Equals(left?.Description, right?.Description, StringComparison.OrdinalIgnoreCase) : false);

            return(result);
        }
Пример #4
0
        public static bool Equals(StockInfoRequestCriteria?left, StockInfoRequestCriteria?right)
        {
            bool result = ArticleId.Equals(left?.ArticleId, right?.ArticleId);

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

            return(result);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #10
0
        public StockLocationId?ConvertNullableTo(String?value)
        {
            StockLocationId.TryParse(value, out StockLocationId? result);

            return(result);
        }
Пример #11
0
 public StockLocationId ConvertTo(String value)
 {
     return(StockLocationId.Parse(value));
 }
Пример #12
0
 public String ConvertFrom(StockLocationId value)
 {
     return(value.Value);
 }
Пример #13
0
 public StockLocation(StockLocationId id,
                      String?description)
 {
     this.Id          = id;
     this.Description = description;
 }
Пример #14
0
 public StockLocation(StockLocationId id)
 {
     this.Id = id;
 }