Exemplo n.º 1
0
        public InputRequestPack(String scanCode,
                                String?deliveryNumber,
                                String?batchNumber,
                                String?externalId,
                                String?serialNumber,
                                String?machineLocation,
                                StockLocationId?stockLocationId,
                                PackDate?expiryDate,
                                int?index,
                                int?subItemQuantity)
        {
            scanCode.ThrowIfEmpty();
            index?.ThrowIfNegative();
            subItemQuantity?.ThrowIfNegative();

            this.ScanCode        = scanCode;
            this.DeliveryNumber  = deliveryNumber;
            this.BatchNumber     = batchNumber;
            this.ExternalId      = externalId;
            this.SerialNumber    = serialNumber;
            this.MachineLocation = machineLocation;
            this.StockLocationId = stockLocationId;
            this.ExpiryDate      = expiryDate;
            this.Index           = index;
            this.SubItemQuantity = subItemQuantity;
        }
Exemplo n.º 2
0
        public OutputCriteria(int quantity,
                              int?subItemQuantity,
                              ArticleId?articleId,
                              PackId?packId,
                              PackDate?minimumExpiryDate,
                              String?batchNumber,
                              String?externalId,
                              String?serialNumber,
                              String?machineLocation,
                              StockLocationId?stockLocationId,
                              bool?singleBatchNumber,
                              IEnumerable <OutputLabel>?labels)
        {
            quantity.ThrowIfNegative();
            subItemQuantity?.ThrowIfNegative();

            this.Quantity          = quantity;
            this.SubItemQuantity   = subItemQuantity;
            this.ArticleId         = articleId;
            this.PackId            = packId;
            this.MinimumExpiryDate = minimumExpiryDate;
            this.BatchNumber       = batchNumber;
            this.ExternalId        = externalId;
            this.SerialNumber      = serialNumber;
            this.MachineLocation   = machineLocation;
            this.StockLocationId   = stockLocationId;
            this.SingleBatchNumber = singleBatchNumber;

            if (labels is not null)
            {
                this.Labels.AddRange(labels);
            }
        }
        public InitiateInputResponseArticle(ArticleId?id,
                                            String?name,
                                            String?dosageForm,
                                            String?packagingUnit,
                                            int?maxSubItemQuantity,
                                            PackDate?serialNumberSinceExpiryDate,
                                            IEnumerable <ProductCode>?productCodes,
                                            IEnumerable <InitiateInputResponsePack>?packs)
        {
            maxSubItemQuantity?.ThrowIfNegative();

            this.Id                          = id;
            this.Name                        = name;
            this.DosageForm                  = dosageForm;
            this.PackagingUnit               = packagingUnit;
            this.MaxSubItemQuantity          = maxSubItemQuantity;
            this.SerialNumberSinceExpiryDate = serialNumberSinceExpiryDate;

            if (productCodes is not null)
            {
                this.ProductCodes.AddRange(productCodes);
            }

            if (packs is not null)
            {
                this.Packs.AddRange(packs);
            }
        }
Exemplo n.º 4
0
        public InputResponsePack(InputResponsePackHandling handling,
                                 String?deliveryNumber,
                                 String?batchNumber,
                                 String?externalId,
                                 String?serialNumber,
                                 StockLocationId?stockLocationId,
                                 PackDate?expiryDate,
                                 int?index,
                                 int?subItemQuantity,
                                 int?depth,
                                 int?width,
                                 int?height,
                                 int?weight)
        {
            index?.ThrowIfNegative();
            subItemQuantity?.ThrowIfNegative();
            depth?.ThrowIfNegative();
            width?.ThrowIfNegative();
            height?.ThrowIfNegative();
            weight?.ThrowIfNegative();

            this.Handling        = handling;
            this.DeliveryNumber  = deliveryNumber;
            this.BatchNumber     = batchNumber;
            this.ExternalId      = externalId;
            this.SerialNumber    = serialNumber;
            this.StockLocationId = stockLocationId;
            this.ExpiryDate      = expiryDate;
            this.Index           = index;
            this.SubItemQuantity = subItemQuantity;
            this.Depth           = depth;
            this.Width           = width;
            this.Height          = height;
            this.Weight          = weight;
        }
