/// <summary>
        /// Adds a new pack that is ready for input.
        /// </summary>
        /// <param name="scanCode">Raw scan code of the pack.</param>
        /// <param name="batchNumber">Optional batch number of the pack.</param>
        /// <param name="externalId">Optional external identifier of the pack.</param>
        /// <param name="expiryDate">Optional expiry date of the pack.</param>
        /// <param name="subItemQuantity">Optional number of elements (e.g. pills or ampoules) which are currently in this pack.</param>
        /// <param name="depth">Optional depth of the pack in mm.</param>
        /// <param name="width">Optional width of the pack in mm.</param>
        /// <param name="height">Optional height of the pack in mm.</param>
        /// <param name="shape">Optional shape of the pack.</param>
        /// <param name="stockLocationId">Optional stock location to use for the pack.</param>
        /// <param name="machineLocation">Optional machine location to use for the pack.</param>
        void IInitiateInputRequest.AddInputPack(string scanCode,
                                                string batchNumber,
                                                string externalId,
                                                DateTime?expiryDate,
                                                int subItemQuantity,
                                                int depth,
                                                int width,
                                                int height,
                                                PackShape shape,
                                                string stockLocationId,
                                                string machineLocation)
        {
            if (this.Article == null)
            {
                this.Article = new Article()
                {
                    Id            = null,
                    Name          = null,
                    DosageForm    = null,
                    PackagingUnit = null,
                    Pack          = new List <Pack>()
                };
            }

            this.Article.Pack.Add(new Pack()
            {
                ScanCode        = TextConverter.EscapeInvalidXmlChars(scanCode),
                BatchNumber     = TextConverter.EscapeInvalidXmlChars(batchNumber),
                ExternalId      = TextConverter.EscapeInvalidXmlChars(externalId),
                DeliveryNumber  = TextConverter.EscapeInvalidXmlChars(_deliveryNumber),
                ExpiryDate      = expiryDate.HasValue ? TypeConverter.ConvertDate(expiryDate.Value) : null,
                SubItemQuantity = subItemQuantity.ToString(),
                Depth           = depth.ToString(),
                Width           = width.ToString(),
                Height          = height.ToString(),
                Shape           = shape.ToString(),
                StockLocationId = TextConverter.EscapeInvalidXmlChars(stockLocationId),
                MachineLocation = TextConverter.EscapeInvalidXmlChars(machineLocation)
            });
        }
Beispiel #2
0
 public String?ConvertNullableFrom(PackShape?value)
 {
     return(value?.ToString());
 }
Beispiel #3
0
 public String ConvertFrom(PackShape value)
 {
     return(value.ToString());
 }