Exemplo n.º 5
0
        public OutputPack(PackId id,
                          int outputDestination,
                          int?outputPoint,
                          String?deliveryNumber,
                          String?batchNumber,
                          String?externalId,
                          String?serialNumber,
                          String?scanCode,
                          String?boxNumber,
                          String?machineLocation,
                          StockLocationId?stockLocationId,
                          PackDate?expiryDate,
                          PackDate?stockInDate,
                          int?subItemQuantity,
                          int?depth,
                          int?width,
                          int?height,
                          int?weight,
                          PackShape?shape,
                          bool?isInFridge,
                          LabelStatus?labelStatus)
        {
            subItemQuantity?.ThrowIfNegative();
            depth?.ThrowIfNegative();
            width?.ThrowIfNegative();
            height?.ThrowIfNegative();
            weight?.ThrowIfNegative();

            this.Id = id;
            this.OutputDestination = outputDestination;
            this.OutputPoint       = outputPoint;
            this.DeliveryNumber    = deliveryNumber;
            this.BatchNumber       = batchNumber;
            this.ExternalId        = externalId;
            this.SerialNumber      = serialNumber;
            this.ScanCode          = scanCode;
            this.BoxNumber         = boxNumber;
            this.MachineLocation   = machineLocation;
            this.StockLocationId   = stockLocationId;
            this.ExpiryDate        = expiryDate;
            this.StockInDate       = stockInDate;
            this.SubItemQuantity   = subItemQuantity;
            this.Depth             = depth;
            this.Width             = width;
            this.Height            = height;
            this.Weight            = weight;
            this.Shape             = shape;
            this.IsInFridge        = isInFridge;
            this.LabelStatus       = labelStatus;
        }
Exemplo n.º 6
0
        public InputMessagePack(PackId id,
                                InputMessagePackHandling handling,
                                String?deliveryNumber,
                                String?batchNumber,
                                String?externalId,
                                String?serialNumber,
                                String?scanCode,
                                String?machineLocation,
                                StockLocationId?stockLocationId,
                                PackDate?expiryDate,
                                PackDate?stockInDate,
                                int?index,
                                int?subItemQuantity,
                                int?depth,
                                int?width,
                                int?height,
                                int?weight,
                                PackShape?shape,
                                PackState?state,
                                bool?isInFridge)
        {
            index?.ThrowIfNegative();
            subItemQuantity?.ThrowIfNegative();
            depth?.ThrowIfNegative();
            width?.ThrowIfNegative();
            height?.ThrowIfNegative();
            weight?.ThrowIfNegative();

            this.Id              = id;
            this.Handling        = handling;
            this.DeliveryNumber  = deliveryNumber;
            this.BatchNumber     = batchNumber;
            this.ExternalId      = externalId;
            this.SerialNumber    = serialNumber;
            this.ScanCode        = scanCode;
            this.MachineLocation = machineLocation;
            this.StockLocationId = stockLocationId;
            this.ExpiryDate      = expiryDate;
            this.StockInDate     = stockInDate;
            this.Index           = index;
            this.SubItemQuantity = subItemQuantity;
            this.Depth           = depth;
            this.Width           = width;
            this.Height          = height;
            this.Weight          = weight;
            this.Shape           = shape;
            this.State           = state;
            this.IsInFridge      = isInFridge;
        }
Exemplo n.º 7
0
        public ArticleInfoResponseArticle(ArticleId id,
                                          String?name,
                                          String?dosageForm,
                                          String?packagingUnit,
                                          bool?requiresFridge,
                                          int?maxSubItemQuantity,
                                          PackDate?serialNumberSinceExpiryDate)
        {
            maxSubItemQuantity?.ThrowIfNegative();

            this.Id                          = id;
            this.Name                        = name;
            this.DosageForm                  = dosageForm;
            this.PackagingUnit               = packagingUnit;
            this.RequiresFridge              = requiresFridge;
            this.MaxSubItemQuantity          = maxSubItemQuantity;
            this.SerialNumberSinceExpiryDate = serialNumberSinceExpiryDate;
        }
Exemplo n.º 8
0
        public StockDeliveryLine(ArticleId id,
                                 String?batchNumber,
                                 String?externalId,
                                 String?serialNumber,
                                 String?machineLocation,
                                 StockLocationId?stockLocationId,
                                 PackDate?expiryDate,
                                 int?quantity)
        {
            quantity?.ThrowIfNegative();

            this.Id              = id;
            this.BatchNumber     = batchNumber;
            this.ExternalId      = externalId;
            this.SerialNumber    = serialNumber;
            this.MachineLocation = machineLocation;
            this.StockLocationId = stockLocationId;
            this.ExpiryDate      = expiryDate;
            this.Quantity        = quantity;
        }
Exemplo n.º 9
0
        public InitiateInputRequestPack(String scanCode,
                                        String?deliveryNumber,
                                        String?batchNumber,
                                        String?externalId,
                                        String?serialNumber,
                                        String?machineLocation,
                                        StockLocationId?stockLocationId,
                                        PackDate?expiryDate,
                                        int?index,
                                        int?subItemQuantity,
                                        int?depth,
                                        int?width,
                                        int?height,
                                        int?weight,
                                        PackShape?shape)
        {
            scanCode.ThrowIfEmpty();
            index?.ThrowIfNegative();
            subItemQuantity?.ThrowIfNegative();
            depth?.ThrowIfNegative();
            width?.ThrowIfNegative();
            height?.ThrowIfNegative();
            weight?.ThrowIfNegative();

            this.ScanCode        = scanCode;
            this.DeliveryNumber  = deliveryNumber;
            this.BatchNumber     = batchNumber;
            this.ExternalId      = externalId;
            this.SerialNumber    = serialNumber;
            this.MachineLocation = machineLocation;
            this.StockLocationId = stockLocationId;
            this.ExpiryDate      = expiryDate;
            this.Index           = index;
            this.SubItemQuantity = subItemQuantity;
            this.Depth           = depth;
            this.Width           = width;
            this.Height          = height;
            this.Weight          = weight;
            this.Shape           = shape;
        }
Exemplo n.º 10
0
        public ArticleInfoResponseArticle(ArticleId id,
                                          String?name,
                                          String?dosageForm,
                                          String?packagingUnit,
                                          bool?requiresFridge,
                                          int?maxSubItemQuantity,
                                          PackDate?serialNumberSinceExpiryDate,
                                          IEnumerable <ArticleTag>?articleTags,
                                          IEnumerable <CrossSellingArticle>?crossSellingArticles,
                                          IEnumerable <AlternativeArticle>?alternativeArticles,
                                          IEnumerable <AlternativePackSizeArticle>?alternativePackSizeArticles)
            :
            base(id,
                 name,
                 dosageForm,
                 packagingUnit,
                 requiresFridge,
                 maxSubItemQuantity,
                 serialNumberSinceExpiryDate)
        {
            if (articleTags is not null)
            {
                this.ArticleTags.AddRange(articleTags);
            }

            if (crossSellingArticles is not null)
            {
                this.CrossSellingArticles.AddRange(crossSellingArticles);
            }

            if (alternativeArticles is not null)
            {
                this.AlternativeArticles.AddRange(alternativeArticles);
            }

            if (alternativePackSizeArticles is not null)
            {
                this.AlternativePackSizeArticles.AddRange(alternativePackSizeArticles);
            }
        }
Exemplo n.º 11
0
        public ArticleMasterSetArticle(ArticleId id,
                                       String?name,
                                       String?dosageForm,
                                       String?packagingUnit,
                                       String?machineLocation,
                                       StockLocationId?stockLocationId,
                                       bool?requiresFridge,
                                       int?maxSubItemQuantity,
                                       int?depth,
                                       int?width,
                                       int?height,
                                       int?weight,
                                       PackDate?serialNumberSinceExpiryDate,
                                       IEnumerable <ProductCode>?productCodes)
        {
            maxSubItemQuantity?.ThrowIfNegative();
            depth?.ThrowIfNegative();
            width?.ThrowIfNegative();
            height?.ThrowIfNegative();
            weight?.ThrowIfNegative();

            this.Id                          = id;
            this.Name                        = name;
            this.DosageForm                  = dosageForm;
            this.PackagingUnit               = packagingUnit;
            this.MachineLocation             = machineLocation;
            this.StockLocationId             = stockLocationId;
            this.RequiresFridge              = requiresFridge;
            this.MaxSubItemQuantity          = maxSubItemQuantity;
            this.Depth                       = depth;
            this.Width                       = width;
            this.Height                      = height;
            this.Weight                      = weight;
            this.SerialNumberSinceExpiryDate = serialNumberSinceExpiryDate;

            if (productCodes is not null)
            {
                this.ProductCodes.AddRange(productCodes);
            }
        }
Exemplo n.º 12
0
 public ArticleMasterSetArticle(ArticleId id,
                                String?name,
                                String?dosageForm,
                                String?packagingUnit,
                                String?machineLocation,
                                StockLocationId?stockLocationId,
                                bool?requiresFridge,
                                bool?batchTracking,
                                bool?expiryTracking,
                                bool?serialTracking,
                                int?maxSubItemQuantity,
                                int?depth,
                                int?width,
                                int?height,
                                int?weight,
                                PackDate?serialNumberSinceExpiryDate,
                                IEnumerable <ProductCode>?productCodes)
     :
     base(id,
          name,
          dosageForm,
          packagingUnit,
          machineLocation,
          stockLocationId,
          requiresFridge,
          maxSubItemQuantity,
          depth,
          width,
          height,
          weight,
          serialNumberSinceExpiryDate,
          productCodes)
 {
     this.BatchTracking  = batchTracking;
     this.ExpiryTracking = expiryTracking;
     this.SerialTracking = serialTracking;
 }
Exemplo n.º 13
0
 public String?ConvertNullableFrom(PackDate?value)
 {
     return(value?.ToString());
 }